Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. I have used CxImage in VS2005 (successful) and tried to use CxImage WINCE version, it doesn't support .jp2 images?

I have used CxImage in VS2005 (successful) and tried to use CxImage WINCE version, it doesn't support .jp2 images?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomannouncement
11 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K kapardhi

    Hai! My Requirement : To convert .jp2 image to .jpg in an Pocket PC 2003 application for WINCE device I have been struggling to display an convert different image formats (.jp2, .jpg, .bmp, .png). i have used CxImage to easily convert .jp2 to .jpg. Now i have tried the WINCE version of CxImage, but there the support for .jp2 images has been disabled by defining #define CXIMAGE_SUPPORT_JP2 0 I have also seen http://www.codeproject.com/KB/mobile/png\_\_jpg\_\_etc\_on\_pocketpc here also the .j2k or .jp2 images are not supported. How can i convert .jp2 images to .jpg in my Pocket PC application? Can't we use .jp2 images in Pocket PC applications if yes how? Can i use any converters(free) that can be directly used in my application like: MyJpegConverter.Load (MyImage.jp2) MyJpegConverter.SaveAs (MyImage.jpg) If yes can you suggest any free converter? If possible can you send me links of any Pocket PC applications that deal with .jp2 images conversion?? Thanks!

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #2

    So, why don't you port CxImage .jp2 support to WINCE and write an article about? :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    In testa che avete, signor di Ceprano?

    K 2 Replies Last reply
    0
    • CPalliniC CPallini

      So, why don't you port CxImage .jp2 support to WINCE and write an article about? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      K Offline
      K Offline
      kapardhi
      wrote on last edited by
      #3

      As i have already said i am new to these images and their formats, I do not know how these decoders works, i have to find a solution to convert from .jp2 tp .jpg, please help me with your knowledge. Are there any applications/articles that deal with .jp2 images in Pocket PC application?? Any suggestion that solves my problem within minimal time is welcomed!! Thanks

      CPalliniC 1 Reply Last reply
      0
      • K kapardhi

        As i have already said i am new to these images and their formats, I do not know how these decoders works, i have to find a solution to convert from .jp2 tp .jpg, please help me with your knowledge. Are there any applications/articles that deal with .jp2 images in Pocket PC application?? Any suggestion that solves my problem within minimal time is welcomed!! Thanks

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #4

        If the "standard" CxImage library does the job, and you have the source files (I suppose they are available) then you may have a look at. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • CPalliniC CPallini

          So, why don't you port CxImage .jp2 support to WINCE and write an article about? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          K Offline
          K Offline
          kapardhi
          wrote on last edited by
          #5

          I even tried doing so just by changing the solution platform to "Pocket PC 2003(ARM)" but i am ending up with error LNK2019: unresolved external symbol "public: bool __thiscall CxImage::Load(char const *,unsigned long)" (?Load@CxImage@@QAE_NPBDK@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) error LNK2019: unresolved external symbol "public: __thiscall CxImage::CxImage(unsigned long)" (??0CxImage@@QAE@K@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) My project setting are "Statically linked to MFC" "Using unicode" Thanks!

          CPalliniC 1 Reply Last reply
          0
          • K kapardhi

            I even tried doing so just by changing the solution platform to "Pocket PC 2003(ARM)" but i am ending up with error LNK2019: unresolved external symbol "public: bool __thiscall CxImage::Load(char const *,unsigned long)" (?Load@CxImage@@QAE_NPBDK@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) error LNK2019: unresolved external symbol "public: __thiscall CxImage::CxImage(unsigned long)" (??0CxImage@@QAE@K@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) My project setting are "Statically linked to MFC" "Using unicode" Thanks!

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #6

            Well, of course changing just the solution platform don't do the trick. You have to port some (i.e. the missing) code from the standard library to the WINCE one. You've to put some effort in it, but it may be quite instructive, I suppose. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • K kapardhi

              Hai! My Requirement : To convert .jp2 image to .jpg in an Pocket PC 2003 application for WINCE device I have been struggling to display an convert different image formats (.jp2, .jpg, .bmp, .png). i have used CxImage to easily convert .jp2 to .jpg. Now i have tried the WINCE version of CxImage, but there the support for .jp2 images has been disabled by defining #define CXIMAGE_SUPPORT_JP2 0 I have also seen http://www.codeproject.com/KB/mobile/png\_\_jpg\_\_etc\_on\_pocketpc here also the .j2k or .jp2 images are not supported. How can i convert .jp2 images to .jpg in my Pocket PC application? Can't we use .jp2 images in Pocket PC applications if yes how? Can i use any converters(free) that can be directly used in my application like: MyJpegConverter.Load (MyImage.jp2) MyJpegConverter.SaveAs (MyImage.jpg) If yes can you suggest any free converter? If possible can you send me links of any Pocket PC applications that deal with .jp2 images conversion?? Thanks!

              S Offline
              S Offline
              Stuart Dootson
              wrote on last edited by
              #7

              Have you tried changing the

              #define CXIMAGE_SUPPORT_JP2 0

              to

              #define CXIMAGE_SUPPORT_JP2 1

              and re-building it to see what falls out?

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              K 1 Reply Last reply
              0
              • S Stuart Dootson

                Have you tried changing the

                #define CXIMAGE_SUPPORT_JP2 0

                to

                #define CXIMAGE_SUPPORT_JP2 1

                and re-building it to see what falls out?

                Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                K Offline
                K Offline
                kapardhi
                wrote on last edited by
                #8

                After making that change only i have come across the errors that i have mentiontioned in the previous message!

                S 1 Reply Last reply
                0
                • K kapardhi

                  After making that change only i have come across the errors that i have mentiontioned in the previous message!

                  S Offline
                  S Offline
                  Stuart Dootson
                  wrote on last edited by
                  #9

                  Which errors? There were no errors mentioned in the message I responded to.

                  Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                  K 1 Reply Last reply
                  0
                  • S Stuart Dootson

                    Which errors? There were no errors mentioned in the message I responded to.

                    Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                    K Offline
                    K Offline
                    kapardhi
                    wrote on last edited by
                    #10

                    i am ending up with error LNK2019: unresolved external symbol "public: bool __thiscall CxImage::Load(char const *,unsigned long)" (?Load@CxImage@@QAE_NPBDK@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) error LNK2019: unresolved external symbol "public: __thiscall CxImage::CxImage(unsigned long)" (??0CxImage@@QAE@K@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) The latest observation is if i am changing some setting in Code generation to [/Mt] [/Mtd] [/Md] etc I get lot of such type of errors ! now after rolling back the settings also still the errors continues i am posting some of the errors Linking... LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll MyImage.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE ImageDlg.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE stdafx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE MyImage.obj : error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const * __stdcall CWinApp::GetThisMessageMap(void)" (?GetThisMessageMap@CWinApp@@KGPBUAFX_MSGMAP@@XZ) MyImage.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CWinApp::OnHelp(void)" (?OnHelp@CWinApp@@IAEXXZ) MyImage.obj : error LNK2019: unresolved external symbol "public: __thiscall CWinApp::CWinApp(char const *)" (??0CWinApp@@QAE@PBD@Z) referenced in function "public: __thiscall CMyImageApp::CMyImageApp(void)" (??0CMyImageApp@@QAE@XZ) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CWinApp::GetRuntimeClass(void)const " (?GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) MyImageDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CWinApp::AssertValid(void)const " (?AssertValid@CWinApp@@UBEXXZ) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CWinApp::Dump(class CDumpContext &)const " (?Dump@CWinApp@@UBEXAAVCDumpContext@@@Z) MyImage

                    S 1 Reply Last reply
                    0
                    • K kapardhi

                      i am ending up with error LNK2019: unresolved external symbol "public: bool __thiscall CxImage::Load(char const *,unsigned long)" (?Load@CxImage@@QAE_NPBDK@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) error LNK2019: unresolved external symbol "public: __thiscall CxImage::CxImage(unsigned long)" (??0CxImage@@QAE@K@Z) referenced in function "protected: virtual int __thiscall CMyImageDlg::OnInitDialog(void)" (?OnInitDialog@CMyImageDlg@@MAEHXZ) The latest observation is if i am changing some setting in Code generation to [/Mt] [/Mtd] [/Md] etc I get lot of such type of errors ! now after rolling back the settings also still the errors continues i am posting some of the errors Linking... LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll MyImage.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE ImageDlg.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE stdafx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE MyImage.obj : error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const * __stdcall CWinApp::GetThisMessageMap(void)" (?GetThisMessageMap@CWinApp@@KGPBUAFX_MSGMAP@@XZ) MyImage.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CWinApp::OnHelp(void)" (?OnHelp@CWinApp@@IAEXXZ) MyImage.obj : error LNK2019: unresolved external symbol "public: __thiscall CWinApp::CWinApp(char const *)" (??0CWinApp@@QAE@PBD@Z) referenced in function "public: __thiscall CMyImageApp::CMyImageApp(void)" (??0CMyImageApp@@QAE@XZ) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CWinApp::GetRuntimeClass(void)const " (?GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) MyImageDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CWinApp::AssertValid(void)const " (?AssertValid@CWinApp@@UBEXXZ) MyImage.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CWinApp::Dump(class CDumpContext &)const " (?Dump@CWinApp@@UBEXAAVCDumpContext@@@Z) MyImage

                      S Offline
                      S Offline
                      Stuart Dootson
                      wrote on last edited by
                      #11

                      Your first two linker errors would appear to be because you aren't linking to the CxImage libraries. The other areas are because you're not linking against MFC libraries. It's not difficult - look at the missing symbol names, work out which libraries they come from, add those libraries to the list of 'Additional Dependencies' on the Linker->Input settings.

                      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups