-
April 29th, 2003, 12:29 PM
#1
C# call C++ dll
I created a new managed Dll which will wrap my existing MFC Dll. How can I call this new Dll class from C#? Where can I find some sample how to do this?
Thanks for any information...
-
April 30th, 2003, 02:47 AM
#2
My comment
hi,
I dont know, whether it is right solution or not, but i think, you should add that dll in references of your project, where you want to use. If you want to use in project1, then in its references, give the path of dll. Then i think, you can able to use.
bye
-
April 30th, 2003, 07:31 AM
#3
Thanks raghavkotha, I just figured that out ater play with the Studio. I was able to build the project. The problem right now is running the application. The error message I got is that it's looking for assembly file belong to this Dll. I coudn't find this file anywhere at all...
-
April 30th, 2003, 12:25 PM
#4
are you using the dllattributes ? and calling the functions. then you don't need the assembly for C++ dlls.
in other case you will need to add the reference of the DLL/Assembley manifest in your project reference.
- Paresh
- Software Architect
-
April 30th, 2003, 03:30 PM
#5
I did add the reference to the project and it find the classes inside that DLL without any problem during compile and link processes. When I try to run the web page, it couldn't find the assembly file belong to this Dll.
The error message like this:
Parse error Message : File or assembly name FdcDraw, or one of its dependencies, was not found
Thanks for any help,...
-
April 30th, 2003, 03:38 PM
#6
you need the dll keep in path. put in either windows folder or give a path of that dll.
- Software Architect
-
April 30th, 2003, 04:54 PM
#7
Damm, that's the problem... as soon as the dll is in the search path, the problem is gone away. Thanks for all the help. I lost so many hair (from scratching, pulling, ...) and some more gray hair because of this...
-
April 30th, 2003, 06:54 PM
#8
LOL,
someone should write a program to count your lost hairs
LOL
Paresh
- Software Architect
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|