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. .NET (Core and Framework)
  4. can i use gdi+ in atl project?

can i use gdi+ in atl project?

Scheduled Pinned Locked Moved .NET (Core and Framework)
c++winformsgraphicsquestion
4 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.
  • J Offline
    J Offline
    joyle
    wrote on last edited by
    #1

    i try to use gdi+ in my atl dll project. but it was failed when i try to exit my process because the gdiplusshutdown fuction is failed. what can i do?:( :( :(

    C 1 Reply Last reply
    0
    • J joyle

      i try to use gdi+ in my atl dll project. but it was failed when i try to exit my process because the gdiplusshutdown fuction is failed. what can i do?:( :( :(

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      We had this problem on a machine that we'd not installed the full platform SDK on using MFC, and we found that just failing to shut it down still worked OK. GDI+ is a COM object itself, so I see no reason why you should have trouble running it in ATL. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

      J 1 Reply Last reply
      0
      • C Christian Graus

        We had this problem on a machine that we'd not installed the full platform SDK on using MFC, and we found that just failing to shut it down still worked OK. GDI+ is a COM object itself, so I see no reason why you should have trouble running it in ATL. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

        J Offline
        J Offline
        joyle
        wrote on last edited by
        #3

        i really have not installed the full platform SDK. but i can use gdi+ normally when i useing MFC. but it is really failed when i called the function gdiplusshutdown in my ATL DLL project. maybe i need installed the full platform SDK? i will try:(

        M 1 Reply Last reply
        0
        • J joyle

          i really have not installed the full platform SDK. but i can use gdi+ normally when i useing MFC. but it is really failed when i called the function gdiplusshutdown in my ATL DLL project. maybe i need installed the full platform SDK? i will try:(

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          If you're following Christian's article, there's a little mistake that causes LNK2001 on GdiPlusShutdown. Change your ULONG_PTR typedef to

          typedef ULONG_PTR ULONG;

          --Mike-- http://home.inreach.com/mdunn/ "Listen you footwarriors, can you hold down a bit with the firing? I've just got three impromptu weddings breaking out behind me!" -- Arthur Dent :love: your :bob: with :vegemite: and :beer:

          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