473,322 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Can .Net talk to regular C Dll's

I have tried finding some information on this by searching the News
groups however I have not found anything yet, so I thank you in
advance for your information on these questions.

1. Can VB.Net or VC# or VC++.Net communicate with regular C Dll's
created in Visual C++ 6.0?
I know I can call these from VB 6.0.

2. Could you recommend which .Net language is best to use?
I will need to call VC++ 6 regular Dll's, and I need to use the
Windows Media Player. I am most familiar with VB 6 but would like to
use one of the .Net languages in order to move ahead my abilities and
keep current with MS technology.

Thanks for your help.
Nov 20 '05 #1
9 2017
1. Can VB.Net or VC# or VC++.Net communicate with regular C Dll's
created in Visual C++ 6.0?
I know I can call these from VB 6.0.
Sure. You just make a COM reference to the .dll in quesiton.

2. Could you recommend which .Net language is best to use?
I will need to call VC++ 6 regular Dll's, and I need to use the
Windows Media Player. I am most familiar with VB 6 but would like to
use one of the .Net languages in order to move ahead my abilities and
keep current with MS technology.


There is no 'best' .NET language. All the languages were designed to work
on an equal footing. It really comes down to a matter of which language you
prefer.
Nov 20 '05 #2
* bt*******@yahoo.com (Brad Panek) scripsit:
I have tried finding some information on this by searching the News
groups however I have not found anything yet, so I thank you in
advance for your information on these questions.

1. Can VB.Net or VC# or VC++.Net communicate with regular C Dll's
created in Visual C++ 6.0?
I know I can call these from VB 6.0.
Yes. Have a look at the 'Declare' keyword and the 'DllImportAttribute'
class.
2. Could you recommend which .Net language is best to use?
I will need to call VC++ 6 regular Dll's, and I need to use the
Windows Media Player. I am most familiar with VB 6 but would like to
use one of the .Net languages in order to move ahead my abilities and
keep current with MS technology.


Use the .NET programming language you like most. Personally, I don't
recommend using MC++ or J# for new projects, but instead VB.NET (or C#,
if you don't get sick from the semicolons and curly braces).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
I recommend using C++ for everything, but again, its a matter of preference and requirements, you wouldn't write a mission critical application or a driver in VB

Technically, .NET can call any dll as long as the dll implements one of the interfaces supported by .NET. In VC++, regardless of the version, it must support either the COM or API interfaces

Mark
Nov 20 '05 #4

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:O9**************@TK2MSFTNGP12.phx.gbl...
1. Can VB.Net or VC# or VC++.Net communicate with regular C Dll's
created in Visual C++ 6.0?
I know I can call these from VB 6.0.
Sure. You just make a COM reference to the .dll in quesiton.


*regular* Dll's do not expose COM, you have to use the Declare (VB/VB.NET)
keyword or [DllImportAttribute] (.NET all)


2. Could you recommend which .Net language is best to use?
I will need to call VC++ 6 regular Dll's, and I need to use the
Windows Media Player. I am most familiar with VB 6 but would like to
use one of the .Net languages in order to move ahead my abilities and
keep current with MS technology.


There is no 'best' .NET language. All the languages were designed to work
on an equal footing. It really comes down to a matter of which language

you prefer.

Nov 20 '05 #5
Scott M. wrote:
1. Can VB.Net or VC# or VC++.Net communicate with regular C Dll's
created in Visual C++ 6.0?
I know I can call these from VB 6.0.


Sure. You just make a COM reference to the .dll in quesiton.


I'm pretty sure he means a plain old C DLL which exports functions, not a
COM DLL. In which case he needs PInvoke, not COM Interop.

--
Sven Groot
Nov 20 '05 #6

"Mark" <an*******@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
I recommend using C++ for everything, but again, its a matter of preference and requirements, you wouldn't write a mission critical
application or a driver in VB.
What? Thats one of the most assinine things I have ever heard.
Technically, .NET can call any dll as long as the dll implements one of the interfaces supported by .NET. In VC++, regardless of the version, it
must support either the COM or API interfaces.
What on earth are you talking about?
Mark

Nov 20 '05 #7
* "=?Utf-8?B?TWFyaw==?=" <an*******@discussions.microsoft.com> scripsit:
I recommend using C++ for everything, but again, its a matter of
preference and requirements, you wouldn't write a mission critical
application or a driver in VB.


ACK, writing drivers is not a job for VB.NET, but I believe that nobody
really wants to do that.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8

"Mark" <an*******@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
I recommend using C++ for everything, but again, its a matter of

preference and requirements, you wouldn't write a mission critical
application or a driver in VB.

What are you talking about. VB.NET is not VB 6.0. It is just as good as
any other .NET language.

Nov 20 '05 #9
Under System.Runtime.Interopservices

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jacob Hallen | last post by:
Europython 2005 is now accepting talk submissions! Find out more at http://www.europython.org Just as last year, we have a Refereed Paper Track. Last day for proposing a refereed paper is 22...
0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
8
by: Dave | last post by:
This may be a simple question, but I'm new to .NET and not having much luck finding out the answer. I'm writing a Windows Service and want to develop a separate program that provides a user...
4
by: gregsands | last post by:
Hi I have read all (ok most) of the posts relating to "Call to undefined function mysql_connect()", read the manual on PHP.net and done eveything thats ive been asked to do but cant get PHP to...
1
by: vbMental | last post by:
I have a solution written entirely in visual basic.net and I am trying to interface it with an "old school" program. This old school program expects a "c style dll" and a function exported from...
4
by: MechSoft | last post by:
Hi, there, I have a multi-threaded non-MFC program that will include a regular dll which would be part of the user interface, possibly a dialog based interface. I would prefer to have the user...
1
by: MP MP via .NET 247 | last post by:
(Type your message here) Hello Can any1 tell me how to use a regular DLL ( Not a Com DLL ) Which we dont need to Registered. I have 1 Dll Where I have written some functions as _stdCall . and I am...
1
by: kelvin.jones | last post by:
Hi guys, I have read several discussions on this group (and others) that talk about polling a server using ajax transactions and if it is possible to push to the client. The general consensus seems...
4
by: gopal | last post by:
Hi, Can anyone tell me how to differentiate between COM DLL, regularDLL and ..NET DLLs? I am trying to read the file information from file properties like filename, version, productname,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.