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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how i can catch message come out dll in my program

how i can catch message come out dll in my program

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 4 Posters 1 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.
  • S Offline
    S Offline
    shortwave
    wrote on last edited by
    #1

    how i can catch message come out from dll that i use in my program so i can post another message instade of dll one

    S _ S 3 Replies Last reply
    0
    • S shortwave

      how i can catch message come out from dll that i use in my program so i can post another message instade of dll one

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Can you be a little clearer?

      Steve

      1 Reply Last reply
      0
      • S shortwave

        how i can catch message come out from dll that i use in my program so i can post another message instade of dll one

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        Do you want some notification for the completion of task that is being done in a dll? You can use a flag variable, modify it in the dll(Pass it to the dll by reference) and then check for the value that if it gets modified, you do some other task.

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        1 Reply Last reply
        0
        • S shortwave

          how i can catch message come out from dll that i use in my program so i can post another message instade of dll one

          S Offline
          S Offline
          shortwave
          wrote on last edited by
          #4

          in my program i use function in dll when this function fails it post message(from insde the dll)like(Erorr number ...) so i dont want this message to appear i want to now win its posted and prevent it to appear to user and then i post my own message.

          J 1 Reply Last reply
          0
          • S shortwave

            in my program i use function in dll when this function fails it post message(from insde the dll)like(Erorr number ...) so i dont want this message to appear i want to now win its posted and prevent it to appear to user and then i post my own message.

            J Offline
            J Offline
            Jun Du
            wrote on last edited by
            #5

            If it's some unexpected error or your DLL cannot handle it, you may throw a string (instead of displaying it). Your caller should catch the string thrown from the DLL and process it any way you like.

            Best, Jun

            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