No announcements
Found 2887990 threads
-
0 Votes
pass any function to Delegate type
Hello, there, I have a function like public void MyMethod(Delegate myDelagate) { .... } Is that possible to pass ...Answered | 2 Replies | 2270 Views | Created by Tao Liu - Thursday, June 10, 2010 8:25 PM | Last reply by Louis.fr - Thursday, June 10, 2010 9:23 PM -
0 Votes
P/Invoke asynchronous callback is impossible?
FYI, you can make the parameter type of SetCallback a delegate type (such as ConnectionCallback) instead of an IntPtr, and pass in the callback delegate ...Answered | 4 Replies | 4499 Views | Created by sherman xu - Monday, November 30, 2009 3:56 AM | Last reply by sherman xu - Tuesday, December 1, 2009 6:07 AM -
0 Votes
function doesnot match delegate type
I tried that then the error was error C3352: 'void dwmgr::Form1::UpdateProgress(__int64,__int64)' : the specified function does not match the delegate ...Answered | 4 Replies | 813 Views | Created by ProR4t - Saturday, June 8, 2013 8:42 PM | Last reply by ProR4t - Sunday, June 9, 2013 8:54 AM -
0 Votes
how to pass any type of control to a function
seco said: Hi i wrote the following function to pass to it any control public function mm(byval x as ...Answered | 8 Replies | 3111 Views | Created by seco - Sunday, September 28, 2008 3:35 AM | Last reply by John Anthony Oliver - Monday, September 29, 2008 2:08 AM -
0 Votes
How to pass Id to delegate using jquery .button control is added on run time in table row (tr)
</td> </tr > '); } $(document).ready(function () { $("#tbluser").delegate(".btndeletecss", "click", ...Answered | 2 Replies | 569 Views | Created by qasimidl - Wednesday, November 14, 2018 5:09 PM | Last reply by qasimidl - Monday, November 19, 2018 9:27 AM -
0 Votes
GetFunctionPointerForDelegate-> GetDelegateForFunctionPointer = null
In my opinion, it is a little needless to use as your code. according to your code, "myDelegate" is a delegate in managed code. why do you need to convert ...Answered | 1 Replies | 4982 Views | Created by BitFlipper - Sunday, April 24, 2011 7:07 PM | Last reply by Paul Zhou - Thursday, April 28, 2011 9:16 AM -
0 Votes
Pass in delegate to Activity
Hello, Please note that you are declaring a delagate here which actually marks the signature of the function you want to call. You would create an object of your ...Answered | 1 Replies | 2757 Views | Created by CheeseMan - Wednesday, November 19, 2008 1:01 PM | Last reply by UmeshMR - Thursday, February 19, 2009 12:25 AM -
0 Votes
how to make this function signiture pass a delegate
You can create an object of delegate class something like this: delegate void SomeDelegate (string data); and then you can pass this ...Answered | 3 Replies | 3588 Views | Created by Tryin2Bgood - Monday, November 27, 2006 8:20 PM | Last reply by RizwanSharp - Monday, November 27, 2006 9:36 PM -
0 Votes
What is delegate ?
to call the method through the delegate. Or, in other words, the delegate would be a way to pass a method as an argument from one part of your ...Answered | 2 Replies | 490 Views | Created by AndriannaTs - Saturday, September 14, 2019 10:27 AM | Last reply by Alberto Poblacion - Sunday, September 15, 2019 12:33 PM -
0 Votes
Function does not match delegate type
Well from the error message it appears that the problem is with the last parameter: the delegate is expecting a function whose last parameter is of ...Answered | 2 Replies | 7089 Views | Created by dec0ded - Monday, April 9, 2007 7:39 PM | Last reply by dec0ded - Monday, April 9, 2007 8:12 PM -
0 Votes
Passing multiple byref variables: Variables fail to change in calling function using Me.Invoke()
; Any method calls or properties on the object will affect the passed instance, thus letting you set data that could be passed back. Another solution would be to ...Answered | 1 Replies | 5642 Views | Created by KyferEz - Monday, September 27, 2010 7:12 AM | Last reply by Jason Kresowaty - Monday, September 27, 2010 11:22 PM -
0 Votes
Enum pass to function as System.Enum Type
Hi all, It is my understanding that all enums inherit from System.Enum. So I thought it would be possible to have a function take in System.Enum and I could ...Answered | 2 Replies | 3073 Views | Created by yaminb - Monday, May 31, 2010 3:11 PM | Last reply by yaminb - Monday, May 31, 2010 3:28 PM -
0 Votes
function does not match the delegate type
specified function does not match the delegate type 'void (System::Object ^,System::Timers::ElapsedEventArgs ^)' The function looks exactly like ...Answered | 1 Replies | 2462 Views | Created by SteviG - Wednesday, July 17, 2013 7:37 PM | Last reply by Reed Copsey, Jr - Wednesday, July 17, 2013 7:54 PM -
1 Votes
Delegate in a function
Hi i am beginner in this so i want to know about... How delegate can be used to get a value from a function while its ...Answered | 1 Replies | 1283 Views | Created by Leenu - Monday, January 30, 2012 4:22 PM | Last reply by Konrad Neitzel - Monday, January 30, 2012 4:45 PM -
0 Votes
How to pass a delegate as parameter
You pass it the same way you pass any other object, you add a method parameter of the delegate type, OnChangeEventHandler. public class ...Answered | 1 Replies | 1690 Views | Created by lax4u - Friday, May 9, 2014 7:45 PM | Last reply by Mike Danes - Friday, May 9, 2014 8:31 PM -
0 Votes
anonymous function and delegate
the same code in the anonymous function, how the converted code is using any delegate? Or am I write to say wen the below code is written, ...Answered | 7 Replies | 403 Views | Created by boobyy - Sunday, January 29, 2017 7:32 AM | Last reply by boobyy - Monday, January 30, 2017 8:22 PM -
0 Votes
Keeping delegate callback function
are also vanished, and we have the same situation as above. I don't know if there is a way that we can keep the delegate for callback ...Answered | 2 Replies | 3755 Views | Created by kingo312 - Tuesday, June 15, 2010 2:20 AM | Last reply by kingo312 - Monday, June 21, 2010 2:40 PM -
0 Votes
Pass a delegate from class to class?
Nevermind, I figured out a solution. I moved the delegate / event handler logic to the function class / command class then just sent an update to the UserControl. I ...Answered | 1 Replies | 2542 Views | Created by kpear - Saturday, October 10, 2009 11:12 PM | Last reply by kpear - Sunday, October 11, 2009 3:36 AM -
0 Votes
C++/CLI generic delegate will not accept 'void' as a return type
I am trying to do is pass a function returning void to a generic delegate which specifies Result as the return type and Arg as the single ...Answered | 8 Replies | 5683 Views | Created by eldiener - Wednesday, May 2, 2007 4:56 PM | Last reply by eldiener - Friday, May 4, 2007 1:16 AM -
3 Votes
Delegate function declaration place?
type that has been inherited from the system.Delegate class. Using an instance of this type, we can call methods that are consistent with the delegate definition method(or ...Answered | 4 Replies | 278 Views | Created by E-John - Tuesday, May 29, 2018 3:08 AM | Last reply by Stefan Hoffmann - Tuesday, May 29, 2018 2:31 PM - Items 1 to 20 of 2887990 Next ›
No announcements