Re: How should i implement a delegate in VB6?



Joris van Lier wrote:
I need to implement delegates in VB6, having some experience in C# and read about AddressOf in VB6 but am not sure how to call the procedure at the address.

The application should evaluate the state of certain variables and call a corresponding method, the operators of the expression being evaluated and the resulting method to be called should be configurable without touching the code. Have read about CallByName, but need a solution that's as fast as possible because app will be talking to a PLC


It would probably be best to explain what it is that you actually need
without expecting knowledge of other languages' terminology.

And maybe some specifics about what you have tried and why it was
found inadequate.



Bob
--
.



Relevant Pages

  • How should i implement a delegate in VB6?
    ... I need to implement delegates in VB6, having some experience in C# and read ... about AddressOf in VB6 but am not sure how to call the procedure at the ... possible because app will be talking to a PLC ...
    (microsoft.public.vb.syntax)
  • Re: Syntax Difference C#/VB.NET when calling a Method
    ... The ambiguity existed in VB6 with default properties but there is nothing ambiguous about the syntax in VB.NET - it's just different. ... The less common behavior (passing a function pointer) requires an additional keyword ... I personally like this (although I find *addressof* a little too "implementation-oriented" as a keyword - after all if you pass an object to a function you're also passing it's address. ...
    (microsoft.public.dotnet.framework)

Loading