All Questions
11
questions
7
votes
2
answers
10k
views
Unreal Engine 4: C++ Delegate not being called
I've been working on converting some blueprint logic over to C++. One of the things I have is a button. The button can be pressed in VR and has a delegate that is called to notify any registered ...
4
votes
1
answer
5k
views
implementing delegate in interface
I can't find a way to implement delegate in interface
I want to get this:
public class SomeClass : ISomeInterface
{
public delegate void SomeCallback();
public SomeCallback callback;
...
2
votes
1
answer
278
views
Events, Delegates, Callback, INotifyPropertyChanged
Suppose I have the following:
class a
{
List <SomeType> actions;
ForEachMethod()
{
foreach (action in actions)
{
OtherFucntion(action);
}
...
0
votes
1
answer
660
views
Add callback method of second form to existing buttons eventhandler on main form
Actually I have a simple question. When searching I only find slightly different issues answered.
I have a main form containing controls where the user gives input. The main form also has some ...
1
vote
1
answer
20k
views
Declare callback event handlers correctly
I have a simple delegate, event and property allowing me to create callback subscriptions on events:
public static class Test
{
/// <summary>Delegate for property changed event</summary&...
0
votes
4
answers
891
views
Callback function and best practice
UPDATE: I phrased the question wrong. Both the inner and outer Latitude/Longitude members need to update each other resulting in recursion. The outer members get updated by a database context while ...
0
votes
2
answers
221
views
Difficulty with preserving methods raising events with delegates after conversion from C#
So for the last day or two I've been studying this article in order to get some exposure to dependency properties and routed commands, and hopefully leverage some of the sample code to solve a content ...
3
votes
1
answer
346
views
wraping a native library that implements a callback in c#
I have a Visual Studio 2008 C# .NET 3.5 class that provides access to a native library. The library has a Register method that allows the user to specify a callback that will be activated on some ...
1
vote
1
answer
406
views
InvalidCastException implementing .net events in native c++ with managed wrapper
I am attempting to invoke managed events from native c++, by using a managed wrapper for a native class, and then using the managed wrapper via dll from C#. However, I receive a InvalidCastException ...
2
votes
6
answers
2k
views
C++ Callbacks? Should I use Member Func Pointers/Delegates/Events?
I am entering a realm that is new to me, but basically I need to implement callbacks in C++. I am designing a toolkit for myself to use to simplify my life. Basically it is a .dll plugin that will be ...
26
votes
8
answers
25k
views
Python: Callbacks, Delegates, ... ? What is common?
Just want to know what's the common way to react on events in python. There are several ways in other languages like callback functions, delegates, listener-structures and so on.
Is there a common ...