Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Mark Salsbery16-May-07 5:35
Mark Salsbery16-May-07 5:35 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Moak16-May-07 5:43
Moak16-May-07 5:43 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Mark Salsbery16-May-07 6:03
Mark Salsbery16-May-07 6:03 
AnswerRe: I implemented a chat Program But I am not able to connect to the server properly Pin
dharani16-May-07 18:20
dharani16-May-07 18:20 
QuestionHow to make visible the inserted item in Tree control? Pin
swamy Narasimha16-May-07 0:21
swamy Narasimha16-May-07 0:21 
AnswerRe: How to make visible the inserted item in Tree control? Pin
GuyM16-May-07 0:59
GuyM16-May-07 0:59 
GeneralRe: How to make visible the inserted item in Tree control? Pin
swamy Narasimha16-May-07 1:23
swamy Narasimha16-May-07 1:23 
QuestionProblem reading a unicode text file Pin
balu chettri16-May-07 0:14
balu chettri16-May-07 0:14 
//I have a problem reading a text file which I have
//created using Notepad and saved at c:\test.txt in
//"Unicode" format.
//The file contains just a single word: "Test"

//The following is a C++ program to read the file

#include <wchar.h>
#include <fstream>
using namespace std;
typedef basic_ifstream<wchar_t> ifs;
void main () {
ifs is ("c:\\test.txt");
wint_t c;
while ((c = is.get()) != WEOF) {
wprintf (L"%c", c);
}
}

//The output was:
//..T.e.s.t.
//Note that the loop went for 10 times while I expected it
//to run only 4 times for word "Test".

//The following is an equivalent C program that does all correctly.
/*
#include <stdio.h>
void main () {
FILE *fp = _wfopen (L"c:\\test.txt", L"rb");
wint_t c;
while ((c = fgetwc(fp)) != WEOF) {
wprintf (L"%c", c);
}
fclose (fp);
}
*/
//Output: Test
//Do you have any suggestions? Please help. Thanks in advance!

B2C
AnswerRe: Problem reading a unicode text file Pin
David Crow16-May-07 2:46
David Crow16-May-07 2:46 
AnswerRe: Thanks! Pin
balu chettri17-May-07 5:00
balu chettri17-May-07 5:00 
QuestionConfusing but interesting thing happens! Pin
balu chettri17-May-07 6:06
balu chettri17-May-07 6:06 
QuestionLooking for an alternative c++ express compiler Pin
spacegrass15-May-07 23:57
spacegrass15-May-07 23:57 
AnswerRe: Looking for an alternative c++ express compiler Pin
Cedric Moonen16-May-07 0:12
Cedric Moonen16-May-07 0:12 
AnswerRe: Looking for an alternative c++ express compiler Pin
CPallini16-May-07 0:14
mveCPallini16-May-07 0:14 
AnswerRe: Looking for an alternative c++ express compiler Pin
Christian Graus16-May-07 0:17
protectorChristian Graus16-May-07 0:17 
Questionsearch on start menu [modified] Pin
prathuraj15-May-07 23:49
prathuraj15-May-07 23:49 
AnswerRe: search on start menu Pin
Nelek16-May-07 1:32
protectorNelek16-May-07 1:32 
QuestionHow to add a character in the begin and end of the string? Pin
ashokbngr15-May-07 23:21
ashokbngr15-May-07 23:21 
AnswerRe: How to add a character in the begin and end of the string? Pin
toxcct15-May-07 23:27
toxcct15-May-07 23:27 
AnswerRe: How to add a character in the begin and end of the string? Pin
Nibu babu thomas16-May-07 1:36
Nibu babu thomas16-May-07 1:36 
AnswerRe: How to add a character in the begin and end of the string? Pin
krmed16-May-07 1:52
krmed16-May-07 1:52 
AnswerRe: How to add a character in the begin and end of the string? Pin
balu chettri17-May-07 6:17
balu chettri17-May-07 6:17 
QuestionBarcode scanning using TWAIN Pin
kk.tvm15-May-07 22:13
kk.tvm15-May-07 22:13 
Questioninterface and main in VC++2005 Pin
lavy288315-May-07 22:05
lavy288315-May-07 22:05 
AnswerRe: interface and main in VC++2005 Pin
Hamid_RT15-May-07 22:11
Hamid_RT15-May-07 22:11 

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.