Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1533:The color can't work well in assembly

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
XChicken Posted - Aug 27 2006 : 9:47:47 PM
eg:
if (GetOpenFileName(&ofn) != FALSE )
{

__asm
{
pushad
lea esi, EXE
push esi
push esi
call dword ptr lstrlen
add esi, eax
pop eax
dec esi
redo:
cmp byte ptr [esi], 0x5C
je ok
dec esi
jmp redo
ok:
SUB ESI, EAX
MOV ECX, ESI
inc ecx
lea edi, lpDirectory
lea esi, EXE
rep movsb
xor eax,eax
stosb
popad
}
If I embedded a assembly code section in VC,the color of this section can't work very well,maybe ur guys could make it better ^o^
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 28 2006 : 11:21:42 AM
it is unlikely we will ever try to offer enhanced syntax highlighting for inline assembly, but you can tell the IDE that you want certain words coloured as keywords. you simply have to add them to the "usertype.dat" file

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxtskDefiningKeywordsInVisualC.asp

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000