P
Philip
Hi, first of all I'm new to this whole .net thing so please forgive my
ignorance. Now I have a C++ object with me, and I want to be able to
call its methods from VB.net.
e.g.
[c++ code]
Foo::Foo
{
}
void Foo:isplay_Message()
{
printf("Hello World");
}
[vb code]
Dim myStringInstance As New Foo() ''Foo is the C++ object
myStringInstance.Display_Message() ''Display_Message prints out "hello
world"
Now what would be the easiest way I can make the above code work? Do
I have to make a COM object? Someone also told me to create a
netmodule, but I don't know how to create a C++ netmodule. And even
if I did know how to create a netmodule, I wouldn't know what to do
afterwards.
I'd really appreciate the help!
Sincerely,
Philip
ignorance. Now I have a C++ object with me, and I want to be able to
call its methods from VB.net.
e.g.
[c++ code]
Foo::Foo
{
}
void Foo:isplay_Message()
{
printf("Hello World");
}
[vb code]
Dim myStringInstance As New Foo() ''Foo is the C++ object
myStringInstance.Display_Message() ''Display_Message prints out "hello
world"
Now what would be the easiest way I can make the above code work? Do
I have to make a COM object? Someone also told me to create a
netmodule, but I don't know how to create a C++ netmodule. And even
if I did know how to create a netmodule, I wouldn't know what to do
afterwards.
I'd really appreciate the help!
Sincerely,
Philip