84 Topics

Member Avatar for
Member Avatar for micke

Hello, I have been reading tutorials on c++ for a while, and made a few simple applications. Now I've started looking at win32, and while all the tutorials I've looked at are quite good, they miss out on some simple points. I know how to make a window, a menu, …

Member Avatar for hiddepolen
0
205
Member Avatar for chrishtones

Since __uuidof is a C++ only operator, how would I retrieve the GUID of an object in C?

Member Avatar for gerard4143
0
619
Member Avatar for Hawkpath

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, …

Member Avatar for Frederick2
0
466
Member Avatar for goodi8u

Hello, I am new to posting, but have searched these wonderful forums for a couple years. I am programming a game as a hobby. And I have been searching for a way to read what the user types. e.g. User types in "hello" and I can take that and send …

Member Avatar for goodi8u
0
244
Member Avatar for Alexkid

Hi there, Can anyone tell me how to change my win32 programs icon (top left). I'm running MSV C++ Express 2010, so i don't have MFC. Theres a few tutorials on how to do this but using resource files? Which apparently MSV doesn't support. I want to be able to …

Member Avatar for Alexkid
0
313
Member Avatar for bernardo-b

Hello Yesterday I downloaded this: [B][COLOR="Red"]Infected Executable File Removed[/COLOR].[/B] My Panda antivirus didn't see anything wrong with it, but it is some sort of spyware or trojan. Since I ran it last night, my IE opens up sometimes with an IQ test page '=) Today I ran a quick scan …

Member Avatar for bernardo-b
0
436
Member Avatar for Schoorsteen

Hey there, I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID. Just an example: [CODE] CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); HWND btn = …

Member Avatar for Schoorsteen
0
4K
Member Avatar for n.cramp

Hi all, having a bit of trouble with getting OpenGL picking to work in Win32. Note that pretty much the exact code works in GLUT, though i suspect that the reason i cant get it to work in Win32 is that it is not clear exactly how GLUT handles windowing …

0
86
Member Avatar for newbgal

Hi .. this is my first post here... i have been trying to solve this problem for two days ..but no luck.. here is my problemm... I am using win32.. I can able to get notified on new device insertion and removal using DBT_DEVTYP_DEVICEINTERFACE [CODE]if ( DBT_DEVICEARRIVAL == wParam || …

Member Avatar for wisaacs
0
157
Member Avatar for morelve

I want to make a native win32 program that simply moves the cursor to x=100 y=200 on the screen, and then clicks the left mouse button once. Where do I start? For once, Google got me nowhere. I use VC++ 2010 to compile.

Member Avatar for Adak
0
3K
Member Avatar for svr2009wwe

Hi; I am making one small application which can store data to my online mysql server. But with c++ win32 how can I do it? Please help me.

Member Avatar for tesuji
0
227
Member Avatar for dnBunnie

Hi, several applications use as much as CPU as they can while starting up. This takes one and sometimes several minutes. I'm using WinXpPro SP3. I suspect it is the registry or a service that is not started but should or maybe a replaced driver/DLL. It happens with and without …

Member Avatar for gerbil
0
228
Member Avatar for wade2462

Okay, this just makes me feel stupid. I'm pretty good at programming for the console so I figured I would try a Win32 program. Apparently I'm stupid because I cannot even compile hello world. Heres the code I copy and pasted. [CODE] #include <windows.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, …

Member Avatar for wade2462
0
341
Member Avatar for cecp

Is it possible to use child window created in Win32 API as a container for another windows (controls - buttons, edit fields etc.)? Or is there any other way how to use container in Win32 API? The goal is to create a simple user interface for application?

Member Avatar for cecp
0
207
Member Avatar for slejeivw

I am trying to store a single random number from 0 to 99 to a variable. This is what I used in my code to do that: [code]time_t t; time(&t); srand((unsigned int)t); int rTSB(rand() % 100);[/code] I am trying to make a single random picture show up when you start …

Member Avatar for WolfPack
0
255
Member Avatar for TaSkOnE

Hi @ all, b4 things get serious. :icon_smile: Im using MFC with VCPP 6. I have a simple dialoge based app. Im using a triggered event with which I want to update the content of a CEdit box. The ASSERT of IsWindow fails because m_hWind = 0, I figure this …

Member Avatar for TaSkOnE
0
2K
Member Avatar for madmonkey

I'm trying to make a button to open a new form in a Win32 Forms App. Lets say the form I'm opening is called Form2 and the button is called button1. Any help will be greatly appreciated.

Member Avatar for madmonkey
0
116
Member Avatar for sixstorm1

Hi all, I have two problems, the first being the most important: 1. I have a Win32 (Non-MFC) app with a window and a win32 menu on it (HMENU), and I've been searching all day for a way to display shortcuts (like "Ctrl+C") on the menu items. I know there's …

Member Avatar for bheron
0
197
Member Avatar for yushuan718

Hello, This is my first post here. I had learned c/c++ for about half a year, and hope now to move into win32 non-console programming. I use VC 6.0 as my IDE and had successfully created a simple "Hello World" project (built by VC 6.0) However, I do not know …

Member Avatar for yushuan718
0
89
Member Avatar for Rudolfovich

Hi2all! What better use for working with databases in C + + and win32api? (static lib with source code, classes or simple source code, examples)

Member Avatar for Ancient Dragon
0
162
Member Avatar for Icebone1000

First..Im very beginner with winsock and network programing.. Im doing a simple app that can act or as server or as client. What Im doing is that I open the app twice in the same computer, in one I choose server, and in the other client. With the server part, …

Member Avatar for lashatt2
0
816
Member Avatar for Stefano Mtangoo

Hi all, this is just curious question on C++ and winapi. I have heard that win32api is written in C and at the same time I have heard people saying that "light weight" applications can be written using API. This boggles my mind on how C++ works with C-based API. …

Member Avatar for Ancient Dragon
0
270
Member Avatar for sixstorm1

Hi everyone, I am trying to print content from a Win32 richedit control, but it doesn't work. The text wraps to the half width of the page, and after printing, the text in the richedit is also messed up (word wrap to the half width of the box). I use …

0
146
Member Avatar for sixstorm1

Hi everyone, I have a modal dialog box which is called by the main thread. This dialog has no parent (appears at center screen, overlapped, and shown in taskbar). When the user clicks "Save" in the dialog, the dialog procedure receives the command and displays a save file dialog (GetSaveFileName). …

Member Avatar for sixstorm1
1
230

The End.