dll question

This is a discussion on dll question within the C++ Programming forums, part of the General Programming Boards category; im quite new at c++ and trying to figure out how to add dll's to my project, could annybody tell ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    2

    Question dll question

    im quite new at c++ and trying to figure out how to add dll's
    to my project, could annybody tell me what i should look for
    in order to do this cuz i have no clue...
    would the dll be included into the exe and would the exe on
    execution "instal" the dll ?
    thanks for the support

  2. #2
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38
    the dll files can be installed with the installer program, but you would have to make sure that you inserted the file into the group of files to be installed with whatever program you are using to make the installer. if you have visual studio you can use InstallShield for VC++.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    2
    isent there a way to include the code for this in your source code
    and directely "compile" the dll into your aplication ?
    thanks for your time

  4. #4
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38
    I don't believe so. Seeing that a dll file is just a bunch of code that can be used by multiple programs, the only way to compile the dll into your program is to actually insert the code into your project. But I am not for sure.

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    It should be possible....

    But, the whole point of DLLs is that they are not part of the exe file.

    This means that the DLL code can be shared by many different exe files... not duplicated in each one.

    Since a DLL is mostly machine code, it should be possible to "hack" it... You could modify it and merge it with your own code. However, because the DLL is not C++ code, this would have to be done in assembly language.

    Also, assuming that you'd be using someone elses DLL, it would be a user-agreement and/or copyright violation to re-distribute the hacked DLL.

  6. #6
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    I don't believe so. Seeing that a dll file is just a bunch of code that can be used by multiple programs, the only way to compile the dll into your program is to actually insert the code into your project. But I am not for sure.
    Well, actually, if you have the .lib and .h files you can statically link the DLL and the code will be embedded if you like into the .exe. But, I don't know that I understand what the OP is actually asking.

    what is the actual problem you are trying to solve? Do you have an example?

    [edit] Or have I misinterpreted this, and the OP is asking how to get the source out of the DLL???

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 08:11 AM
  2. Dll Injection Question
    By zenox in forum C Programming
    Replies: 13
    Last Post: 03-15-2008, 11:54 AM
  3. dll and classes question
    By Rune Hunter in forum C++ Programming
    Replies: 2
    Last Post: 12-17-2005, 09:26 PM
  4. C++ .NET - "inconsistent dll linkage" - What's that?
    By BrianK in forum Windows Programming
    Replies: 2
    Last Post: 03-16-2004, 10:16 AM
  5. Calling a VB DLL w/ forms from C++ DLL
    By UW_COOP in forum C++ Programming
    Replies: 8
    Last Post: 06-30-2003, 09:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21