I'm a bit confused about LoadLibrary.
DO I still need to declare the function?
I have it working in one program (Not sure how) but my goal is to be able to run without the DLL being there(In case it gets deleted etc), detecting that and running an error function instead, is that possible?
Meanwhile, this is what I have and it does not work, I get "Missing Declaration
FreeCCSDLL = "FREECCSDLL" 'Global
Function ProcessCreditCards() As Long
Local x As Long
Local hLib As Long
Local procAddr As Long
Local Param As Asciiz * 255
hLib = LoadLibrary("FREECCS.DLL")
If IsFalse hLib Then
MsgBox FreeCCSDLL + " is missing or damaged, please verify installation", %MB_ICONSTOP,CCS
Exit Function
End If
procAddr = GetProcAddress(hLib, FreeCCSDLL) 'Function Name is "FreeCCSDLL"
Result = @FreeCCSDLL("Setup", "ATZ")'
'etc etc
-------------
Scott Turchin
DO I still need to declare the function?
I have it working in one program (Not sure how) but my goal is to be able to run without the DLL being there(In case it gets deleted etc), detecting that and running an error function instead, is that possible?
Meanwhile, this is what I have and it does not work, I get "Missing Declaration
FreeCCSDLL = "FREECCSDLL" 'Global
Function ProcessCreditCards() As Long
Local x As Long
Local hLib As Long
Local procAddr As Long
Local Param As Asciiz * 255
hLib = LoadLibrary("FREECCS.DLL")
If IsFalse hLib Then
MsgBox FreeCCSDLL + " is missing or damaged, please verify installation", %MB_ICONSTOP,CCS
Exit Function
End If
procAddr = GetProcAddress(hLib, FreeCCSDLL) 'Function Name is "FreeCCSDLL"
Result = @FreeCCSDLL("Setup", "ATZ")'
'etc etc
-------------
Scott Turchin
Comment