Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Com Interop Conditional Implements Statement
Message
From
11/06/2011 13:20:37
 
 
To
11/06/2011 03:44:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01513528
Message ID:
01514131
Views:
46
>>>>Thanks but it's a no-go. :( In both cases, we have to compile a 32 bit version (with the path there) and a 64 bit version (with the x86 path there) for this to work. don't want two separate exes... and if the path doesn't exist at build time (which it won't on a build server), then it won't work for either :(
>>>>
>>>
>>>>>>Any ideas?
>>>
>>>Wild shot;
>>>Make subclass for 64bit version with no other then that required path change ?
>>
>>Checking on that one - not sure it works with the IMPLEMENTS statement but will definitely test...
>
>
>Oh, I think it will work - provided you install the dll on both places on the build server. At run time you will have to decide which class to use
>
>But then what do you do if the user installed it in another place - installers give the possibility where you want to install
>
>Another possibility that comes to mind is ... at run time
>(1) find where it is installed
>(2) make a prog that targets the IMPLEMENTS to the right place
>(3) Compile it
>(4) Then use it

If it weren't for firing events we could do that, but while I can call methods and pass info to the .net dll, I can only hook up events and fire the dot net events in the vfp app if the class is defined in the main.prg. Tested with an external .fxp or event a class file that is included in the project and it is unreliable firing events.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform