Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help me pls... Pin
Hamid_RT21-Aug-06 20:57
Hamid_RT21-Aug-06 20:57 
QuestionLocalization using Mlang.dll Pin
sunitha_nd21-Aug-06 18:05
sunitha_nd21-Aug-06 18:05 
QuestionBitmap bits Pin
Waldermort21-Aug-06 18:02
Waldermort21-Aug-06 18:02 
AnswerRe: Bitmap bits Pin
jk chan21-Aug-06 18:42
jk chan21-Aug-06 18:42 
GeneralRe: Bitmap bits Pin
Waldermort21-Aug-06 18:58
Waldermort21-Aug-06 18:58 
AnswerRe: Bitmap bits Pin
Justin Tay21-Aug-06 19:26
Justin Tay21-Aug-06 19:26 
GeneralRe: Bitmap bits Pin
Waldermort21-Aug-06 20:28
Waldermort21-Aug-06 20:28 
QuestionLocalisation in WIN32 , fails Pin
spicy_kid200021-Aug-06 17:19
spicy_kid200021-Aug-06 17:19 
Hello all

I have generated a WIN32 console app, and created a resource , and a string table which has one string. Then I copied same string to German and put the same string id there and put a German text.

After that I have done the following code

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

int main(int argc, char* argv[])
{
TCHAR pszTest[256];

int m_lang = GetProfileInt("General","Language",0);

HMODULE hMod = GetModuleHandle(NULL);


if (m_lang == 0) {
// switch language to english
::SetThreadLocale(MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_DEFAULT),SORT_DEFAULT));
}
else {
// switch language to german
::SetThreadLocale(MAKELCID(MAKELANGID(LANG_GERMAN,SUBLANG_DEFAULT),SORT_DEFAULT));
}

LoadString(hMod,IDS_MSG, pszTest, sizeof(pszTest));

DWORD dw = GetLastError();

MessageBox(NULL,pszTest,"Message",MB_OK);

return 0;
}


I get the error 1812. Can you please help me to solve this?

Basically I am trying to write a WIN32 application to support both English and German. I dont know whether I have to make this WIN32 app a unicode application !!!

And also, it would be nice if you can gimme a link which helps me to generate a multilingual WIN32 app without MFC.

Thank you

Best Regards,
AnswerRe: Localisation in WIN32 , fails Pin
Joe Woodbury21-Aug-06 17:48
professionalJoe Woodbury21-Aug-06 17:48 
AnswerRe: Localisation in WIN32 , fails Pin
Waldermort21-Aug-06 18:21
Waldermort21-Aug-06 18:21 
GeneralRe: Localisation in WIN32 , fails Pin
Joe Woodbury21-Aug-06 19:08
professionalJoe Woodbury21-Aug-06 19:08 
GeneralRe: Localisation in WIN32 , fails Pin
Waldermort21-Aug-06 19:15
Waldermort21-Aug-06 19:15 
GeneralRe: Localisation in WIN32 , fails Pin
Joe Woodbury21-Aug-06 19:21
professionalJoe Woodbury21-Aug-06 19:21 
QuestionPerspective Projection Opengl Pin
jk chan21-Aug-06 16:41
jk chan21-Aug-06 16:41 
AnswerRe: Perspective Projection Opengl Pin
Steve Echols21-Aug-06 18:52
Steve Echols21-Aug-06 18:52 
GeneralRe: Perspective Projection Opengl Pin
jk chan21-Aug-06 19:17
jk chan21-Aug-06 19:17 
GeneralRe: Perspective Projection Opengl Pin
Steve Echols21-Aug-06 19:52
Steve Echols21-Aug-06 19:52 
GeneralRe: Perspective Projection Opengl Pin
jk chan21-Aug-06 20:21
jk chan21-Aug-06 20:21 
GeneralRe: Perspective Projection Opengl Pin
Steve Echols21-Aug-06 20:53
Steve Echols21-Aug-06 20:53 
GeneralRe: Perspective Projection Opengl Pin
jk chan21-Aug-06 20:59
jk chan21-Aug-06 20:59 
GeneralRe: Perspective Projection Opengl Pin
jk chan22-Aug-06 14:13
jk chan22-Aug-06 14:13 
QuestionWhen use Bitmap::Clone(), I meet a problem.(about GDI+) Pin
samfromcn21-Aug-06 16:27
samfromcn21-Aug-06 16:27 
AnswerRe: When use Bitmap::Clone(), I meet a problem.(about GDI+) Pin
Justin Tay21-Aug-06 17:24
Justin Tay21-Aug-06 17:24 
QuestionHow to correctly send Telnet codes? Pin
Lord Kixdemp21-Aug-06 13:47
Lord Kixdemp21-Aug-06 13:47 
AnswerRe: How to correctly send Telnet codes? Pin
markkuk21-Aug-06 23:33
markkuk21-Aug-06 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.