Re: Windows API in VC++
From: Alfred (anonymous_at_discussions.microsoft.com)
Date: 10/08/04
- Next message: Victor Bazarov: "Re: Windows API in VC++"
- Previous message: Poewood: "Creat array of __gc custom class"
- In reply to: CheckAbdoul: "Re: Windows API in VC++"
- Next in thread: Victor Bazarov: "Re: Windows API in VC++"
- Reply: Victor Bazarov: "Re: Windows API in VC++"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 8 Oct 2004 09:29:29 +0800
I have look at the code reference, and this is my code:
HWND hWnd ;
int Rtval = ShellExecute(hWnd, "Open", "notepad.exe", NULL, NULL, 0);
I always get error during compile:
error C2440: 'initializing' : cannot convert from 'struct HINSTANCE__ *' to
'int'
can anyone help me this? i'm new in this...
thanks!
"CheckAbdoul" <checkabdoul at mvps dot org> wrote in message
news:%23W4KOHHrEHA.2948@TK2MSFTNGP11.phx.gbl...
> Take a look at the ShellExecute documentation.
>
>
> http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp
>
> --
> Cheers
> Check Abdoul [VC++ MVP]
> -----------------------------------
>
> "Alfred" <anonymous@discussions.microsoft.com> wrote in message
> news:ehjEevErEHA.1152@TK2MSFTNGP11.phx.gbl...
>> Can anyone please help me... i'm new in VC++.
>>
>> I like to have an example of calling Windows API in VC++.
>> some sample code of using ShellExecute to open notepad.exe.
>>
>> some explanation on the parameter will be very helpful.
>>
>> Thanks in advance.
>>
>>
>>
>>
>>
>
>
- Next message: Victor Bazarov: "Re: Windows API in VC++"
- Previous message: Poewood: "Creat array of __gc custom class"
- In reply to: CheckAbdoul: "Re: Windows API in VC++"
- Next in thread: Victor Bazarov: "Re: Windows API in VC++"
- Reply: Victor Bazarov: "Re: Windows API in VC++"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|