Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString concatenation Pin
RChin9-Nov-05 6:50
RChin9-Nov-05 6:50 
GeneralRe: CString concatenation Pin
Kharfax9-Nov-05 6:55
Kharfax9-Nov-05 6:55 
AnswerRe: CString concatenation Pin
James R. Twine9-Nov-05 6:57
James R. Twine9-Nov-05 6:57 
QuestionLoss of "Called by"-functionality Pin
Polly Parrot9-Nov-05 5:02
Polly Parrot9-Nov-05 5:02 
QuestionJava problem in hosted IE view... Pin
James R. Twine9-Nov-05 4:08
James R. Twine9-Nov-05 4:08 
QuestionVC6.0 and VS.NET co-existence question Pin
prcarp9-Nov-05 3:20
prcarp9-Nov-05 3:20 
AnswerRe: VC6.0 and VS.NET co-existence question Pin
John M. Drescher9-Nov-05 3:58
John M. Drescher9-Nov-05 3:58 
QuestionGDI+: Image Save returned Invalid Parameter Pin
raed9-Nov-05 3:13
raed9-Nov-05 3:13 
I'm in case that function returned for me JPEG file data in CString.
so I write the CString data to IStream Object and then save the file but I'm
getting InvalidParameter , i do not know why? here is code snippet

Write(CString image, int len)
{

CLSID encoderClsid;
GetEncoderClsid(L"image/jpeg", &encoderClsid);
LPBYTE lpBits = (LPBYTE) GlobalAlloc(GMEM_MOVEABLE, len);
IStream *pStream;
HRESULT res = ::CreateStreamOnHGlobal(lpBits,FALSE,&pStream);
LPTSTR sImage = image.GetBuffer(len);
pStream->Write(sImage,sizeof(sImage),NULL);
LARGE_INTEGER li;
li.QuadPart = 0;
res = pStream->Seek(li,STREAM_SEEK_SET,NULL);
if(SUCCEEDED(res))
{
Image *jpgImage = Image::FromStream(pStream);
jpgImage->Save(L"C:\\myImage.jpg",&encoderClsid,NULL);
//here Save return InvalidParameter , WHY? any suggestions?
}

}

QuestionMenu items grayed out? Pin
Jesper Knudsen9-Nov-05 2:44
Jesper Knudsen9-Nov-05 2:44 
QuestionRe: Menu items grayed out? Pin
David Crow9-Nov-05 3:05
David Crow9-Nov-05 3:05 
AnswerRe: Menu items grayed out? Pin
Jesper Knudsen9-Nov-05 3:25
Jesper Knudsen9-Nov-05 3:25 
GeneralRe: Menu items grayed out? Pin
David Crow9-Nov-05 3:36
David Crow9-Nov-05 3:36 
GeneralRe: Menu items grayed out? Pin
Jesper Knudsen9-Nov-05 3:55
Jesper Knudsen9-Nov-05 3:55 
GeneralRe: Menu items grayed out? Pin
John M. Drescher9-Nov-05 4:10
John M. Drescher9-Nov-05 4:10 
GeneralRe: Menu items grayed out? Pin
David Crow9-Nov-05 4:13
David Crow9-Nov-05 4:13 
GeneralRe: Menu items grayed out? Pin
Jesper Knudsen9-Nov-05 4:12
Jesper Knudsen9-Nov-05 4:12 
GeneralRe: Menu items grayed out? Pin
David Crow9-Nov-05 5:36
David Crow9-Nov-05 5:36 
QuestionHide the blue task pane in a CHtmlView??? Pin
gleditzsch9-Nov-05 2:35
gleditzsch9-Nov-05 2:35 
AnswerRe: Hide the blue task pane in a CHtmlView??? Pin
Ed K9-Nov-05 7:31
Ed K9-Nov-05 7:31 
GeneralRe: Hide the blue task pane in a CHtmlView??? Pin
gleditzsch9-Nov-05 20:33
gleditzsch9-Nov-05 20:33 
Questionevent when loading a dll Pin
Mathefreak9-Nov-05 2:29
Mathefreak9-Nov-05 2:29 
AnswerRe: event when loading a dll Pin
Blake Miller9-Nov-05 4:27
Blake Miller9-Nov-05 4:27 
QuestionHow to pass CStatic as normal variable to member function Pin
LaHaHa9-Nov-05 1:46
LaHaHa9-Nov-05 1:46 
AnswerRe: How to pass CStatic as normal variable to member function Pin
Cedric Moonen9-Nov-05 2:17
Cedric Moonen9-Nov-05 2:17 
GeneralRe: How to pass CStatic as normal variable to member function Pin
LaHaHa9-Nov-05 2:34
LaHaHa9-Nov-05 2:34 

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.