Hello! Testing wwHttp in VFP and my prg works fine. But when start procedure from exe it breaks on "do wwHttp" with error above. I have set shared dlls in folder under exe and set path to it addit, and included wwhttp and wwapi, wwcollections, wwdotnertbridge, wwjsonserializer, wwutils to main proc, together with wconnect.h in project. Also have found clrHost.dll needs to be there, so put it also there.
My code goes:
do wwJsonSerializer && no errors
loSer = CREATEOBJECT("wwJsonSerializer")
DO WWHTTP && breaks in exe, works in prg
loHttp = CREATEOBJECT("wwHttp")
...
Any idea what I have missing?
Make sure you have the wconnect.h file in the proper location and recompile the framework code.
You need to make sure that wconnect.h
is in your FoxPro path when you compile your code. Most of the PRG files reference that header file so it's required at build time or run time if you run directly from source - basically anytime code is compiled. It's not needed for a deployed application running an EXE/App.
So if you're adding files to your own project either add the Client Tools install path to the FoxPro path or copy wconnect.h
to your project root folder.
+++ Rick ---