Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
GeneralRe: Load Assembly given a namespace Pin
Dave Kreskowiak3-Mar-08 9:42
mveDave Kreskowiak3-Mar-08 9:42 
GeneralWindows Service and guidance Pin
Saamir3-Mar-08 6:52
Saamir3-Mar-08 6:52 
Question.Net version of depends? Pin
Russell Jones3-Mar-08 5:52
Russell Jones3-Mar-08 5:52 
AnswerRe: .Net version of depends? Pin
Ed.Poore3-Mar-08 8:02
Ed.Poore3-Mar-08 8:02 
AnswerRe: .Net version of depends? Pin
Dave Kreskowiak3-Mar-08 9:39
mveDave Kreskowiak3-Mar-08 9:39 
GeneralRe: .Net version of depends? Pin
Russell Jones3-Mar-08 22:49
Russell Jones3-Mar-08 22:49 
Generaldatabind myTextbox.Text to myXmlElement.Value Pin
buchstaben3-Mar-08 4:42
buchstaben3-Mar-08 4:42 
QuestionGetManifestResource problem Pin
JustRonald3-Mar-08 4:36
JustRonald3-Mar-08 4:36 
Hello,

I'm building an application which has an option to play a sound with the extern PlaySound method.
With the code below the PlaySound method is working
<br />
string fileName = @"C:\Documents and Settings\User\My documents\Visual Studio 2005\Projects\Alarm\Alarm\Resources\attention.wav";<br />
PlaySound(fileName, 0, 1);<br />


If I execute the program on an other computer the path will be different. So I need an function that will get the .wav file from my folder Resources. The standard way to access an embedded resource is to use the Assembly class's GetManifestResource* methods. But I can't get it to work properly.

This is proberly a very stupid question but i'm just a beginner and can't figure it out.
Can someone please help me out?

Thanks
GeneralRe: GetManifestResource problem Pin
led mike3-Mar-08 5:02
led mike3-Mar-08 5:02 
GeneralRe: GetManifestResource problem [modified] Pin
DaveyM693-Mar-08 6:07
professionalDaveyM693-Mar-08 6:07 
GeneralRe: GetManifestResource problem Pin
Giorgi Dalakishvili3-Mar-08 6:20
mentorGiorgi Dalakishvili3-Mar-08 6:20 
GeneralRe: GetManifestResource problem Pin
DaveyM693-Mar-08 8:51
professionalDaveyM693-Mar-08 8:51 
GeneralRe: GetManifestResource problem Pin
ADLER13-Mar-08 11:24
ADLER13-Mar-08 11:24 
GeneralMonth and year control Pin
Yulianto.3-Mar-08 3:40
Yulianto.3-Mar-08 3:40 
GeneralRe: Month and year control Pin
Pete O'Hanlon3-Mar-08 3:46
mvePete O'Hanlon3-Mar-08 3:46 
GeneralRe: Month and year control Pin
Yulianto.3-Mar-08 3:49
Yulianto.3-Mar-08 3:49 
GeneralRe: Month and year control Pin
Pete O'Hanlon3-Mar-08 4:18
mvePete O'Hanlon3-Mar-08 4:18 
GeneralRe: Month and year control Pin
Yulianto.3-Mar-08 4:24
Yulianto.3-Mar-08 4:24 
GeneralRe: Month and year control Pin
Pete O'Hanlon3-Mar-08 5:04
mvePete O'Hanlon3-Mar-08 5:04 
GeneralRe: Month and year control Pin
PIEBALDconsult3-Mar-08 8:45
mvePIEBALDconsult3-Mar-08 8:45 
GeneralRetrieving text at a specific index from a text file Pin
jimmy2shoes3-Mar-08 3:21
jimmy2shoes3-Mar-08 3:21 
AnswerRe: Retrieving text at a specific index from a text file Pin
Eslam Afifi3-Mar-08 6:12
Eslam Afifi3-Mar-08 6:12 
Questionhow to add database fields dynamically to a crystal report in .net 2005 #1 Pin
Member 36683083-Mar-08 2:07
Member 36683083-Mar-08 2:07 
QuestionDatagridview, disable row selection Pin
alexander_perdum3-Mar-08 1:44
alexander_perdum3-Mar-08 1:44 
GeneralRe: Datagridview, disable row selection Pin
Xmen Real 3-Mar-08 4:51
professional Xmen Real 3-Mar-08 4:51 

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.