vba example

Hi - i've downloaded the TurboActivate files but i can't find the VBA example - can you point me to this please?

See: Using TurboActivate with Visual Basic for Applications (VBA) It tells you where to find the example (API\VBA) and what to do with it.

Thanks Wyatt

"Included in both the TurboActivate.zip and TurboActivate-Mac.zip packages is a simple VBA example project"

I can't find the example project in the zip file... Is there one and if so, where is it?

Also, i am having trouble with the .bas file - when i call the TA_PDetsFromPath(StrPtr(filename)) - i get an error Bad DLL calling convention.

It would be great if i could get hold of a working example in an Excel workbook / office document as i am struggling here.

The other thing i would like to know is if this did work with an excel file, how would it be deployed? Would i have to create an isntallation package and if so, what tool would you advise for this?

Sorry for all the questions - i'm just looking for a solution to license our excel workbooks.

The instructions talk about this:

Special instructions for WindowsIf your VBA app will be running on Windows then you'll need to use the "stdcall" version of TurboActivate (in the "stdcall" folder in the TurboActivate.zip package).

Also, if you're targeting the 64-bit version of Windows (e.g. you're app is an extension that will run in 64-bit version of Microsoft Office) then you'll need to include the x64 version of TurboActivate (from the "stdcall\x64" folder), but rename it to "TurboActivate.x64.dll". This way you can include both the x86 and x64 versions of TurboActivate and target both versions of Office without having to release 2 separate versions of your app.

It would be great if i could get hold of a working example in an Excel workbook / office document as i am struggling here.

Is there a particular question you have? Probably the best thing to look at is the VB6 example because of the similarities in code.

Ok - so using the stdcall versions has worked - i don't have any bad dll calling error thanks

My question is how would you recommend that you deploy a protected Excel workbook?

Thanks

Well, that's entirely up to you. The typical way to deploy applications is to use an installer. InnoSetup is a popular one that's relatively easy to use.