Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Windows API Functions
I have copied the following declaration and an accompaning function call from
Walkenbach"s p\Power Programming With VBA. Declare Function GetWindowsDirectoyA Lib "Kernel32" _ (ByVal lpBuffer As String, ByVal nSize As Long) As Long I get the runtime error "Can't find DLL entry point GetWindowsDirectoryA in kernel32. I am using WindowsXP home ed. Does anyone know if XP has that function? -- Thanks for your help |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Windows API Functions
GetWindowsDirectoryA
not GetWindowsDirectoyA -- Gary''s Student - gsnu200772 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Windows API Functions
You have a typo in GetWindowsDirectoyA , missing an"r" before the "y"
Public Declare Function GetWindowsDirectory _ Lib "kernel32" Alias "GetWindowsDirectoryA" ( _ ByVal lpBuffer As String, _ ByVal nSize As Long) As Long Although not necessary, to adhere to convention you might copy the API as written above (line breaks optional) Regards, Peter T "LesHurley" wrote in message ... I have copied the following declaration and an accompaning function call from Walkenbach"s p\Power Programming With VBA. Declare Function GetWindowsDirectoyA Lib "Kernel32" _ (ByVal lpBuffer As String, ByVal nSize As Long) As Long I get the runtime error "Can't find DLL entry point GetWindowsDirectoryA in kernel32. I am using WindowsXP home ed. Does anyone know if XP has that function? -- Thanks for your help |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Windows API Functions
What a difference a letter mkes. Thanks
-- Thanks for your help "Peter T" wrote: You have a typo in GetWindowsDirectoyA , missing an"r" before the "y" Public Declare Function GetWindowsDirectory _ Lib "kernel32" Alias "GetWindowsDirectoryA" ( _ ByVal lpBuffer As String, _ ByVal nSize As Long) As Long Although not necessary, to adhere to convention you might copy the API as written above (line breaks optional) Regards, Peter T "LesHurley" wrote in message ... I have copied the following declaration and an accompaning function call from Walkenbach"s p\Power Programming With VBA. Declare Function GetWindowsDirectoyA Lib "Kernel32" _ (ByVal lpBuffer As String, ByVal nSize As Long) As Long I get the runtime error "Can't find DLL entry point GetWindowsDirectoryA in kernel32. I am using WindowsXP home ed. Does anyone know if XP has that function? -- Thanks for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
i want all windows in one excel frame (windows in taskbar) | Excel Discussion (Misc queries) | |||
cannot open exel from windows xp in windows vista and visa versa | New Users to Excel | |||
can windows vista edit shared document from windows xp | Excel Worksheet Functions | |||
Page breaks are different in Windows 2000 and Windows XP | Excel Discussion (Misc queries) | |||
Can Excel interact with other Windows functions | Excel Programming |