473,396 Members | 1,923 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,396 software developers and data experts.

Linking a C# application to a VC++ dll

Hi,

I needed some information on linking a C# application to a VC++ dll.
How can this be done? It would be great if someone could give links to
tutorials/articles on this subject. Thanks.
Nov 16 '05 #1
4 1630
Rookie,

There is no linking concept in c#.

To access your VC++ dll, use DllImport. You have to convert your structures
(if any) to managed structure to send or return values.

However, you can link your VC++dll, in VC.NET. Still you can use windows
forms like c#.

Shak.
"Rookie" <do***********@rediffmail.com> wrote in message
news:cf**************************@posting.google.c om...
Hi,

I needed some information on linking a C# application to a VC++ dll.
How can this be done? It would be great if someone could give links to
tutorials/articles on this subject. Thanks.

Nov 16 '05 #2
Rookie,

There is no linking concept in c#.

To access your VC++ dll, use DllImport. You have to convert your structures
(if any) to managed structure to send or return values.

However, you can link your VC++dll, in VC.NET. Still you can use windows
forms like c#.

Shak.
"Rookie" <do***********@rediffmail.com> wrote in message
news:cf**************************@posting.google.c om...
Hi,

I needed some information on linking a C# application to a VC++ dll.
How can this be done? It would be great if someone could give links to
tutorials/articles on this subject. Thanks.

Nov 16 '05 #3
You want to use DllImport.
This article explains some basics of using DllImport.
http://www.csharphelp.com/archives/archive52.html

--
John Wood
EMail: first name, dot, last name, at priorganize.com
"Rookie" <do***********@rediffmail.com> wrote in message
news:cf**************************@posting.google.c om...
Hi,

I needed some information on linking a C# application to a VC++ dll.
How can this be done? It would be great if someone could give links to
tutorials/articles on this subject. Thanks.

Nov 16 '05 #4
You want to use DllImport.
This article explains some basics of using DllImport.
http://www.csharphelp.com/archives/archive52.html

--
John Wood
EMail: first name, dot, last name, at priorganize.com
"Rookie" <do***********@rediffmail.com> wrote in message
news:cf**************************@posting.google.c om...
Hi,

I needed some information on linking a C# application to a VC++ dll.
How can this be done? It would be great if someone could give links to
tutorials/articles on this subject. Thanks.

Nov 16 '05 #5

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

Similar topics

5
by: J | last post by:
Hi everyone, I started embedding python into a 3D graphics App and I came across this linking problem. SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol...
5
by: hasadh | last post by:
I am building an application over QT. I loaded my files to a VC++ console application project. While trying to compile my classes, I got the following set for expcetion for all QT related classes....
1
by: yanwan | last post by:
Hello I met some problems in linking a project, and hope someone can give me some advice. -----------Configuration: lighting - Win32 Release-------------------- Linking... LINK : warning...
0
by: Rookie | last post by:
Hi, I needed some information on linking a C# application to a VC++ dll. How can this be done? It would be great if someone could give links to tutorials/articles on this subject. Thanks.
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
0
by: Rudy Ray Moore | last post by:
I've been having trouble getting incremental linking to work under Visual C++ .net 2003 7.1 for my multi-project workspace. Ronald Laeremans and Carl Daniel (and a few others) helped me figure it...
0
by: zhangrusi | last post by:
I have a static library that is compiled using the latest version of VC 6. It uses the multithreaded DLL versions of the run-time library, and it uses STL classes. I would like to make use of this...
6
by: Uli | last post by:
Hello, I'm trying to use a DLL (by static linking) which was compiled with Borland C++Builder (BCB) in Visual C++ (Visual-Studio 2003). All functions are declared with the directive 'extern...
0
by: JohnIdol | last post by:
VC++6 to VC++2003 - linking troubles -------------------------------------------------------------------------------- Hi All, I successfully ported an application from VC++6 to VS2003. Solved...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.