Creating a usable DLL

This is a discussion on Creating a usable DLL within the C++ Programming forums, part of the General Programming Boards category; I using Visual Basic .Net and C++ .Net and trying to get them to interact. Now I've only found one ...

  1. #1
    Registered User shuesty's Avatar
    Join Date
    Oct 2002
    Posts
    21

    Creating a usable DLL

    I using Visual Basic .Net and C++ .Net and trying to get them to interact. Now I've only found one C++ DLL to create and it's on a WIN32 platform and my VB project won't add a reference to it because it wants a DLL on a .Net platform. The error I'm getting is 'This is not a .Net assembly'

    Does anyone know how to setup a DLL on a .Net platform or have any idea on how to get around this problem?

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    im not sure, state more exactly what problem you are having? have you set your C++ DLL project to be managed C++? or is it native code? Are you having problems calling it from your VB app? I know theres an article on www.flipcode.com about calling a vb dll in C++

  3. #3
    Registered User shuesty's Avatar
    Join Date
    Oct 2002
    Posts
    21
    I've written up a MFC DLL project in visual c++ and compiled it there. Then I wrote up a WINDOWS APPLICATION program in visual basic and compiled it there. Now when I try to add a reference to DLL from the visual basic program I get the error of 'Not a .Net Assembly'.

    The main problem is my VB program can't call any of the functions from my C++ DLL because it won't reference it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating a simple DLL
    By Dark_Phoenix in forum C++ Programming
    Replies: 8
    Last Post: 03-07-2009, 09:41 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 03:20 AM
  4. Creating and using a Dll in Dev-C++
    By Aidman in forum C++ Programming
    Replies: 2
    Last Post: 01-17-2003, 03:07 PM
  5. Creating object of type HWND from a dll
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 03-13-2002, 12:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21