Click here to Skip to main content
15,797,672 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
Greg Mort28-Oct-09 11:22
Greg Mort28-Oct-09 11: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 11:27
mveCPallini28-Oct-09 11: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 5:27
Cedric Moonen28-Oct-09 5: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 5:30
Greg Mort28-Oct-09 5: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 5:33
Cedric Moonen28-Oct-09 5: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 5:42
Greg Mort28-Oct-09 5: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 5:48
Cedric Moonen28-Oct-09 5:48 
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 19:22
Member 419459328-Oct-09 19:22 
Cédric

Can't you drop into ASM and check the call stack return IP, then check the instruction immediately following the return. It should be an "add esp,xxx" (where xxx is the length of the arguments) if this is in fact a C++ call instead of STDCALL.

This is a really big kludge, but it should be able to be done.

Dave.
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 22:13
Cedric Moonen28-Oct-09 22: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 6:13
Member 419459329-Oct-09 6: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 8:22
professional«_Superman_»28-Oct-09 8:22 
QuestionCFileDialog in an own thread -> Access violation Pin
slaindevil28-Oct-09 3:36
slaindevil28-Oct-09 3:36 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
Cedric Moonen28-Oct-09 3:42
Cedric Moonen28-Oct-09 3:42 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
slaindevil28-Oct-09 4:25
slaindevil28-Oct-09 4:25 
QuestionRe: CFileDialog in an own thread -> Access violation Pin
Randor 28-Oct-09 5:05
professional Randor 28-Oct-09 5:05 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
slaindevil1-Nov-09 21:53
slaindevil1-Nov-09 21:53 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
Randor 2-Nov-09 10:36
professional Randor 2-Nov-09 10:36 
AnswerRe: CFileDialog in an own thread -> Access violation Pin
Roger Stoltz28-Oct-09 7:52
Roger Stoltz28-Oct-09 7:52 
GeneralRe: CFileDialog in an own thread -> Access violation Pin
slaindevil1-Nov-09 22:02
slaindevil1-Nov-09 22:02 
QuestionGDI+ Bitmap::FromHICON problem Pin
Evil.Ghost28-Oct-09 1:42
Evil.Ghost28-Oct-09 1:42 
AnswerRe: GDI+ Bitmap::FromHICON problem Pin
CPallini28-Oct-09 2:02
mveCPallini28-Oct-09 2:02 
QuestionGuidelines say avoid standard integer types Pin
RedSonja28-Oct-09 0:31
RedSonja28-Oct-09 0:31 
AnswerRe: Guidelines say avoid standard integer types Pin
CPallini28-Oct-09 0:51
mveCPallini28-Oct-09 0:51 
GeneralRe: Guidelines say avoid standard integer types Pin
RedSonja28-Oct-09 2:23
RedSonja28-Oct-09 2:23 
QuestionRe: Guidelines say avoid standard integer types Pin
CPallini28-Oct-09 2:44
mveCPallini28-Oct-09 2: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.