CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Bliutte

Search: Search took 0.03 seconds.

  1. Replies
    13
    Views
    13,894

    Re: Converting char to LPCWSTR

    Oh, sorry about that stupid post. I guess i am too tired right now. :o
    Thanks for the reply though.
  2. Replies
    13
    Views
    13,894

    Re: Converting char to LPCWSTR

    Does this work with strings? I tried this:

    char text = (char)"Text.";
    MessageBox(NULL,_T (text), _T ("Caption."),MB_OK);
    That gave this error:

    error C2065: 'Ltext' : undeclared identifier...
  3. Replies
    13
    Views
    13,894

    Re: Converting char to LPCWSTR

    Ok, thanks for the quick reply! :)
  4. Replies
    13
    Views
    13,894

    Converting char to LPCWSTR

    I recently switched from Dev-C++ to VS 2005 but when i try compiling this program:

    #include "stdafx.h"
    #include <windows.h>

    int main()
    {
    MessageBox(NULL,"Text.","Caption.",MB_OK);
    ...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured