CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    25

    Reading Jpeg and Converting to HBITMAP - Help

    Hi,

    I have this project which I did some time ago in Dev C++ , Now I have to include some image processing in it mainly bitmap , gif and jpeg .
    Until now I was using a masm code(dll) which is something like this :

    <code>
    LOCAL pwszFileName : DWORD, dwLength : DWORD, pPicture : DWORD, hNewBmp : DWORD

    invoke CoTaskMemAlloc, eax
    mov pwszFileName, eax
    invoke MultiByteToWideChar, CP_ACP, 0, pszFileName, -1, pwszFileName, dwLength
    ..........
    ..........
    ..........
    <code>

    Which worked fine until it had to read a jpeg image taken from a nokia mobile.
    It returned null for these particular files.
    Why ?
    What other options do I have to solve this problem? Since the project is too big and complicated,
    porting it to vs is not possible.

    Can somebody help me with it please?

  2. #2
    Join Date
    Mar 2008
    Posts
    38

    Re: Reading Jpeg and Converting to HBITMAP - Help

    sounds like an API issue and not a c++ issue. Go back to the .dll vendor and ask for support is my best suggestion. Secondly, why not convert the jpg to a gif or bitmap?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured