Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VS2005 - ellipsis in a macro Pin
Michael Dunn25-Mar-06 0:23
sitebuilderMichael Dunn25-Mar-06 0:23 
GeneralRe: VS2005 - ellipsis in a macro Pin
Chintoo72325-Mar-06 22:50
Chintoo72325-Mar-06 22:50 
GeneralRe: VS2005 - ellipsis in a macro Pin
Michael Dunn26-Mar-06 12:22
sitebuilderMichael Dunn26-Mar-06 12:22 
QuestionLan Connection Pin
vivek.s.vivek24-Mar-06 17:55
vivek.s.vivek24-Mar-06 17:55 
AnswerRe: Lan Connection Pin
ThatsAlok24-Mar-06 18:52
ThatsAlok24-Mar-06 18:52 
AnswerRe: Lan Connection Pin
Ganesh_T24-Mar-06 23:03
Ganesh_T24-Mar-06 23:03 
GeneralRe: Lan Connection Pin
ThatsAlok25-Mar-06 5:59
ThatsAlok25-Mar-06 5:59 
QuestionHow do I magnify a section fo the screen? Pin
Rapture2k424-Mar-06 15:50
Rapture2k424-Mar-06 15:50 
Greetings,

I'm new to VC++ and the MFC (been programming text based games in C for 10 years) and I've decided to give VC++ a shot. I have worked with some DirectX 8 and 9 over the last few months (modifying what someone else wrote and using MSDN to understand it all). Anyways, what I'm trying to do is create an application that will do a couple things:

1.) Copy the pixel/bitmap information of the center of the screen (let's say 50x50 pixels)
2.) Draw a black box in the center of the screen (multiple of the above [1.5-4x])
3.) Scale the stored pixel/bitmap information to match the size of the box.
4.) Draw the new bitmap in the box.

Also, I'm wondering if it is possible to make this an overlay to some fullscreen application (for example a 3D game). The purpose of this application is to offer a "zoom" function in Blizzard's World of Warcraft MMORPG game. I have managed to hook DirectX and then modifying the Field of View (which works wonderfully), but I have come across a problem. Due to the nature of my code (hooking Dx9), the game thinks I'm using some type of cheat. Blizzard froze my account and after explaining what I was doing (and sending them my code), they unbanned me and told me I'd have to come up with a different method that did not involve attaching to WoW's process. The person I spoke with said that my little project was such a good idea that he'd pass it on to the dev-team. This is all fine and good, but I am now very curious as to how I can go about this independently of the game. Besides, I'm sure the dev-team won't have this feature in the game for quite some time (if they even consider it needed).

I figure the best approach would be using GDI/GDI+ for this, unless it is possible to do in DirectX or OpenGL without hooking WoW's process. I just have no idea where to start looking for information. Most of my searching has turned up articles on the inefficiency of GetPixel() and how using other GDI functions is much more efficient. Or I come across some pre-built application with no source code to learn from OMG | :OMG: . On another note, I'm wondering if my overlay will "flicker" due to the fact the game is rendering constantly (90-100 frames per second) and my application will just render as fast as it can loop (without hording the CPU). I know that some applications can place overlays on games without a problem (such as xFire) and I wonder how.

Any ideas, snippets, or places of intrest to look?

Thanx so much,
Rapture2k4
AnswerRe: How do I magnify a section fo the screen? Pin
includeh1025-Mar-06 0:10
includeh1025-Mar-06 0:10 
GeneralRe: How do I magnify a section fo the screen? Pin
Rapture2k425-Mar-06 0:43
Rapture2k425-Mar-06 0:43 
GeneralRe: How do I magnify a section fo the screen? Pin
includeh1025-Mar-06 1:26
includeh1025-Mar-06 1:26 
Questioni want to develop a GUI Pin
ashalab24-Mar-06 15:06
ashalab24-Mar-06 15:06 
AnswerRe: i want to develop a GUI Pin
Aqueel24-Mar-06 17:52
Aqueel24-Mar-06 17:52 
GeneralRe: i want to develop a GUI Pin
ThatsAlok24-Mar-06 18:54
ThatsAlok24-Mar-06 18:54 
AnswerRe: i want to develop a GUI Pin
ThatsAlok24-Mar-06 18:56
ThatsAlok24-Mar-06 18:56 
QuestionHow to change Default color Buttons Without CBitmap? Pin
CodeVarma24-Mar-06 13:22
CodeVarma24-Mar-06 13:22 
AnswerRe: How to change Default color Buttons Without CBitmap? Pin
Hamid_RT24-Mar-06 17:45
Hamid_RT24-Mar-06 17:45 
QuestionQuestion about string case insensitive Pin
Helen Chang24-Mar-06 9:55
Helen Chang24-Mar-06 9:55 
AnswerRe: Question about string case insensitive Pin
PJ Arends24-Mar-06 10:04
professionalPJ Arends24-Mar-06 10:04 
AnswerRe: Question about string case insensitive Pin
Maximilien24-Mar-06 10:04
Maximilien24-Mar-06 10:04 
GeneralRe: Question about string case insensitive Pin
Helen Chang24-Mar-06 10:49
Helen Chang24-Mar-06 10:49 
GeneralRe: Question about string case insensitive Pin
Rapture2k424-Mar-06 16:08
Rapture2k424-Mar-06 16:08 
GeneralRe: Question about string case insensitive Pin
ThatsAlok24-Mar-06 18:58
ThatsAlok24-Mar-06 18:58 
QuestionHow to get Active document in a child frame class and in Main frame class. Pin
G Haranadh24-Mar-06 7:18
G Haranadh24-Mar-06 7:18 
AnswerRe: How to get Active document in a child frame class and in Main frame class. Pin
PJ Arends24-Mar-06 10:08
professionalPJ Arends24-Mar-06 10:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.