Click here to Skip to main content
15,910,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDr Watson problems with vc++ Pin
Aviv Halperin9-Dec-02 21:40
Aviv Halperin9-Dec-02 21:40 
GeneralBringing a window to the top Pin
Rage9-Dec-02 21:25
professionalRage9-Dec-02 21:25 
GeneralRe: Bringing a window to the top Pin
Shog99-Dec-02 21:59
sitebuilderShog99-Dec-02 21:59 
GeneralRe: Bringing a window to the top Pin
Rage9-Dec-02 22:16
professionalRage9-Dec-02 22:16 
GeneralRe: Bringing a window to the top Pin
Christian Graus9-Dec-02 22:00
protectorChristian Graus9-Dec-02 22:00 
GeneralRe: Bringing a window to the top Pin
Rage9-Dec-02 22:17
professionalRage9-Dec-02 22:17 
GeneralCOleControl problem Pin
hdi99kf@syd.kth.se9-Dec-02 21:22
hdi99kf@syd.kth.se9-Dec-02 21:22 
GeneralNon Printing Characters Pin
John Bosko9-Dec-02 21:21
John Bosko9-Dec-02 21:21 
Cry | :(( Hi,
I've got a code which is adding 2 non-printable characters at the end of the string, which is causing a lot of problem.
Can anyone help me in removing these 2 "funny" characters.
Here is the code

[CODE]
========================================
#include <winsock.h>
#include <windows.h>
#include <iostream.h>
#include <string>
#include <conio.h>

using std::string;

const char *yy;
int u,i;

string final = "<req><loginid>8888<reqtype>08<broadcast><messagetype>M<no>5359846<message>\n";

void main()
{
final.append("<date>02/10/2002 14:30:10\n");

yy=final.c_str();
u=strlen(yy);

for(i=0;i<=u;i++)
{
printf("%c %d\n",yy[i],yy[i]);
}

}
===========================================
[CODE]

Kindly help!!
Many Thanks,
John
GeneralRe: Non Printing Characters Pin
Dominik Reichl9-Dec-02 22:47
Dominik Reichl9-Dec-02 22:47 
GeneralRe: Non Printing Characters Pin
John Bosko9-Dec-02 23:09
John Bosko9-Dec-02 23:09 
GeneralRe: Non Printing Characters Pin
jhwurmbach9-Dec-02 23:23
jhwurmbach9-Dec-02 23:23 
GeneralRe: Non Printing Characters Pin
jhwurmbach9-Dec-02 23:29
jhwurmbach9-Dec-02 23:29 
GeneralRe: Non Printing Characters Pin
Dominik Reichl10-Dec-02 2:33
Dominik Reichl10-Dec-02 2:33 
GeneralRe: Non Printing Characters Pin
John Bosko10-Dec-02 18:36
John Bosko10-Dec-02 18:36 
GeneralRe: Non Printing Characters Pin
John Bosko10-Dec-02 18:47
John Bosko10-Dec-02 18:47 
QuestionRuntime Error?? Pin
MVH9-Dec-02 20:48
MVH9-Dec-02 20:48 
AnswerRe: Runtime Error?? Pin
KarstenK9-Dec-02 21:29
mveKarstenK9-Dec-02 21:29 
QuestionHow to get the caller of a fuction? Pin
Lizp9-Dec-02 20:31
Lizp9-Dec-02 20:31 
AnswerRe: How to get the caller of a fuction? Pin
MVH9-Dec-02 21:08
MVH9-Dec-02 21:08 
GeneralRe: How to get the caller of a fuction? Pin
Lizp9-Dec-02 21:26
Lizp9-Dec-02 21:26 
AnswerRe: How to get the caller of a fuction? Pin
Daniel Turini9-Dec-02 21:22
Daniel Turini9-Dec-02 21:22 
AnswerRe: How to get the caller of a fuction? Pin
David Chamberlain10-Dec-02 3:09
David Chamberlain10-Dec-02 3:09 
Generalnew user of vc++ Pin
Rajes9-Dec-02 20:15
Rajes9-Dec-02 20:15 
GeneralRe: new user of vc++ Pin
User 66589-Dec-02 20:39
User 66589-Dec-02 20:39 
GeneralRe: new user of vc++ Pin
Rickard Andersson209-Dec-02 20:53
Rickard Andersson209-Dec-02 20:53 

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.