How can i use inline assembly in VC++ editor

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2005
Posts: 1
Reputation: inderjeet singh is an unknown quantity at this point 
Solved Threads: 0
inderjeet singh inderjeet singh is offline Offline
Newbie Poster

How can i use inline assembly in VC++ editor

 
0
  #1
Jan 24th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,567
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 706
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: How can i use inline assembly in VC++ editor

 
0
  #2
Jan 24th, 2005
>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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: How can i use inline assembly in VC++ editor

 
0
  #3
Jan 25th, 2005
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
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC