Hi, I'm trying to create a simple program in Win32 and I can't find how to accept input in the form of text. Like "What's your name: ___" then the user enters their name and my program can evaluate the input. I have already googled this for a long time, so please don't give me lmgtfy answers. Thank you.
Hawkpath
-2
Junior Poster in Training
Recommended Answers
Jump to PostI don't feel you've given enough information. Are you trying to write a console mode or GUI ( Graphical User Interface ) program?
Both are Win32. Console mode programs mostly use the exported functions in Kernel32.lib and GUI programs User32 and GDI.
Jump to PostCouldn't be easier...
Form1.h
//Form1.h #define IDC_EDIT 2000 #define IDC_BUTTON 2005 typedef struct WindowsEventArguments { HWND hWnd; WPARAM wParam; LPARAM lParam; HINSTANCE hIns; }WndEventArgs, *lpWndEventArgs; struct EVENTHANDLER { unsigned int Code; long (*fnPtr)(lpWndEventArgs); };
Main Source File
//Main.cpp #include <windows.h> #include <tchar.h> #include …
All 6 Replies
Frederick2
189
Posting Whiz
adnan.siddique
-6
Light Poster
Hawkpath
-2
Junior Poster in Training
Frederick2
189
Posting Whiz
hiddepolen
32
Posting Whiz in Training
Frederick2
189
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.