Click here to Skip to main content
15,888,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSequel encode? Pin
mcgahanfl9-Aug-04 10:28
mcgahanfl9-Aug-04 10:28 
AnswerRe: Sequel encode? Pin
User 127829-Aug-04 10:35
User 127829-Aug-04 10:35 
GeneralRe: Sequel encode? Pin
mcgahanfl9-Aug-04 10:48
mcgahanfl9-Aug-04 10:48 
GeneralRe: Sequel encode? Pin
Stlan9-Aug-04 21:17
Stlan9-Aug-04 21:17 
GeneralRe: Sequel encode? Pin
mcgahanfl10-Aug-04 3:33
mcgahanfl10-Aug-04 3:33 
GeneralSimple DLL calling another DLL Pin
george330279-Aug-04 8:35
george330279-Aug-04 8:35 
GeneralRe: Simple DLL calling another DLL Pin
David Crow9-Aug-04 9:10
David Crow9-Aug-04 9:10 
GeneralRe: Simple DLL calling another DLL Pin
george330279-Aug-04 9:59
george330279-Aug-04 9:59 
I guess I got my terminology wrong.

Let me restate, because I think you gave me almost the answer I need.
Thank you so far.

If I make a DLL (call it number1.DLL) whose export will be a constant, or the DLL will return a constant.

Now I make a 2nd DLL let us call it number2.DLL.
In number2.DLL I want to link number1.DLL so that I can get that constant to use.

So how would you set up the program.cpp file to like the number1.DLL ?

#include <windows.h>
extern "C"

__export WINAPI test()

{

// code to get the constant from \path\number1.DLL


return(Number from number1.dll);

}

How would you put in the LoadLibrary() to get to a specific path and number1.DLL.

Then how would you use the GetProcAddress() to get this constant.
GeneralRe: Simple DLL calling another DLL Pin
Antti Keskinen9-Aug-04 21:07
Antti Keskinen9-Aug-04 21:07 
GeneralRe: Simple DLL calling another DLL Pin
george3302722-Aug-04 12:21
george3302722-Aug-04 12:21 
GeneralRe: Simple DLL calling another DLL Pin
Antti Keskinen22-Aug-04 20:41
Antti Keskinen22-Aug-04 20:41 
GeneralRe: Simple DLL calling another DLL Pin
george3302724-Aug-04 7:15
george3302724-Aug-04 7:15 
GeneralRe: Simple DLL calling another DLL Pin
Antti Keskinen24-Aug-04 7:33
Antti Keskinen24-Aug-04 7:33 
GeneralRe: Simple DLL calling another DLL Pin
george3302720-Sep-04 13:28
george3302720-Sep-04 13:28 
GeneralNTFS extended file attributes in C++ Pin
gokings9-Aug-04 8:25
gokings9-Aug-04 8:25 
GeneralRe: NTFS extended file attributes in C++ Pin
David Crow9-Aug-04 9:28
David Crow9-Aug-04 9:28 
GeneralRe: NTFS extended file attributes in C++ Pin
Toby Opferman9-Aug-04 11:57
Toby Opferman9-Aug-04 11:57 
GeneralRe: NTFS extended file attributes in C++ Pin
gokings9-Aug-04 20:46
gokings9-Aug-04 20:46 
GeneralGet the program folder Pin
Larsson9-Aug-04 8:20
Larsson9-Aug-04 8:20 
GeneralRe: Get the program folder Pin
OBRon9-Aug-04 8:28
OBRon9-Aug-04 8:28 
GeneralRe: Get the program folder Pin
Larsson9-Aug-04 8:30
Larsson9-Aug-04 8:30 
GeneralRe: Get the program folder Pin
Tom Wright9-Aug-04 10:23
Tom Wright9-Aug-04 10:23 
GeneralRe: Get the program folder Pin
Larsson9-Aug-04 11:03
Larsson9-Aug-04 11:03 
GeneralRe: Get the program folder Pin
Tom Wright9-Aug-04 12:12
Tom Wright9-Aug-04 12:12 
GeneralRe: Get the program folder Pin
Toby Opferman9-Aug-04 11:44
Toby Opferman9-Aug-04 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.