Can i insert directX Game Into VB Form(example Diablo2 In windowed mode)?
it is possible and if yes please gimme an example.
Thanks in advance !
Printable View
Can i insert directX Game Into VB Form(example Diablo2 In windowed mode)?
it is possible and if yes please gimme an example.
Thanks in advance !
Moved
any Ideas?
You want to know if you can run an executable in windowed mode?
One reason people are not repling to this thread is they think you are up to something.
Do you have the Diablo 2 Source code?
Maybe if you make a seperate DX program and for the device window, use the Diablo window, and then, in your app, make it windowed.
How could you do something that low level in VB? :confused:
And How could you work out what the device context is?
Well I've seen it done before for other games that do not have windowed mode but people would like it, and I know they use DirectX. And to the best of my knowledge, that's how they did it.
i just need to put Diablo2 Window into my application that's all .. its possible or not and say me why .. ^_^
Forget about the Diablo2 window rubbish and think about what it is you are trying to achieve. You are trying to run a program inside another program in a little window. It does not matter which program you are trying to run it just matters that you are trying to run it within a little box inside a form. :)
Why do you want to do this?
if all you want to do is run diablo 2 in a window then just add -w to the end of the shortcut path (ie: "C:\Diablo 2\Diablo II.exe" -w)
Command line arguments are handled inside the executable.. not by the operating system. Theres no way, legally, you'll get -w working (so that it runs in windowed mode).
As for making it windowed mode.. its possible, although very 'icky' from the snippets I've seen.
chem
i guess my most wasnt too clear... my solution has nothing to do with programming, i mean the actual shortcut for the game, add the -w there, not in a VB program
i understood perfectly. Must be poor eyesight on their part. :)
I understand that.. but how do you plan on making the game understand what "-w" means?Quote:
Originally Posted by TBeck
chem
I believe the point TBeck is making is that it already understands - as it is a known command line parameter for the game.
Oh I got confused. I thought he wanted to make -w a valid command line parameter.. in which case.. MY BAD! I thought Diablo 2 didn't have windowed mode by default.. hence the confusion :pQuote:
Originally Posted by si_the_geek
I should probably sleep :(
chem
yea the -w is an 'easter egg' with the dame