Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
winapi
- Page 1
winapi c++ wsaasyncselect fd_read fd_write
Programming
Software Development
16 Years Ago
by zaryk
Winapi
- I am creating a chat program using the [ICODE]WSAAsyncSelect(…
WinAPI help
Programming
Software Development
14 Years Ago
by vadalaz
Hey guys, I've recently started learning
WinAPI
and I want to make a Tic Tac Toe game …); LRESULT CALLBACK TileProc(HWND, UINT, WPARAM, LPARAM); void RegisterTile(); int
WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nShowCmd) { // Registering the "…
Re: WinAPI help
Programming
Software Development
14 Years Ago
by vadalaz
…); InvalidateRect(TilesArray[i], &rect, TRUE); } } // The main function int
WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nShowCmd) { std::vector<…
WinAPI Questons
Programming
Software Development
13 Years Ago
by triumphost
A couple questions I have for anyone that knows
WINAPI
as Im trying to learn it right now.. I usually … console stuff. [B]First:[/B] Is there a designer for
WinAPI
like there is in Visual Studio Form App Editor? Or…? [B]Fourth:[/B] How do I call a function in
WinAPI
? I don't want it in WinMain because it freezes…
Re: WinAPI Object-Oriented Classes
Programming
Software Development
11 Years Ago
by mike_2000_17
…(Hwnd, Msg, wParam, lParam); } return true; } int
WINAPI
WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow) {…should only have to do something like this: int
WINAPI
WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int…
WinAPI - i dont know where to start
Programming
Software Development
14 Years Ago
by lexusdominus
Im trying to learn how to use the
winapi
- ive read tutorials about message handling and the windows procedure … heading? here is how my program starts currently [CODE]DWORD
WINAPI
ThreadProc(LPVOID lpParameter) { HMODULE hInstance = GetModuleHandle( (char *)lpParameter); _tWinMain(hInstance…
Re: WinAPI Questons
Programming
Software Development
13 Years Ago
by Lyandor
… the best way since I'm also relatively new to
WINAPI
, but just do it like you always do. call the…
WinAPI Object-Oriented Classes
Programming
Software Development
11 Years Ago
by triumphost
Creating
WinAPI
windows and controls can be a pain and quite difficult/… absolutely have no other choice. Below contains code for creating
WinAPI
windows, Controls, Sub-Classing, and EventHandling for each control. There…
Re: WinAPI Object-Oriented Classes
Programming
Software Development
11 Years Ago
by triumphost
…; default: return DefWindowProc(Hwnd, Msg, wParam, lParam); } return true; } int
WINAPI
WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow) { Window…
WinApi GUI Menu Problem
Programming
Software Development
17 Years Ago
by Mini_The_Great
… char gszClassName[] = "db"; static HINSTANCE ghInstance = NULL; int
WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX…
WINAPI question : Running an exe
Programming
Software Development
15 Years Ago
by CodyOebel
… to help you understand my question. I am making my
WINAPI
load hidden so it's not in the taskbar and…
Re: WINAPI question : Running an exe
Programming
Software Development
15 Years Ago
by CodyOebel
… to help you understand my question. I am making my
WINAPI
load hidden so it's not in the taskbar and…
[winapi] radio button and loss of functionality
Programming
Software Development
15 Years Ago
by yakovm
I wrote
winapi
application.Which during creation defined : [code=c++] CreateGLWindow(hwnd,"…
(WINAPI in C++) handling listbox messages.
Programming
Software Development
14 Years Ago
by kocmohabt33
Hi, I'm currently trying to learn programming in
WinApi
C++. Let's say I have a ListBox whose ID …
WINAPI FindFirstFile & FindNextFile problem
Programming
Software Development
14 Years Ago
by k_nenad
… to get the list of files in a directory using
WINAPI
functions FindFirstFile and FindNextFile. The problem is that WIN32_FIND_DATA.cFileName…
Re: WINAPI FindFirstFile & FindNextFile problem
Programming
Software Development
14 Years Ago
by k_nenad
Hi Momerath, The reason for this is that if I add FileInfo.Length and a recursive parsing of subdirectories on top of it, it executes much slower than a similar app I have done in Delphi using
WINAPI
, especialy if there are a lot of files and subdirectories. Any suggestions, please? Thanks
WinAPI tutorals
Programming
Software Development
13 Years Ago
by otengkwaku
hi guys i need some help with
WinAPI
i will like to learn. what it is about and it relation to c# \
WINAPI simple window problem
Programming
Software Development
12 Years Ago
by cool_zephyr
…; default: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0; } int
WINAPI
WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) { WNDCLASSEX…
WinAPI compile error
Programming
Software Development
12 Years Ago
by mattster
Hi all, Am building a
WinAPI
project in Code::blocks and MinGW. I Downloaded some opensource …
Re: Should I learn WinApi or?
Programming
Software Development
15 Years Ago
by programmersbook
WinApi
is nice but QT or wxWidgets are portable! i think
WinApi
like MFC is old and obsolete!
Re: Should I learn WinApi or?
Programming
Software Development
15 Years Ago
by Clinton Portis
winapi
is good.
Re: WinAPI help
Programming
Software Development
14 Years Ago
by thelamb
First of all: Do you understand why there is only one beep and after that never again? Secondly, let's think about your problem. You have an X number of objects(windows) and you want them to perform an action only once. So for each of these objects you can store a 'state' whether they have already performed the action or not. Knowing this, what …
Re: WinAPI help
Programming
Software Development
14 Years Ago
by vadalaz
Thanks a lot, managed to get it working now like this: [code=c]// tile information holds the menu parameter and the state struct TileInfo { HMENU menu; bool empty; }; TileInfo tInfo[9] = { {(HMENU)1, true}, {(HMENU)2, true}, {(HMENU)3, true}, {(HMENU)4, true}, {(HMENU)5, true}, {(HMENU)6, true}, {(HMENU)7, true}, {(HMENU)8, true…
Re: WinAPI help
Programming
Software Development
14 Years Ago
by thelamb
Good job, you got my point. But there are ways to improve your code. Firstly: you are basically writing C code, don't you want to use C++ constructs? Secondly, 'hard-coding' the 1 though 9 values for HMENU should ring some alarm bells. What if you want to have more than 9 windows later? You'll need to modify the tInfo struct, and find the for( …
Re: WinAPI help
Programming
Software Development
14 Years Ago
by vadalaz
Haha surely I won't stop coding after this, this is just the beginning. :) Anyways I added a global constant (const int sz = 9) two small loops to improve it: [code=c] // Initializing tile info for (int i = 0; i < sz; i++) { tInfo[i].empty = true; tInfo[i].menu = (HMENU)(i+1); } //... //Creating the tiles for (int i = 0; i < …
Re: WinAPI help
Programming
Software Development
14 Years Ago
by thelamb
Well done, I'm impressed that you straight got the use of % to do your 'creating the tiles loop' ;). In C++ it is rarely necessary to work with arrays directly, it is very error-prone and mostly even confusing. So unless you're doing some low-level stuff where it is necessary(either because you don't have a choice or because the code is …
Re: WinAPI help
Programming
Software Development
14 Years Ago
by vadalaz
Well if you mean I should do it in one loop instead of two, where should I place that loop then? Because atm the tInfo loop is in WinMain and the tiles creating loop is in the MainProc's WM_CREATE case... I tried putting them both to MainProc but then I was getting runtime errors Should I put them both in WinMain and just erase the WM_CREATE case?…
Re: WinAPI help
Programming
Software Development
14 Years Ago
by thelamb
Good, then that makes it time to move away from the dirty C-arrays and use proper C++ classes. Show us how far you get ;)
Re: WinAPI help
Programming
Software Development
14 Years Ago
by thelamb
Very well done, it's looking good :D. The 'win checks' is a tricky one... I'm sure there is some standard way to do this but I've never had to do something simmilar. Maybe think of the problem differently: Instead of checking the entire field every time, you could move the check to the function where you draw a new object, you know in which …
Re: WinAPI Message Boxes don't appear
Programming
Software Development
17 Years Ago
by death_oclock
…(lParam)); return 0; } } return DefWindowProc(hWnd, uMsg, wParam, lParam); } int
WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC