Include decision

new topic     » topic index » view thread      » older message » newer message

I'm using a third party include file - TCP4U - but I want to be able to
turn it off using a global constant ACTIVATE_TCP = FALSE. (This is if
I'm gonna distribute a version of my program without the TCP4U module
included. Don't worry, any recognitions are made to the appropriate
owners.)

The way it works is that the DLL is 'sequenced' into my application,
and if the ACTIVATE_TCP = TRUE, it will save the DLL to file - and then
execute the TCP4U module.

The challenge (or - problem) is that when I deactivate the TCP4U
(ACTIVATE_TCP = FALSE) the program shall NOT save the DLL to disk, and
NOT run the TCP4U wrapper. Only problem is that as soon as I include the
wrapper - certain initialization routines are already executed, and since
it wont find the DLL file - errors will emerge.

What I've done up till now, is modify the wrapper itself with an
'IF ACTIVATE_TCP = TRUE...' etc, but I don't want to have to edit third
party snippets..

Anyone know what walkaround I can use? 

PS! The point is that I'm only supposed to change the ACTIVATE_TCP
variable - I don't want to remove the includes.

Hope my poor attempt of explaining my problem was good enough... :)

ZNorQ

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu