Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateNamedPipe() Pin
Member 38520242-Aug-11 22:52
Member 38520242-Aug-11 22:52 
QuestionHow a to expose data of an application (.EXE) to a DLL on runtime? Pin
Arris741-Aug-11 3:17
Arris741-Aug-11 3:17 
AnswerRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
«_Superman_»1-Aug-11 4:12
professional«_Superman_»1-Aug-11 4:12 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Arris741-Aug-11 6:20
Arris741-Aug-11 6:20 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
«_Superman_»1-Aug-11 6:32
professional«_Superman_»1-Aug-11 6:32 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Arris742-Aug-11 1:43
Arris742-Aug-11 1:43 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Albert Holguin1-Aug-11 18:00
professionalAlbert Holguin1-Aug-11 18:00 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Arris742-Aug-11 1:38
Arris742-Aug-11 1:38 
Hello Albert,

Many thanks for your help.
Actually my problem is a linking issue.
with this message:
error LNK2019: unresolved external symbol "public: double __thiscall TestRef::unDouble(double)" (?unDouble@TestRef@@QAENN@Z) referenced in function "public: void __thiscall ClassRef::setval(int)" (?setval@ClassRef@@QAEXH@Z) MYDLL.obj
fatal error LNK1120: 1 unresolved externals Debug/MYDLL.dll

My Dll function has a pointer as parameter and the pointer calls the function member of the application's class and that function uses an object of another class of the application.
Could you please tell me how to solve it?

Below is the sample source of the DLL function

C++
#include "classref.h" // file header of  the application using the DLL 
extern "C" __declspec(dllexport) int MainEntry( ClassRef* pRef )
{ 
     // entier is a public attribute of the application that uses the DLL
     int XX = pRef->entier; // This works

 
    //getval is a public member function of the application that uses the DLL
    XX = pRef->setval(5); // compile but does not build. unresolved external symbol errors
 
  return 0;
}


And below is definition of setval(int )
C++
void setval( int val)
{
     double dbl = m_ref->unDouble(16.45);// This is a member function of another class of the application
     entier = val * dbl ;
}

GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Albert Holguin2-Aug-11 4:02
professionalAlbert Holguin2-Aug-11 4:02 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Arris742-Aug-11 5:02
Arris742-Aug-11 5:02 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Arris742-Aug-11 5:48
Arris742-Aug-11 5:48 
GeneralRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
Albert Holguin2-Aug-11 6:05
professionalAlbert Holguin2-Aug-11 6:05 
AnswerRe: How a to expose data of an application (.EXE) to a DLL on runtime? Pin
jschell1-Aug-11 8:13
jschell1-Aug-11 8:13 
Questionhow to avoid dead-lock if you write multi-thread programming Pin
yu-jian1-Aug-11 2:50
yu-jian1-Aug-11 2:50 
AnswerRe: how to avoid dead-lock if you write multi-thread programming Pin
Albert Holguin1-Aug-11 3:20
professionalAlbert Holguin1-Aug-11 3:20 
QuestionSOCKET : How to gracfully stop application when recv() function is blocking Pin
pandit841-Aug-11 1:05
pandit841-Aug-11 1:05 
AnswerRe: SOCKET : How to gracfully stop application when recv() function is blocking PinPopular
Peter_in_27801-Aug-11 1:25
professionalPeter_in_27801-Aug-11 1:25 
JokeRe: SOCKET : How to gracfully stop application when recv() function is blocking Pin
Code-o-mat1-Aug-11 5:57
Code-o-mat1-Aug-11 5:57 
AnswerRe: SOCKET : How to gracfully stop application when recv() function is blocking Pin
jschell1-Aug-11 8:17
jschell1-Aug-11 8:17 
GeneralRe: SOCKET : How to gracfully stop application when recv() function is blocking Pin
pandit841-Aug-11 19:34
pandit841-Aug-11 19:34 
QuestionCRichEditCtrl Font Formating Pin
yurii_leorda30-Jul-11 15:11
yurii_leorda30-Jul-11 15:11 
AnswerRe: CRichEditCtrl Font Formating Pin
Code-o-mat30-Jul-11 22:21
Code-o-mat30-Jul-11 22:21 
GeneralRe: CRichEditCtrl Font Formating Pin
yurii_leorda31-Jul-11 0:21
yurii_leorda31-Jul-11 0:21 
GeneralRe: CRichEditCtrl Font Formating Pin
Code-o-mat31-Jul-11 0:37
Code-o-mat31-Jul-11 0:37 
QuestionRuntime Error in Visual Studio [modified] Pin
AndrewG123129-Jul-11 12:09
AndrewG123129-Jul-11 12:09 

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.