CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2001
    Posts
    401

    How to add UNICODE configuration

    Normally when you start a project in vc++ 6 , is has two configurations Win32 Relase and Win32 Build.

    I have seem some projects with modes like UNICODE Build/Release as well.

    Now I can new configuartion by going to Build->Configurations-> Add
    but then All I am doing is adding a new name for the same configuration as cannot define the configuration options there.

    So how do I define a unicode configuration. DO I have to manually go to project settings and do some stuff.

    If yes, some hints will be great.


    thanks

    Pauli

  2. #2
    Join Date
    Sep 2003
    Location
    Forever Gone... For Now...
    Posts
    1,515

    Re: How to add UNICODE configuration

    Originally posted by paulina_lui
    DO I have to manually go to project settings and do some stuff.
    When I need to this, I usually copy an existing config (DEBUG or RELEASE) and give it a new name (UNICODE_DEBUG, UNICODE_RELEASE perhaps).
    Then I make the UNICODE config the active one, and add the following preprocessor definitions to the C/C++ tab of the project settings:
    UNICODE
    _UNICODE

    That's about it.
    Thought for the day/week/month/year:
    Windows System Error 4006:
    Replication with a nonconfigured partner is not allowed.

  3. #3
    Join Date
    Nov 2001
    Posts
    401

    How do I copy?

    How do I copy an existing configuration into a new project...


    I have some projects with UNICODE configuration though which I would like to use to copy.


    Pauli

  4. #4
    Join Date
    Sep 2003
    Location
    Forever Gone... For Now...
    Posts
    1,515

    Re: How do I copy?

    Originally posted by paulina_lui
    How do I copy an existing configuration into a new project...


    I have some projects with UNICODE configuration though which I would like to use to copy.


    Pauli
    You mean you have a ProjectB with a UNICODE config, that you would like to copy to ProjectA? I would consider this to be a major pain, and it would likely be easier to just create a new config for ProjectA and modify it. Else, you would most likely have to copy settings from one DSP to another. Not terrible, but by the time you are done with it you could have probably made the appropriate changes to ProjectA's new config, and then some...
    Thought for the day/week/month/year:
    Windows System Error 4006:
    Replication with a nonconfigured partner is not allowed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured