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. ATL / WTL / STL
  4. ATL and GDI+

ATL and GDI+

Scheduled Pinned Locked Moved ATL / WTL / STL
c++winformsgraphicsquestion
4 Posts 3 Posters 13 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.
  • J Offline
    J Offline
    Jonathan de Halleux
    wrote on last edited by
    #1

    Did someone already tried to use GDI+ in a ATL DLL ? I tried to just initialize GDI+ in the InitInstance and deinitialize it in the ExitInstance but seems like registration of the dll fails ??? Jonathan de Halleux.

    J P 2 Replies Last reply
    0
    • J Jonathan de Halleux

      Did someone already tried to use GDI+ in a ATL DLL ? I tried to just initialize GDI+ in the InitInstance and deinitialize it in the ExitInstance but seems like registration of the dll fails ??? Jonathan de Halleux.

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      If the registration of the dll failed, your code probably crashed in some way. Can't really say what is wrong.. Did you check to see that your input parameters to the gdi+ initialization functions are correct? -- Only in a world this shitty could you even try to say these were innocent people and keep a straight face.

      1 Reply Last reply
      0
      • J Jonathan de Halleux

        Did someone already tried to use GDI+ in a ATL DLL ? I tried to just initialize GDI+ in the InitInstance and deinitialize it in the ExitInstance but seems like registration of the dll fails ??? Jonathan de Halleux.

        P Offline
        P Offline
        pba_
        wrote on last edited by
        #3

        In docs is stated that you should not call GdiplusStartup or GdiplusShutdown in DllMain or in any function that is called by DllMain ( for solutions look for "GdiplusStartup" in MSDN).

        J 1 Reply Last reply
        0
        • P pba_

          In docs is stated that you should not call GdiplusStartup or GdiplusShutdown in DllMain or in any function that is called by DllMain ( for solutions look for "GdiplusStartup" in MSDN).

          J Offline
          J Offline
          Jonathan de Halleux
          wrote on last edited by
          #4

          Thanks ! It's working now. I had putted GDI+ initialization in the CWinApp::InitInstance and, in fact, it was called by DllRegister... Jonathan de Halleux.

          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