Sign in to follow this  
jimiwa

problem-inline assembly graphics in visual c++

Recommended Posts

I tried to write a simple windows program in visual c++ .net 2003 using inline assembly. I tried to switch to graphics mode 13h (the assembly part of the code), but it doesn't work. Is this because mode 13h is dos and visual c++ .net doesn't work with dos? I tried it with an empty project and a win32 project and neither worked. Is there any way around this? Basically what I want to do is full screen graphics using inline assembly in visual c++ .net. Is this even possible? Please help me if you know something about this or if you can point me in the right direction. Thanks.

Share this post


Link to post
Share on other sites
Mode 13h is a legacy 16bit mode which isn't generally available in Windows as such. It's emulated in console applications but isn't with Win32 apps. Are you creating a Win32 app or a console application?
You could always create a DirectDraw surface using C/C++ then pass the surface pointer to your assembly routines. That way, you can safely use 32 bit code and it'll work on any Win32 PC.

Skizz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this