Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Error in creating window

Error in creating window

Scheduled Pinned Locked Moved Visual Studio
c++debugginghelpcsharpvisual-studio
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SzyKam
    wrote on last edited by
    #1

    Hello! I'm begining with Visual C++. I found article on www.codeproject.com, I mean "Introduce Yourself to VC++ Part I". I have done everything "by the book", but it dosen't work. The message I'm getting from debugger is as follows: ------ Build started: Project: MFCFundamentals1, Configuration: Debug Win32 ------ Compiling... exercise.cpp WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) e:\programy\microsoft visual studio 8\projekty\mfcfundamentals1\mfcfundamentals1\exercise.cpp(17) : error C2664: 'CFrameWnd::Create' : cannot convert parameter 2 from 'const char [17]' to 'LPCTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Build log was saved at "file://e:\Programy\Microsoft Visual Studio 8\Projekty\MFCFundamentals1\MFCFundamentals1\Debug\BuildLog.htm" MFCFundamentals1 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I'll be greateful for a help! PS. I'm using Visual Studio 2005 (if it makes any difference). Szymon SzyKam

    V 1 Reply Last reply
    0
    • S SzyKam

      Hello! I'm begining with Visual C++. I found article on www.codeproject.com, I mean "Introduce Yourself to VC++ Part I". I have done everything "by the book", but it dosen't work. The message I'm getting from debugger is as follows: ------ Build started: Project: MFCFundamentals1, Configuration: Debug Win32 ------ Compiling... exercise.cpp WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) e:\programy\microsoft visual studio 8\projekty\mfcfundamentals1\mfcfundamentals1\exercise.cpp(17) : error C2664: 'CFrameWnd::Create' : cannot convert parameter 2 from 'const char [17]' to 'LPCTSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Build log was saved at "file://e:\Programy\Microsoft Visual Studio 8\Projekty\MFCFundamentals1\MFCFundamentals1\Debug\BuildLog.htm" MFCFundamentals1 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I'll be greateful for a help! PS. I'm using Visual Studio 2005 (if it makes any difference). Szymon SzyKam

      V Offline
      V Offline
      vladfein
      wrote on last edited by
      #2

      Studio 2005 defaults your projects to use Unicode. So, unless you change that, you either need to specify "wide" strings like that: L"your text" or use macro _T: _T("your text") ----------------------------- Get trial copy of FeinViewer - an integrated GDI objects viewer for Microsoft Visual Studio .NET 2005 (8.0) Visual C++ Debugger, and other convenience and productivity tools for Microsoft Visual Studio .NET at at www.FeinSoftware.com

      S 1 Reply Last reply
      0
      • V vladfein

        Studio 2005 defaults your projects to use Unicode. So, unless you change that, you either need to specify "wide" strings like that: L"your text" or use macro _T: _T("your text") ----------------------------- Get trial copy of FeinViewer - an integrated GDI objects viewer for Microsoft Visual Studio .NET 2005 (8.0) Visual C++ Debugger, and other convenience and productivity tools for Microsoft Visual Studio .NET at at www.FeinSoftware.com

        S Offline
        S Offline
        SzyKam
        wrote on last edited by
        #3

        Hello! Thank you for your help. I came to this yesterday. Now I have Visual not to use unicode. Everything is working fine, without using macro. :) Szymon

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups