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