Results 1 to 2 of 2

Thread: calling external previously registered functions from a DLL

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Posts
    26

    calling external previously registered functions from a DLL

    I have a dll whitch init a thread in dllmain.
    After than, the calling application call some dll functions which register the remote function of the application.
    function register done, when the thread works and receives and even, it call the program functions (those I stored register before)

    how can this be done?
    int C would be like:

    Code:
    int (__stdcall *f_wmif) (char *) = NULL;
    
    INT __declspec(dllexport) __stdcall _DGTDLL_RegisterWMIFunc (int (__stdcall *whitemoveinputfunc) (char *)) {
    	f_wmif=whitemoveinputfunc;
    	return OK;
    }
    
    .....
    .....
    f_wmif(x);
    .....
    .....
    I dont know how can I do this in VB. Any help will be wellcame

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: calling external previously registered functions from a DLL

    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width