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. Problem Find Resources In Extension DLL From ATL Exe Server

Problem Find Resources In Extension DLL From ATL Exe Server

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++sysadminlearning
5 Posts 2 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.
  • B Offline
    B Offline
    Bill S
    wrote on last edited by
    #1

    This one has me totally stumped. How do I hook up the resources for an Extension DLL that in turn calls another Extension DLL? I have tried setting afxCurrentResourceHandle and others. It appears the main problem is the lack of a CWinApp object. I am trying to access some Dialog resources and of course any DoModal loop will fail due to lack of an initialized CWinApp object. This is an ATL exe Server built using CExeModule. Any help would surely be appreciated.

    T 1 Reply Last reply
    0
    • B Bill S

      This one has me totally stumped. How do I hook up the resources for an Extension DLL that in turn calls another Extension DLL? I have tried setting afxCurrentResourceHandle and others. It appears the main problem is the lack of a CWinApp object. I am trying to access some Dialog resources and of course any DoModal loop will fail due to lack of an initialized CWinApp object. This is an ATL exe Server built using CExeModule. Any help would surely be appreciated.

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      You can use extension-style DLL only if .exe links with .dll version of MFC as well. It seems your exe server doesn't. Tomasz Sowinski -- http://www.shooltz.com

      To some its a six-pack, to me it's a support group

      B 1 Reply Last reply
      0
      • T Tomasz Sowinski

        You can use extension-style DLL only if .exe links with .dll version of MFC as well. It seems your exe server doesn't. Tomasz Sowinski -- http://www.shooltz.com

        To some its a six-pack, to me it's a support group

        B Offline
        B Offline
        Bill S
        wrote on last edited by
        #3

        Thanks for the reply! It sounds as though my solution would be to create a Regular DLL and export a function that will create the class objects in the Extension DLL. Do you agree with this?

        T 1 Reply Last reply
        0
        • B Bill S

          Thanks for the reply! It sounds as though my solution would be to create a Regular DLL and export a function that will create the class objects in the Extension DLL. Do you agree with this?

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          I'm not sure about the structure of your project. Your COM objects are created by the ATL-based .exe server. What's the role of DLLs? What kind of services are they providing? Tomasz Sowinski -- http://www.shooltz.com

          To some its a six-pack, to me it's a support group

          B 1 Reply Last reply
          0
          • T Tomasz Sowinski

            I'm not sure about the structure of your project. Your COM objects are created by the ATL-based .exe server. What's the role of DLLs? What kind of services are they providing? Tomasz Sowinski -- http://www.shooltz.com

            To some its a six-pack, to me it's a support group

            B Offline
            B Offline
            Bill S
            wrote on last edited by
            #5

            Hi Tomasz, The role of the Exe server is to handle special OPC scanning/communications with a Control System. The Server is designed to run standalone and execute scheduled scan tasks using OPC, but we now have to implement automatic generation of report files that are normally done manually by a user using a client connected to this Server. The report generation objects are located in MFC Extension DLL's that are currently being used by client apps. The need is to execute the existing report objects in the background with hidden windows. My only problem is getting the resource chain initialized properly and I believe your solution to call a Regular DLL will work since it will initialize its own CWinApp object. :):):) Best Regards, Bill

            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