Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 5:30
hli126-Jun-06 5:30 
GeneralRe: Call a dll from a dll Pin
Sarath C26-Jun-06 5:24
Sarath C26-Jun-06 5:24 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 5:35
hli126-Jun-06 5:35 
GeneralRe: Call a dll from a dll Pin
Zac Howland26-Jun-06 5:55
Zac Howland26-Jun-06 5:55 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 7:42
hli126-Jun-06 7:42 
GeneralRe: Call a dll from a dll Pin
Zac Howland26-Jun-06 9:02
Zac Howland26-Jun-06 9:02 
GeneralRe: Call a dll from a dll Pin
hli127-Jun-06 3:28
hli127-Jun-06 3:28 
GeneralRe: Call a dll from a dll Pin
Zac Howland27-Jun-06 4:24
Zac Howland27-Jun-06 4:24 
Here is a simplified case of some old code I use to have to work with:

Macro defined for both Dll's
#ifdef __IMPORT_LIBRARY__<br />
#define EXTENDED_MODULE __declspec(dllimport)<br />
#else<br />
#define EXTENDED_MODULE __declspec(dllexport)<br />
#endif // __IMPORT_LIBRARY__


In Dll 1:
// dll1.h<br />
EXTENDED_MODULE void myfunction();


In the project settings for DLL2, add __IMPORT_LIBRARY__ to the preprocesser definitions. (NOTE: DO NOT use EXTENDED_MODULE for defining your methods in DLL2 otherwise nothing will be exported from DLL2 -- either create another macro name with the same style build, or use MFC's AFX_EXT_CLASS macro). Included the dll1.h header file where you need to call myFunction(), and add the lib file that is created for the dll to Dll2's link settings.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: Call a dll from a dll Pin
hli127-Jun-06 7:43
hli127-Jun-06 7:43 
QuestionDebugger issues Pin
capricious_00126-Jun-06 4:39
capricious_00126-Jun-06 4:39 
QuestionRe: Debugger issues Pin
David Crow26-Jun-06 4:42
David Crow26-Jun-06 4:42 
AnswerRe: Debugger issues Pin
capricious_00126-Jun-06 4:59
capricious_00126-Jun-06 4:59 
AnswerRe: Debugger issues Pin
Sarath C26-Jun-06 4:51
Sarath C26-Jun-06 4:51 
GeneralRe: Debugger issues Pin
capricious_00126-Jun-06 5:01
capricious_00126-Jun-06 5:01 
GeneralRe: Debugger issues Pin
Sarath C26-Jun-06 5:05
Sarath C26-Jun-06 5:05 
GeneralRe: Debugger issues Pin
capricious_00126-Jun-06 5:19
capricious_00126-Jun-06 5:19 
Questiona map Resizing a map file; Pin
hatemtalbi26-Jun-06 4:27
hatemtalbi26-Jun-06 4:27 
QuestionRe: a map Resizing a map file; Pin
David Crow26-Jun-06 4:37
David Crow26-Jun-06 4:37 
AnswerRe: a map Resizing a map file; Pin
hatemtalbi26-Jun-06 4:50
hatemtalbi26-Jun-06 4:50 
QuestionRe: a map Resizing a map file; Pin
David Crow26-Jun-06 5:05
David Crow26-Jun-06 5:05 
AnswerRe: a map Resizing a map file; Pin
hatemtalbi26-Jun-06 5:10
hatemtalbi26-Jun-06 5:10 
GeneralRe: a map Resizing a map file; Pin
James Brown26-Jun-06 6:42
James Brown26-Jun-06 6:42 
GeneralRe: a map Resizing a map file; Pin
hatemtalbi26-Jun-06 6:46
hatemtalbi26-Jun-06 6:46 
GeneralRe: a map Resizing a map file; Pin
James Brown26-Jun-06 7:43
James Brown26-Jun-06 7:43 
QuestionTabs with right close button (Firefox like) Pin
Moak26-Jun-06 4:00
Moak26-Jun-06 4:00 

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.