CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Binding Data to Silverlight 4.0 Controls Using ASP.NET MVC Framework 2.0
  • ADO.NET Data Services in the .NET Framework
  • Visual C++ Programming: What's new for MFC library in VC++ 2010?
  • Microsoft Visual Studio LightSwitch and What It Can Do For You

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ (Non Visual C++ Issues)
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    C++ (Non Visual C++ Issues) Ask or answer C and C++ questions not related to Visual C++. This includes Console programming, Linux programming, or general ANSI C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 10th, 2009, 01:00 AM
    Iraq Iraq is offline
    Member
     
    Join Date: Jul 2009
    Posts: 25
    Iraq is an unknown quantity at this point (<10)
    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?
    Reply With Quote
      #2    
    Old July 10th, 2009, 12:19 PM
    sdcode sdcode is offline
    Member
     
    Join Date: Mar 2008
    Posts: 36
    sdcode is on a distinguished road (10+)
    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?
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ (Non Visual C++ Issues)


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 08:38 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.