Click here to Skip to main content
16,010,673 members
Home / Discussions / C#
   

C#

 
GeneralRe: Timing question with multithreading Pin
mav.northwind27-Aug-06 20:21
mav.northwind27-Aug-06 20:21 
AnswerRe: Timing question with multithreading Pin
leppie27-Aug-06 20:11
leppie27-Aug-06 20:11 
GeneralRe: Timing question with multithreading Pin
mav.northwind27-Aug-06 20:25
mav.northwind27-Aug-06 20:25 
GeneralRe: Timing question with multithreading Pin
mav.northwind27-Aug-06 22:51
mav.northwind27-Aug-06 22:51 
GeneralRe: Timing question with multithreading Pin
leppie27-Aug-06 23:17
leppie27-Aug-06 23:17 
GeneralRe: Timing question with multithreading Pin
mav.northwind28-Aug-06 4:10
mav.northwind28-Aug-06 4:10 
GeneralRe: Timing question with multithreading Pin
mav.northwind28-Aug-06 9:40
mav.northwind28-Aug-06 9:40 
QuestionPassing Delegate as a prameter in Method Call Pin
t4ure4n27-Aug-06 3:48
t4ure4n27-Aug-06 3:48 
Hello Every 1, I have a problem where I have to pass a delegate as a parameter to a Method Call (method is simply a caller for an API method). I have decelared and initilized the delegate globally, given it my own method that should be called. I even assigned the delegate to the GCHandle and Pinned it (GCHanle.KeepAlive(....))

Now the problem the delegate is called as a parameter in a method call

The delgate signature is

public delegate void delegateCallBackFunction(); (global 4 namespace)<br />
<br />
public delegateCallBackFunction CallBackFunction; (global 4 class)


..............Now the function where the delgate is called........

public bool wrg303_CodecStart(int hRadio, FileStream ifFileStream, GCHandle targetHandle)<br />
{<br />
ifFileWriter = new StreamWriter(CallbackContextObject.ccifFile);<br />
bool status = true; <br />
status =  (CodecStart(hRadio,  CallBackFunction(GCHandle.ToIntPtr( targetHandle)),GCHandle.ToIntPtr( targetHandle)));<br />
return status; <br />
targetHandle)));<br />
}


If i use this code the error is that The second parameter is void where it should be a delegate.

I can't use new delegateCallBackFunction(.....)
How the hell I am going to pass the delegate as a prameter.


Thanks

o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°

AnswerRe: Passing Delegate as a prameter in Method Call Pin
Nader Elshehabi27-Aug-06 6:00
Nader Elshehabi27-Aug-06 6:00 
Questionrefresh web page automatically Pin
Mohammad Daba'an26-Aug-06 23:14
Mohammad Daba'an26-Aug-06 23:14 
AnswerRe: refresh web page automatically [modified] Pin
Guffa26-Aug-06 23:52
Guffa26-Aug-06 23:52 
QuestionRe: refresh web page automatically Pin
Mohammad Daba'an27-Aug-06 3:57
Mohammad Daba'an27-Aug-06 3:57 
AnswerRe: refresh web page automatically Pin
Guffa27-Aug-06 4:10
Guffa27-Aug-06 4:10 
GeneralRe: refresh web page automatically Pin
Mohammad Daba'an27-Aug-06 4:28
Mohammad Daba'an27-Aug-06 4:28 
Questionfocus rectangle [modified] Pin
bahaa_sa526-Aug-06 22:22
bahaa_sa526-Aug-06 22:22 
AnswerRe: focus rectangle Pin
Nader Elshehabi26-Aug-06 22:30
Nader Elshehabi26-Aug-06 22:30 
GeneralRe: focus rectangle Pin
bahaa_sa526-Aug-06 22:38
bahaa_sa526-Aug-06 22:38 
GeneralRe: focus rectangle Pin
Nader Elshehabi27-Aug-06 1:52
Nader Elshehabi27-Aug-06 1:52 
GeneralRe: focus rectangle Pin
bahaa_sa527-Aug-06 3:13
bahaa_sa527-Aug-06 3:13 
JokeRe: focus rectangle Pin
Nader Elshehabi27-Aug-06 4:58
Nader Elshehabi27-Aug-06 4:58 
QuestionProblem in DataGrid Control Pin
Murtuza Husain Miyan Patel26-Aug-06 17:38
professionalMurtuza Husain Miyan Patel26-Aug-06 17:38 
AnswerRe: Problem in DataGrid Control Pin
Nader Elshehabi26-Aug-06 22:49
Nader Elshehabi26-Aug-06 22:49 
QuestionSystem Shutdown Pin
oskardiazdeleon26-Aug-06 10:28
oskardiazdeleon26-Aug-06 10:28 
AnswerRe: System Shutdown Pin
Sean8926-Aug-06 17:08
Sean8926-Aug-06 17:08 
Questionmoving a imagefile to a certain path in c#? Pin
biaali26-Aug-06 10:15
biaali26-Aug-06 10:15 

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.