Hi. My computer HD died and I reinstalled VC2008. Before I have multibyte char (in other language) showing correctly in my files etc. they are for different language setting I have for labels etc. Now for some reason, in files that have these characters, the characters are not displayed right and is jibeerish. But when compiled the characters still is shown right on screen. I was just wondering if maybe some setting is not right so that it is shown not correctly in the foreign characters? Thanks. Stan the man...
Stan the man
Posts
-
Using VC2008, multibyte char not showing right in the windows -
Migration from VC2006 to 2008Thank everyone for their input. Will go through and properly get everything done. Appreciate the help.
-
Migration from VC2006 to 2008The problem is that it works in the old code. The declaration for x is valid through the function that the second for is in. So it never was a problem before.
-
Migration from VC2006 to 2008HI. I have been using 2006 and have not upgraded through the years. All works. Now, I installed VC2008 and find that the old code has many compiler errors. I am not sure where these come from. One is ex: for (int x = 0; x< 100;x++) .... for (x = 0; x<5;x++).... THis will nor work anymore... It seems I need to declare the X outside the for loop. The other is : Error 2440: 'static cast' cannot convert from 'void (thiscall CMyView::*)(WPARAM, LPARAM)' to '(LRESULT (thiscall CWnd::*)(WPARAM, LPARAM)' Not sure what this one is. Never had any of these problems before. Also, just curious if maybe I should just go to 2011 version versus 2008? Any comments? Appreciate any help or advise. Thanks. Stan the man
-
What WM_??? does "ShowWindow" actually call and sendHi. I will try this. I think that is what I have been mixed up about. Thanks for the insight. Stan the man
-
What WM_??? does "ShowWindow" actually call and sendHi. I was just wondering what exactly does ShowWindow(...) call (WM_ ???) ? I looked around but it does not seem that it calls WM_SHOWWINDOW. I want to send this message to another application with SW_HIDE etc... Thanks in advance. Stan the man
-
Socket (client) crashes program one one computer when the other computer (server) powers down - StrangeHi Everyone. Not sure if anyone met this situation. I have a program (client) sitting one one computer (WinXP) and a server sitting on another computer (win7). My programs works fine and will not crash when the ethernet cable is pulled out, when the server program is shutdown etc. BUT when the server computer turns off, the client program will crash when trying to connect (it will try to connect to a server every 3 seconds). If the computer is on and even if the server program is not running, the client is fine and will just continue to connect. Not sure what is happening when a computer is off but the ethernet cable is still plugged in. Has anyone seen this kind of thing? Is there something that I need to do or check for in the client that will prevent this crashing from occurring? THanks ! Stan the man
-
Win7 - worker thread freeze on call to WaitForSingleObjectHi Jochen. Thanks. I will try it out.... Stan
-
Win7 - worker thread freeze on call to WaitForSingleObjectHi All. I call the following when I need to save a report in my MFC base program: m_pEndThread = AfxBeginThread(Save2CWGCoilRep, &m_CoilRep[iCRepPos], THREAD_PRIORITY_NORMAL,0,0); UINT Save2CWGCoilRep(LPVOID pParam) { I use CStdioFile to them save data to file } Then before I save another report, I will call if(m_pEndCoilThread != NULL) ::WaitForSingleObject(m_pEndCoilThread->m_hThread, INFINITE); to see if the thread is finished before calling again to save another report. And if not just wait. It seems in Win7 now, this call will not exit so that the program will just freeze. It does not freeze all the time, seems random. In WinXP, the same program seems not to have this problem. I am not sure what I am missing. Any help or suggestion will be appreciated. Thanks! Stan the man
-
Byte alignmentThanks! Stan the man
-
Byte alignmentHI. Thanks for the reply. IT only needs to be around the definition call. I do not have to do anything else when I call it or use it then, right? Just want to be sure... Thanks.
-
Byte alignmentHi. We are doing TCPIP communications between an old system (DOS) and a WinXP system. We put all the message contents into a struture. Because the DOS side we can not change, we encountered a few problems that seems to be related to byte alignment. I think on the windows side, it needs to be 4 byte aligned. But on the DOS side it seems to be 2 byte aligned. As a result, it seems when you access a specific variable using pointers or use "sizeof" it gives the wrong result. Is there anyway to force the alignment correctly so that nothing will be "padded"? Thanks in adavnce. Stan the man
-
CListBox head language display problemTHank you everyone. That was the problem. Appreciate the help.
-
CListBox head language display problemI can display correctly everything on buttons and static items. Only the ListBox seems to have this problem. Am not quite sure what is different between this and the other things. THanks. Stan the man
-
CListBox head language display problemHi. When I try to display chinese or other characters in the column of the CListBox, it comes out jibberish. ENglish is fine. Can someone enlighten me why this is the case and how to allow other languages to work in the Clistbox? Thanks in advance. Stan the man
-
Question on OnClose of CAsyncSocketHi. I was wondering if anyone knows if the OnClose will be called when a connection is abnormally disconnected on the other side (power off or ethernet cable disconnected)? It does not seem to get called. Is there another way or message etc that can tell me if the ethernet is gone during this abnormal condition? I can see that if the ethernet connection is gone, the icon on the task bar seem to know right away but my application does not. Is there an API that can check this? Thanks in advance. Stan the man
-
Default buttonThat was perfect, just want I need it. Thanks, Stan the man
-
Default buttonHi. I was wondering if anyone knows how to retain the default button function on a dialog? After I push the cancel button, if I show the dialog again (showwindow), the OK button no longer has the default "status" and so pushing the return button after entering something into an edit box does not automatically push OK but Cancel now. Is there a way that when I show the window,I force teh OK button to have teh default button status everytime? Thanks in advance! Stan the man
-
Changing the height of a CstatusBarHi Iain. That did it. Thanks. Stan the man
-
Changing the height of a CstatusBarHi. Just curious if anyone knows an easy way to change the height of a CStatusBar? Thanks in advance. Stan the Man