473,443 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# call method in C++7

Dear all,
I created a C# project. But there is a module that was created by C++ .NET
(7.0), this module will load structure file and get information from that
file.
I heard that .NET environment support the mechanism that I can call from C#
those funtions in C++ module ?
Thank you alo.
Nov 17 '05 #1
3 1563
Hi Giang,

If you mean by module a .net assembly (.dll) you can just reference that
ddl from your project and add the appropiate 'using' statement for that
namespace in you c# file where you need to call the methods / init the
classes.

Ward


Giang Pham wrote:
Dear all,
I created a C# project. But there is a module that was created by C++ .NET
(7.0), this module will load structure file and get information from that
file.
I heard that .NET environment support the mechanism that I can call from C#
those funtions in C++ module ?
Thank you alo.

Nov 17 '05 #2
Can you give me an example ?

"wbekker" <w.bekker@REMOVEequanimityTHISdotnl> wrote in message
news:42***********************@news.xs4all.nl...
Hi Giang,

If you mean by module a .net assembly (.dll) you can just reference that
ddl from your project and add the appropiate 'using' statement for that
namespace in you c# file where you need to call the methods / init the
classes.

Ward


Giang Pham wrote:
Dear all,
I created a C# project. But there is a module that was created by C++
.NET (7.0), this module will load structure file and get information from
that file.
I heard that .NET environment support the mechanism that I can call from
C# those funtions in C++ module ?
Thank you alo.

Nov 17 '05 #3
See the MSDN documentation about the using statement:

http://msdn.microsoft.com/library/de...gDirective.asp

Giang Pham wrote:
Can you give me an example ?

"wbekker" <w.bekker@REMOVEequanimityTHISdotnl> wrote in message
news:42***********************@news.xs4all.nl...
Hi Giang,

If you mean by module a .net assembly (.dll) you can just reference that
ddl from your project and add the appropiate 'using' statement for that
namespace in you c# file where you need to call the methods / init the
classes.

Ward


Giang Pham wrote:
Dear all,
I created a C# project. But there is a module that was created by C++
.NET (7.0), this module will load structure file and get information from
that file.
I heard that .NET environment support the mechanism that I can call from
C# those funtions in C++ module ?
Thank you alo.


Nov 17 '05 #4

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

Similar topics

0
by: Vijay Kumar | last post by:
hi, I have written a trace function in C using the Python/C API. I want to find whether the call occured is a function call or method call and if a method call, its self object. int...
0
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows...
9
by: keith | last post by:
I created a class libery which has name space Assembly and class Assembly and compiled it. Then created a C# project and called a method in the external class e.g. Assembly dll;...
24
by: Jazper | last post by:
hi i have this problem. i made a class deverted by CRootItem with implementation of IDisposable-Interface. i made a test-funktion to test my Dispose-Method.... but when set a breakpoint in my...
8
by: ThomasR | last post by:
I understand that virtual methods on inherited objects are slower than non-virtual methods because of the indirection required to support the call. However, when looking at IL code produced by...
13
by: jac | last post by:
Hae, I have a windows form with a ComboBox an other things. On that combobox I have an eventhandler on de selectedindexchanged. But somewhere in my code want to do excecute the same code that...
5
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The...
46
by: Steven T. Hatton | last post by:
I just read §2.11.3 of D&E, and I have to say, I'm quite puzzled by what it says. http://java.sun.com/docs/books/tutorial/essential/concurrency/syncrgb.html <shrug> -- NOUN:1. Money or...
9
by: Steve Richter | last post by:
in a generic class, can I code the class so that I can call a static method of the generic class T? In the ConvertFrom method of the generic TypeConvert class I want to write, I have a call to...
2
by: jojoba | last post by:
Hello to all! I have a fairly simple webservice running in asp.net ajax under c# (vs 2008). I built the service and it runs just dandy when i test it by itself in visual studio. However, to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.