|
Hi,
I have created a win32 dll(VC++). And I know the appropriate .net assembly file which contains the required methods.
I want to access those methods from my DLL.
I came to know , it can possible through C++/CLI interface.
But i'm very new to C++/CLI . So kindly help me to create such interface in C++ which can access those methods using certain assembly/any way.
If have any any sample example (running),then please share me soon. I tried a lot in google , but till now i didn't get any helpful samples .
Thanks in advance Smile
|
|
|
|
|
Please ask your question ONCE. Crossposting like this will only annoy the people who might otherwise halp you.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thanks peter for the information.
Actually i got a suggestion to post in VC++ section while i posted it 1st time.
Thats the reason i posted once again here.
Any thing you would like to suggest, then please...
Thanks
|
|
|
|
|
I cannot find any response telling you to post it here. This is an obvious C++/CLI question and does not belong in this forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Beat me to it. Thanks.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Someone could have emailed him.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Which goes against the whole point of a threaded forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
litu kumar wrote: I have created a win32 dll(VC++).
Presumably this is NOT managed C++.
litu kumar wrote: But i'm very new to C++/CLI
That is problematic. I am rather certain it is not easy even for an experienced programmer. So rather than figuring out details your going to be fighting your lack of knowledge.
It the following a possible solution?
1. Create an managed C++ executable. It wraps your target library and provides the functionality that your other app needs (from the library.)
2. Provide a communications API for that executable. Either sockets, files or stdin/out.
3. Test it
4. Use unmanaged C++ system calls to run the executable and communicate with it.
litu kumar wrote: If have any any sample example (running)
Google seemed to provide plenty of answers. I used the following.
unmanaged c++ to managed c++
One of the links from that google search
Mixing Managed and Unmanaged code[^]
|
|
|
|