Click here to Skip to main content
15,891,684 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing exported varible from dll Pin
MANISH RASTOGI7-Oct-08 23:28
MANISH RASTOGI7-Oct-08 23:28 
AnswerRe: Using exported varible from dll Pin
CPallini7-Oct-08 23:37
mveCPallini7-Oct-08 23:37 
GeneralRe: Using exported varible from dll Pin
MANISH RASTOGI7-Oct-08 23:43
MANISH RASTOGI7-Oct-08 23:43 
QuestionRe: Using exported varible from dll Pin
CPallini7-Oct-08 23:56
mveCPallini7-Oct-08 23:56 
AnswerRe: Using exported varible from dll Pin
MANISH RASTOGI8-Oct-08 0:01
MANISH RASTOGI8-Oct-08 0:01 
GeneralRe: Using exported varible from dll Pin
CPallini8-Oct-08 0:31
mveCPallini8-Oct-08 0:31 
GeneralRe: Using exported varible from dll Pin
MANISH RASTOGI8-Oct-08 1:06
MANISH RASTOGI8-Oct-08 1:06 
GeneralRe: Using exported varible from dll Pin
CPallini8-Oct-08 1:54
mveCPallini8-Oct-08 1:54 
For instance:
(DLL header)
#ifdef __cplusplus
extern "C"
{
#endif
  extern DLLTEST_API int iExported;
#ifdef __cplusplus
};
#endif


(DLL source)
#ifdef __cplusplus
extern "C"
{
#endif
  DLLTEST_API int iExported;
#ifdef __cplusplus
};
#endif


(DLL client)
//...
int * pInt =(int *) GetProcAddress(hLib, "iExported");


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Using exported varible from dll Pin
MANISH RASTOGI9-Oct-08 18:48
MANISH RASTOGI9-Oct-08 18:48 
GeneralRe: Using exported varible from dll Pin
CPallini9-Oct-08 21:44
mveCPallini9-Oct-08 21:44 
QuestionDialog Box Problem in mfc Pin
Dhiraj kumar Saini7-Oct-08 23:08
Dhiraj kumar Saini7-Oct-08 23:08 
AnswerRe: Dialog Box Problem in mfc Pin
ThatsAlok7-Oct-08 23:24
ThatsAlok7-Oct-08 23:24 
GeneralRe: Dialog Box Problem in mfc Pin
CPallini7-Oct-08 23:30
mveCPallini7-Oct-08 23:30 
GeneralRe: Dialog Box Problem in mfc Pin
ThatsAlok7-Oct-08 23:37
ThatsAlok7-Oct-08 23:37 
GeneralRe: Dialog Box Problem in mfc Pin
Dhiraj kumar Saini8-Oct-08 0:07
Dhiraj kumar Saini8-Oct-08 0:07 
GeneralRe: Dialog Box Problem in mfc Pin
Cedric Moonen8-Oct-08 0:14
Cedric Moonen8-Oct-08 0:14 
GeneralRe: Dialog Box Problem in mfc Pin
Dhiraj kumar Saini8-Oct-08 0:18
Dhiraj kumar Saini8-Oct-08 0:18 
GeneralRe: Dialog Box Problem in mfc Pin
ThatsAlok8-Oct-08 0:42
ThatsAlok8-Oct-08 0:42 
GeneralRe: Dialog Box Problem in mfc Pin
Dhiraj kumar Saini8-Oct-08 0:50
Dhiraj kumar Saini8-Oct-08 0:50 
GeneralRe: Dialog Box Problem in mfc Pin
Dhiraj kumar Saini8-Oct-08 1:13
Dhiraj kumar Saini8-Oct-08 1:13 
GeneralRe: Dialog Box Problem in mfc Pin
David Crow8-Oct-08 3:36
David Crow8-Oct-08 3:36 
AnswerRe: Dialog Box Problem in mfc Pin
toxcct8-Oct-08 0:46
toxcct8-Oct-08 0:46 
Questioncommand window of VC Pin
George_George7-Oct-08 22:37
George_George7-Oct-08 22:37 
AnswerRe: command window of VC Pin
toxcct8-Oct-08 0:44
toxcct8-Oct-08 0:44 
GeneralRe: command window of VC Pin
George_George8-Oct-08 1:07
George_George8-Oct-08 1:07 

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.