Click here to Skip to main content
15,887,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: long long with swprintf / Win32 Pin
KingsGambit25-Apr-10 16:53
KingsGambit25-Apr-10 16:53 
QuestionImage change detection Pin
trungkiendt825-Apr-10 8:29
trungkiendt825-Apr-10 8:29 
AnswerRe: Image change detection Pin
Fareed Rizkalla25-Apr-10 8:40
Fareed Rizkalla25-Apr-10 8:40 
GeneralRe: Image change detection Pin
trungkiendt825-Apr-10 9:01
trungkiendt825-Apr-10 9:01 
AnswerRe: Image change detection Pin
Alan Balkany26-Apr-10 5:08
Alan Balkany26-Apr-10 5:08 
QuestionAll reports lead to the same thing. Pin
Frank Robertson25-Apr-10 7:17
Frank Robertson25-Apr-10 7:17 
AnswerRe: All reports lead to the same thing. Pin
Frank Robertson25-Apr-10 7:19
Frank Robertson25-Apr-10 7:19 
AnswerRe: All reports lead to the same thing. Pin
Luc Pattyn25-Apr-10 7:30
sitebuilderLuc Pattyn25-Apr-10 7:30 
Hi,

probably lots of problems in your code; I didn't look at it in any detail as there is a lot of it and it is badly formatted. Next time use PRE tags so it gets to preserve its original formatting and indentation, and gets shown in a non-proportional font, with syntax coloring.

if(cardNum9 == 8 || 21 || 34 || 47) is not what you want; you mean
if(cardNum9 == 8 || cardNum9 == 21 || cardNum9 == 34 || cardNum9 == 47)

which you probably could write as just if((cardNum9 % 13) == 8)

Whay you wrote is ORing all the numbers, treating them as booleans, hence the result is always 1 (unless all your numbers were 0).

Strong suggestion: if you are familiar with arrays, start using them right now. You can do what you have with one fifth of the code you have now, and less code means less trouble and fewer bugs. You will waste a lot of time by not using arrays!

and why is it %51 and not %52???????????????

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


modified on Sunday, April 25, 2010 1:44 PM

GeneralRe: All reports lead to the same thing. Pin
Frank Robertson25-Apr-10 8:14
Frank Robertson25-Apr-10 8:14 
GeneralRe: All reports lead to the same thing. Pin
Luc Pattyn25-Apr-10 8:17
sitebuilderLuc Pattyn25-Apr-10 8:17 
AnswerRe: All reports lead to the same thing. Pin
Chris Losinger25-Apr-10 8:25
professionalChris Losinger25-Apr-10 8:25 
AnswerRe: All reports lead to the same thing. Pin
CPallini25-Apr-10 21:05
mveCPallini25-Apr-10 21:05 
QuestionTemplate: how to detect type Pin
428825-Apr-10 2:04
428825-Apr-10 2:04 
AnswerRe: Template: how to detect type Pin
Code-o-mat25-Apr-10 3:03
Code-o-mat25-Apr-10 3:03 
AnswerRe: Template: how to detect type Pin
Richard MacCutchan25-Apr-10 3:07
mveRichard MacCutchan25-Apr-10 3:07 
AnswerRe: Template: how to detect type Pin
Saurabh.Garg25-Apr-10 3:42
Saurabh.Garg25-Apr-10 3:42 
AnswerRe: Template: how to detect type Pin
«_Superman_»25-Apr-10 6:55
professional«_Superman_»25-Apr-10 6:55 
AnswerRe: Template: how to detect type Pin
Stuart Dootson25-Apr-10 13:04
professionalStuart Dootson25-Apr-10 13:04 
GeneralRe: Template: how to detect type Pin
428826-Apr-10 2:53
428826-Apr-10 2:53 
AnswerRe: Template: how to detect type Pin
Moak26-Apr-10 4:53
Moak26-Apr-10 4:53 
QuestionESTREAMIN carriage return Pin
ForNow24-Apr-10 21:52
ForNow24-Apr-10 21:52 
AnswerRe: ESTREAMIN carriage return Pin
Stuart Dootson25-Apr-10 1:31
professionalStuart Dootson25-Apr-10 1:31 
GeneralRe: ESTREAMIN carriage return Pin
ForNow25-Apr-10 2:17
ForNow25-Apr-10 2:17 
Questionhow to get the filepath which is selected? Pin
kobe893624-Apr-10 20:57
kobe893624-Apr-10 20:57 
AnswerRe: how to get the filepath which is selected? Pin
Code-o-mat24-Apr-10 22:16
Code-o-mat24-Apr-10 22:16 

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.