.decls-files question

Blitz3D Forums/Blitz3D Programming/.decls-files question

You have to let BB/the DLL know the size of the data types being passed. At a guess, try the following. (note: the 2 show reminder messages don't return anything, you you remove the % after the first funtion name else blitz will think you're returning an Int)

.lib "ArmAccess.dll"
CheckCode%(name$, code$):"_CheckCode@8"
VerifyKey%(name$, code$):"_VerifyKey@8"
InstallKey%(name$, code$):"_InstallKey@8"
InstallKeyLater%(name$, code$):"InstallKeyLater@8"
UninstallKey%():"_UninstallKey@0"
SetDefaultKey%():"_SetDefaultKey@0"
UpdateEnvironment%():"_UpdateEnvironment@0"
IncrementCounter%():"_IncrementCounter@0"
CopiesRunning%():"_CopiesRunning@0"
ChangeHardwareLock%():"_ChangeHardwareLock@0"
GetShellProcessID%():"_GetShellProcessID@0"
FixClock%():"_FixClock@0"
RawFingerprintInfo%( item% ):"_RawFingerprintInfo@4"
SetUserString%( which%, string$ ):"_SetUserString@8"
GetUserString%( which%, buffer$, bufferlength% ):"_GetUserString@12"
WriteHardwareChangeLog%( filename$):"_WriteHardwareChangeLog@4"
ConnectedToServer%():"_ConnectedToServer@0"
CallBuyNowURL%( parent% ):"_CallBuyNowURL@4"
ShowReminderMessage( parent% ):"_ShowReminderMessage@4"
ShowReminderMessage2( parent% ):"_ShowReminderMessage2@4"
ExpireCurrentKey%():"_ExpireCurrentKey@0"
ShowEnterKeyDialog%( parent% ):"_ShowEnterKeyDialog@4"


'Should' work :)
Tom