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 with InvokeHelper method in CWnd class

Problem with InvokeHelper method in CWnd class

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
4 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.
  • H Offline
    H Offline
    hari_honey
    wrote on last edited by
    #1

    Hi, In my code i am having some dlls which i downloaded from a site. But while executing the code that dll is calling InvokeHelper method in CWnd class. But in InvokeHelper method i am getting some assertion failed error at file: winocc.cpp and line: 345. I am unable to understand what to do. Please help me......... :)

    Y 1 Reply Last reply
    0
    • H hari_honey

      Hi, In my code i am having some dlls which i downloaded from a site. But while executing the code that dll is calling InvokeHelper method in CWnd class. But in InvokeHelper method i am getting some assertion failed error at file: winocc.cpp and line: 345. I am unable to understand what to do. Please help me......... :)

      Y Offline
      Y Offline
      Yajnesh Narayan Behera
      wrote on last edited by
      #2

      You have to state your problem more, like why you are using that Dll, which method of that Dll you are calling. InvokeHelper is called when there is a COM object which gets or set some properties. In this case may be you are calling some method which expects parameters guided to COM parameter passing. :laugh:

      H 1 Reply Last reply
      0
      • Y Yajnesh Narayan Behera

        You have to state your problem more, like why you are using that Dll, which method of that Dll you are calling. InvokeHelper is called when there is a COM object which gets or set some properties. In this case may be you are calling some method which expects parameters guided to COM parameter passing. :laugh:

        H Offline
        H Offline
        hari_honey
        wrote on last edited by
        #3

        hi, Actually i am tring to connect my system to a handheld device with rs232 port. So, to check the connection between the device and my computer i have to use one control object dll according to OPOS standards. In my control object file i have one method for opening the port. If i call that open method, this method internally calling InvokeHelper method. In the invokeHelper method i am getting assertion failed error. This InvokeHelper method is having one pointer to a class COleControlSite this pointer is showing null. I dont know why it became null, why it is causing the error. Please help me.............

        Y 1 Reply Last reply
        0
        • H hari_honey

          hi, Actually i am tring to connect my system to a handheld device with rs232 port. So, to check the connection between the device and my computer i have to use one control object dll according to OPOS standards. In my control object file i have one method for opening the port. If i call that open method, this method internally calling InvokeHelper method. In the invokeHelper method i am getting assertion failed error. This InvokeHelper method is having one pointer to a class COleControlSite this pointer is showing null. I dont know why it became null, why it is causing the error. Please help me.............

          Y Offline
          Y Offline
          Yajnesh Narayan Behera
          wrote on last edited by
          #4

          So you are using onemethod of that Dll which expect a parameter as COleControlSite. Now this class is related to embedded control, in simple word when you have a container & you want to display a compound object or something like, :laugh: this class plays an important role. So in your case I suppose this Dll is not the suitable option to open a port. Why do not you use various Open, CreateFile APIs?

          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