Click here to Skip to main content
16,017,318 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Migrating VC++6 Dialog classes Pin
ralfoide28-May-03 11:12
ralfoide28-May-03 11:12 
GeneralRe: Migrating VC++6 Dialog classes - nope Pin
Phil C28-May-03 14:50
Phil C28-May-03 14:50 
GeneralCPU use of process Pin
MadsJ27-May-03 21:02
MadsJ27-May-03 21:02 
GeneralRe: CPU use of process Pin
Jason McBurney3-Jun-03 8:29
Jason McBurney3-Jun-03 8:29 
GeneralEvent/Delegate Emit and Reflection Pin
Eric Astor27-May-03 14:45
Eric Astor27-May-03 14:45 
GeneralRe: Event/Delegate Emit and Reflection Pin
Marc Clifton27-May-03 14:55
mvaMarc Clifton27-May-03 14:55 
GeneralRe: Event/Delegate Emit and Reflection Pin
Eric Astor27-May-03 15:34
Eric Astor27-May-03 15:34 
GeneralRe: Event/Delegate Emit and Reflection Pin
Marc Clifton27-May-03 15:42
mvaMarc Clifton27-May-03 15:42 
I'm not really sure if this will help, but I use this to dynamically create a delegate:

public delegate object InterfacePoint(EventData eventData);
...
void RegisterInterfacePointByReflection(object instance, string fncName)
{
  Type ipType=typeof(InterfacePoint);
  InterfacePoint ip=null;
  ip=Delegate.CreateDelegate(ipType, instance, fncName) as InterfacePoint;
}

You have to have an instance of the object containing the event sink though. If you don't have an instance, you have to pass CreateDelegate a MethodInfo instead.

Is THIS anything closer to what you need? If not, can you give me an example of what you have and where you want to go with it? (Gee, that sounds a lot like a Microsoft tag line).

Marc


Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"

GeneralRe: Event/Delegate Emit and Reflection Pin
Eric Astor28-May-03 0:36
Eric Astor28-May-03 0:36 
GeneralRe: Event/Delegate Emit and Reflection Pin
leppie28-May-03 11:26
leppie28-May-03 11:26 
GeneralRe: Event/Delegate Emit and Reflection Pin
Eric Astor29-May-03 10:36
Eric Astor29-May-03 10:36 
QuestionDelayed initialization of a System.Window.Forms.Form? Pin
ralfoide27-May-03 14:02
ralfoide27-May-03 14:02 
AnswerRe: Delayed initialization of a System.Window.Forms.Form? Pin
Rocky Moore28-May-03 4:13
Rocky Moore28-May-03 4:13 
GeneralRe: Delayed initialization of a System.Window.Forms.Form? Pin
Ray Cassick28-May-03 4:45
Ray Cassick28-May-03 4:45 
GeneralRe: Delayed initialization of a System.Window.Forms.Form? Pin
ralfoide28-May-03 11:07
ralfoide28-May-03 11:07 
GeneralRe: Delayed initialization of a System.Window.Forms.Form? Pin
Rocky Moore29-May-03 4:26
Rocky Moore29-May-03 4:26 
GeneralRe: Delayed initialization of a System.Window.Forms.Form? Pin
ralfoide29-May-03 18:05
ralfoide29-May-03 18:05 
GeneralRe: Delayed initialization of a System.Window.Forms.Form? Pin
Rocky Moore30-May-03 3:49
Rocky Moore30-May-03 3:49 
GeneralRe: Delayed initialization of a System.Window.Forms.Form? Pin
Blake Coverett22-Jun-03 19:29
Blake Coverett22-Jun-03 19:29 
GeneralAdding controls when using a splitter Pin
Marc Clifton27-May-03 13:41
mvaMarc Clifton27-May-03 13:41 
GeneralRe: Adding controls when using a splitter Pin
J. Dunlap27-May-03 13:43
J. Dunlap27-May-03 13:43 
GeneralRe: Adding controls when using a splitter Pin
Marc Clifton27-May-03 13:46
mvaMarc Clifton27-May-03 13:46 
GeneralRe: Adding controls when using a splitter Pin
James T. Johnson27-May-03 14:16
James T. Johnson27-May-03 14:16 
GeneralRe: Adding controls when using a splitter Pin
Marc Clifton27-May-03 14:28
mvaMarc Clifton27-May-03 14:28 
GeneralStupid .NET things, post #1 Pin
Marc Clifton27-May-03 11:47
mvaMarc Clifton27-May-03 11:47 

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.