Click here to Skip to main content
14,694,371 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionWriting Objects into files in binary mode Pin
Sujan Dhakal3-Feb-10 2:58
MemberSujan Dhakal3-Feb-10 2:58 
AnswerRe: Writing Objects into files in binary mode Pin
Cedric Moonen3-Feb-10 3:10
MemberCedric Moonen3-Feb-10 3:10 
GeneralRe: Writing Objects into files in binary mode Pin
Sujan Dhakal3-Feb-10 3:17
MemberSujan Dhakal3-Feb-10 3:17 
AnswerRe: Writing Objects into files in binary mode Pin
CPallini3-Feb-10 3:20
mveCPallini3-Feb-10 3:20 
GeneralRe: Writing Objects into files in binary mode Pin
Sujan Dhakal3-Feb-10 3:28
MemberSujan Dhakal3-Feb-10 3:28 
QuestionUnable to paste clipboard data by sending WM_PASTE message Pin
lazy_panther3-Feb-10 2:30
Memberlazy_panther3-Feb-10 2:30 
AnswerRe: Unable to paste clipboard data by sending WM_PASTE message Pin
Iain Clarke, Warrior Programmer3-Feb-10 4:45
MemberIain Clarke, Warrior Programmer3-Feb-10 4:45 
AnswerRe: Unable to paste clipboard data by sending WM_PASTE message Pin
LunaticFringe3-Feb-10 4:48
MemberLunaticFringe3-Feb-10 4:48 
lazy_panther wrote:
Any pointers what am I doing wrong?


Sure; you're assuming way too much. For instance, what makes you think that NotePad's mainframe is going to respond to a WM_PASTE message in just the way you want?

Why do you need to paste text to an open NotePad window, anyway? If you need to gather textual input, show a dialog with a text window and collect it that way.

And don't use the clipboard to pass data internally in your program. It's very bad style; suppose, for instance, the user had text already on the clipboard that he'd copied from a browser window with the intention of pasting it later into a Word document. Don't you think that user is going to be a little irritated to find the text he'd placed there is overwritten with something your program did internally, without user consent?

L u n a t i c F r i n g e

QuestionRe: Unable to paste clipboard data by sending WM_PASTE message [modified] Pin
lazy_panther3-Feb-10 17:35
Memberlazy_panther3-Feb-10 17:35 
AnswerRe: Unable to paste clipboard data by sending WM_PASTE message Pin
LunaticFringe3-Feb-10 19:44
MemberLunaticFringe3-Feb-10 19:44 
GeneralRe: Unable to paste clipboard data by sending WM_PASTE message Pin
lazy_panther4-Feb-10 2:50
Memberlazy_panther4-Feb-10 2:50 
GeneralRe: Unable to paste clipboard data by sending WM_PASTE message Pin
LunaticFringe4-Feb-10 14:32
MemberLunaticFringe4-Feb-10 14:32 
QuestionTroublesome Handling of Files in C++ Pin
Sujan Dhakal3-Feb-10 2:29
MemberSujan Dhakal3-Feb-10 2:29 
AnswerRe: Troublesome Handling of Files in C++ Pin
CPallini3-Feb-10 2:37
mveCPallini3-Feb-10 2:37 
AnswerRe: Troublesome Handling of Files in C++ [modified] Pin
Stuart Dootson3-Feb-10 2:46
professionalStuart Dootson3-Feb-10 2:46 
GeneralRe: Troublesome Handling of Files in C++ Pin
CPallini3-Feb-10 2:54
mveCPallini3-Feb-10 2:54 
GeneralRe: Troublesome Handling of Files in C++ Pin
Stuart Dootson3-Feb-10 3:28
professionalStuart Dootson3-Feb-10 3:28 
AnswerRe: Troublesome Handling of Files in C++ Pin
Raj Indian3-Feb-10 23:00
MemberRaj Indian3-Feb-10 23:00 
QuestionSetUpAndDeployment Project Pin
jannathali2-Feb-10 23:31
Memberjannathali2-Feb-10 23:31 
AnswerRe: SetUpAndDeployment Project [modified] Pin
KingsGambit3-Feb-10 0:47
MemberKingsGambit3-Feb-10 0:47 
GeneralRe: SetUpAndDeployment Project Pin
jannathali3-Feb-10 2:03
Memberjannathali3-Feb-10 2:03 
GeneralRe: SetUpAndDeployment Project Pin
KingsGambit3-Feb-10 2:14
MemberKingsGambit3-Feb-10 2:14 
QuestionCaption Change Pin
john56322-Feb-10 21:32
Memberjohn56322-Feb-10 21:32 
AnswerRe: Caption Change Pin
Richard MacCutchan2-Feb-10 23:34
mveRichard MacCutchan2-Feb-10 23:34 
AnswerRe: Caption Change Pin
CPallini2-Feb-10 23:42
mveCPallini2-Feb-10 23:42 

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.