Click here to Skip to main content
15,914,342 members
Home / Discussions / C#
   

C#

 
QuestionClass Stucture Question Pin
jgallen2324-Oct-05 14:49
jgallen2324-Oct-05 14:49 
AnswerRe: Class Stucture Question Pin
Christian Graus24-Oct-05 15:26
protectorChristian Graus24-Oct-05 15:26 
GeneralRe: Class Stucture Question Pin
jgallen2324-Oct-05 15:35
jgallen2324-Oct-05 15:35 
GeneralRe: Class Stucture Question Pin
Christian Graus24-Oct-05 15:39
protectorChristian Graus24-Oct-05 15:39 
GeneralRe: Class Stucture Question Pin
jgallen2324-Oct-05 16:46
jgallen2324-Oct-05 16:46 
GeneralRe: Class Stucture Question Pin
Christian Graus24-Oct-05 16:47
protectorChristian Graus24-Oct-05 16:47 
Question2 question in C# Pin
Yanshof24-Oct-05 14:33
Yanshof24-Oct-05 14:33 
AnswerRe: 2 question in C# Pin
Christian Graus24-Oct-05 15:24
protectorChristian Graus24-Oct-05 15:24 
yanshof wrote:
Does in C# there is some parallel method that return the ID of the control ?


The base control class has an ID property. The ID is a string, not a number, as it was in C++.

yanshof wrote:
2. I need to load some WAV file and play it in Real Time.
How can i do it in C# ?


Import the PlaySound API using pinvoke, or use Managed DirectSound.

[DllImport("coredll.dll")]

public static extern int PlaySound(

string szSound,
IntPtr hModule,
int flags);



public enum PlaySoundFlags : int {

SND_SYNC = 0x0, // play synchronously (default)
SND_ASYNC = 0x1, // play asynchronously
SND_NODEFAULT = 0x2, // silence (!default) if sound not found
SND_MEMORY = 0x4, // pszSound points to a memory file
SND_LOOP = 0x8, // loop the sound until next sndPlaySound
SND_NOSTOP = 0x10, // don't stop any currently playing sound
SND_NOWAIT = 0x2000, // don't wait if the driver is busy
SND_ALIAS = 0x10000, // name is a registry alias
SND_ALIAS_ID = 0x110000,// alias is a predefined ID
SND_FILENAME = 0x20000, // name is file name
SND_RESOURCE = 0x40004, // name is resource name or atom


};



Christian Graus - Microsoft MVP - C++
QuestionHelp with REGEX match cases Pin
jeweladdict24-Oct-05 13:57
jeweladdict24-Oct-05 13:57 
AnswerRe: Help with REGEX match cases Pin
Christian Graus24-Oct-05 14:00
protectorChristian Graus24-Oct-05 14:00 
GeneralRe: Help with REGEX match cases Pin
jeweladdict25-Oct-05 5:39
jeweladdict25-Oct-05 5:39 
QuestionRichtextbox -> ListBox Pin
Stathread24-Oct-05 13:49
Stathread24-Oct-05 13:49 
AnswerRe: Richtextbox -> ListBox Pin
Christian Graus24-Oct-05 14:02
protectorChristian Graus24-Oct-05 14:02 
GeneralRe: Richtextbox -> ListBox Pin
Stathread24-Oct-05 14:06
Stathread24-Oct-05 14:06 
GeneralRe: Richtextbox -> ListBox Pin
Christian Graus24-Oct-05 14:11
protectorChristian Graus24-Oct-05 14:11 
GeneralRe: Richtextbox -> ListBox Pin
Stathread24-Oct-05 14:13
Stathread24-Oct-05 14:13 
GeneralRe: Richtextbox -> ListBox Pin
Christian Graus24-Oct-05 14:15
protectorChristian Graus24-Oct-05 14:15 
GeneralRe: Richtextbox -> ListBox Pin
Stathread24-Oct-05 14:15
Stathread24-Oct-05 14:15 
GeneralRe: Richtextbox -> ListBox Pin
Christian Graus24-Oct-05 14:17
protectorChristian Graus24-Oct-05 14:17 
GeneralRe: Richtextbox -> ListBox Pin
Stathread24-Oct-05 14:20
Stathread24-Oct-05 14:20 
QuestionIs it possible to copy or delete or move a locked file? Pin
Sasuko24-Oct-05 12:49
Sasuko24-Oct-05 12:49 
AnswerRe: Is it possible to copy or delete or move a locked file? Pin
enjoycrack24-Oct-05 12:58
enjoycrack24-Oct-05 12:58 
QuestionPassing an active Socket from C# to Managed C++ Pin
DeepToot24-Oct-05 11:58
DeepToot24-Oct-05 11:58 
AnswerRe: Passing an active Socket from C# to Managed C++ Pin
S. Senthil Kumar24-Oct-05 19:21
S. Senthil Kumar24-Oct-05 19:21 
GeneralRe: Passing an active Socket from C# to Managed C++ Pin
DeepToot25-Oct-05 3:53
DeepToot25-Oct-05 3:53 

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.