Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
QuestionEnterprise library log to Oracle Pin
V.11-Aug-11 21:17
professionalV.11-Aug-11 21:17 
QuestionSelecting parts of an uint so always the same size? Pin
stephen.darling11-Aug-11 19:11
stephen.darling11-Aug-11 19:11 
AnswerRe: Selecting parts of an uint so always the same size? Pin
Peter_in_278011-Aug-11 19:38
professionalPeter_in_278011-Aug-11 19:38 
GeneralRe: Selecting parts of an uint so always the same size? Pin
stephen.darling11-Aug-11 19:45
stephen.darling11-Aug-11 19:45 
AnswerRe: Selecting parts of an uint so always the same size? Pin
David198711-Aug-11 22:24
David198711-Aug-11 22:24 
AnswerRe: Selecting parts of an uint so always the same size? Pin
BobJanova11-Aug-11 23:19
BobJanova11-Aug-11 23:19 
AnswerRe: Selecting parts of an uint so always the same size? Pin
Lutosław11-Aug-11 23:40
Lutosław11-Aug-11 23:40 
GeneralRe: Selecting parts of an uint so always the same size? Pin
stephen.darling12-Aug-11 0:21
stephen.darling12-Aug-11 0:21 
Thank you everyone. If I explain my requirements maybe it will help.

I am generating a serial number in the following format:

00000-00000-00000-00000


I pass in two values into the serialGenerator class

int ProductID // Represents the product, hard-coded

int ProductVersion


I then combine these into one int value, say for example 12345123

Then I get the hex byte array representing this value, and hash it.

I then take 2 bytes of the hash from predetermined positions.

Then, I need to perform the bitwise so that I take a fixed part of teh new int value, which will always be 5 digits (first part of the serial number)

Generating the rest I have figured out.

Hope this clears things Smile | :)

Regards,
Stephen
GeneralRe: Selecting parts of an uint so always the same size? Pin
jschell12-Aug-11 8:44
jschell12-Aug-11 8:44 
GeneralRe: Selecting parts of an uint so always the same size? Pin
stephen.darling12-Aug-11 9:04
stephen.darling12-Aug-11 9:04 
QuestionOnClosing event doesn't work Pin
MAW3011-Aug-11 11:28
MAW3011-Aug-11 11:28 
AnswerRe: OnClosing event doesn't work Pin
Alan N11-Aug-11 12:50
Alan N11-Aug-11 12:50 
Questionhot to transfer from FTP to local directory on my computer in C# Pin
Gali197811-Aug-11 10:45
Gali197811-Aug-11 10:45 
QuestionUploading File from Client to Server Pin
akosidandan11-Aug-11 9:11
akosidandan11-Aug-11 9:11 
AnswerRe: Uploading File from Client to Server Pin
Not Active11-Aug-11 9:40
mentorNot Active11-Aug-11 9:40 
GeneralRe: Uploading File from Client to Server Pin
akosidandan11-Aug-11 16:19
akosidandan11-Aug-11 16:19 
Generalauthenticate in activeMQ using Spring.Nmstemplate in .net Pin
alfhv11-Aug-11 5:34
alfhv11-Aug-11 5:34 
QuestionUSB current value with C# Pin
yury dorofeev11-Aug-11 5:23
yury dorofeev11-Aug-11 5:23 
QuestionC# OOP: sub-property? Pin
Goalie3511-Aug-11 5:12
Goalie3511-Aug-11 5:12 
GeneralRe: C# OOP: sub-property? PinPopular
David198711-Aug-11 5:16
David198711-Aug-11 5:16 
GeneralRe: C# OOP: sub-property? Pin
Pete O'Hanlon11-Aug-11 9:27
mvePete O'Hanlon11-Aug-11 9:27 
GeneralRe: C# OOP: sub-property? Pin
David198711-Aug-11 21:09
David198711-Aug-11 21:09 
GeneralRe: C# OOP: sub-property? Pin
Shameel11-Aug-11 22:26
professionalShameel11-Aug-11 22:26 
AnswerRe: C# OOP: sub-property? PinPopular
Pete O'Hanlon11-Aug-11 5:23
mvePete O'Hanlon11-Aug-11 5:23 
AnswerRe: C# OOP: sub-property? Pin
PIEBALDconsult15-Aug-11 3:05
mvePIEBALDconsult15-Aug-11 3:05 

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.