Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 15
Member Avatar for Fromethius

Without creating global variables, is there a way to pass variables to the WindowProcedure that handles the messages? For example, if I create a variable and initialize it in WinMain, is there any way to use it in my WindowProcedure? What I am doing is this. I have a class …

Member Avatar for robgxxx
0
94
Member Avatar for Fromethius

Hello everyone I'm trying to write a program in native c++ code that will do this: When drawing in MS Paint and I press the P key on the keyboard, the Pencil tool will become the current tool. I really want to stay away from installing drivers, injecting dlls, reverse …

Member Avatar for Fromethius
0
142
Member Avatar for Fromethius

Hi everyone. For the past day I've been trying to find a good way to handle keyboard input. Naturally, I wanted to just use WM_KEYDOWN and WM_KEYUP to handle my events, but they proven to have limitations. In my game there was a keyboard delay. If you pressed and held …

Member Avatar for Tight_Coder_Ex
0
173
Member Avatar for Fromethius

If I launch my DirectX program, full-screen initializes. If I alt tab out of it, it alt-tabs as normal. However, if I then maximize it so it has the focus of my computer again and then alt-tab for the second time, the window doesn't minimize. The taskbar shows up but …

Member Avatar for FireNet
0
151
Member Avatar for Fromethius

I've been working on this for a couple days now. I'm really looking for the best way to render. Nothing too complicated but something that is fast, reliable, and powerful. I've seen many websites and about each one shows a different way. I've probably gone through about 5 different ways …

Member Avatar for FireNet
0
82
Member Avatar for Fromethius

Hello everyone, Is there an equivalent to SendKeys.Send in C++? I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions. Thanks for any help. Edit: I'm not using the .Net Framework so I can't use any of …

Member Avatar for rdwofrdw
0
599
Member Avatar for Fromethius

Hello everyone, I have this code: [CODE] Image* newImage = Image::FromFile(szFileName); Bitmap image(50, 50); Graphics graphics(&image); HDC gfxHDC = graphics.GetHDC(); graphics.DrawImage(newImage, 0, 0); int pixel, row; for (pixel = 1, row = 1; row <= 50; pixel++) if (GetPixel(gfxHDC, pixel, row) != RGB(255, 255, 255)) [/CODE] Anyways, whenever I use …

Member Avatar for WolfPack
0
155
Member Avatar for Fromethius

-------------------------------------------------------------------------------- When using this with the DrawText API, I make the rectangle that the text is contained in the width of the return value of GetTextExtentPoint32 I know I am using the right parameters, but sometimes the rectangle is way too big (over 15 pixels wider than the actual width …

Member Avatar for Salem
0
182
Member Avatar for Fromethius

Hello everyone and thank you for taking the time to read my post I am running Visual C++ 2005 and I'm having some trouble with GDI+. I have two bitmaps: [CODE] Bitmap* pngFrame; Bitmap* pngEmblem; [/CODE] I initialized them in a function I use, and I can display them no …

0
61
Member Avatar for Fromethius

All week now I have been searching for a good way to load and display PNG files. Every solution I try never works. So now I am posting on the forums. I am not looking for a huge library. In fact, I'm not looking for a library at all. All …

Member Avatar for WolfPack
0
95
Member Avatar for Fromethius

I have Windows XP with Dev-C++. I created a Windows Application and added #include <gdiplus.h> to the top of the file. I made sure I had gdiplus.h and all the files it required in my include folder. However, when I try to run the application. I get these errors: [url]http://rafb.net/p/wD4DPa78.html[/url] …

0
78