Sendmessage HELP !! 
Author Message
 Sendmessage HELP !!

Greetings

Please excuse the ignorance of a newbie. I'm trying to use sendmessage()
to control a window. Compiling with mingw32 gcc, I inevitably have the
error :

undefined reference to 'Sendmessage'

I am compiling with the flag -mwindows, and have include <windows.h>

Please, please - any suggestions as to where I'm going wrong ?

Thanks

Regards

Jamie Allen



Sun, 29 Apr 2001 03:00:00 GMT  
 Sendmessage HELP !!

Quote:
> undefined reference to 'Sendmessage'

> I am compiling with the flag -mwindows, and have include <windows.h>

> Please, please - any suggestions as to where I'm going wrong ?

Well, I don't know win32 API, but here are some reasons for that error....

1. C is case sensitive, maybe your not spelling it right.
2. You are not inlcuding the correct library that has that symbol in it.
3. Your libraries or compiler are broken,....

including the right headers will not help you with this particular error,
which is more a linker error then a compiler one.  Read the documentation
on Win32 API, and on mingwin32 and find out in what library Sendmessage is
defined, and if that library is linked by default with the -mwindows flag.



Sun, 29 Apr 2001 03:00:00 GMT  
 Sendmessage HELP !!
Just change "Sendmessage" to "SendMessage".
Quote:

>Greetings

>Please excuse the ignorance of a newbie. I'm trying to use sendmessage()
>to control a window. Compiling with mingw32 gcc, I inevitably have the
>error :

>undefined reference to 'Sendmessage'

>I am compiling with the flag -mwindows, and have include <windows.h>

>Please, please - any suggestions as to where I'm going wrong ?

>Thanks

>Regards

>Jamie Allen



Mon, 30 Apr 2001 03:00:00 GMT  
 Sendmessage HELP !!


Quote:
>Just change "Sendmessage" to "SendMessage".

Aarrggghh. What a complete pillock I *can* be sometimes !

Many thanks

Jamie

Quote:


>>Greetings

>>Please excuse the ignorance of a newbie. I'm trying to use sendmessage()
>>to control a window. Compiling with mingw32 gcc, I inevitably have the
>>error :

>>undefined reference to 'Sendmessage'

>>I am compiling with the flag -mwindows, and have include <windows.h>

>>Please, please - any suggestions as to where I'm going wrong ?



Mon, 30 Apr 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. SendMessage Help

2. SendMessage Help - Repost with correct user info

3. SendMessage Help Repost with correct user info

4. SendMessage help.

5. SendMessage() HELP

6. HELP: SendMessage and CB_GETLBTEXT in C#

7. Newbie: pls help with SendMessage

8. SendMessage for PopUP Help

9. Help:PostMessage Acts Like SendMessage in Release Mode

10. Help! SendMessage not working

11. Help on SendMessage between 16 bits And 32 Bits Applications

12. Help with SendMessage, please

 

 
Powered by phpBB® Forum Software