|
-
Feb 13th, 2002, 12:15 PM
#1
Thread Starter
New Member
Hi Jim,
I tried your suggestion, but still it doesn't work. In fact VB complained that there where too many parameters for SendMessage (needed 3, not 4). But that did no good either. I tried both with WM_PAINT and with WM_PAINTICON.
The strange thing is that I get no error message. But nothing happens at all! :-(
The reason why I need to do this is that I have a program I compiled with the Matlab compiler. Unfortunatelly it is not possible to change the icon of the windows open by the matlab compiled program. They are always the default matlab icon, which I'd like to change to our own icon (after we made the program!). The Mathworks (the people that made Matlab) are aware of this and have promised to change that in the next version of the compiler, but until them I am stuck. That is why I want to change the icon using a VB program.
Do you know of another way of doing this?
Cheers,
Angel
-
Feb 13th, 2002, 12:29 PM
#2
Thread Starter
New Member
Error code 5 -
Hi again,
I just noticed that in fact I am getting an error code 5 after the SetClassLong call. That error code corresponds to ERROR_ACCESS_DENIED. Why should this be the case?
Angel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|