Click here to Skip to main content
15,915,164 members
Home / Discussions / C#
   

C#

 
AnswerRe: Executable Pin
Vikram A Punathambekar21-Dec-05 1:19
Vikram A Punathambekar21-Dec-05 1:19 
AnswerRe: Executable Pin
Vikram A Punathambekar21-Dec-05 1:19
Vikram A Punathambekar21-Dec-05 1:19 
GeneralRe: Executable Pin
J4amieC21-Dec-05 3:23
J4amieC21-Dec-05 3:23 
GeneralRe: Executable Pin
Vikram A Punathambekar21-Dec-05 16:17
Vikram A Punathambekar21-Dec-05 16:17 
QuestionUser Controls access Page variable Pin
vinyladdict21-Dec-05 0:00
vinyladdict21-Dec-05 0:00 
QuestionGUI Question Pin
HolyGrandFather20-Dec-05 23:04
HolyGrandFather20-Dec-05 23:04 
AnswerRe: GUI Question Pin
WetRivrRat21-Dec-05 6:32
WetRivrRat21-Dec-05 6:32 
QuestionReverse Engineering Added Numbers Pin
redfish3420-Dec-05 22:41
redfish3420-Dec-05 22:41 
A function adds values in different combinations and returns the sum. Below is a list of values it uses. How do i extract the values that were added together? Example, say the function returns 10. Mentally i can extract the values 8 and 2, and figure out that 10 represents a "16bit" "WAV". How do i do the same in code?

int WAV = 8;
int 24bit = 4;
int 16bit = 2;
int 8bit = 1;

The above value list is hypothetical. The real numbers i am working with are like the ones below. They come from an open source project called libsndfile.

SF_FORMAT_WAV = 0x010000, // Microsoft WAV format (little endian):
SF_FORMAT_PCM_S8 = 0x0001, // Signed 8 bit data
SF_FORMAT_PCM_16 = 0x0002, // Signed 16 bit data
SF_FORMAT_PCM_24 = 0x0003, // Signed 24 bit data
SF_FORMAT_PCM_32 = 0x0004, // Signed 32 bit data

Happy Holidays

AnswerRe: Reverse Engineering Added Numbers Pin
Colin Angus Mackay20-Dec-05 22:49
Colin Angus Mackay20-Dec-05 22:49 
GeneralRe: Reverse Engineering Added Numbers Pin
J4amieC20-Dec-05 22:59
J4amieC20-Dec-05 22:59 
GeneralRe: Reverse Engineering Added Numbers Pin
Colin Angus Mackay20-Dec-05 23:04
Colin Angus Mackay20-Dec-05 23:04 
GeneralThanks Pin
redfish3423-Dec-05 1:22
redfish3423-Dec-05 1:22 
QuestionStruct of array Pin
peppepinna20-Dec-05 22:32
peppepinna20-Dec-05 22:32 
AnswerRe: Struct of array Pin
Colin Angus Mackay20-Dec-05 22:41
Colin Angus Mackay20-Dec-05 22:41 
GeneralRe: Struct of array Pin
peppepinna20-Dec-05 22:56
peppepinna20-Dec-05 22:56 
GeneralRe: Struct of array Pin
peppepinna20-Dec-05 23:08
peppepinna20-Dec-05 23:08 
GeneralRe: Struct of array Pin
Colin Angus Mackay20-Dec-05 23:13
Colin Angus Mackay20-Dec-05 23:13 
AnswerRe: Struct of array Pin
Colin Angus Mackay20-Dec-05 23:12
Colin Angus Mackay20-Dec-05 23:12 
GeneralRe: Struct of array Pin
peppepinna20-Dec-05 23:17
peppepinna20-Dec-05 23:17 
QuestionContinuous update of PrintPreviewControl Pin
lclarsen20-Dec-05 21:52
lclarsen20-Dec-05 21:52 
AnswerRe: Continuous update of PrintPreviewControl Pin
tatchung20-Dec-05 22:41
tatchung20-Dec-05 22:41 
GeneralRe: Continuous update of PrintPreviewControl Pin
lclarsen21-Dec-05 0:48
lclarsen21-Dec-05 0:48 
QuestionDraw in application using c# Pin
Mahi.Ragava20-Dec-05 21:28
Mahi.Ragava20-Dec-05 21:28 
AnswerRe: Draw in application using c# Pin
Bassam Saoud21-Dec-05 23:27
Bassam Saoud21-Dec-05 23:27 
GeneralRe: Draw in application using c# Pin
Mahi.Ragava21-Dec-05 23:52
Mahi.Ragava21-Dec-05 23:52 

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.