473,503 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dll in C# for C++ program

Is it possible to use COM server in c++ without importing *.tlb file ? In MS
tutorial:
http://msdn.microsoft.com/library/de...erTutorial.asp

there I should import tlb file to Com server app and I need to make it
without importing this file... Is there any way to do it?

Sorry about my english,

--
Best regards,
Winthux
Nov 15 '05 #1
3 3031
> Is it possible to use COM server in c++ without importing *.tlb file
No, the type systems are not even close to the same. The COM type system
doesn't have anything to do with the .NET one. The article you listed by my
good friend Mike Gunderloy shows that you have to "import" the type library
by using tlbiimp. It's not like import in the C++ days - this process is a
*conversion* from COM IDL data types to CLR data types. For a lot more on
the "why" and the differences between the two worlds, check out the first
article in my 5-part COM Interop series on MSDN:
http://msdn.microsoft.com/library/de...tml/bridge.asp
--
-----
Sam Gentile
Microsoft MVP - C#/.NET
..NET Blog http://samgentile.com/blog/

Please do NOT contact me directly but respond to
the newsgroup instead.
---------
"winthux" <wi*****@klub.chip.pl> wrote in message
news:c2**********@absinth.dialog.net.pl...
Is it possible to use COM server in c++ without importing *.tlb file ? In
MS
tutorial:
http://msdn.microsoft.com/library/de...erTutorial.asp

there I should import tlb file to Com server app and I need to make it
without importing this file... Is there any way to do it?

Sorry about my english,

--
Best regards,
Winthux

Nov 15 '05 #2
So it is impossible to change my program in c++ that it can use C# dll's....
Nov 15 '05 #3
You asked >Is it possible to use COM server in c++ without importing *.tlb
file

I am answering the question based on the C++ being a COM component. If it is
a straight C++ unmanaged piece of code, you can use Managed C++'s ability to
mix unmanaged and managed C++ to write a managed wrapper such that that code
would be accessible to C# (and other .NET) clients.
--
-----
Sam Gentile
Microsoft MVP - C#/.NET
..NET Blog http://samgentile.com/blog/

Please do NOT contact me directly but respond to
the newsgroup instead.
---------
"winthux" <wi*****@klub.chip.pl> wrote in message
news:c2**********@absinth.dialog.net.pl...
So it is impossible to change my program in c++ that it can use C#
dll's....

Nov 15 '05 #4

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

Similar topics

2
14143
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
22
3574
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html ...
0
6075
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
11
2580
by: christopher diggins | last post by:
I am wondering if any can point me to any open-source library with program objects for C++ like there is in Java? I would like to be able to write things like MyProgram1 >> MyProgram2 >>...
1
3248
by: Eric Whittaker | last post by:
hi all, im trying to write my first c++ program. a success, but i can't get the window to stay open after user enters input. it just automatically closes. right now the end of my program looks...
9
4519
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
7
13247
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s first card, and...
2
19319
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
0
13289
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
7201
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
7083
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
7278
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,...
1
6988
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
7456
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...
1
5011
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
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.