Home All Groups Group Topic Archive Search About

call functions by pointer?

Author
5 Jan 2006 9:15 PM
Edwin Knoppert
Can i call functions of a win32.dll by pointer?
It's in a ASP.NET (2.0) surrounding.
I wonder if it's still possible to do this.

(Using GetProcAddress() API and such)

Thanks,

Author
6 Jan 2006 7:32 AM
Ken Cox - Microsoft MVP
Hi Edwin,

Are you talking about Platform Invocation Services (PInvoke)?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkPlatformInvokeTutorial.asp

Show quoteHide quote
"Edwin Knoppert" <i***@pbsoft.speedlinq.nl> wrote in message
news:dpk2a8$89e$1@azure.qinip.net...
> Can i call functions of a win32.dll by pointer?
> It's in a ASP.NET (2.0) surrounding.
> I wonder if it's still possible to do this.
>
> (Using GetProcAddress() API and such)
>
> Thanks,
>
Are all your drivers up to date? click for free checkup

Author
6 Jan 2006 8:26 AM
Edwin Knoppert
Aah, i been pointed to that topic earlier but now i see a recognizable item
at the bottom:

typedef void (__stdcall *PFN_MYCALLBACK)();
int __stdcall MyFunction(PFN_ MYCALLBACK callback);

I hope this is what i need, note that i don't (not really) know the
functionname, i only have a pointer and a description.
If you have a tip for me at this time, please do, i'll check this myself
later.



Show quoteHide quote
"Ken Cox - Microsoft MVP" <BANSPAMkjopc@hotmail.com> schreef in bericht
news:usDMmNpEGHA.2380@TK2MSFTNGP12.phx.gbl...
> Hi Edwin,
>
> Are you talking about Platform Invocation Services (PInvoke)?
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkPlatformInvokeTutorial.asp
>
> "Edwin Knoppert" <i***@pbsoft.speedlinq.nl> wrote in message
> news:dpk2a8$89e$1@azure.qinip.net...
>> Can i call functions of a win32.dll by pointer?
>> It's in a ASP.NET (2.0) surrounding.
>> I wonder if it's still possible to do this.
>>
>> (Using GetProcAddress() API and such)
>>
>> Thanks,
>>
>
>

Bookmark and Share