Click here to Skip to main content
14,451,065 members

C / C++ / MFC

 
AnswerRe: queues to find minimum time to serve all. Pin
leon de boer28-Dec-19 15:40
Memberleon de boer28-Dec-19 15:40 
QuestionHow to check if USB filter driver be installed by MFC? Pin
yufengchien26-Dec-19 23:19
Memberyufengchien26-Dec-19 23:19 
AnswerRe: How to check if USB filter driver be installed by MFC? Pin
Richard MacCutchan27-Dec-19 0:44
communityengineerRichard MacCutchan27-Dec-19 0:44 
QuestionKnight move, right direction, dynamic programming to get the maximum cost path from top left to right bottom. Pin
Jiopik25-Dec-19 1:25
MemberJiopik25-Dec-19 1:25 
AnswerRe: Knight move, right direction, dynamic programming to get the maximum cost path from top left to right bottom. Pin
Richard MacCutchan26-Dec-19 5:25
communityengineerRichard MacCutchan26-Dec-19 5:25 
QuestionIRichEditOle::InsertObject shifts text one byte Pin
ForNow21-Dec-19 19:18
MemberForNow21-Dec-19 19:18 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan21-Dec-19 23:07
communityengineerRichard MacCutchan21-Dec-19 23:07 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
ForNow22-Dec-19 6:09
MemberForNow22-Dec-19 6:09 
first off I am trying to write a front end to debugger sort of like visual studio I have a red bullet and the insert object works it places it in the first position of the buffer but the result is it shifts over the text in the rich buffer. The X'3F' seems to represent the red bullet bmp so I wrote code to shift everything over to the left 1 byte however seems like the lines get duplicated meaning

this is what in the rich edit before " STM R14,R12,12(R13) "
After the insertobject " LR R3,R15 "


" Wink | ;) STM R14,R12,12(R13) "
" LR R3,R15
I cant cut and paste the rich edit display correctly but the insert object puts the bullet bmp where I want it, it just pushes the text to the right one byte thought if I wrote code to sh*t it over that would straighten it out but all did was display the STM line twice

This my code


myoleptr->InsertObject(&reobject);
			int i;
			RichListing->GetLine(RichListing->LineFromChar(-1), (LPTSTR)&buffer, 132);
			for (i = 1; i < 132; i++)
				buffer[i] = buffer[i + 1];

buffer before

0x00000004BEF4C2C0  3f 20 20 20 5f 20 20 20 20 20 20 20 32 33 20 20 20 20 20 20 20 20 30 30 30 30 30 30 20 20 20 20  ?   _       23        000000    
0x00000004BEF4C2E0  20 20 20 20 20 20 20 20 20 53 54 4d 20 20 20 52 31 34 2c 52 31 32 2c 31 32 28 52 31 33 29 20 20           STM   R14,R12,12(R13)  
0x00000004BEF4C300  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                                  
0x00000004BEF4C320  20 20 20 20 20 20 20 20 30 30 30 32 31 30 35 31 0d 00 cc cc cc cc cc cc cc cc cc cc cc cc cc cc          00021051..ÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
0x00000004BEF4C340  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
0x00000004BEF4C360  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
0x00000004BEF4C380  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
0x00000004BEF4C3A0  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ




buffer after
0x00000004BEF4C2C0  3f 20 20 5f 20 20 20 20 20 20 20 32 33 20 20 20 20 20 20 20 20 30 30 30 30 30 30 20 20 20 20 20  ?  _       23        000000     
0x00000004BEF4C2E0  20 20 20 20 20 20 20 20 53 54 4d 20 20 20 52 31 34 2c 52 31 32 2c 31 32 28 52 31 33 29 20 20 20          STM   R14,R12,12(R13)   
0x00000004BEF4C300  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                                  
0x00000004BEF4C320  20 20 20 20 20 20 20 30 30 30 32 31 30 35 31 0d 00 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc         00021051..ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
0x00000004BEF4C340  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
0x00000004BEF4C360  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ

GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan22-Dec-19 23:20
communityengineerRichard MacCutchan22-Dec-19 23:20 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
ForNow23-Dec-19 2:04
MemberForNow23-Dec-19 2:04 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan23-Dec-19 3:03
communityengineerRichard MacCutchan23-Dec-19 3:03 
QuestionCASE SOLVED AND CLOSED cout and cerr execute out of coded sequence Pin
Vaclav_21-Dec-19 11:13
MemberVaclav_21-Dec-19 11:13 
AnswerRe: SOLVED cout and cerr execute out of coded sequence Pin
Richard MacCutchan21-Dec-19 22:32
communityengineerRichard MacCutchan21-Dec-19 22:32 
AnswerRe: CASE SOLVED AND CLOSED cout and cerr execute out of coded sequence Pin
Richard MacCutchan22-Dec-19 23:55
communityengineerRichard MacCutchan22-Dec-19 23:55 
QuestionSOLVED CASE CLOSED cout in color and perror - revisited Pin
Vaclav_20-Dec-19 5:46
MemberVaclav_20-Dec-19 5:46 
AnswerRe: cout in color and perror - revisited Pin
leon de boer20-Dec-19 6:01
Memberleon de boer20-Dec-19 6:01 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_20-Dec-19 6:48
MemberVaclav_20-Dec-19 6:48 
AnswerRe: cout in color and perror - revisited Pin
Richard MacCutchan20-Dec-19 7:07
communityengineerRichard MacCutchan20-Dec-19 7:07 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_21-Dec-19 4:10
MemberVaclav_21-Dec-19 4:10 
GeneralRe: cout in color and perror - revisited Pin
Richard MacCutchan21-Dec-19 4:34
communityengineerRichard MacCutchan21-Dec-19 4:34 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_21-Dec-19 10:05
MemberVaclav_21-Dec-19 10:05 
GeneralRe: cout in color and perror - revisited Pin
Richard MacCutchan21-Dec-19 22:25
communityengineerRichard MacCutchan21-Dec-19 22:25 
QuestionHow to close file in C++? Pin
Vaclav_19-Dec-19 18:13
MemberVaclav_19-Dec-19 18:13 
QuestionRe: How to close file in C++? Pin
CPallini19-Dec-19 22:35
mveCPallini19-Dec-19 22:35 
AnswerRe: How to close file in C++? Pin
Stefan_Lang19-Dec-19 22:59
mveStefan_Lang19-Dec-19 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.