Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C Structures and VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522430
Message ID:
00522506
Views:
11
>>Pretty much tried everything
>>
>>chr(157)+replicate(chr(0), 27)+space(128)+chr(0)
>>chr(157)+replicate(chr(0), 156)
>>etc
>>etc
>>
>>Function still fails on me. I'll go to the source and ask. Thanks for the help.
>
>Erik,
>
>The function declaration would help here. The CHR(157) + REPLICATE(CHR(0), 156) is correct, based on the structure declaration. Therefore, it must be either that the declaration isn't correct or something about the function call itself isn't.


here is the code:
declare integer HttpInitialize in cshtpl32.dll string lpszLicenseKey, String @lpData

lcKey = "Our license key"
lcStruct = chr(157)+replicate(chr(0), 156)
lnOK = HttpInitialize(lcKey, @lcStruct)
The function returns 0 (function failed) and I use a function called HttpGetLastError to find out which error it had. I get "Invalid parameter passed to function".

E-mailed their tech. support and let the ball be in their hands. Thanks for all the help.
- Erik Niese-Petersen

Crazy Dane in USA.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform