PowerBasic support

Hi Wyatt

I use Powerbasic... I see you have support for Realbasic, VB6 and VB.Net...

Can you generate a TruboActivate.inc file to use your DLL?

Much appreciated.

Thanks!

We'll look into supporting Powerbasic. You can find good examples showing how to call dlls, like TurboActivate, on this page: http://www.powerbasic.com/support/downloads/pbcc.htm

OK.. so I have converted some of the DLLs into PB INC files.. example code and the INC headers below..

However, I keep getting error code 7 - "The version GUID doesn't match that of the product details file."

I have downloaded the DAT file several times, created new license keys etc... but I am still having the same problem.

Any help would be appreciated.

Thanks!L

' function Activate()' function CheckAndSavePKey(BYREF productKey AS STRINGZ, BYVAL flags AS DWORD)' function Deactivate(BYVAL erasePkey AS BYTE)' function GetFeatureValue(BYREF featureName AS STRINGZ, BYREF lpValueStr AS STRINGZ, BYVAL cchValue AS LONG)' function IsActivated(BYREF versionGUID AS STRINGZ)' function IsGenuine(BYREF versionGUID AS STRINGZ)

#COMPILE EXE#DIM ALL

#INCLUDE "TurboActivate.inc"

FUNCTION PBMAIN () AS LONG

LOCAL hr AS LONG LOCAL FeatureValue AS STRINGZ * 256 LOCAL szGUID, szPKey AS STRINGZ * 256

szGUID = "1623284819506502de282176.70886786" szPKey = "CYTA-CAEZ-NDFJ-MSCT-6IVY-GIAT-QSTA"

'hr = CheckAndSavePKey(szPKey, %TA_Flags.TA_SYSTEM)

hr = IsActivated("1623284819506502de282176.70886786") ' hr = IsProductKeyValid(szPKey)

END FUNCTION

It's likely because you're using the ANSI string data type. Use the Unicode data type , I believe it's WSTRINGZ.

Hi

So I have re-defined the IsActivated call as follows with WSTRINGZ

DECLARE FUNCTION IsActivated STDCALL LIB "TurboActivate.dll" ALIAS "IsActivated" ( _ BYREF versionGUID AS WSTRINGZ _ ) AS LONG

I have tried both declaring $$TA_GUID as a CONSTANT and with DIM as a variable

$$TA_GUID = "1623284819506502de282176.70886786"

hr = IsActivated($$TA_GUID)

It returns with the famous MS VC++ Error: Exception: Generic Microsoft Visual C++ error, code = &HE06D7363

I have actually converted all of the TurboActivate.h file into TurboActivate.INC and would be happy to share it with you and the community once we get this debugged.

Thanks!L

Send the file to me and I'll work on this later this evening. You can send the file to support@wyday.com

Also, make sure you use CDECL not STDCALL, or else you'll get some pretty hard crashes.