Click here to Skip to main content
15,909,498 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sockets: Threaded & Async? Pin
Blake Coverett20-Sep-03 15:10
Blake Coverett20-Sep-03 15:10 
GeneralRe: Sockets: Threaded & Async? Pin
oblius20-Sep-03 16:20
oblius20-Sep-03 16:20 
GeneralMessage Queue Pin
ravfingcoder20-Sep-03 5:22
ravfingcoder20-Sep-03 5:22 
GeneralDigital Signature Pin
ravfingcoder20-Sep-03 4:11
ravfingcoder20-Sep-03 4:11 
Questionhow do you retrieve IP address and host name again? Pin
ravfingcoder20-Sep-03 4:06
ravfingcoder20-Sep-03 4:06 
AnswerRe: how do you retrieve IP address and host name again? Pin
leppie20-Sep-03 8:49
leppie20-Sep-03 8:49 
GeneralRe: how do you retrieve IP address and host name again? Pin
devvvy20-Sep-03 10:49
devvvy20-Sep-03 10:49 
GeneralRe: how do you retrieve IP address and host name again? Pin
zhouao22-Sep-03 19:07
zhouao22-Sep-03 19:07 
GeneralHidden Columns in ListView Pin
aka the guy20-Sep-03 3:44
aka the guy20-Sep-03 3:44 
GeneralRe: Hidden Columns in ListView Pin
Wjousts21-Sep-03 10:29
Wjousts21-Sep-03 10:29 
GeneralRe: Hidden Columns in ListView Pin
aka the guy21-Sep-03 14:06
aka the guy21-Sep-03 14:06 
GeneralNetwork Programming... Pin
fadee20-Sep-03 1:52
fadee20-Sep-03 1:52 
GeneralRe: Network Programming... Pin
Blake Coverett20-Sep-03 14:45
Blake Coverett20-Sep-03 14:45 
GeneralRe: Network Programming... Pin
fadee21-Sep-03 17:13
fadee21-Sep-03 17:13 
GeneralCom interop Pin
Abhijit Desai20-Sep-03 0:24
Abhijit Desai20-Sep-03 0:24 
GeneralmciSendString Question in C#,Please Help me! Pin
zoujiaming19-Sep-03 22:12
zoujiaming19-Sep-03 22:12 
I wrote code :

namespace class1
{
public class class1
{
[DllImport("winmm.dll", EntryPoint="mciSendString")]
public static extern int mciSendString (
string lpstrCommand,
string lpstrReturnString,
int uReturnLength,
int hwndCallback
);
private void button1_Click(object sender, System.EventArgs e)
{
string s=new string(' ',10);
mciSendString("status "+"c:\\a.mp3"+" length",s,s.Length,0);
MessageBox.Show(s);
}
}

I want to get the music's length.I use code like above in vb and vb.net.I can get the music's length,but in C# i can't.In C#,if i get mcisendstring's return value,I can't get 0.How can i get the music length in C# use mcisendstring?Please me correct mistake!
GeneralRe: mciSendString Question in C#,Please Help me! Pin
creep23713-Feb-09 0:12
creep23713-Feb-09 0:12 
GeneralA few encryption questions Pin
Steve McLenithan19-Sep-03 19:33
Steve McLenithan19-Sep-03 19:33 
GeneralRe: A few encryption questions Pin
Blake Coverett20-Sep-03 14:58
Blake Coverett20-Sep-03 14:58 
GeneralSending keypresses to other applications Pin
MrEyes19-Sep-03 15:56
MrEyes19-Sep-03 15:56 
GeneralRe: Sending keypresses to other applications Pin
J. Dunlap19-Sep-03 16:31
J. Dunlap19-Sep-03 16:31 
GeneralRe: Sending keypresses to other applications Pin
Anonymous25-Sep-03 18:45
Anonymous25-Sep-03 18:45 
GeneralRe: Sending keypresses to other applications Pin
Jeremy Kimball25-Sep-03 20:11
Jeremy Kimball25-Sep-03 20:11 
GeneralFind a string in a string... Living hell. Pin
heelios19-Sep-03 15:54
heelios19-Sep-03 15:54 
GeneralRe: Find a string in a string... Living hell. Pin
Wjousts19-Sep-03 16:18
Wjousts19-Sep-03 16:18 

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.