Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / November 2005

Tip: Looking for answers? Try searching our database.

VC8 lib linked with VC6 project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeD - 09 Nov 2005 19:46 GMT
I have a library that I'm creating with VS2005 but I need to be able t
link it with a VS6 project.  I am getting some linker errors, mostl
surrounding _ftol2_sse and CxxFrameHandler3.  I've tried includin
different runtime libraries inside my library but nothing has helped.
The closest I've gotten to success is including libcpmtd but then I ge
some corrupt debug information error.

Am I trying to do the impossible?  Can I create a lib in VC8 and lin
it with a VC6 project?

Thanks,

Mike

--
Mike
David Lowndes - 09 Nov 2005 20:53 GMT
>I have a library that I'm creating with VS2005 but I need to be able to
>link it with a VS6 project.  I am getting some linker errors, mostly
[quoted text clipped - 4 lines]
>
>Am I trying to do the impossible?

Not impossible Mike, but to do it you'd have so many restrictions
(eliminate most references to the 'C' run-time library) as to make it
almost worthless.

>Can I create a lib in VC8 and link it with a VC6 project?

You could create a DLL and use it from VC6 providing that the
interface doesn't pass heap allocated objects across the boundary.
i.e. stick to plain old data types and it'll work.

Dave
Signature

MVP VC++ FAQ: http://www.mvps.org/vcfaq

MikeD - 09 Nov 2005 21:15 GMT
Thanks David.  I'm wondering how to get rid of the few references to th
CRT that exist.  It seems to only be the two I listed: _ftol2_sse an
CxxFrameHandler3.  I'm willing to bet if I get rid of exceptio
handling that the CxxFrameHandler3 problem will go away but I have n
idea how to get rid of the _ftol2_sse reference.  I'm not using i
directly, it is being referenced by the compiler since my C++ clas
does do some floats to longs.  I guess I'm wondering if there's a wa
to pull in _ftol2_sse from somewhere and include it in the lib or i
there a way to get the compiler to stop referencing it and eithe
inline or use something else?

Any ideas?

BTW, a DLL isn't a valid option for this particular lib.  It is used i
almost every project we write

--
Mike

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.