Re: Calling C++ function from VB

From: Brian Henry (brianiupmsdn_at_newsgroups.nospam)
Date: 06/05/04

  • Next message: emari: "Getting L&H voices in VB.NET"
    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?
    >
    >


  • Next message: emari: "Getting L&H voices in VB.NET"

    Relevant Pages

    • Re: whats it worth to write a short program for polynomial multiplication?
      ... compile time, it is likely that the user will have to ... Most OO programming languages work that way. ... will also work on the POWER machines and related one. ...
      (sci.math.symbolic)
    • Re: GoTo in Java
      ... > compile to some platform neutral IL, which could be run on any hardware ... > written in a dozen different programming languages, ... Decompilation can't put it back. ...
      (comp.lang.cobol)
    • Re: Term Rewriting vs. Functional Programming
      ... > general-purpose programs in FPLs than in TRSs. ... > in imperative languages, millions in functional languages and hundreds of ... >> optimise TRSs than FPs? ... > compile OCaml source that run at roughly the same speed. ...
      (comp.lang.functional)
    • Re: Syntax directed compilation
      ... seems to be "too much power, users write their own languages and then ... The declaration statements are executed ... compile time. ... is also a statement which is executed at compile time. ...
      (comp.compilers)
    • Re: FPGA C Compiler on sourceforge.net (TMCC derivative)
      ... > * Languages do not have all ANSI C features ... it does not mean it can't be based on ANSI C. ... You couldn't compile that efficiently to an FPGA - it would need the ... able to develop hardware acceleration for a given algorithm. ...
      (comp.arch.fpga)

  • Quantcast