Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to automatically add lines and scroll in CEdit? Pin
Rostfrei29-Jan-06 21:42
Rostfrei29-Jan-06 21:42 
AnswerRe: How to automatically add lines and scroll in CEdit? Pin
Stephen Hewitt29-Jan-06 22:04
Stephen Hewitt29-Jan-06 22:04 
AnswerRe: How to automatically add lines and scroll in CEdit? Pin
Calc2029-Jan-06 22:05
Calc2029-Jan-06 22:05 
GeneralRe: How to automatically add lines and scroll in CEdit? Pin
Rostfrei29-Jan-06 22:12
Rostfrei29-Jan-06 22:12 
AnswerRe: How to automatically add lines and scroll in CEdit? Pin
Owner drawn29-Jan-06 22:06
Owner drawn29-Jan-06 22:06 
AnswerRe: How to automatically add lines and scroll in CEdit? Pin
David Crow30-Jan-06 3:12
David Crow30-Jan-06 3:12 
QuestionChecking if a user is in a group Pin
kelprinc29-Jan-06 21:12
kelprinc29-Jan-06 21:12 
AnswerRe: Checking if a user is in a group Pin
David Crow30-Jan-06 3:25
David Crow30-Jan-06 3:25 
GeneralRe: Checking if a user is in a group Pin
kelprinc30-Jan-06 3:30
kelprinc30-Jan-06 3:30 
Questiondetecting file access Pin
_kane_29-Jan-06 20:41
_kane_29-Jan-06 20:41 
AnswerRe: detecting file access Pin
Stephen Hewitt29-Jan-06 21:41
Stephen Hewitt29-Jan-06 21:41 
GeneralRe: detecting file access Pin
_kane_29-Jan-06 21:48
_kane_29-Jan-06 21:48 
QuestionImage selection Pin
_anil_29-Jan-06 20:31
_anil_29-Jan-06 20:31 
AnswerRe: Image selection Pin
PJ Arends29-Jan-06 20:47
professionalPJ Arends29-Jan-06 20:47 
GeneralRe: Image selection Pin
_anil_29-Jan-06 20:55
_anil_29-Jan-06 20:55 
GeneralRe: Image selection Pin
_anil_29-Jan-06 21:37
_anil_29-Jan-06 21:37 
QuestionHow to transfer IStream into IDataObject Pin
saravana pandy29-Jan-06 20:23
saravana pandy29-Jan-06 20:23 
HAI,
I am not able to put the IStream generated by me into the IDataObject.Here is the code snippet can anyone point out where i am going wrong?
IStream *lpStream = NULL;
//Put some data into IStream
LPDATAOBJECT pDO = new LPDATAOBJECT();
//FORMATETC definition
FORMATETC *fmtetc = new FORMATETC ;//= {0};
fmtetc->cfFormat = CF_TEXT;
fmtetc->dwAspect = DVASPECT_CONTENT;
fmtetc->lindex = -1;
fmtetc->tymed = TYMED_ISTREAM;
fmtetc->ptd = NULL;
//STGMEDIUM definition
STGMEDIUM *medium = new STGMEDIUM ;
medium->tymed =TYMED_ISTREAM;
medium-> pstm = lpStream;
lpStream->AddRef();
medium->pUnkForRelease = NULL;
//I get error in this line.
pDO->SetData(fmtetc,medium,TRUE);

Can anyone tell me what i should do before calling the setData()?
Thanks in advance.


Saravana Kumar

-- modified at 2:24 Monday 30th January, 2006
Questionwhat is the size of a empty class? Pin
vikas amin29-Jan-06 20:11
vikas amin29-Jan-06 20:11 
AnswerRe: what is the size of a empty class? Pin
Owner drawn29-Jan-06 20:17
Owner drawn29-Jan-06 20:17 
AnswerRe: what is the size of a empty class? Pin
Laxman929-Jan-06 21:26
Laxman929-Jan-06 21:26 
GeneralRe: what is the size of a empty class? Pin
vikas amin29-Jan-06 21:56
vikas amin29-Jan-06 21:56 
GeneralRe: what is the size of a empty class? Pin
Laxman930-Jan-06 0:50
Laxman930-Jan-06 0:50 
AnswerRe: what is the size of a empty class? Pin
toxcct30-Jan-06 0:44
toxcct30-Jan-06 0:44 
AnswerRe: what is the size of a empty class? Pin
David Crow30-Jan-06 3:40
David Crow30-Jan-06 3:40 
Question2-dimensional arrays Pin
eivanlo29-Jan-06 19:06
eivanlo29-Jan-06 19:06 

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.