Click here to Skip to main content
15,792,435 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to check if USB filter driver be installed by MFC? Pin
Richard MacCutchan27-Dec-19 0:44
mveRichard 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
Jiopik25-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
mveRichard MacCutchan26-Dec-19 5:25 
QuestionIRichEditOle::InsertObject shifts text one byte Pin
ForNow21-Dec-19 19:18
ForNow21-Dec-19 19:18 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan21-Dec-19 23:07
mveRichard MacCutchan21-Dec-19 23:07 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
ForNow22-Dec-19 6:09
ForNow22-Dec-19 6:09 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan22-Dec-19 23:20
mveRichard MacCutchan22-Dec-19 23:20 
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
ForNow23-Dec-19 2:04
ForNow23-Dec-19 2:04 
Richard

I think the selection range has to be in line with the number of characters that are in
C++
LPCTSTR lpszNewText,
of the null terminated string parameter of ReplaceSel

When you InsertObject a bitmap that bitmap depending on its size takes up a certain amount of characters depending among other things the size of font of the

current selection and the size of the bitmap. I am not sure if there is a some way to calculate this i.e. if you have a string and you want to know how many pixels it takes you do GetTextExtent. the REOBJECT structure doesn't seem to have parameters for the size of the bitmap like BITBLT I just played around with the string and the selection size and got it to align
GeneralRe: IRichEditOle::InsertObject shifts text one byte Pin
Richard MacCutchan23-Dec-19 3:03
mveRichard MacCutchan23-Dec-19 3:03 
QuestionCASE SOLVED AND CLOSED cout and cerr execute out of coded sequence Pin
Vaclav_21-Dec-19 11:13
Vaclav_21-Dec-19 11:13 
AnswerRe: SOLVED cout and cerr execute out of coded sequence Pin
Richard MacCutchan21-Dec-19 22:32
mveRichard 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
mveRichard MacCutchan22-Dec-19 23:55 
QuestionSOLVED CASE CLOSED cout in color and perror - revisited Pin
Vaclav_20-Dec-19 5:46
Vaclav_20-Dec-19 5:46 
AnswerRe: cout in color and perror - revisited Pin
leon de boer20-Dec-19 6:01
leon de boer20-Dec-19 6:01 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_20-Dec-19 6:48
Vaclav_20-Dec-19 6:48 
AnswerRe: cout in color and perror - revisited Pin
Richard MacCutchan20-Dec-19 7:07
mveRichard MacCutchan20-Dec-19 7:07 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_21-Dec-19 4:10
Vaclav_21-Dec-19 4:10 
GeneralRe: cout in color and perror - revisited Pin
Richard MacCutchan21-Dec-19 4:34
mveRichard MacCutchan21-Dec-19 4:34 
GeneralRe: cout in color and perror - revisited Pin
Vaclav_21-Dec-19 10:05
Vaclav_21-Dec-19 10:05 
GeneralRe: cout in color and perror - revisited Pin
Richard MacCutchan21-Dec-19 22:25
mveRichard MacCutchan21-Dec-19 22:25 
QuestionHow to close file in C++? Pin
Vaclav_19-Dec-19 18:13
Vaclav_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
Stefan_Lang19-Dec-19 22:59 
AnswerRe: How to close file in C++? Pin
Vaclav_20-Dec-19 5:51
Vaclav_20-Dec-19 5:51 
AnswerRe: How to close file in C++? Pin
Richard MacCutchan19-Dec-19 22:56
mveRichard MacCutchan19-Dec-19 22:56 

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.