Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to retreive RAM size Pin
Nouman Bhatti6-Aug-07 2:07
Nouman Bhatti6-Aug-07 2:07 
Questionis a File Read Only. Pin
Saqib Mehmood5-Aug-07 22:32
Saqib Mehmood5-Aug-07 22:32 
AnswerRe: is a File Read Only. Pin
N a v a n e e t h5-Aug-07 22:53
N a v a n e e t h5-Aug-07 22:53 
AnswerRe: is a File Read Only. Pin
Nouman Bhatti6-Aug-07 2:05
Nouman Bhatti6-Aug-07 2:05 
Questioninternal and internal protected Pin
Sonia Gupta5-Aug-07 22:25
Sonia Gupta5-Aug-07 22:25 
AnswerRe: internal and internal protected Pin
N a v a n e e t h5-Aug-07 22:46
N a v a n e e t h5-Aug-07 22:46 
GeneralRe: internal and internal protected Pin
Sonia Gupta5-Aug-07 23:00
Sonia Gupta5-Aug-07 23:00 
GeneralRe: internal and internal protected Pin
N a v a n e e t h6-Aug-07 1:13
N a v a n e e t h6-Aug-07 1:13 
AnswerRe: internal and internal protected Pin
m@u5-Aug-07 23:41
m@u5-Aug-07 23:41 
AnswerRe: internal and internal protected Pin
Hessam Jalali5-Aug-07 23:46
Hessam Jalali5-Aug-07 23:46 
AnswerRe: internal and internal protected Pin
Pete O'Hanlon6-Aug-07 1:34
mvePete O'Hanlon6-Aug-07 1:34 
GeneralRe: internal and internal protected Pin
Sonia Gupta6-Aug-07 1:41
Sonia Gupta6-Aug-07 1:41 
GeneralRe: internal and internal protected Pin
Pete O'Hanlon6-Aug-07 2:42
mvePete O'Hanlon6-Aug-07 2:42 
GeneralRe: internal and internal protected Pin
originSH6-Aug-07 4:03
originSH6-Aug-07 4:03 
QuestionTake over a GUI of running program Pin
Morad Kobi5-Aug-07 22:21
Morad Kobi5-Aug-07 22:21 
AnswerRe: Take over a GUI of running program Pin
Hessam Jalali6-Aug-07 23:17
Hessam Jalali6-Aug-07 23:17 
Questionregarding xml's property dynamically Pin
praveenkumar palla5-Aug-07 21:51
praveenkumar palla5-Aug-07 21:51 
QuestionDataAdapter.Fill() Pin
blackjack21505-Aug-07 21:43
blackjack21505-Aug-07 21:43 
AnswerRe: DataAdapter.Fill() Pin
Marek Grzenkowicz5-Aug-07 22:04
Marek Grzenkowicz5-Aug-07 22:04 
AnswerRe: DataAdapter.Fill() Pin
N a v a n e e t h5-Aug-07 22:49
N a v a n e e t h5-Aug-07 22:49 
AnswerRe: DataAdapter.Fill() Pin
Nouman Bhatti6-Aug-07 2:12
Nouman Bhatti6-Aug-07 2:12 
QuestionFind Out the executed page??? Pin
mimimimilaw5-Aug-07 21:08
mimimimilaw5-Aug-07 21:08 
QuestionCalling unmanaged DLL-methodes (winmm.dll) Pin
J. Holzer5-Aug-07 20:32
J. Holzer5-Aug-07 20:32 
AnswerRe: Calling unmanaged DLL-methodes (winmm.dll) Pin
m@u5-Aug-07 21:29
m@u5-Aug-07 21:29 
Hi.

i think you will first have to declare a delegate with the paramters of the callback-function
<br />
public delegate void MidiCallBack(sometype someParameter);<br />

then declare the API - Call
<br />
[DllImport("winmm.dll")]<br />
public static extern int midiInOpen(ref int lphMidiIn, int uDeviceID, [MarshalAs(UnmanagedType.FunctionPtr)]MidiCallBack dwCallback, int dwInstance, int dwFlags);<br />

then you define the callback function with the same type
<br />
private void MidiCallbackFunction(sometype someParameter)<br />
{<br />
    //doStuff<br />
}<br />

and then you simply do
<br />
midiInOpen(ref hMidiIn, mMPU401IN, 0, new MidiCallBack(MidiCallbackFunction),0,0);<br />


hope this helps
greets
m@u
AnswerRe: Calling unmanaged DLL-methodes (winmm.dll) Pin
originSH5-Aug-07 21:57
originSH5-Aug-07 21:57 

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.