Q: Translation of VB Code, total brain melt down...

  • Thread starter Thread starter Visual Systems AB \(Martin Arvidsson\)
  • Start date Start date
V

Visual Systems AB \(Martin Arvidsson\)

Hi!

I have this line of code in VB that i am trying to get to C# But my mind is
completley blank...

New HookProc(AddressOf TheHookProc)

How is that translated into Visual C#?

Any ideas

Regards
Martin
 
Visual Systems AB (Martin Arvidsson) said:
Hi!

I have this line of code in VB that i am trying to get to C# But my mind
is completley blank...

New HookProc(AddressOf TheHookProc)

How is that translated into Visual C#?

In C# a method name without parentheses is used. This is a throwback to the
C function pointer syntax.

New HookProc(TheHookProc)

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top