Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart16-Mar-02 9:48
Lockhart16-Mar-02 9:48 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Neville Franks16-Mar-02 9:53
Neville Franks16-Mar-02 9:53 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart16-Mar-02 11:13
Lockhart16-Mar-02 11:13 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Neville Franks16-Mar-02 11:19
Neville Franks16-Mar-02 11:19 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Tim Smith16-Mar-02 12:05
Tim Smith16-Mar-02 12:05 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Neville Franks16-Mar-02 12:28
Neville Franks16-Mar-02 12:28 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Tim Smith16-Mar-02 12:57
Tim Smith16-Mar-02 12:57 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart16-Mar-02 22:56
Lockhart16-Mar-02 22:56 
I have a little experience with ASM, learnt at Uni and played at home, I'll give a look at it but maybe another problem has come out.

I have installed WinXP few weeks ago and I notice that no symbols are found during debugging. Maybe I have to download this 150MB package from MS site (windowsxp.x86.fre.rtm.symbols.exe)

Another strange thing appened: if I put AfxMessageBox(s1) before strcpy(), the bug vanishes:

void Buggy( char* result )
{
char s1[6];
char s2[5];

strcpy(s1,"abcde");
strcpy(s2,"BUG!");

AfxMessageBox(s1);

// DOESNT WORK
strcpy(result,"anystring");
strcat(result,s1);
}

It displays "abcde" and 'result' is filled with "anystringabcde". If I comment out AfxMessageBox(s1) 'result' is filled with "anystringBUG!".

I have made several programs, some little, others bigger, but I had never seen these strange beahviours, especially because on other PCs compiles fine. I must admit that I'm not expert in debugging, I prefer to proceed slowly, and run the program just after having added/removed some lines of code.

Lately I have installed and removed MySQL, MSDE, various ServicePacks, maybe something has been wrong and I didn't notice.
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Neville Franks18-Mar-02 0:29
Neville Franks18-Mar-02 0:29 
GeneralFixed.... Pin
Lockhart22-Mar-02 9:18
Lockhart22-Mar-02 9:18 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Stan Shannon16-Mar-02 1:59
Stan Shannon16-Mar-02 1:59 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart16-Mar-02 2:22
Lockhart16-Mar-02 2:22 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Stan Shannon16-Mar-02 2:45
Stan Shannon16-Mar-02 2:45 
GeneralRe: Are you running the latest VC6? Pin
Tim Smith16-Mar-02 3:39
Tim Smith16-Mar-02 3:39 
GeneralRe: Are you running the latest VC6? Pin
Lockhart16-Mar-02 4:39
Lockhart16-Mar-02 4:39 
GeneralDouble Click on List Control Pin
15-Mar-02 22:35
suss15-Mar-02 22:35 
GeneralRe: Double Click on List Control Pin
Christopher Duncan16-Mar-02 7:40
Christopher Duncan16-Mar-02 7:40 
GeneralRe: Double Click on List Control Pin
Derek Waters17-Mar-02 12:36
Derek Waters17-Mar-02 12:36 
GeneralPlaySound and SND_RESOURCE Pin
Rickard Andersson2015-Mar-02 21:48
Rickard Andersson2015-Mar-02 21:48 
QuestionHow to create multithread? Pin
15-Mar-02 21:23
suss15-Mar-02 21:23 
AnswerRe: How to create multithread? Pin
Mazdak15-Mar-02 21:37
Mazdak15-Mar-02 21:37 
GeneralRe: How to create multithread? Pin
15-Mar-02 21:45
suss15-Mar-02 21:45 
GeneralRe: How to create multithread? Pin
Nish Nishant15-Mar-02 22:13
sitebuilderNish Nishant15-Mar-02 22:13 
GeneralRe: How to create multithread? Any example? Pin
16-Mar-02 6:53
suss16-Mar-02 6:53 
QuestionClient/Server programming over internet??? Pin
Rickard Andersson2015-Mar-02 20:47
Rickard Andersson2015-Mar-02 20:47 

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.