Title: RE: [MSVC] function pointers

> I am currently making an email application curiously I am in doubt
> about something that never happens before to me. There are a set of
> fucntion declared in mapix.h (those functions who's permit access to
> mapi subsystem) and there is not import library for mapi32.dll, the
> module where the functions are exported from. The question is can I
> access the functions addresses using GetProcAddress and assign the
> address to that variables declared in mapix.h???

Take a look at my "Explicit DLL Linking Framework" article.  Using that
code, you can call MapiLogonEx like this:

 DECLARE_FUNC5( MapiLogonEx, HRESULT );
 HRESULT hr = mm::MapiLogonEx( a, b, c, d, e );


-------------
Ehsan Akhgari

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] read.zl6]
[ WWW: http://www.beginthread.com/Ehsan ]

To talk about oneself a great deal can also be a means of concealing
oneself. -Beyond Good And Evil, F. W. Nietzsche

Reply via email to