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. 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.
* 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/>
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
"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.
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
"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
* "=?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/>
"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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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
|
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...
| |