[program-l] Re: Calling functions at addresses

  • From: "Mark Long" <Mark.Long@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Mon, 5 Sep 2005 12:26:19 +0100

Sounds like you are trying to roll your own COM

What language are you using? I am guessing C++

GetProcAddress will get the address from the name. Creating the function
prototypes is more of an issue unless you have a limited set of
interfaces.

 

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx
[mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of SEAN FARROW
Sent: 05 September 2005 12:04
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Calling functions at addresses

Hi: 
I am working on something currently where due to various issues, I am
using a database to store the names of functions that need to be called.
I should say from the outset that therese function names also contain
the arguments needed for he specific function calls. 
Is there any way as there was in assembly to call the function at the
specific address in memory. So in this case; I load the function from
the database in to a lpctstr variable an need to call the function at
this address. 
is this accomplishable and if so what is the best way to go about it? 
Hope somebody can help. 
Regards
Sean

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: