Click here to Skip to main content
16,016,795 members
Home / Discussions / C#
   

C#

 
QuestionUse Findcontrol Pin
pariisa6-Aug-07 11:30
pariisa6-Aug-07 11:30 
AnswerRe: Use Findcontrol Pin
Luc Pattyn6-Aug-07 11:33
sitebuilderLuc Pattyn6-Aug-07 11:33 
QuestionLabel Help Pin
RussBus6-Aug-07 10:00
RussBus6-Aug-07 10:00 
AnswerRe: Label Help Pin
Hessam Jalali6-Aug-07 10:12
Hessam Jalali6-Aug-07 10:12 
AnswerRe: Label Help Pin
Dave Kreskowiak6-Aug-07 10:12
mveDave Kreskowiak6-Aug-07 10:12 
AnswerRe: Multi threads accessing database Pin
led mike6-Aug-07 9:14
led mike6-Aug-07 9:14 
Questiontime(NULL) [modified] Pin
Blubbo6-Aug-07 8:28
Blubbo6-Aug-07 8:28 
AnswerRe: time(NULL) Pin
Luc Pattyn6-Aug-07 8:50
sitebuilderLuc Pattyn6-Aug-07 8:50 
Hi,

there would be no problem doing the same in C# if it were a valid and correct C program.

the function time_t time( time_t *timer ); returns current time in seconds;
DateTime.Now can provide that.

there are several problems in the "original" code though:
1. byte is not a keyword in C
2. I would prefer beef to be unsigned since it represents parts of a bigger number
3. the for loop goes to 256, that makes no sense
4. checksum/256 will always be zero; checksum should have been unsigned short.
5. strictly speaking the assignments to beef[] need a cast since it is a downcast

good luck !!




Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: time(NULL) Pin
Hessam Jalali6-Aug-07 9:02
Hessam Jalali6-Aug-07 9:02 
AnswerRe: time(NULL) Pin
Guffa6-Aug-07 13:59
Guffa6-Aug-07 13:59 
GeneralRe: time(NULL) Pin
Blubbo7-Aug-07 1:46
Blubbo7-Aug-07 1:46 
AnswerRe: time(NULL) Pin
Guffa7-Aug-07 7:07
Guffa7-Aug-07 7:07 
GeneralRe: time(NULL) Pin
Blubbo7-Aug-07 7:12
Blubbo7-Aug-07 7:12 
AnswerRe: time(NULL) Pin
Guffa7-Aug-07 12:22
Guffa7-Aug-07 12:22 
GeneralRe: time(NULL) Pin
Blubbo8-Aug-07 4:29
Blubbo8-Aug-07 4:29 
QuestionSkinning C# Pin
mcaos6-Aug-07 8:06
professionalmcaos6-Aug-07 8:06 
AnswerRe: Skinning C# Pin
Spyder_Snyper6-Aug-07 8:19
Spyder_Snyper6-Aug-07 8:19 
GeneralRe: Skinning C# [modified] Pin
mcaos6-Aug-07 9:50
professionalmcaos6-Aug-07 9:50 
GeneralRe: Skinning C# Pin
Spyder_Snyper6-Aug-07 11:06
Spyder_Snyper6-Aug-07 11:06 
GeneralRe: Skinning C# Pin
mcaos6-Aug-07 11:09
professionalmcaos6-Aug-07 11:09 
GeneralRe: Skinning C# Pin
Justin Perez6-Aug-07 11:15
Justin Perez6-Aug-07 11:15 
GeneralRe: Skinning C# Pin
mcaos6-Aug-07 11:19
professionalmcaos6-Aug-07 11:19 
Questionsave and open issues! please help! Pin
oyams906-Aug-07 7:41
oyams906-Aug-07 7:41 
GeneralRe: save and open issues! please help! Pin
Hessam Jalali6-Aug-07 8:17
Hessam Jalali6-Aug-07 8:17 
AnswerRe: save and open issues! please help! Pin
Spyder_Snyper6-Aug-07 8:17
Spyder_Snyper6-Aug-07 8:17 

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.