Click here to Skip to main content
15,894,090 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interop - Marshaling nested structs Pin
Nathan Tran3-Mar-03 11:56
Nathan Tran3-Mar-03 11:56 
GeneralRe: Interop - Marshaling nested structs Pin
leppie4-Mar-03 7:03
leppie4-Mar-03 7:03 
GeneralHowto: image to byte array Pin
Smitha Nishant2-Mar-03 18:56
protectorSmitha Nishant2-Mar-03 18:56 
GeneralRe: Howto: image to byte array Pin
Jeff J2-Mar-03 21:26
Jeff J2-Mar-03 21:26 
GeneralRe: Howto: image to byte array Pin
Smitha Nishant2-Mar-03 22:10
protectorSmitha Nishant2-Mar-03 22:10 
General***capturing image from video*** Pin
henrykao2-Mar-03 18:37
henrykao2-Mar-03 18:37 
QuestionCan you use resources to embed a wav? Pin
jtmtv182-Mar-03 13:48
jtmtv182-Mar-03 13:48 
AnswerRe: Can you use resources to embed a wav? Pin
leppie3-Mar-03 8:02
leppie3-Mar-03 8:02 
jtmtv18 wrote:
can you embed a wav inside a resouce file somehow ? also is it possible to PInvoke the "error" sound that accompanies a MessageBox with the MessageBoxIcon.Error property set ?

The embedding is easy, just add the wav to your project and set it embedded content, the use Assembly.GetManufestResourceStream("namespace.filename.ext") to get a stream object from this.

Playing it. The is a nice article of CP that shows you how to play wave file with P/Invoke. Let me know if you need help loading from memory.

Cheers Smile | :)

I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
GeneralRe: Can you use resources to embed a wav? Pin
jtmtv183-Mar-03 8:32
jtmtv183-Mar-03 8:32 
GeneralRe: Can you use resources to embed a wav? Pin
leppie4-Mar-03 6:57
leppie4-Mar-03 6:57 
GeneralAeru IRC is looking for developpers and artist Pin
Shock The Dark Mage2-Mar-03 12:46
Shock The Dark Mage2-Mar-03 12:46 
GeneralRe: Aeru IRC is looking for developpers and artist Pin
jtmtv183-Mar-03 19:17
jtmtv183-Mar-03 19:17 
GeneralRe: Aeru IRC is looking for developpers and artist Pin
Shock The Dark Mage5-Mar-03 15:47
Shock The Dark Mage5-Mar-03 15:47 
GeneralFlattening The TreeView... Pin
LokiSD2-Mar-03 10:26
LokiSD2-Mar-03 10:26 
GeneralRe: Flattening The TreeView... Pin
LokiSD3-Mar-03 7:42
LokiSD3-Mar-03 7:42 
GeneralRe: Flattening The TreeView... Pin
Furty4-Mar-03 1:49
Furty4-Mar-03 1:49 
GeneralRe: Flattening The TreeView... Pin
LokiSD5-Mar-03 6:51
LokiSD5-Mar-03 6:51 
GeneralRe: Flattening The TreeView... Pin
Furty5-Mar-03 12:06
Furty5-Mar-03 12:06 
GeneralRe: Flattening The TreeView... Pin
Furty5-Mar-03 13:23
Furty5-Mar-03 13:23 
GeneralSnapshot Pin
Calamitous2-Mar-03 3:39
Calamitous2-Mar-03 3:39 
GeneralRe: Snapshot Pin
Jon Newman2-Mar-03 4:57
Jon Newman2-Mar-03 4:57 
GeneralProblem with Windows Installer Pin
Sassan Komeili Zadeh2-Mar-03 3:03
Sassan Komeili Zadeh2-Mar-03 3:03 
GeneralRe: Problem with Windows Installer Pin
Jon Newman2-Mar-03 4:27
Jon Newman2-Mar-03 4:27 
GeneralRe: Problem with Windows Installer Pin
Sassan Komeili Zadeh3-Mar-03 20:22
Sassan Komeili Zadeh3-Mar-03 20:22 
GeneralRe: Problem with Windows Installer Pin
Paul Riley2-Mar-03 5:15
Paul Riley2-Mar-03 5:15 

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.