Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to call Windows's built-in routines to read and write JPG files? Pin
Anthony Appleyard17-Dec-07 4:04
Anthony Appleyard17-Dec-07 4:04 
AnswerTypo sorry Pin
Anthony Appleyard17-Dec-07 4:07
Anthony Appleyard17-Dec-07 4:07 
GeneralAbout the "Typo sorry" Pin
Nelek17-Dec-07 4:29
protectorNelek17-Dec-07 4:29 
GeneralRe: About the "Typo sorry" Pin
toxcct17-Dec-07 4:43
toxcct17-Dec-07 4:43 
GeneralRe: About the "Typo sorry" Pin
Nelek17-Dec-07 21:27
protectorNelek17-Dec-07 21:27 
AnswerRe: How to call Windows's built-in routines to read and write JPG files? Pin
CPallini17-Dec-07 4:23
mveCPallini17-Dec-07 4:23 
GeneralRe: How to call Windows's built-in routines to read and write JPG files? Pin
Anthony Appleyard17-Dec-07 4:27
Anthony Appleyard17-Dec-07 4:27 
GeneralRe: How to call Windows's built-in routines to read and write JPG files? Pin
Anthony Appleyard17-Dec-07 4:53
Anthony Appleyard17-Dec-07 4:53 
I then inserted the instructions:

GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
Image* image = new Image(L"C:\\Poser4\\~~~~~.bmp");

and the result was successful compilation and these 7 linking faults:

>qwerty.obj : error LNK2019: unresolved external symbol _GdiplusStartup@12 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>qwerty.obj : error LNK2019: unresolved external symbol _GdipFree@4 referenced in function "public: static void __cdecl Gdiplus::GdiplusBase::operator delete(void *)" (??3GdiplusBase@Gdiplus@@SAXPAX@Z)
1>qwerty.obj : error LNK2019: unresolved external symbol _GdipAlloc@4 referenced in function "public: static void * __cdecl Gdiplus::GdiplusBase::operator new(unsigned int)" (??2GdiplusBase@Gdiplus@@SAPAXI@Z)
1>qwerty.obj : error LNK2019: unresolved external symbol _GdipLoadImageFromFile@8 referenced in function "public: __thiscall Gdiplus::Image::Image(wchar_t const *,int)" (??0Image@Gdiplus@@QAE@PB_WH@Z)
1>qwerty.obj : error LNK2019: unresolved external symbol _GdipLoadImageFromFileICM@8 referenced in function "public: __thiscall Gdiplus::Image::Image(wchar_t const *,int)" (??0Image@Gdiplus@@QAE@PB_WH@Z)
1>qwerty.obj : error LNK2019: unresolved external symbol _GdipDisposeImage@4 referenced in function "public: virtual __thiscall Gdiplus::Image::~Image(void)" (??1Image@Gdiplus@@UAE@XZ)
1>qwerty.obj : error LNK2019: unresolved external symbol _GdipCloneImage@8 referenced in function "public: virtual class Gdiplus::Image * __thiscall Gdiplus::Image::Clone(void)" (?Clone@Image@Gdiplus@@UAEPAV12@XZ)

Please what now??????????
GeneralRe: How to call Windows's built-in routines to read and write JPG files? Pin
CPallini17-Dec-07 5:04
mveCPallini17-Dec-07 5:04 
GeneralRe: How to call Windows's built-in routines to read and write JPG files? Pin
Anthony Appleyard17-Dec-07 5:06
Anthony Appleyard17-Dec-07 5:06 
GeneralRe: How to call Windows's built-in routines to read and write JPG files? Pin
CPallini17-Dec-07 5:16
mveCPallini17-Dec-07 5:16 
GeneralCustom Drawn Dialog Pin
Cem Usta17-Dec-07 4:04
Cem Usta17-Dec-07 4:04 
GeneralRe: Custom Drawn Dialog Pin
only coding17-Dec-07 15:05
only coding17-Dec-07 15:05 
QuestionRe: Custom Drawn Dialog Pin
Kiran Pinjala17-Dec-07 19:46
Kiran Pinjala17-Dec-07 19:46 
Questionstruct in global or class space Pin
Programm3r17-Dec-07 3:46
Programm3r17-Dec-07 3:46 
GeneralRe: struct in global or class space Pin
CPallini17-Dec-07 4:08
mveCPallini17-Dec-07 4:08 
GeneralRe: struct in global or class space Pin
Programm3r17-Dec-07 4:12
Programm3r17-Dec-07 4:12 
GeneralRe: struct in global or class space Pin
David Crow17-Dec-07 4:24
David Crow17-Dec-07 4:24 
GeneralRe: struct in global or class space Pin
CPallini17-Dec-07 4:36
mveCPallini17-Dec-07 4:36 
GeneralRe: struct in global or class space Pin
toxcct17-Dec-07 4:44
toxcct17-Dec-07 4:44 
GeneralRe: struct in global or class space Pin
CPallini17-Dec-07 4:55
mveCPallini17-Dec-07 4:55 
GeneralRe: struct in global or class space Pin
toxcct17-Dec-07 5:00
toxcct17-Dec-07 5:00 
GeneralRe: struct in global or class space Pin
CPallini17-Dec-07 5:14
mveCPallini17-Dec-07 5:14 
GeneralRe: struct in global or class space Pin
David Crow17-Dec-07 5:00
David Crow17-Dec-07 5:00 
GeneralRe: struct in global or class space Pin
CPallini17-Dec-07 5:06
mveCPallini17-Dec-07 5: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.