Results 1 to 9 of 9

Thread: Standard DLL in VB.NET

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    Question Standard DLL in VB.NET

    To what extant can you use a standard, non-.NET DLL in .NET?

    I have a existing MS C++ DLL from a ERP system I would like to incorporate.

  2. #2
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    My only advice is to try using it with interop and see what happens. Our general policy here is to rewrite the DLL's to make use of new functionality etc, but in the early days of .Net I did successfully interop some of our existing vb6 DLL's without a problem.

    hope this helps

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    Interop

    As a future .Net programmer to be who has yet to get the training, I'm not sure what Interoperability transaltes to in .NET. Would you be referring to the "DLLImport" feature that I think may be what I need?

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    no, just add the DLL in the references and vs.net will convert it to a .net assembly
    \m/\m/

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    Unhappy that wouldnt work

    Adding the reference was the first thing I tried before I posted.
    I got an error saying "this is not a .Net assembly"

    To make sure i did the right thing, here is what I did:

    in my project I right-click of "References" and selected "Add Reference" I then had to browse to find the DLL and selected
    it. I then get:

    "A reference to xxxxx.DLL could not be created. This is not a .NET assembly"


    I am obviously ding something wrong or am assuming too much due to my limited education on this. I just wanted to see
    if a dummy project could accept this DLL.


    Thanks

  6. #6
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    be sure to check the tab that says something like COM and not .net in the "add reference" dialog
    \m/\m/

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    AHa theres the rub!

    I am missing the COM tab in the dialog box. I just have .NET and Projects. Something aint right.

  8. #8
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Definately something isn't right.

    There should be a COM tab when you try to add a reference. What version of VS.Net are you using? I don't think it should matter, but it wouldn't surprise me if they disabled it in the basic version.

  9. #9

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    Current

    Program title in menu says Microsoft Visual Studio .NET 2003

    In the Help It says Microsoft Development Environment 2003
    Version 7.1.3088

    The Basic is

    Microsoft Visual Basic .NET 69462-270-0000007-18275

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