LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 5.5 & BroadcastSystemMessage

I have included "windows.h" in my CVI 5.5 project,but when compiled to BroadcastSystemMessage,it reports "Missing prototype!".
This project works well in CVI 5.0.

Thanks in advance.
0 Kudos
Message 1 of 6
(3,201 Views)
Lily,

If it's any consolation I'm also getting the same error in VisualC++ 6.0 but I'm not sure why since other WinAPI functions work okay. What OS are you on?

Azucena
0 Kudos
Message 2 of 6
(3,201 Views)
Windows 98.And VC++ 6.0.
Is it a bug of CVI 5.5?
Looking forward to your reply!
Thanks!
0 Kudos
Message 3 of 6
(3,201 Views)
Lily,

This is definitely not a bug in CVI. It's POOR documentation on Microsoft's header files. If you look inside winuser.h, you'll see that this function is defined only if one of the following symbols is defined:
#define _WIN32_WINNT 0x0500 // for Win2000/NT
#define _WIN32_WINDOWS 0x0410 // for Win95/98

So before you include windows.h, define _WIN32_WINDOWS to 0x0410. If you want more information, seach google.com for any of those two symbols.

Regards,
Azucena
0 Kudos
Message 4 of 6
(3,201 Views)
I see!
Thank you so much!
0 Kudos
Message 5 of 6
(3,201 Views)
But I still don't understand why it's OK in CVI 5.0?
0 Kudos
Message 6 of 6
(3,201 Views)