Click here to Skip to main content
15,889,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inline Assembly Pin
hph22-Jan-04 3:23
hph22-Jan-04 3:23 
GeneralRe: Inline Assembly Pin
David Crow22-Jan-04 3:45
David Crow22-Jan-04 3:45 
QuestionHow to tell if a file is open by someone else Pin
GeraldoLuiz22-Jan-04 0:51
GeraldoLuiz22-Jan-04 0:51 
AnswerRe: How to tell if a file is open by someone else Pin
фил22-Jan-04 2:35
фил22-Jan-04 2:35 
GeneralRe: How to tell if a file is open by someone else Pin
basementman22-Jan-04 12:02
basementman22-Jan-04 12:02 
Generalcopy exe file to remote system Pin
skpanda22-Jan-04 0:43
skpanda22-Jan-04 0:43 
GeneralRe: copy exe file to remote system Pin
David Crow22-Jan-04 2:56
David Crow22-Jan-04 2:56 
QuestionBug in C++ ???? Pin
GDavy21-Jan-04 23:39
GDavy21-Jan-04 23:39 
Hello guys,

I think there is a bug in C++.
I had a very strange bug in my app but I fixed it..
What happened was somewhere in my code I wrote:

CString sTemp;
...//doStuff
sTemp = ((A_INTEGER == myObj.GetIntValue())? GetString("1"):GetString("2"));

...do more stuff

What happened now was that I used that sTemp string to put text in a list-control...
when I used the statement shown above and R1C2(Row1Column2) was filled with GetString("2") and R2C2 was filled with GetString("1") then in R1C5 the leftmost character was deduced by 1... When also R3C2 was filled with GetString("2") then R1C5 was deduced by 2 and so on...
in the other way no bug appeared....

The ONLY change I made in the code was that I replaced the line:`
sTemp = ((A_INTEGER == myObj.GetIntValue())? GetString("1"):GetString("2"));
with:
if(A_INTEGER == myObj.GetIntValue())
sTemp = GetString("1");
else
sTemp = GetString("2");
Which is still basically the same thing just in a different notation...
Does anyone know why this bug appeared?????

Any comments are welcome....

Greetings,
A puzzled programmer....

AnswerRe: Bug in C++ ???? Pin
фил22-Jan-04 2:42
фил22-Jan-04 2:42 
GeneralNetworking on Windows 9x/ME Pin
YanezDeGomeyra21-Jan-04 23:01
YanezDeGomeyra21-Jan-04 23:01 
GeneralRe: Networking on Windows 9x/ME Pin
Mukkie25-Jan-04 8:16
Mukkie25-Jan-04 8:16 
Questionhow to make CButton with bgcolor and a icon Pin
angu selvam21-Jan-04 22:53
angu selvam21-Jan-04 22:53 
AnswerRe: how to make CButton with bgcolor and a icon Pin
wb22-Jan-04 0:04
wb22-Jan-04 0:04 
GeneralFindFirstChangeNotification Pin
Rob Caldecott21-Jan-04 22:32
Rob Caldecott21-Jan-04 22:32 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson21-Jan-04 23:37
protectorRob Manderson21-Jan-04 23:37 
GeneralRe: FindFirstChangeNotification Pin
Rob Caldecott21-Jan-04 23:56
Rob Caldecott21-Jan-04 23:56 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson22-Jan-04 0:11
protectorRob Manderson22-Jan-04 0:11 
GeneralRe: FindFirstChangeNotification Pin
Rob Caldecott22-Jan-04 0:23
Rob Caldecott22-Jan-04 0:23 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson22-Jan-04 0:33
protectorRob Manderson22-Jan-04 0:33 
GeneralRe: FindFirstChangeNotification Pin
basementman22-Jan-04 12:08
basementman22-Jan-04 12:08 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson22-Jan-04 12:35
protectorRob Manderson22-Jan-04 12:35 
GeneralRe: FindFirstChangeNotification Pin
basementman23-Jan-04 4:21
basementman23-Jan-04 4:21 
GeneralRe: FindFirstChangeNotification Pin
Yogurt22-Jan-04 0:01
Yogurt22-Jan-04 0:01 
Questiontoolbar on CDialogBar??? Pin
Balkrishna Talele21-Jan-04 22:23
Balkrishna Talele21-Jan-04 22:23 
GeneralPlease help Pin
30jenny21-Jan-04 22:21
30jenny21-Jan-04 22:21 

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.