I have writen a Demo with VC7.1 , but where have a bug,
In file " radEditVC.cpp " , if I uncomment line 239 and line 241,
the program will crash , the reason is buffer overflow.
I think it is a bug about radAsm Edit control.

It is right?


Free2000fly



I have Fixed it , thanks
Posted on 2004-02-29 14:37:44 by free2000fly
In my think, in file RAEdit.h, your struct RACOLOR does not have the last member: COLORREF numcol; So, when you call SendMessage(hRaEditWnd, REM_GETCOLOR, 0, (LPARAM)&raColor), the variable lpCreateStruct created on stack will be overwrited.
Best regards
TQN
Posted on 2004-03-01 04:31:52 by TQN
Hi TQN,
I have Fixed the bug, thanks.

free2000fly
Posted on 2004-03-01 11:25:08 by free2000fly
Hi free2000fly

Thanks, great demo. I have put it on my website.

KetilO
Posted on 2004-03-12 03:46:54 by KetilO