Re: api call from c++
From: AirPete (x_at_x.x)
Date: 02/03/04
- Next message: Andrew Falanga: "Re: Need some help with dereferencing structures and such"
- Previous message: John F: "[C++] Help randomizing numbers"
- In reply to: Defcon31: "api call from c++"
- Next in thread: Thomas Matthews: "Re: api call from c++"
- Reply: Thomas Matthews: "Re: api call from c++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 03 Feb 2004 01:35:05 GMT
You can do it like the following:
#include <windows.h>
#include <cstdio>
int main(void)
{
HWND hwnd = FindWindow(0, "asdf");
std::printf("%d", (int)hwnd);
return 0;
}
Please direct any addition questions to microsoft.public.dotnet.languages.vc
- Pete
"Defcon31" <stt_d31@hotmail.com> wrote in message
news:401ece00$0$777$ba620e4c@news.skynet.be...
> hello,
> as a VB programmer i'm used to make windows api calls by declare
statements.
> but can someone post a small piece of code about how you do that in C++ ?
> please post some code, not mfc, just a very simple console application
with
> an api call.
> thanks in advance
>
>
- Next message: Andrew Falanga: "Re: Need some help with dereferencing structures and such"
- Previous message: John F: "[C++] Help randomizing numbers"
- In reply to: Defcon31: "api call from c++"
- Next in thread: Thomas Matthews: "Re: api call from c++"
- Reply: Thomas Matthews: "Re: api call from c++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|