• Advertisement
Sign in to follow this  

problem-inline assembly graphics in visual c++

This topic is 4845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement