|
-
Apr 25th, 2007, 06:51 PM
#1
Thread Starter
Member
VB & DirectX Question
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 !
-
Apr 26th, 2007, 06:13 AM
#2
Re: VB & DirectX Question
-
May 4th, 2007, 03:24 PM
#3
Thread Starter
Member
Re: VB & DirectX Question
-
May 5th, 2007, 02:58 PM
#4
Hyperactive Member
Re: VB & DirectX Question
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?
-
May 5th, 2007, 11:57 PM
#5
Frenzied Member
Re: VB & DirectX Question
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.
-
May 6th, 2007, 07:41 AM
#6
Hyperactive Member
Re: VB & DirectX Question
How could you do something that low level in VB?
And How could you work out what the device context is?
-
May 6th, 2007, 08:24 AM
#7
Frenzied Member
Re: VB & DirectX Question
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.
-
Jun 12th, 2007, 04:48 PM
#8
Thread Starter
Member
Re: VB & DirectX Question
i just need to put Diablo2 Window into my application that's all .. its possible or not and say me why .. ^_^
-
Jun 15th, 2007, 03:39 AM
#9
Hyperactive Member
Re: VB & DirectX Question
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?
-
Jun 15th, 2007, 03:13 PM
#10
Addicted Member
Re: VB & DirectX Question
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)
-
Jun 15th, 2007, 10:35 PM
#11
Re: VB & DirectX Question
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
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Jun 15th, 2007, 10:47 PM
#12
Addicted Member
Re: VB & DirectX Question
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
-
Jun 15th, 2007, 11:39 PM
#13
Re: VB & DirectX Question
i understood perfectly. Must be poor eyesight on their part.
-
Jun 16th, 2007, 07:07 AM
#14
Re: VB & DirectX Question
 Originally Posted by TBeck
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 understand that.. but how do you plan on making the game understand what "-w" means?
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Jun 16th, 2007, 07:43 AM
#15
Re: VB & DirectX Question
I believe the point TBeck is making is that it already understands - as it is a known command line parameter for the game.
-
Jun 16th, 2007, 12:10 PM
#16
Re: VB & DirectX Question
 Originally Posted by si_the_geek
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 
I should probably sleep 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Jun 16th, 2007, 05:41 PM
#17
Addicted Member
Re: VB & DirectX Question
yea the -w is an 'easter egg' with the dame
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|