Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get all the export functions of a dll Pin
DevMentor.org21-Jul-07 23:48
DevMentor.org21-Jul-07 23:48 
AnswerRe: How to get all the export functions of a dll Pin
ThatsAlok22-Jul-07 17:56
ThatsAlok22-Jul-07 17:56 
AnswerRe: How to get all the export functions of a dll Pin
kcynic22-Jul-07 18:23
kcynic22-Jul-07 18:23 
QuestionDon't understand what's required in order to use unmgd c++ class in c# app - help? Pin
sherifffruitfly21-Jul-07 10:32
sherifffruitfly21-Jul-07 10:32 
AnswerRe: Don't understand what's required in order to use unmgd c++ class in c# app - help? Pin
Mark Salsbery21-Jul-07 10:51
Mark Salsbery21-Jul-07 10:51 
GeneralRe: Don't understand what's required in order to use unmgd c++ class in c# app - help? Pin
sherifffruitfly21-Jul-07 11:17
sherifffruitfly21-Jul-07 11:17 
GeneralRe: Don't understand what's required in order to use unmgd c++ class in c# app - help? Pin
Mark Salsbery21-Jul-07 11:20
Mark Salsbery21-Jul-07 11:20 
AnswerRe: Don't understand what's required in order to use unmgd c++ class in c# app - help? Pin
Christian Graus21-Jul-07 11:08
protectorChristian Graus21-Jul-07 11:08 
sherifffruitfly wrote:
I've got the source code and compiled binary for a c++ class library, and I'd like to be able to instantiate & use the class in a c# application.


Then you need to compile it into a DLL, either COM or just standard. You can in both cases easily import your DLL into C# ( the plain dll via a p/invoke signature for each method you want to call ), but the COM way allows you to create class instances, p/invoke does not.

sherifffruitfly wrote:
Also, will there be issues about "return data type matching" between c++ and c#?


If you use COM, then the IDE will fix that for you, if you use a dll, then you need to work it out for each method, for both return values, and values going in.

By far the most intelligent thing to do is to make your code managed, so you can create class instances and fully interact with them in C#.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Don't understand what's required in order to use unmgd c++ class in c# app - help? Pin
sherifffruitfly21-Jul-07 11:16
sherifffruitfly21-Jul-07 11:16 
QuestionRegistry settings for all users (with user privileges) [modified] Pin
AnTri21-Jul-07 6:12
AnTri21-Jul-07 6:12 
AnswerRe: Registry settings for all users (with user privileges) Pin
Michael Dunn21-Jul-07 10:04
sitebuilderMichael Dunn21-Jul-07 10:04 
AnswerRe: Registry settings for all users (with user privileges) Pin
Mark Salsbery21-Jul-07 11:06
Mark Salsbery21-Jul-07 11:06 
QuestionSplit string Pin
dellthinker21-Jul-07 5:05
dellthinker21-Jul-07 5:05 
AnswerRe: Split string Pin
Mark Salsbery21-Jul-07 5:19
Mark Salsbery21-Jul-07 5:19 
AnswerRe: Split string Pin
#realJSOP22-Jul-07 0:34
professional#realJSOP22-Jul-07 0:34 
QuestionMSDN OLE DB Sample Provider entry point Pin
George_George21-Jul-07 3:34
George_George21-Jul-07 3:34 
QuestionAfxRegisterClass - dialog based app problem Pin
john john mackey21-Jul-07 3:08
john john mackey21-Jul-07 3:08 
AnswerRe: AfxRegisterClass - dialog based app problem Pin
Arman S.21-Jul-07 5:15
Arman S.21-Jul-07 5:15 
AnswerRe: AfxRegisterClass - dialog based app problem Pin
Mark Salsbery21-Jul-07 5:46
Mark Salsbery21-Jul-07 5:46 
GeneralRe: AfxRegisterClass - dialog based app problem Pin
john john mackey21-Jul-07 16:50
john john mackey21-Jul-07 16:50 
QuestionProblem about CPU resouce Pin
kcynic21-Jul-07 2:14
kcynic21-Jul-07 2:14 
QuestionRe: Problem about CPU resouce Pin
Mark Salsbery21-Jul-07 5:50
Mark Salsbery21-Jul-07 5:50 
AnswerRe: Problem about CPU resouce Pin
kcynic21-Jul-07 15:06
kcynic21-Jul-07 15:06 
GeneralRe: Problem about CPU resouce Pin
Mark Salsbery21-Jul-07 15:37
Mark Salsbery21-Jul-07 15:37 
GeneralRe: Problem about CPU resouce Pin
kcynic21-Jul-07 16:26
kcynic21-Jul-07 16:26 

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.