473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Migration to VC7: CString problem

Hi,
In my company we're trying to migrate our application
from vc6 to vc7.
in one of our dlls we define the following class:

class __declspec (dllexport) CExString : public CString
{
....
}

and everything is ok until one of our functions, for
example:

void ExportCExStringFunc(CExString& someStr)
{
....
}

is EXPORTED from the dll.

The linker doesn't accept this and we get tons of errors
in the project that IMPORTS this function.

When I changed the class to something like:
class __declspec (dllexport) CExString
{
CString mStr;
}

it was ok, but then, of course, I have differnt problems
and it is not exactly what I wanted.
Does anyone knows something about it?
Thanks,
Ram.

Nov 16 '05 #1
2 2589
Hi Ram,

Thanks for posting to the Microsoft Newsgroups! I just wanted to take a
moment to let you know that while I am not a VC++ Support person, I have
asked the team about your specific issue and was referred to this article
to assist you:

PRB: Linking Errors When You Import CString-Derived Classes
ID: 309801

http://support.microsoft.com/default...B;EN-US;309801

Please let me know if this helps to resolve your issue or if you need any
follow-up help.

Brett Keown
Microsoft Support
br*****@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #2
Thanks, it helped!!!!
"Brett Keown [MSFT]" <br*****@online.microsoft.com> wrote in message
news:Fi**************@cpmsftngxa06.phx.gbl...
Hi Ram,

Thanks for posting to the Microsoft Newsgroups! I just wanted to take a
moment to let you know that while I am not a VC++ Support person, I have
asked the team about your specific issue and was referred to this article
to assist you:

PRB: Linking Errors When You Import CString-Derived Classes
ID: 309801

http://support.microsoft.com/default...B;EN-US;309801

Please let me know if this helps to resolve your issue or if you need any
follow-up help.

Brett Keown
Microsoft Support
br*****@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #3

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

Similar topics

8
by: Scott | last post by:
I have written windows applications using MFC for several years and have frequently used MFC techniques. Now I'm moving to C# .NET WinForm. Mostly C# books describes C# language (sometimes...
0
by: Frank Lopez | last post by:
Does anyone know if Microsoft generated a whitepaper on this topic? Does anyone know what the solution is? (meaning, eliminate the leak problem -- I am seeing three memory leaks from...
6
by: Deepa via .NET 247 | last post by:
(Type your message here) Hi, My app (DLL) that was developed in VC6 is using ddao35u.lib toaccess the Access Database. When I try to build the same DLL using VC7 I get the followinglinker error....
2
by: Zardoz | last post by:
Hi, I'm trying to find a workaround to this problem ON_BN_CLICKED(IDC_CANCEL, OnCancelOperation) BOOL CCurrenciesDialog::OnCancelOperation()
11
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...
6
by: RG | last post by:
I am looking to migrate a makefile/vsvc6/RTC sdk project to vs .net 2003. Can someone tell me how I could accomplish this? Thanks in advance
1
by: jim.massengale | last post by:
The Libraries that I am linking with are compiled in Visual 6.0. I have an exported CEPAttribute with the function CEPAttribute::GetLineStyle(CString &_strValue). The project that I am compiling...
2
by: flyingxu | last post by:
Hi, I run into a cstring related link problem in VC7. My solution has 3 projects, one MFC exe, two MFC extersion DLL. the two MFC extersion DLL export functions which use CString as parameters....
5
by: =?Utf-8?B?TmlzaGFsIFBhdGVs?= | last post by:
I converted my VC++ 6.0 Project to VC++.NET and during compilation, I get the following error everywhere: Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...
0
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 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.