Click here to Skip to main content
15,921,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems in packet blocking Pin
geo_m17-Mar-03 23:02
geo_m17-Mar-03 23:02 
Generalexception in user.exe Pin
Raghunandan S17-Mar-03 19:08
Raghunandan S17-Mar-03 19:08 
GeneralNetwork users Pin
Mr Bose Dayala17-Mar-03 18:38
Mr Bose Dayala17-Mar-03 18:38 
GeneralFileSave dialog comes up with Default User settings when .exe is launched from a service using CreateProcess() Pin
praveenpnayak17-Mar-03 17:15
praveenpnayak17-Mar-03 17:15 
GeneralRe: FileSave dialog comes up with Default User settings when .exe is launched from a service using CreateProcess() Pin
Nish Nishant17-Mar-03 17:34
sitebuilderNish Nishant17-Mar-03 17:34 
GeneralRe: FileSave dialog comes up with Default User settings when .exe is launched from a service using CreateProcess() Pin
praveenpnayak17-Mar-03 19:08
praveenpnayak17-Mar-03 19:08 
QuestionHow to convert a Unicode text file into Ascii? Pin
Charles Liu17-Mar-03 17:03
Charles Liu17-Mar-03 17:03 
AnswerRe: How to convert a Unicode text file into Ascii? Pin
Dave Bryant17-Mar-03 17:21
Dave Bryant17-Mar-03 17:21 
Use the API function WideCharToMultiByte() which is well documented on MSDN. It also depends if you want to convert to ascii (and hence lose all Chinese characters) or to an ansi code page that still allows the chinese characters to be retrieved (a multi-byte character set). If you want to go to ascii, you can use 1252 as the target codepage.

If you are running this on a Chinese system (i.e. Chinese Windows, or English Windows with Chinese regional settings), then you can pass in CP_ACP as the target code page, and it will convert it to the current system codepage, which should include the chinese characters. If this is not a chinese system, then you will need to pass in the chinese code page number instead (which i can't remember of the top of my head).

Dave
GeneralDelclaring a static array for use with CImage List! Pin
adonisv17-Mar-03 16:38
adonisv17-Mar-03 16:38 
GeneralRe: Declaring a static array for use with CImage List! Pin
Jambolo17-Mar-03 17:20
Jambolo17-Mar-03 17:20 
Questionpopup yellow information box - HOWTO? Pin
zecodela17-Mar-03 14:42
zecodela17-Mar-03 14:42 
AnswerRe: popup yellow information box - HOWTO? Pin
User 842017-Mar-03 16:00
User 842017-Mar-03 16:00 
GeneralRe: popup yellow information box - HOWTO? Pin
zecodela17-Mar-03 16:32
zecodela17-Mar-03 16:32 
QuestionHow do you scroll text in a CEdit? Pin
Abin17-Mar-03 14:27
Abin17-Mar-03 14:27 
AnswerRe: How do you scroll text in a CEdit? Pin
Jean-Michel LE FOL17-Mar-03 15:24
Jean-Michel LE FOL17-Mar-03 15:24 
GeneralRe: How do you scroll text in a CEdit? Pin
Abin17-Mar-03 15:55
Abin17-Mar-03 15:55 
Generalto link the dialog box with window using mfc Pin
khb82110217-Mar-03 14:20
khb82110217-Mar-03 14:20 
GeneralDrawItem for CTreeCtrl Pin
Florin Ochiana17-Mar-03 12:58
Florin Ochiana17-Mar-03 12:58 
GeneralRe: DrawItem for CTreeCtrl Pin
Neville Franks17-Mar-03 17:47
Neville Franks17-Mar-03 17:47 
GeneralCAsyncSockets Pin
chrisedgington17-Mar-03 12:18
chrisedgington17-Mar-03 12:18 
GeneralRe: CAsyncSockets Pin
Florin Ochiana17-Mar-03 12:55
Florin Ochiana17-Mar-03 12:55 
GeneralRe: CAsyncSockets Pin
Moak18-Mar-03 1:40
Moak18-Mar-03 1:40 
GeneralRe: CAsyncSockets Pin
chrisedgington18-Mar-03 23:18
chrisedgington18-Mar-03 23:18 
GeneralRe: CAsyncSockets Pin
Moak19-Mar-03 3:36
Moak19-Mar-03 3:36 
GeneralRe: CAsyncSockets Pin
chrisedgington19-Mar-03 4:31
chrisedgington19-Mar-03 4:31 

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.