Thread: writing windows dlls using visual studio 2008 express

  1. #16
    Registered User
    Join Date
    Mar 2006
    well im trying to avoid having to re-compile the app if possible. that's why i want to link to the dll. if it isnt possible, i guess i could just decide what i would want to add and then add it as i go. also, if i need to extend the functionality that much, i can always rewrite the application i suppose
    HA! I WIN!

  2. #17
    Join Date
    Oct 2007
    Inside my computer
    As long as you don't change the exposed dll functionality, such as function names and what parameters they take, etc, an old app will run fine with a newly compiled dll.
    However, your app will not be able to take advantage of the new functionality in the dll!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Ok, so the way our system works is that you have a "create" function in the DLL that returns a pointer to the base-class. For each variant of the DLL, it obviously returns the relevant derived class.

    This works well as long as your derived function doesn't need further member functions than the original base-class provides - and of course, all base-class functions need to be virtual.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C & visual studio 2008
    By Red Maw in forum C Programming
    Replies: 2
    Last Post: 04-02-2009, 09:06 PM
  2. Replies: 2
    Last Post: 07-08-2008, 03:45 AM
  3. multiple errors generated by socket headers
    By nocturna_gr in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2007, 06:33 PM
  4. Crazy errors caused by class, never seen before..
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 11:54 AM
  5. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM