|
-
Nov 10th, 2003, 07:38 AM
#1
Thread Starter
Member
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.
-
Nov 10th, 2003, 12:45 PM
#2
Hyperactive Member
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
-
Nov 10th, 2003, 01:02 PM
#3
Thread Starter
Member
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?
-
Nov 11th, 2003, 12:32 PM
#4
yay gay
no, just add the DLL in the references and vs.net will convert it to a .net assembly
\m/  \m/
-
Nov 11th, 2003, 01:29 PM
#5
Thread Starter
Member
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
-
Nov 11th, 2003, 01:31 PM
#6
yay gay
be sure to check the tab that says something like COM and not .net in the "add reference" dialog
\m/  \m/
-
Nov 11th, 2003, 03:10 PM
#7
Thread Starter
Member
AHa theres the rub!
I am missing the COM tab in the dialog box. I just have .NET and Projects. Something aint right.
-
Nov 11th, 2003, 03:59 PM
#8
PowerPoster
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.
-
Nov 11th, 2003, 04:04 PM
#9
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|