Having got the old program to work (more or less) as a Console application I have now turned my attention to making it work as a 'proper' program.
My first attempt was to generate the 'Hello World' string as a message box.
I found I had to cast the second and third message strings as type LPCWSTR to get the program to compile. Again using Visual C++ 2010 Express
A message box has come up, but it is not in English. It looks more like Japanese!! See the attachment for the resulting box.
The code reads

MessageBox(NULL, (LPCWSTR)"Hello World", (LPCWSTR)"Note", MB_OK);

Just what is going on?

Not sure if this will work, but try

(LPCWSTR)L"Hello World"

just in case. If it doesn't I will look into this in detail. I remember having the same problem some years back.

Yes, it does. But why?

That solves that problem.
Now it seems that EXpress doesn't have a Resource (.rc) editor. That makes creating and testing dialog boxes (etc.) a bit messy.
Does anyone know of another compiler that does work. I can live without MFC but it would help to be able the resources!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.