How to use Functors with a function struct

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • leaf

    How to use Functors with a function struct

    i have a struct which defines a function call

    stuct TFunction
    {
    int id; // ID of the function to call
    UINT nparams; // No. of parameters
    ULONG* params // Parameter data
    }

    how can i use a Functor to execute a function as well as passing the
    parameters (ULONG* params)

    *functions to call are from a DLL.
    *functions in the DLL have different argument counts and types

    ---
    young leaf

  • leaf

    #2
    Re: How to use Functors with a function struct

    ps. Functions from the DLL as encapusaled on a class.
    ie.
    CMyDLLFunc_A
    {
    ...
    many functions here...
    .....
    }
    CMyDLLFunc_B
    {
    ....
    many functions here also...
    ....
    }

    Comment

    • TB

      #3
      Re: How to use Functors with a function struct

      leaf skrev:[color=blue]
      > i have a struct which defines a function call
      >
      > stuct TFunction
      > {
      > int id; // ID of the function to call
      > UINT nparams; // No. of parameters
      > ULONG* params // Parameter data
      > }
      >
      > how can i use a Functor to execute a function as well as passing the
      > parameters (ULONG* params)
      >
      > *functions to call are from a DLL.
      > *functions in the DLL have different argument counts and types
      >[/color]

      Consider Assembly language.

      --
      TB @ SWEDEN

      Comment

      Working...