Working fine for me, Birdy :(.
Maybe put the API declaration in the General section of the form's code, and make sure it's declaring the API function as Private.
ok i've been trying to get the GetTempPath API to work in Visual Basic in winxp with no luck, VB just hangs for a few seconds then crashes.
hopefully someone can help, heres the code i got:
Module decleration as per API viewer:
Public Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
main code:
Dim retval As Long
Dim pathbuffer As String * 512
retval = GetTempPath(512, pathbuffer)
Working fine for me, Birdy :(.
Maybe put the API declaration in the General section of the form's code, and make sure it's declaring the API function as Private.
nope declared as private in the forms general declerations still makes it crash. :cry:
i'll try it on another computer soon, might just be my installation is screwy. its silly though cause other APIs work fine.
Odd, if all the other APIs work... ah well, give it a crack on another machine / reinstall, see what happens then :).
hhmmm it works now. i've changed nothing but today it decided to start working, hope it stays working :no:
*Fingers crossed* :D.Originally Posted by Birdkiller
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks