473,698 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is Borland C++ COM compliant??

I need to access COM DLL from Borland C++.
I do not know if Borland C++ is COM compliant or not. I know that they
were bending over backward to be MFC compliant about 8 to 10 years ago
but I do not know if that includes COM. If it is compliant, which
version of Borland C++ we have to use?

Your input is greatly appreciated!!

Regards,
Rama

May 5 '06 #1
8 2013
ramki wrote:
I need to access COM DLL from Borland C++.


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Jonathan

May 5 '06 #2
COM API may help you.

May 5 '06 #3
"ramki" <ra**********@g mail.com> wrote in message
news:11******** *************@y 43g2000cwc.goog legroups.com...
:I need to access COM DLL from Borland C++.
: I do not know if Borland C++ is COM compliant or not. I know that they
: were bending over backward to be MFC compliant about 8 to 10 years ago
: but I do not know if that includes COM. If it is compliant, which
: version of Borland C++ we have to use?

No, by default, it uses a different ABI (binary interface/code layout)
than what is mandated by COM.
Ask in a Borland forum to find out more...

hth-Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
May 5 '06 #4
In message <6b************ *************** @news.hispeed.c h>, Ivan
Vecerina <IN************ *****@ivan.vece rina.com> writes
"ramki" <ra**********@g mail.com> wrote in message
news:11******* **************@ y43g2000cwc.goo glegroups.com.. .
:I need to access COM DLL from Borland C++.
: I do not know if Borland C++ is COM compliant or not. I know that they
: were bending over backward to be MFC compliant about 8 to 10 years ago
: but I do not know if that includes COM. If it is compliant, which
: version of Borland C++ we have to use?

No,
Where "no" means "yes, but".
by default, it uses a different ABI (binary interface/code layout)
than what is mandated by COM.
Only by default. It can generate COM-compatible code if you use the
appropriate constructs, or let its wizards generate them for you. (Been
there, done that, sold it to satisfied customers...)

Which is why it's better to
Ask in a Borland forum to find out more...


instead of the incomplete and possibly incorrect information you'll get
here.

--
Richard Herring
May 8 '06 #5

ramki schreef:
I need to access COM DLL from Borland C++.


Long long time since I done this ... but I think the problem is the
name mangling difference between MVC++ and Borland. Mangling means that
to support overloading of method names in C++, MicroSoft VC++ and
Borland C++ Builder use different names and funny bits in names. If
your DLL only exists of pure C and hence the named functions do not
cantain this mangling, or how it was called, it can be done. This
because in pure C there is no function name overloading and hence no
mangling with funny parts in the function name.

Marc Wentink

May 8 '06 #6
Richard Herring wrote:
In message <6b************ *************** @news.hispeed.c h>, Ivan
Vecerina <IN************ *****@ivan.vece rina.com> writes
"ramki" <ra**********@g mail.com> wrote in message
news:11******** *************@y 43g2000cwc.goog legroups.com...
:I need to access COM DLL from Borland C++.
: I do not know if Borland C++ is COM compliant or not. I know that they
: were bending over backward to be MFC compliant about 8 to 10 years ago
: but I do not know if that includes COM. If it is compliant, which
: version of Borland C++ we have to use?

No,


Where "no" means "yes, but".
by default, it uses a different ABI (binary interface/code layout)
than what is mandated by COM.


Only by default. It can generate COM-compatible code if you use the
appropriate constructs, or let its wizards generate them for you. (Been
there, done that, sold it to satisfied customers...)

Which is why it's better to
Ask in a Borland forum to find out more...


instead of the incomplete and possibly incorrect information you'll get
here.

I know this is OT and therefore really naughty, but it's piqued my
curiosity because I'm currently reading Matthew Wilson's "Imperfect C++"
and there's a whole section on binary interoperabilit y. By "binary
interface/code layout" above, are we talking about the arrangement of
the vtable layout and pointer?

--
Mike Smith
May 8 '06 #7
"Mike Smith" <mi************ *****@acm.org> wrote in message
news:12******** *****@news.supe rnews.com...
: Richard Herring wrote:
: > In message <6b************ *************** @news.hispeed.c h>, Ivan
: > Vecerina <IN************ *****@ivan.vece rina.com> writes
: >> "ramki" <ra**********@g mail.com> wrote in message
: >> news:11******** *************@y 43g2000cwc.goog legroups.com...
: >> :I need to access COM DLL from Borland C++.
: >> : I do not know if Borland C++ is COM compliant or not. I know that
they
: >> : were bending over backward to be MFC compliant about 8 to 10 years
ago
: >> : but I do not know if that includes COM. If it is compliant, which
: >> : version of Borland C++ we have to use?
: >>
: >> No,
: >
: > Where "no" means "yes, but".
: >
: >> by default, it uses a different ABI (binary interface/code layout)
: >> than what is mandated by COM.
: >
: > Only by default. It can generate COM-compatible code if you use the
: > appropriate constructs, or let its wizards generate them for you.
(Been
: > there, done that, sold it to satisfied customers...)
: >
: > Which is why it's better to
: >
: >> Ask in a Borland forum to find out more...
: >
: > instead of the incomplete and possibly incorrect information you'll
get
: > here.
:
:
: I know this is OT and therefore really naughty, but it's piqued my
: curiosity because I'm currently reading Matthew Wilson's "Imperfect C++"
: and there's a whole section on binary interoperabilit y. By "binary
: interface/code layout" above, are we talking about the arrangement of
: the vtable layout and pointer?

Yes, if I dare:

The MS COM specification requires a vtable made of a simple array of
function pointers. This is the approach that is most-easily emulated
by an array of C function pointers.
Its weakness, when using multiple inheritance, is that stub "trampoline "
functions need to be inserted to adjust the this pointer.

My guess is that Borland (just as Metrowerks used to do on the PowerPC
platform) uses the other popular form, where each vtable entry includes
both a function pointer and an offset to be applied to the this pointer.
[but I might be wrong regarding this point]

Another difference is that Borland's compiler, by default, uses different
parameter-passing conventions (e.g. using registers when possible).
And this is all good, but does required some extra effort when wanting
to interface with COM.
My 2 cents... Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
May 8 '06 #8
Ivan Vecerina wrote:
"Mike Smith" <mi************ *****@acm.org> wrote in message
news:12******** *****@news.supe rnews.com...
: Richard Herring wrote:
: > In message <6b************ *************** @news.hispeed.c h>, Ivan
: > Vecerina <IN************ *****@ivan.vece rina.com> writes
: >> "ramki" <ra**********@g mail.com> wrote in message
: >> news:11******** *************@y 43g2000cwc.goog legroups.com...
: >> :I need to access COM DLL from Borland C++.
: >> : I do not know if Borland C++ is COM compliant or not. I know that
they
: >> : were bending over backward to be MFC compliant about 8 to 10 years
ago
: >> : but I do not know if that includes COM. If it is compliant, which
: >> : version of Borland C++ we have to use?
: >>
: >> No,
: >
: > Where "no" means "yes, but".
: >
: >> by default, it uses a different ABI (binary interface/code layout)
: >> than what is mandated by COM.
: >
: > Only by default. It can generate COM-compatible code if you use the
: > appropriate constructs, or let its wizards generate them for you.
(Been
: > there, done that, sold it to satisfied customers...)
: >
: > Which is why it's better to
: >
: >> Ask in a Borland forum to find out more...
: >
: > instead of the incomplete and possibly incorrect information you'll
get
: > here.
:
:
: I know this is OT and therefore really naughty, but it's piqued my
: curiosity because I'm currently reading Matthew Wilson's "Imperfect C++"
: and there's a whole section on binary interoperabilit y. By "binary
: interface/code layout" above, are we talking about the arrangement of
: the vtable layout and pointer?

Yes, if I dare:


Thanks for taking such a risk... ;-)

--
Mike Smith
May 10 '06 #9

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

Similar topics

7
5149
by: Developwebsites | last post by:
do they have 5.5 with an IDE? I've used 3.1 and 4.52, so why should i go back to command line with 5.5? are there any other C++ compilers with an IDE? -------------------------------------------------- remove *batSPAM* to e-mail me --------------------------------------------------
1
3846
by: Nimmi Srivastav | last post by:
There's a rather nondescript book called "Using Borland C++" by Lee and Mark Atkinson (Que Corporation) which presents an excellent discussion of overloaded new and delete operators. In fact there are quite a few things that I learned that I did not know before. For example, while I knew that the new and delete operators can be overloaded for classes, I did not know that that the global new and delete operators can also be overloaded. ...
17
4697
by: Ziggi | last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's solution or Borland's. Could any kind folks detail the relative strength and weaknesses of both, and also tell me which you yourselves prefer. Thanks in advance. Ziggi
9
4865
by: Christo | last post by:
hey im a student about to start a course in c++ at uni, we have been told to obtain a copy of borland c++ 5.01 (not c++ builder) this is just a program with a compiler/linker and development environment. it is simply called borland c++ 5.01 can anyone tell me where i can download either a free copy or a copy that needs registering or someething, i can only find c++ builder which is totally different from the program i have seen in...
24
3810
by: serdar | last post by:
Hi. Does anybody say that what is better borland c++ or visual c++? Which compiler does have more help?
4
1788
by: Mufe | last post by:
Visual c++ compiler survives this: #define THE_NULL -32767 struct typePair { int v2,v3; }; struct typeTriple { int v1; typePair p; }; typePair EMPTY_PAIR = {THE_NULL,THE_NULL}; typeTriple sv = {THE_NULL, EMPTY_PAIR };
1
1723
by: ramkivelpuri | last post by:
I need to access COM DLL from Borland C++. I do not know if Borland C++ is COM compliant or not. I know that they were bending over backward to be MFC compliant about 8 to 10 years ago but I do not know if that includes COM. If it is compliant, which version of Borland C++ we have to use? Your input is greatly appreciated!! Regards, Rama
1
11983
by: Terry | last post by:
Is there any hope of using Borland Developer Studio 2006 to link in a DLL compiled by MS Visual C++ version 6? I have a Win32 DLL from a company named Vocera. The DLL defines C++ classes that I want to instantiate and use. It is not COM-compliant. It came with .dll, ..lib, and .h files. I tried using Borland C++Builder 2006, but when I add the .lib file to my project, I get the error: " Error: 'C:\VMI.LIB' contains invalid OMF...
7
15594
by: Frederick Williams | last post by:
Does anybody know where I can download Borland C++ 4.52 from? Some years ago it was available "free" on a magazine cover. So I'm hoping that it's available from somewhere without upsetting the license/licence owners, but I can't find it on Borland's web pages. I'd settle for an earlier version. Tia. -- Remove "antispam" and ".invalid" for e-mail address. Hug a hoodie, pat a paki, snog a wog, jump a jew.
0
8672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9018
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8858
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7711
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6517
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3038
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 we have to send another system
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.