Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: fsdffsfsa Pin
Luis Alonso Ramos17-May-05 19:34
Luis Alonso Ramos17-May-05 19:34 
GeneralRe: fsdffsfsa Pin
MoustafaS18-May-05 2:18
MoustafaS18-May-05 2:18 
GeneralC# debugging Pin
methodincharge17-May-05 10:34
methodincharge17-May-05 10:34 
GeneralRe: C# debugging Pin
Judah Gabriel Himango17-May-05 11:01
sponsorJudah Gabriel Himango17-May-05 11:01 
GeneralRe: C# debugging Pin
Tom Larsen17-May-05 12:23
Tom Larsen17-May-05 12:23 
GeneralRe: C# debugging Pin
leppie17-May-05 13:54
leppie17-May-05 13:54 
GeneralRe: C# debugging Pin
Tom Larsen18-May-05 4:43
Tom Larsen18-May-05 4:43 
QuestionHelp... ...please? Pin
Anthony Mushrow17-May-05 9:31
professionalAnthony Mushrow17-May-05 9:31 
GRRRR. WORK DAMMIT.

Right so im using this to get files from my rescources:

<br />
ResourceManager rm = new ResourceManager("MyApp", this.GetType().Assembly);<br />
globalvars.HouseImage = (Image)rm.GetObject("house");<br />


Now this works fine for my pictures and whatnot, but im also using DirectX to play my sounds (Damn right i got that working - no SDK)

so its just

<br />
music = new Audio(@"filename");<br />
music.Play();<br />


but how can i play the file in my resources, i cant use:

<br />
globalvars.music = (Audio)rm.GetObject("song");<br />
<br />
//and then<br />
<br />
globalvars.music.Play();<br />


(well the code is accepted but when the app starts i just get the error message)

So HOW CAN I PLAY THE FILE (from my resources and not from an external folder)

and GRRRRRR once again
AnswerRe: Help... ...please? Pin
Judah Gabriel Himango17-May-05 9:53
sponsorJudah Gabriel Himango17-May-05 9:53 
GeneralError Pin
StephenMcAllister17-May-05 8:58
StephenMcAllister17-May-05 8:58 
GeneralRe: Error Pin
Roger Stewart17-May-05 9:08
professionalRoger Stewart17-May-05 9:08 
GeneralRe: Error Pin
StephenMcAllister17-May-05 9:23
StephenMcAllister17-May-05 9:23 
GeneralRe: Error Pin
Tom Larsen17-May-05 12:27
Tom Larsen17-May-05 12:27 
GeneralAdding Icons Pin
Member 156189417-May-05 6:39
Member 156189417-May-05 6:39 
GeneralRe: Adding Icons Pin
Marc Clifton17-May-05 7:44
mvaMarc Clifton17-May-05 7:44 
GeneralRe: Adding Icons Pin
Dave Kreskowiak17-May-05 9:57
mveDave Kreskowiak17-May-05 9:57 
Questionwhere do i wrong with registry key? Pin
Sasuko17-May-05 6:18
Sasuko17-May-05 6:18 
AnswerRe: where do i wrong with registry key? Pin
leppie17-May-05 6:24
leppie17-May-05 6:24 
GeneralRe: where do i wrong with registry key? Pin
Sasuko17-May-05 6:29
Sasuko17-May-05 6:29 
GeneralRe: where do i wrong with registry key? Pin
Sasuko17-May-05 6:36
Sasuko17-May-05 6:36 
AnswerRe: where do i wrong with registry key? Pin
OMalleyW17-May-05 6:28
OMalleyW17-May-05 6:28 
GeneralConvert byte array to bits Pin
Asad Hussain17-May-05 6:04
Asad Hussain17-May-05 6:04 
GeneralRe: Convert byte array to bits Pin
Marc Clifton17-May-05 7:42
mvaMarc Clifton17-May-05 7:42 
GeneralRe: Convert byte array to bits Pin
Asad Hussain17-May-05 8:46
Asad Hussain17-May-05 8:46 
GeneralRe: Convert byte array to bits Pin
Marc Clifton18-May-05 2:09
mvaMarc Clifton18-May-05 2:09 

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.