Click here to Skip to main content
15,918,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
Covean25-Mar-10 3:25
Covean25-Mar-10 3:25 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
cmk24-Mar-10 12:28
cmk24-Mar-10 12:28 
GeneralRe: SymEnumSymbols is getting failed even GetLastError returns 0 Pin
glitteringsound24-Mar-10 20:27
glitteringsound24-Mar-10 20:27 
QuestionDifference between C and Visual C. Pin
Razanust24-Mar-10 4:17
Razanust24-Mar-10 4:17 
QuestionRe: Difference between C and Visual C. Pin
David Crow24-Mar-10 4:32
David Crow24-Mar-10 4:32 
AnswerRe: Difference between C and Visual C. Pin
Chris Losinger24-Mar-10 7:10
professionalChris Losinger24-Mar-10 7:10 
QuestionWindow is not getting Maximize on WINDOWS 7 operating system Pin
pandit8424-Mar-10 2:30
pandit8424-Mar-10 2:30 
AnswerRe: Window is not getting Maximize on WINDOWS 7 operating system Pin
KarstenK24-Mar-10 3:16
mveKarstenK24-Mar-10 3:16 
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 

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.