Click here to Skip to main content
15,936,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
CPallini28-Oct-09 10:19
mveCPallini28-Oct-09 10:19 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Greg Mort28-Oct-09 10:22
Greg Mort28-Oct-09 10:22 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
CPallini28-Oct-09 10:27
mveCPallini28-Oct-09 10:27 
AnswerRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Cedric Moonen28-Oct-09 4:27
Cedric Moonen28-Oct-09 4:27 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Greg Mort28-Oct-09 4:30
Greg Mort28-Oct-09 4:30 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Cedric Moonen28-Oct-09 4:33
Cedric Moonen28-Oct-09 4:33 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Greg Mort28-Oct-09 4:42
Greg Mort28-Oct-09 4:42 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Cedric Moonen28-Oct-09 4:48
Cedric Moonen28-Oct-09 4:48 
Greg Mort wrote:
but still would like the question answered if it is possible for a dll to know what is communicating with it


I don't know if there's a way at runtime to determine it but at compile time it is certainly not possible: your dll can be used by any program written in any language, so the compiler cannot guess at compile time who will be using it at runtime. The #define you wrote are used at compile time only and your function is exported at compile time also.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Member 419459328-Oct-09 18:22
Member 419459328-Oct-09 18:22 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
Cedric Moonen28-Oct-09 21:13
Cedric Moonen28-Oct-09 21:13 
GeneralRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? [modified] Pin
Member 419459329-Oct-09 5:13
Member 419459329-Oct-09 5:13 
AnswerRe: Using a C++ dll in C++ project and a C# project... C# requires __stdcall c++ does not... is there a way the dll can determine who is using him? Pin
«_Superman_»28-Oct-09 7:22
professional«_Superman_»28-Oct-09 7:22 
QuestionCFileDialog in an own thread -> Access violation Pin
slaindevil28-Oct-09 2:36
slaindevil28-Oct-09 2:36 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
Cedric Moonen28-Oct-09 2:42
Cedric Moonen28-Oct-09 2:42 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
slaindevil28-Oct-09 3:25
slaindevil28-Oct-09 3:25 
QuestionRe: CFileDialog in an own thread -> Access violation Pin
Randor 28-Oct-09 4:05
professional Randor 28-Oct-09 4:05 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
slaindevil1-Nov-09 20:53
slaindevil1-Nov-09 20:53 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
Randor 2-Nov-09 9:36
professional Randor 2-Nov-09 9:36 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
Roger Stoltz28-Oct-09 6:52
Roger Stoltz28-Oct-09 6:52 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
slaindevil1-Nov-09 21:02
slaindevil1-Nov-09 21:02 
QuestionGDI+ Bitmap::FromHICON problem Pin
Evil.Ghost28-Oct-09 0:42
Evil.Ghost28-Oct-09 0:42 
AnswerRe: GDI+ Bitmap::FromHICON problem Pin
CPallini28-Oct-09 1:02
mveCPallini28-Oct-09 1:02 
QuestionGuidelines say avoid standard integer types Pin
RedSonja27-Oct-09 23:31
RedSonja27-Oct-09 23:31 
AnswerRe: Guidelines say avoid standard integer types Pin
CPallini27-Oct-09 23:51
mveCPallini27-Oct-09 23:51 
GeneralRe: Guidelines say avoid standard integer types Pin
RedSonja28-Oct-09 1:23
RedSonja28-Oct-09 1:23 

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.