954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How can i use inline assembly in VC++ editor

HI,

I m using VC++ editor for C programming and i want to move cursor one row up in my terminal window.

I have tried interrupt using Inline assembly but when i execute the programm Error comes "access voilation " .

I m using Windows XP OS.

What should should i adopt to achieve my goal.

Thx
inderjeet singh

inderjeet singh
Newbie Poster
1 post since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

>What should should i adopt to achieve my goal.
Use the Win32 API instead of trying to break your computer with ASM. Specifically, look up SetConsoleCursorPosition on MSDN.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

With assembly bear in mind 99% of asm tutorials / examples are 16 bit code NOT to be compiled on a 32 bit setting. This is the single most common cause of inline asm errors :) and be very suspicious of code containing interrupts, as 32 bit compilation requires much different asm code overall :(

1o0oBhP
Posting Pro in Training
445 posts since Dec 2004
Reputation Points: 16
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You