Click here to Skip to main content
15,898,134 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: parse XML problem Pin
George L. Jackson14-Mar-06 6:16
George L. Jackson14-Mar-06 6:16 
QuestionModifying DMI Information - I REALLY NEED THAT!!!! Pin
honae13-Mar-06 8:27
honae13-Mar-06 8:27 
AnswerRe: Modifying DMI Information - I REALLY NEED THAT!!!! Pin
George L. Jackson13-Mar-06 10:31
George L. Jackson13-Mar-06 10:31 
AnswerRe: Modifying DMI Information - I REALLY NEED THAT!!!! Pin
Saksida Bojan13-Mar-06 19:39
Saksida Bojan13-Mar-06 19:39 
QuestionDMI EDITOR Pin
honae13-Mar-06 7:25
honae13-Mar-06 7:25 
AnswerRe: DMI EDITOR Pin
George L. Jackson13-Mar-06 10:31
George L. Jackson13-Mar-06 10:31 
Questionhow to know the dll export function's declare? Pin
HOW WHAT12-Mar-06 2:34
HOW WHAT12-Mar-06 2:34 
AnswerRe: how to know the dll export function's declare? Pin
oshah14-Mar-06 23:24
oshah14-Mar-06 23:24 
Since you posted in the C++/CLI forum, you implicitly admit your DLL was written in .NET. If you were lying and this DLL was not written in .NET then you have just posted in the wrong message board. Repost this question in the message board.

Note that in .NET, CLR functions only have one calling convention, and that is __clrcall. The WINAPI or CDECL stuff only applies to native DLLs. If your function has uses WINAPI/CDECL, then your function is not written in .NET (see above).

Also note that .NET DLLs do not export their CLR functions as dllexports. Instead, the functions are stored as Metadata, and are discovered using Reflection.

The quick way to check the function signature is to add the DLL as a project reference (Project -> References -> Add New Reference -> Browse -> select your DLL -> OK OK). If this doesn't work, then your DLL is not a .NET DLL (see above).

Now click on view Object Browser, and go down to the namespace of the DLL. This will show you all the function signatures in that DLL.

How do you do this programmatically?

The functions to use are given in System::Reflection. Once you have the System::Assembly of the DLL, call the Assembly::GetTypes method to get all the types of the assembly. Then you can call the GetMethods to get the methods in that Type (including private ones).

To get the number and type of parameters, check out MethodInfo::GetParameters. That should allow you to discover the signature of the method.
QuestionTemplates Pin
combatc211-Mar-06 12:57
combatc211-Mar-06 12:57 
AnswerRe: Templates Pin
Nemanja Trifunovic11-Mar-06 13:14
Nemanja Trifunovic11-Mar-06 13:14 
GeneralRe: Templates Pin
combatc212-Mar-06 13:29
combatc212-Mar-06 13:29 
AnswerRe: Templates Pin
George L. Jackson13-Mar-06 10:07
George L. Jackson13-Mar-06 10:07 
QuestionSleep() broken? Pin
theDawckta11-Mar-06 5:29
theDawckta11-Mar-06 5:29 
AnswerRe: Sleep() broken? Pin
Cedric Moonen12-Mar-06 23:35
Cedric Moonen12-Mar-06 23:35 
GeneralRe: Sleep() broken? Pin
2bee 12-Mar-06 23:45
2bee 12-Mar-06 23:45 
GeneralRe: Sleep() broken? Pin
Cedric Moonen12-Mar-06 23:57
Cedric Moonen12-Mar-06 23:57 
GeneralRe: Sleep() broken? Pin
theDawckta13-Mar-06 13:29
theDawckta13-Mar-06 13:29 
GeneralRe: Sleep() broken? Pin
Cedric Moonen13-Mar-06 19:57
Cedric Moonen13-Mar-06 19:57 
Question[OpenGL] Help needed!Listen to my problem please... Pin
carlsoncarlson10-Mar-06 16:45
carlsoncarlson10-Mar-06 16:45 
QuestionHandling Arrays inside the Structures in VC++ Pin
Sangeetha.R9-Mar-06 23:49
Sangeetha.R9-Mar-06 23:49 
AnswerRe: Handling Arrays inside the Structures in VC++ Pin
2bee 10-Mar-06 1:31
2bee 10-Mar-06 1:31 
QuestionC++ Console Applications Pin
Dreamspeeder9-Mar-06 22:36
Dreamspeeder9-Mar-06 22:36 
AnswerRe: C++ Console Applications Pin
toxcct9-Mar-06 22:54
toxcct9-Mar-06 22:54 
GeneralRe: C++ Console Applications Pin
Dreamspeeder10-Mar-06 7:00
Dreamspeeder10-Mar-06 7:00 
GeneralRe: C++ Console Applications Pin
georgeraafat10-Mar-06 13:34
georgeraafat10-Mar-06 13:34 

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.