Migration to VC7: CString problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ram Baruch

    #1

    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 ExportCExString Func(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.

  • Brett Keown [MSFT]

    #2
    RE: Migration to VC7: CString problem

    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



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

    Brett Keown
    Microsoft Support
    brettke@online. microsoft.com

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

    Comment

    • Alon Borenshtein

      #3
      Re: Migration to VC7: CString problem

      Thanks, it helped!!!!


      "Brett Keown [MSFT]" <brettke@online .microsoft.com> wrote in message
      news:FimDzHZbDH A.2000@cpmsftng xa06.phx.gbl...[color=blue]
      > 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
      > brettke@online. microsoft.com
      >
      > This posting is provided "AS IS" with no warranties, and confers no[/color]
      rights.[color=blue]
      >[/color]


      Comment

      Working...