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. Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++?

Is there any function similiar to CopyImage () (in Visual C++) that is supported in Embedded Visual C++?

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhardwarealgorithmstutorial
5 Posts 3 Posters 0 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 Offline
    K Offline
    kapardhi
    wrote on last edited by
    #1

    Hai! Acutually i am developing an dialog based application in eVC++ 4.0 for a Pocket PC device. I actually have to display .jpg and .jp2(.jpg2000) images in my dialog. i was searching through net for simplest code but in vain. Finally i copied some code that converts .jpg to .bmp, As i am able to display .bmp images i started using that code, but it uses CopyImage() that is not supported in eVC++, Can you suggest me 1. Simple code in eVC++ that displays .jp2 &.jpg images or 2. How to easily convert .jp2 and .jpg images to .bmp or 3. Function similiar to CopyImage() in eVC++; I have posted the 1st doubt in Code project recently, i have even got good response "http://msdn.microsoft.com/en-us/magazine/cc301454.aspx" but i am uanble to use it?? Assuming that both .jpg and.jp2 file are present in : C:\Documents and Settings\MyFolder Now can you please code me how to display the images , I tried but not successful! thanks!

    C R 2 Replies Last reply
    0
    • K kapardhi

      Hai! Acutually i am developing an dialog based application in eVC++ 4.0 for a Pocket PC device. I actually have to display .jpg and .jp2(.jpg2000) images in my dialog. i was searching through net for simplest code but in vain. Finally i copied some code that converts .jpg to .bmp, As i am able to display .bmp images i started using that code, but it uses CopyImage() that is not supported in eVC++, Can you suggest me 1. Simple code in eVC++ that displays .jp2 &.jpg images or 2. How to easily convert .jp2 and .jpg images to .bmp or 3. Function similiar to CopyImage() in eVC++; I have posted the 1st doubt in Code project recently, i have even got good response "http://msdn.microsoft.com/en-us/magazine/cc301454.aspx" but i am uanble to use it?? Assuming that both .jpg and.jp2 file are present in : C:\Documents and Settings\MyFolder Now can you please code me how to display the images , I tried but not successful! thanks!

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

      kapardhi wrote:

      but i am uanble to use it??

      Why? :)

      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 1 Reply Last reply
      0
      • C CPallini

        kapardhi wrote:

        but i am uanble to use it??

        Why? :)

        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

        CPallini wrote:

        Why?

        Bcoz i couldnot figure out what he was describing! I think he was explaining two different logics. Can u please explain in short using code snippets what he meant ? Thanks!

        C 1 Reply Last reply
        0
        • K kapardhi

          Hai! Acutually i am developing an dialog based application in eVC++ 4.0 for a Pocket PC device. I actually have to display .jpg and .jp2(.jpg2000) images in my dialog. i was searching through net for simplest code but in vain. Finally i copied some code that converts .jpg to .bmp, As i am able to display .bmp images i started using that code, but it uses CopyImage() that is not supported in eVC++, Can you suggest me 1. Simple code in eVC++ that displays .jp2 &.jpg images or 2. How to easily convert .jp2 and .jpg images to .bmp or 3. Function similiar to CopyImage() in eVC++; I have posted the 1st doubt in Code project recently, i have even got good response "http://msdn.microsoft.com/en-us/magazine/cc301454.aspx" but i am uanble to use it?? Assuming that both .jpg and.jp2 file are present in : C:\Documents and Settings\MyFolder Now can you please code me how to display the images , I tried but not successful! thanks!

          R Offline
          R Offline
          Rajkumar R
          wrote on last edited by
          #4

          have a look at [SHLoadImageFile^], [SHLoadImageResource^] this is supported from Windows CE .NET 4.0 and later so you must be able to use in evc++, if you are planning to use higher version (WCE 5.0) try using Imaging API there is a sample in SDK path.

          1 Reply Last reply
          0
          • K kapardhi

            CPallini wrote:

            Why?

            Bcoz i couldnot figure out what he was describing! I think he was explaining two different logics. Can u please explain in short using code snippets what he meant ? Thanks!

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #5

            He uses COM to load the image. You may use MFC CImage, instead (if available in embedded VC++). BTW: why don't you ask in the Mobile Development forum [^]? :)

            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]

            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