TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anil007
NA
1
0
how to create assembly or a DLL file using command prompt in .NET
Aug 22 2004 2:51 AM
Hi All: I am trying to create a DLL for my .cpp source file using command prompt. I tired the following: cl /zi /clr /ld filename.cpp cl filename.cpp /clr /ld /o filename.cpp I created VB file and C# file, and want to call this DLL. For clear understanding, the code is as follows: #using
using namespace System; __gc public class HelloWorldCPP { public: void SayHelloCPP() { Console::WriteLine("Hello world from managed C++!"); } }; ------------------------------------------------------------------------------------- Imports System Imports HelloWorldCPP Public Class HelloWorldVB Inherits HelloWorldCPP Sub SayHelloVB() Console.WriteLine("Hello world from Visual basic!") End Sub End Class ---------------------------------------------------------------------------------------- using System; class HelloWorldCS : HelloWorldVB { public void SayHelloCS() { String message = "Hello world from C#!"; Console.WriteLine(message); } public static int Main() { HelloWorldCS h = new HelloWorldCS(); h.SayHelloCPP(); h.SayHelloVB(); h.SayHelloCS(); return 0; } } Could some one help me out please? Regards, Anil.
Reply
Answers (
0
)
please answer this question in detail
LiveUpdates app with Visual C++ or C#