Home All Groups Group Topic Archive Search About

Howto: use mutliple languages C++ in VB.net

Author
7 Apr 2005 10:54 AM
SimonSX
I need to program some of a VB .net application in C++.

How do I incorparate it into VB

Author
7 Apr 2005 11:05 AM
Herfried K. Wagner [MVP]
"SimonSX" <Simonuk_beha***@yahoo.co.uk> schrieb:
>I need to program some of a VB .net application in C++.
>
> How do I incorparate it into VB

You can use Managed Extensions for C++ to create a managed interface for
your C++ DLL.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
7 Apr 2005 11:34 AM
SimonSX
????
Why use DLL in .Net ???

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:umWrGH2OFHA.1040@TK2MSFTNGP12.phx.gbl...
> "SimonSX" <Simonuk_beha***@yahoo.co.uk> schrieb:
>>I need to program some of a VB .net application in C++.
>>
>> How do I incorparate it into VB
>
> You can use Managed Extensions for C++ to create a managed interface for
> your C++ DLL.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
7 Apr 2005 5:33 PM
Herfried K. Wagner [MVP]
"SimonSX" <Simonuk_beha***@yahoo.co.uk> schrieb:
> ????
> Why use DLL in .Net ???

You will have to create a class library (DLL) file and reference this DLL
from your executable project.  What's the problem?!  Mixing languages within
a single project is currently not supported.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
8 Apr 2005 11:39 AM
SimonSX
lol
i thought this was a group fpr people who knew something


Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:e3hyAe5OFHA.3704@TK2MSFTNGP12.phx.gbl...
> "SimonSX" <Simonuk_beha***@yahoo.co.uk> schrieb:
>> ????
>> Why use DLL in .Net ???
>
> You will have to create a class library (DLL) file and reference this DLL
> from your executable project.  What's the problem?!  Mixing languages
> within a single project is currently not supported.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
8 Apr 2005 12:49 PM
Herfried K. Wagner [MVP]
"SimonSX" <Simonuk_beha***@yahoo.co.uk> schrieb:
> lol
> i thought this was a group fpr people who knew something

I feel sorry, but I don't understand what you want to tell me.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
7 Apr 2005 12:09 PM
Crouchie1998
Download my example of creating non-mfc DLL's in C++ & calling them from
VB.NET:

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=06613cc5-2134-404c-a4e2-ca46ef086c12

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
Author
8 Apr 2005 11:48 AM
Cor Ligthert
SimonSX,

>I need to program some of a VB .net application in C++.
>
> How do I incorparate it into VB
Can you make this message clear for me.

I translate this as that you need to program something that is made in VBNet
into C++, that you want to incorporate into VBCom.

However I have the idea that you mean something else.

Cor
Author
8 Apr 2005 12:42 PM
Doug Taylor
On Fri, 8 Apr 2005 13:48:28 +0200, "Cor Ligthert"
<notmyfirstn***@planet.nl> wrote:

>SimonSX,
>
>>I need to program some of a VB .net application in C++.
>>
>> How do I incorparate it into VB
>Can you make this message clear for me.
>
>I translate this as that you need to program something that is made in VBNet
>into C++, that you want to incorporate into VBCom.
>
>However I have the idea that you mean something else.
>
>Cor
>
Again, it is a little unclear what you mean, an alternative answer
would be to do your C++ development in a separate project and access
that the exposed methods from your VB project/solution.  I often use
this approach where parts of the development are better suited to C#
and others to VB.

Doug Taylor
Author
8 Apr 2005 1:06 PM
Cor Ligthert
???
Author
8 Apr 2005 1:31 PM
Doug Taylor
On Fri, 8 Apr 2005 15:06:56 +0200, "Cor Ligthert"
<notmyfirstn***@planet.nl> wrote:

>???
>
Sorry Cor, I folllowed from the wrong message, it should have been on
the route message, I was agreeing with your statement though that
question could have multiple meanings.

Doug Taylor
Author
8 Apr 2005 1:49 PM
Cor Ligthert
Doug,

> Sorry Cor, I folllowed from the wrong message, it should have been on
> the route message, I was agreeing with your statement though that
> question could have multiple meanings.
>
No problem however when I started reading then I got that "what want Doug to
say to me".

It is clear now, as I said no problem.

:-)

Cor