Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Back with base10, an example code. Hopefully I can exaplain now Pin
stephen.darling16-Sep-10 4:32
stephen.darling16-Sep-10 4:32 
AnswerRe: Back with base10, an example code. Hopefully I can exaplain now Pin
David Skelly15-Sep-10 22:41
David Skelly15-Sep-10 22:41 
I know this is off topic, but am I missing something here?

This piece of code caught my eye:


if (strlen(InstID) != 58)
    fprintf(stderr, "Warning: Installation ID has non-standard length.\n");
if (strlen(InstID) % 7 < 2)
{
    fprintf(stderr, "Installation ID has invalid length.\n");	
    return -1;
}


My C++ is a bit rusty but why do that? Surely, the second if statement will always be true if the first one is false.
GeneralRe: Back with base10, an example code. Hopefully I can exaplain now Pin
Bassam Abdul-Baki16-Sep-10 3:25
professionalBassam Abdul-Baki16-Sep-10 3:25 
GeneralRe: Back with base10, an example code. Hopefully I can exaplain now Pin
David Skelly16-Sep-10 5:58
David Skelly16-Sep-10 5:58 
QuestionTCPIP client server communications Pin
dwolver15-Sep-10 3:03
dwolver15-Sep-10 3:03 
AnswerMessage Closed Pin
15-Sep-10 3:33
stancrm15-Sep-10 3:33 
GeneralRe: TCPIP client server communications Pin
dwolver15-Sep-10 4:34
dwolver15-Sep-10 4:34 
QuestionI'm trying to get a Session and redirect in Globa.asax Pin
luiz sync15-Sep-10 2:13
luiz sync15-Sep-10 2:13 
AnswerRe: I'm trying to get a Session and redirect in Globa.asax Pin
Calla15-Sep-10 2:42
Calla15-Sep-10 2:42 
Questionsetup and unistall Pin
tomorrow_ft15-Sep-10 2:03
tomorrow_ft15-Sep-10 2:03 
AnswerRe: setup and unistall Pin
Calla15-Sep-10 2:36
Calla15-Sep-10 2:36 
GeneralRe: setup and unistall Pin
tomorrow_ft15-Sep-10 2:48
tomorrow_ft15-Sep-10 2:48 
GeneralRe: setup and unistall Pin
tomorrow_ft15-Sep-10 3:03
tomorrow_ft15-Sep-10 3:03 
GeneralRe: setup and unistall Pin
Calla15-Sep-10 22:47
Calla15-Sep-10 22:47 
GeneralRe: setup and unistall Pin
tomorrow_ft16-Sep-10 1:23
tomorrow_ft16-Sep-10 1:23 
GeneralRe: setup and unistall Pin
Calla16-Sep-10 2:48
Calla16-Sep-10 2:48 
GeneralRe: setup and unistall Pin
tomorrow_ft16-Sep-10 3:24
tomorrow_ft16-Sep-10 3:24 
GeneralRe: setup and unistall Pin
Calla16-Sep-10 3:31
Calla16-Sep-10 3:31 
QuestionEmbedding Dependancies in C# Excel Workbook Pin
Grimes14-Sep-10 23:33
Grimes14-Sep-10 23:33 
QuestionLarge ncb file in a C# project Pin
Bernhard Hiller14-Sep-10 22:14
Bernhard Hiller14-Sep-10 22:14 
AnswerRe: Large ncb file in a C# project Pin
_AnsHUMAN_ 14-Sep-10 22:18
_AnsHUMAN_ 14-Sep-10 22:18 
GeneralRe: Large ncb file in a C# project Pin
Bernhard Hiller15-Sep-10 2:09
Bernhard Hiller15-Sep-10 2:09 
AnswerRe: Large ncb file in a C# project Pin
fjdiewornncalwe16-Sep-10 2:06
professionalfjdiewornncalwe16-Sep-10 2:06 
QuestionThread and Webbrowser Control- Want to Create webbrowser on the fly(runtime) Pin
yogeshcgs14-Sep-10 20:34
yogeshcgs14-Sep-10 20:34 
AnswerRe: Thread and Webbrowser Control- Want to Create webbrowser on the fly(runtime) Pin
Dave Kreskowiak15-Sep-10 2:16
mveDave Kreskowiak15-Sep-10 2: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.