Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: DirectX Game VB.NET
Hello guys,

There is this thing that has really been bugging me and I've recently become interesting in finding out how to do this. After several pointless hours spent on google I couldn't find my answer. I've recently done a bit of work with DirectX but only have become a little wiser.
 
My Aim:
 
I've been trying to make a program that can be opened while gaming (just like mumble is able to open it's chat functions in game, and FRAPS is able to show an FPS counter).
 
My Question:
 
How do those programs do this? How do they detect that this certain game has initiated and get their own windows/objects drawn within their screens? (I know they aren't seperate windows, I've tried to do it using a window method but it's impossible to get mine on top of the game - dismiss that idea).
 
I would extremely appreciate if anyone could push me in the right direction with the following:
- How does the program detect the game, and get it's own objects/window drawn into it?
- If this is using DirectX/OpenGL functions, how can I do this too?
 
I followed a tutorial to create a simple line and draw that on my own form, but how can I draw it let's say on the game (i.e. if I can draw a line, I can do anything else I want because I know how its' done.
 
At this point:
device = New Device(0, DeviceType.Hardware, Me.Handle, CreateFlags.SoftwareVertexProcessing, present)
 
I have also used another window's handle instead of Me.Handle but that didn't seem to work.
 
Anyone got any ideas? I would highly appreciate your help.
Posted 1-Jan-13 8:36am
Comments
Sergey Alexandrovich Kryukov at 1-Jan-13 14:50pm
   
If you are using VB.NET, why considering using DirectX directly? It's much better to use WPF which is based on DirectX.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 475
1 Maciej Los 339
2 Richard MacCutchan 225
3 BillWoodruff 219
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411028.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100