Results 1 to 5 of 5

Thread: Compiling

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Perth, WA
    Posts
    35

    Question

    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

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    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.
    end war
    stop greed

  3. #3
    Guest
    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.

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Perth, WA
    Posts
    35

    Question 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)

  5. #5
    Lively Member
    Join Date
    May 2000
    Location
    London
    Posts
    99

    Cool

    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?



    VB6 Enterprise sp5, SQL Server2000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width