Results 1 to 7 of 7

Thread: use DLL (developed in VB.NET)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79

    use DLL (developed in VB.NET)

    I have developed a dll using Visual Basic .NET. Unfortunately some circumstances force me to develop a C++ programm. I think it must be possible to call my dll within that C++ code but don't know how.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Only using managed extensions or by creating a COM wrapper around the DLL. I'd prefer the managed extensions.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79
    Unfortunately I'm not very familiar with C++ and therefore don't know exactly what to do now...

    The DLL I developed in VB.NET is named ibs.dll and must receive different parameters (e. g. it is called by ibs.dll param1 param2 param3 ). The DLL I want to develop in C++ should do nothing but call my vb-DLL. If my DLL developped in C++ would be named ibscpp.dll I would like to call ibscpp.dll param1 param2 param3 which internal leads to ibs.dll param1 param2 param3.

    How can I do that???

  4. #4
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Dlls in C++ are called by functions.

    e.g.

    Code:
    int MyCDll(int e)
    {
     return e ^ 33;
    }
    This topic was discussed many times. Search the forum for C++ Dll's.
    VS.NET 2003

    Need to email me?

  5. #5
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Making a COM wrapper may be possible using #import statement in VC. I would not advise using .NET Dll's with C++ - too much hassle.
    VS.NET 2003

    Need to email me?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79
    I don't want to use a .NET DLL in C++ either. The problem is, my .NET DLL already exists. Now it must be called by a COOL:Plex program. But COOL:Plex does not call it. The only way that may be possible is a C++ DLL and that's why I thought that developing a C++ DLL might be a good idea..

    Thx

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Since when is a dll called with parameters
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width