I'm trying to move a portion of our application to .NET from VC6 - the
idea was to let most of the older DLLs still be compiled with VC6. As
a
first step just opened the project with VC7, and leaving everything
unmanaged, just tried to get a build.
After fixing some compile problems, we ran into problems linking with
DLLs
that were MFC dependent. (something to do with CString-s that are
templates
in VC7). Is the only way to recompile these dependencies with VC7? I
attempted this, but there were some compiler errors which I'm still
trying
to figure out. Also, will these recompiled versions be backward
compatible with VC6 compiled apps?
I couldn't find anything on MSDN. Searched on these newgroups found
that I wasn't the only one having problems - there were some replies
that mention
something about linking MFC statically, etc.
Any experiences/pointers would be greatly appreciated...
Thanks, 1 1344
Thanks...
"Carl Daniel [VC++ MVP]" <cp******@nospam.mvps.org> wrote in message news:<eh*************@TK2MSFTNGP12.phx.gbl>... Ramanujam R wrote: I'm trying to move a portion of our application to .NET from VC6 - the idea was to let most of the older DLLs still be compiled with VC6. As a first step just opened the project with VC7, and leaving everything unmanaged, just tried to get a build.
After fixing some compile problems, we ran into problems linking with DLLs that were MFC dependent. (something to do with CString-s that are templates in VC7). Is the only way to recompile these dependencies with VC7?
Yes.
I attempted this, but there were some compiler errors which I'm still trying to figure out. Also, will these recompiled versions be backward compatible with VC6 compiled apps?
No. VC6 MFC and VC7 MFC don't mix.
I couldn't find anything on MSDN. Searched on these newgroups found that I wasn't the only one having problems - there were some replies that mention something about linking MFC statically, etc.
Any experiences/pointers would be greatly appreciated...
If you need to mix VC6 and VC7-compiled DLLs in a single process, you need to be very careful about your DLL interfaces. Generally, any interface which includes MFC, ATL or STL classes will not be compatible. An interface that uses your own classes exclusively will probably be compatible, but you also need to be sensitive about runtime library differences: There's no way to get a VC6 DLL and a VC7 DLL to share a single runtime heap, so it's essential that your DLLs expose "complete" resource management interfaces, with both allocation and deallocation for all objects that cross the DLL boundary.
-cd This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Johann Blake |
last post by:
I can hardly believe I'm the first one to report this, but having gone
through the newsgroup, it appears that way.
I would like to open a solution in the VS.NET IDE that consists of
multiple...
|
by: Devender Khari |
last post by:
Hi Friends,
I'm facing a situation as follows, need help on identifying possible issues.
There is an MFC application developed in VC6.0, say ABCVC6.exe and another
developed in VC.NET, say...
|
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs...
|
by: Jeremy S |
last post by:
I wrote an ASP.NET application and pretty much separated out various layers
of functionality into individual class files (e.g., dal.cs for all db
access). It's currently all in one VS.NET project...
|
by: Tom |
last post by:
We have an ASP web site done with VB.NET. This website is also checked into
SourceSafe.
Now we need to move/copy this web site over to a different server - a QA
and/or Production server. I am...
|
by: axs221 |
last post by:
I am trying to move some of our large VBA Access front-end file into
ActiveX DLL files. I created two DLL files so far, one was a module
that contains code to integrate into the QuickBooks...
|
by: Claire |
last post by:
For localization, I create resx files containing stringlists.
I have several in my project, attached to individual projects/dlls
Since moving across my application doesnt seem to be able to find...
|
by: David Thielen |
last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows
2008 Server running IIS7.
We have copied all files to the Windwardreports\apps directory and
that apps directory has been...
|
by: samercontrol |
last post by:
i have two problems
1-moving files between servers or downloading file to your site root(ASP).
2-registering dll or ocx at server without getting the no permission problem.
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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...
|
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...
|
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...
| |