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. how to use message queue in windows

how to use message queue in windows

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialvisual-studiocomdata-structureshelp
5 Posts 4 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.
  • N Offline
    N Offline
    neodeaths
    wrote on last edited by
    #1

    i am trying to use the example shown in http://msdn.microsoft.com/en-us/library/ms701483(v=vs.85).aspx[^] to make a message queue in windows so i created an empty project however it keep showing 2 error. _snwprintf_s and wprintf are not identifier. so i search around and found out that stdio.h is required so i proceeded to add #include "stdio.h" and tried # include <stdio.h> but a linker error keep popping out. anyone know how i get get the example to work?

    L J A 4 Replies Last reply
    0
    • N neodeaths

      i am trying to use the example shown in http://msdn.microsoft.com/en-us/library/ms701483(v=vs.85).aspx[^] to make a message queue in windows so i created an empty project however it keep showing 2 error. _snwprintf_s and wprintf are not identifier. so i search around and found out that stdio.h is required so i proceeded to add #include "stdio.h" and tried # include <stdio.h> but a linker error keep popping out. anyone know how i get get the example to work?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See http://msdn.microsoft.com/en-us/library/windows/desktop/ms632590(v=vs.85).aspx[^].

      1 Reply Last reply
      0
      • N neodeaths

        i am trying to use the example shown in http://msdn.microsoft.com/en-us/library/ms701483(v=vs.85).aspx[^] to make a message queue in windows so i created an empty project however it keep showing 2 error. _snwprintf_s and wprintf are not identifier. so i search around and found out that stdio.h is required so i proceeded to add #include "stdio.h" and tried # include <stdio.h> but a linker error keep popping out. anyone know how i get get the example to work?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        neodeaths wrote:

        but a linker error keep popping out.

        Well I am afraid we cannot guess what error it might be.

        1 Reply Last reply
        0
        • N neodeaths

          i am trying to use the example shown in http://msdn.microsoft.com/en-us/library/ms701483(v=vs.85).aspx[^] to make a message queue in windows so i created an empty project however it keep showing 2 error. _snwprintf_s and wprintf are not identifier. so i search around and found out that stdio.h is required so i proceeded to add #include "stdio.h" and tried # include <stdio.h> but a linker error keep popping out. anyone know how i get get the example to work?

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          Just a suggestion but getting Windows Message Queues or any message queues to work correctly is not a beginning level project. So if you have not programmed before then I suggest finding some other project to work on (hopefully a teacher didn't assign this.) Other than that a linker error would suggest that you are missing a library (however the posted error wouldn't normally suggest a linker error to me.)

          1 Reply Last reply
          0
          • N neodeaths

            i am trying to use the example shown in http://msdn.microsoft.com/en-us/library/ms701483(v=vs.85).aspx[^] to make a message queue in windows so i created an empty project however it keep showing 2 error. _snwprintf_s and wprintf are not identifier. so i search around and found out that stdio.h is required so i proceeded to add #include "stdio.h" and tried # include <stdio.h> but a linker error keep popping out. anyone know how i get get the example to work?

            A Offline
            A Offline
            Albert Holguin
            wrote on last edited by
            #5

            Quote:

            _snwprintf_s and wprintf are not identifier.

            If you look at the tchar.h include[^], it has the definitions for those. If you include that file and still get errors in regards to wprintf and the other call, do note that they're enclosed in an #ifdef statement that requires the project to be compiled using _UNICODE.

            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