Re: Calling C++ function from VB
From: Brian Henry (brianiupmsdn_at_newsgroups.nospam)
Date: 06/05/04
- Previous message: harry: "Threading / Processes / Dual CPU's - questions"
- In reply to: Dan Hinsley: "Re: Calling C++ function from VB"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Calling C++ function from VB"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 5 Jun 2004 03:58:21 -0400
you can only compile files from the same language in each project (each
exe,dll made can only be one language) as of .net 1.1 (vs.net 2003), now in
VS 2005, you will be able to mix and compile different languages into the
same project (have C++,C#,VB) all in the same exe file since the compilers
are a lot smarter in the new version.
"Dan Hinsley" <danhi@exmsft.com> wrote in message
news:4p12c01i9pecdr2dujb6rlnp1dv9uhovdn@4ax.com...
> On 05 Jun 2004 00:49:26 +0200, hirf-spam-me-here@gmx.at (Herfried K.
> Wagner [MVP]) wrote:
>
>>* Dan Hinsley <danhi@exmsft.com> scripsit:
>>> I want to be able to use a C style cast in a VB app. Now I understand
>>> that you can't do that, but I also see how I can have routines written
>>> in various languages be part of the same exe. I've done this as a
>>> test with C#, but it appears to be just as restrictive as VB when it
>>> comes to what I want to do. So the question is, is there a way to
>>> write a C++ routine, and then link it with VB. I'd prefer to do this
>>> with Visual Studio, but would do it via cmd line options if that were
>>> the only way.
>>
>>That's not supported. You can use different programming languages for
>>different projects. Maybe these tools will fit your needs:
>>
>><URL:http://www.gotdotnet.com/community/usersamples/?query=illink>
>>
>><URL:http://research.microsoft.com/research/downloads/#ILMerge>
>>Documentation:
>><URL:http://research.microsoft.com/%7Embarnett/ilmerge.aspx>
>
> I know you can combine vb and cs files (since I've done that). Are
> you saying that you can't combine vb and c++ files?
>
>
- Previous message: harry: "Threading / Processes / Dual CPU's - questions"
- In reply to: Dan Hinsley: "Re: Calling C++ function from VB"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Calling C++ function from VB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|