Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Visual C++ class in C++ Builder

Status
Not open for further replies.

dominochmiel

Programmer
Jan 28, 2003
40
PL
Is there any possibility of using microsft visual c++ class (for example CInternetConnection) in C++ Builder.
Thanks for help.
 
If you have the source code, yes it can but you may to to make some modifications if you are calling some libraries.

If the class is compiled into a library or object file, . . . maybe. There is a program in Builder that will attempt to migrate it to Builder format. The problem is how MS and Borland compile their programs.



James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Something that might get you is for loop variable scope. Borland allows this:

for (int x=0; x < 10; x++)
{
}

for (int x=1; x < 11; x++) /* Fails in MVC++ */
{
}

Microsoft doesn't. So some programmers may do this, and it won't compile right away on Borland. Just keep it in mind.

for (int x=0; x < 10; x++)
{
}

for (x=1; x < 11; x++) /* No more scope for x in borland */
{
}

Chris

 
u may try a utility that is included in bcb's bin directory to convert ms specific libs to borland compatible. that is called tlib.exe
try that, if u can succeeded then include that newly generated file in ur project, then u can use those ms libs in ur bcb prj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top