Re: External API Function by Alfred
Alfred
Sun Oct 03 20:47:05 CDT 2004
Sorry, I'm new in C++.
in VB, i need to declare a Windows API that i need to use as follow;
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String,
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As
Long) As Long
and call it as ;
ShellExecute(,,,,)
so in this example, how can i do it in C++ ??
Thanks!!
"Tim Roberts" <timr@probo.com> wrote in message
news:pdaul01b5rl6rqmufgqkr3cenqpefkvp3e@4ax.com...
> "Alfred" <anonymous@discussions.microsoft.com> wrote:
>>
>>I'm in C++,
>>can anyone tell me how to declare external API function ?
>>
>>some short sample code will be very helpful.
>
> Do you mean a Windows API function? All of the Windows API functions are
> already declared in platform SDK header files. You shouldn't need to do
> them yourself.
>
> If not, perhaps you could elaborate on what you want.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc