The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Recompiled DDE-Demo doesn't work in 32Bit

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
a_user Posted - 08/20/1998 : 3:01:00 PM
When I compiled the ddeDemo-sources of the Origin 5. Version with
"Microsoft Visual C++ 4" it didn't work. The PostMessage-Command does
not transmit all data to Origin so that it doesn't acknowledges the
Data of the ddeDemo.

If somebody found the failure in the c-Code please write back.

Steve

1   L A T E S T    R E P L I E S    (Newest First)
a_user Posted - 08/20/1998 : 3:03:00 PM
Re-compiling the DDEDemo example in Origin Professional

There are a number of issues when translating any 16 bit application to 32 bit. The proper declaration for a WINDPROC 32 bit app is:

LRESULT CALLBACK DemoWndProc(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam)

The old declaration had wParam as a WORD. That meant 16 bits of information was lost and would explain why some messages were not being handle correctly or at all.

This new declaration does not correct menu items which may still not work. For example: WPARAM is now 32 bits wide compared to 16 bits when compiled as a 16 bit app. Being 32 bits means more information can be stored and IS. When handling WM_COMMAND you must extract info from the WPARAM.

wNotifyCode = HIWORD(wParam); // notification code
wID = LOWORD(wParam); // item, control, or accelerator identifier
hwndCtl = (HWND) lParam; // handle of control

All this information and more is in VC online help. This should be enough to get you on the right track.


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000