Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: setting different time zone Pin
geo_m26-May-05 18:29
geo_m26-May-05 18:29 
GeneralRe: setting different time zone Pin
pnpfriend27-May-05 4:16
pnpfriend27-May-05 4:16 
GeneralRe: setting different time zone Pin
geo_m29-May-05 19:29
geo_m29-May-05 19:29 
GeneralUsing custom buttons in a CToolbar Pin
mckavity26-May-05 10:12
mckavity26-May-05 10:12 
GeneralRe: Using custom buttons in a CToolbar Pin
mckavity26-May-05 10:15
mckavity26-May-05 10:15 
GeneralRe: Using custom buttons in a CToolbar Pin
Shog926-May-05 12:16
sitebuilderShog926-May-05 12:16 
GeneralRe: Using custom buttons in a CToolbar Pin
mckavity27-May-05 3:35
mckavity27-May-05 3:35 
GeneralWM_SETTEXT Desperate Issue Pin
Axonn Echysttas26-May-05 9:50
Axonn Echysttas26-May-05 9:50 
Hi everybody. This is the most frustrating issue I've ever come across since I'm working with Visual C++. I made this DLL and I'm trying to send a WM_SETTEXT message from it to a VB application but the VB Application never receives the message!! If I send WM_SETTEXT from another VB application to my main VB application, it works. If I send WM_SETTEXT from the application itself to it, it works. I subclassed the window of the VB application so that I can take a look at all messages that go through.

If I send WM_USER from VC++ to VB, it works. If I send WM_SETTEXT from VC++ to VB, it doesn't. What COULD BE GOING ON THERE??????????? I'm totally confused and I don't understand why such a simple thing doesn't work! I tried all sorts of variants but NOTHING works!!!!!

SendMessage(hwndToTheSubclassedVBWindow, WM_SETTEXT, NULL, *"Annoying\0");

SendMessage(hwndToTheSubclassedVBWindow, WM_SETTEXT, NULL, *"Annoying");

<br />
char *c = "";<br />
c = (char*)malloc(256);<br />
c = "This is annoying";<br />
SendMessage(hwndToTheSubclassedVBWindow, WM_SETTEXT, NULL, *c);<br />



Before you say anything. The hwndToTheSubclassedVBWindow is CORRECT. I checked it 100 times.


WM_SETTEXT annoyance table:

same VB -> VB -> works
other VB -> VB -> works
C++ -> VB -> doesn't work

WM_USER annoyance table:

same VB -> VB -> works
other VB -> VB -> works
C++ -> VB -> -> works

Now. If *ANYBODY* has a clue about this, he/she has a gold medal from me! 'Cause I asked in other 2 or 3 forums and nobody knows anything.

-= E C H Y S T T A S =-
The Greater Mind Balance
GeneralRe: WM_SETTEXT Desperate Issue Pin
David Crow26-May-05 10:06
David Crow26-May-05 10:06 
GeneralRe: WM_SETTEXT Desperate Issue Pin
Axonn Echysttas26-May-05 10:50
Axonn Echysttas26-May-05 10:50 
GeneralRe: WM_SETTEXT Desperate Issue Pin
Ryan Binns26-May-05 18:41
Ryan Binns26-May-05 18:41 
GeneralRe: WM_SETTEXT Desperate Issue Pin
Axonn Echysttas26-May-05 21:40
Axonn Echysttas26-May-05 21:40 
Generalcreate a text wallpaper Pin
jet91526-May-05 9:37
jet91526-May-05 9:37 
GeneralRe: create a text wallpaper Pin
David Crow26-May-05 9:42
David Crow26-May-05 9:42 
GeneralRe: create a text wallpaper Pin
jet91526-May-05 10:34
jet91526-May-05 10:34 
GeneralRe: create a text wallpaper Pin
David Crow27-May-05 2:13
David Crow27-May-05 2:13 
GeneralTake de real part from a decimal number Pin
alvarillo26-May-05 9:20
alvarillo26-May-05 9:20 
GeneralRe: Take de real part from a decimal number Pin
Jack Puppy26-May-05 9:33
Jack Puppy26-May-05 9:33 
GeneralRe: Take de real part from a decimal number Pin
David Crow26-May-05 9:34
David Crow26-May-05 9:34 
GeneralRe: Take de real part from a decimal number Pin
knapak26-May-05 13:45
knapak26-May-05 13:45 
GeneralRe: Take de real part from a decimal number Pin
cmk27-May-05 7:51
cmk27-May-05 7:51 
GeneralA &quot;hold down&quot; CButton Pin
mckavity26-May-05 9:16
mckavity26-May-05 9:16 
GeneralRe: A &quot;hold down&quot; CButton Pin
David Crow26-May-05 9:33
David Crow26-May-05 9:33 
GeneralRe: A &quot;hold down&quot; CButton Pin
mckavity26-May-05 9:44
mckavity26-May-05 9:44 
GeneralDifference Pin
Usman Tasleem Akshaf26-May-05 8:16
Usman Tasleem Akshaf26-May-05 8:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.