Click here to Skip to main content
15,903,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[solved] What benefit has a MULTIBYTE application compared to a UNICODE version ? [modified] Pin
Eugen Podsypalnikov24-Mar-10 0:45
Eugen Podsypalnikov24-Mar-10 0:45 
AnswerRe: What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Moak24-Mar-10 1:02
Moak24-Mar-10 1:02 
GeneralRe: What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Eugen Podsypalnikov24-Mar-10 1:38
Eugen Podsypalnikov24-Mar-10 1:38 
GeneralRe: What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Saurabh.Garg24-Mar-10 17:41
Saurabh.Garg24-Mar-10 17:41 
AnswerRe: [solved] What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Saurabh.Garg24-Mar-10 17:43
Saurabh.Garg24-Mar-10 17:43 
GeneralRe: [solved] What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Eugen Podsypalnikov24-Mar-10 21:19
Eugen Podsypalnikov24-Mar-10 21:19 
GeneralRe: [solved] What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Saurabh.Garg24-Mar-10 21:35
Saurabh.Garg24-Mar-10 21:35 
GeneralRe: [solved] What benefit has a MULTIBYTE application compared to a UNICODE version ? Pin
Moak24-Mar-10 22:27
Moak24-Mar-10 22:27 
QuestionWindows Media Player Pin
gmallax24-Mar-10 0:39
gmallax24-Mar-10 0:39 
AnswerRe: Windows Media Player Pin
KarstenK24-Mar-10 3:18
mveKarstenK24-Mar-10 3:18 
Questiondocumenting .c files using doxygen,which doesnot have any comment or description or documents in it except code Pin
itssheen24-Mar-10 0:21
itssheen24-Mar-10 0:21 
AnswerRe: documenting .c files using doxygen,which doesnot have any comment or description or documents in it except code Pin
Richard MacCutchan24-Mar-10 1:56
mveRichard MacCutchan24-Mar-10 1:56 
GeneralRe: documenting .c files using doxygen,which doesnot have any comment or description or documents in it except code Pin
itssheen24-Mar-10 4:17
itssheen24-Mar-10 4:17 
GeneralRe: documenting .c files using doxygen,which doesnot have any comment or description or documents in it except code Pin
Richard MacCutchan24-Mar-10 4:42
mveRichard MacCutchan24-Mar-10 4:42 
GeneralRe: documenting .c files using doxygen,which doesnot have any comment or description or documents in it except code Pin
Iain Clarke, Warrior Programmer24-Mar-10 9:47
Iain Clarke, Warrior Programmer24-Mar-10 9:47 
QuestionCString Object in a console application... Pin
rrthangavel24-Mar-10 0:04
rrthangavel24-Mar-10 0:04 
Hi,
i am working in console application in VC++(visual studio 2005).
i am having a problem while using CString.
i have mentioned sample code below.

#include "stdafx.h"
#include "server1.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// The one and only application object

CWinApp theApp;

using namespace std;

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
int nRetCode = 0;

// initialize MFC and print and error on failure
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed\n"));
nRetCode = 1;
}
else
{
CString str;
str="IP conneted"
printf("%s",str);
cout<<str;

}

return nRetCode;
}

while executing the code..
i get printed only first letter(I) of str.
so please help me..
is there any header or setting should i change in the visual studio environment?
AnswerRe: CString Object in a console application... Pin
KingsGambit24-Mar-10 0:25
KingsGambit24-Mar-10 0:25 
GeneralRe: CString Object in a console application... Pin
Adam Roderick J24-Mar-10 0:31
Adam Roderick J24-Mar-10 0:31 
GeneralRe: CString Object in a console application... Pin
KingsGambit24-Mar-10 0:35
KingsGambit24-Mar-10 0:35 
AnswerRe: CString Object in a console application... Pin
Eugen Podsypalnikov24-Mar-10 0:27
Eugen Podsypalnikov24-Mar-10 0:27 
AnswerRe: CString Object in a console application... Pin
CPallini24-Mar-10 0:40
mveCPallini24-Mar-10 0:40 
AnswerRe: CString Object in a console application... Pin
KarstenK24-Mar-10 3:15
mveKarstenK24-Mar-10 3:15 
QuestionBYTE to binary conversion Pin
Madan Chauhan23-Mar-10 23:07
Madan Chauhan23-Mar-10 23:07 
AnswerRe: BYTE to binary conversion Pin
KarstenK23-Mar-10 23:17
mveKarstenK23-Mar-10 23:17 
GeneralRe: BYTE to binary conversion Pin
r.ps24-Mar-10 3:01
r.ps24-Mar-10 3:01 

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.