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)
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)
Comment