-
I have a program that uses different functions for lots of different data pieces.
is it possible to have a database of code and compile and use it only as needed??
or is it possible to have a database of exe files or such and call them from the database?
any advice will be greatly appreciated
-
Make a DLL
Create a DLL application and put your common pieces of code in there. Compile it once, reference it properly from your base project and call as needed. Task code should be public in a basic module, and forms can be just loaded. Deliver both pieces and regsvr32 the DLL in its final destination. I said a mouthful, but it's a start, and probably just one way to do what you want.
-
you can do conditional compiles like this:
#If
#then
#end if
where the computer will actually ignore some of your code depending on certain local conditions. i have yet to find a place that this would be useful.
-
compiling
umm, i have no idea how to create a DLL program and reference it. Plus i presume that would mean starting the app again from scratch which would take quite a while as it is already over 2000 lines of code and not nearly finished.
Also, if someone could explain the #if # then #else thing wossname mentioned it would help greatly as i dont have access to the MSDN help library (Scratched CDs really suck ass)
-
wossname,
I also hadn't found a use of compile conditionals until last week.
I'm thinking about using it to toggle the ado conn string (data source) from "liveserver" to "devserver".
Does this make sense or am I making it up as I go along?
:)