Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set('classlib') into an .exe
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00457219
Message ID:
00457220
Views:
28
There are a few ways around that problem. Here's one: use SET PATH and have the Set Classlib statements refer to just the filename. This way, in your development mode, they will be found due to SET PATH and in EXE Mode they will be found because they are compiled into the EXE.




>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Hi its hard to me explain this, so i try to explain it in some steps

1 create a pjx
2 ...create any class (for this example i name it 'myClass' )
3 include it into the pjx
4 in the main prg i put some like this:
Set Classlib To C:\The_Folder_of_libs\myLib_where_MyClass_is_stored
CreateObject('myClass')
Read Events
5 compile all into an exe file

Ok, this works fine since i have my folder and structure intact, but i want to compile one exe and have it to be independent of any folder or file structure, i mean the user can execute it within any location, but the exe give one error when it try to execute the 'set classlib to'... because C:\bla_bla_bla does not exist more.
What im doing bad?
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform