Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,059 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,549 people online right now. Registration is fast and FREE... Join Now!




Unmanaged call Managed code?

 
Reply to this topicStart new topic

Unmanaged call Managed code?

turtleC++
17 Jul, 2008 - 02:58 PM
Post #1

D.I.C Head
**

Joined: 7 May, 2008
Posts: 57

Is very few on the internet that I found about calling managed C# code from unmanaged c++. On microsoft website, http://support.microsoft.com/kb/828736, I follow this tutorial, but I got stuck on this:

Replace the following lines of code in the AssemblyInfo.cs file[assembly: ComVisible(false)]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
with the following.[assembly: ComVisible(true)]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\MyKeyFile.SNK")]

because in my Assembly file, it doesn't have the last two lines:

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\MyKeyFile.SNK")]

I did create the strong name for the class library, but it doesn't show in the last two lines...

Anyone has any suggestion?

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 06:16PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month