Click to See Complete Forum and Search --> : BroadcastSystemMessage Problem in Win95


hazila
May 11th, 1999, 06:22 AM
I encountered a problem when using BroadcastSystemMessage in my program on Win95 using VC++ 5.0. The error encountered was "Link to missing export USER32.DLL:BroadcastMessageA."

It worked well if I use VC4.1. Can anyone help me to solve this problem because I have to use VC5.0.

nha

Roger Osborn
May 12th, 1999, 02:55 AM
There's a knowledge base article on this one at Microsoft, http://support.microsoft.com, number
Q182809.
It's a problem with the way functions names are adjusted for UNICODE support.

Their suggestion is that you put this in the file where you use BroadcastSystemMessage:




#include <windows.h>

#ifdef BroadcastSystemMessage
#undef BroadcastSystemMessage
#define BroadcastSystemMessage BroadcastSystemMessage
#endif



Cheers,
Roger