Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Any one know how to SubClass DBPro`s Window using DBPro

Author
Message
SCI_CO
20
Years of Service
User Offline
Joined: 20th Apr 2004
Location: USA
Posted: 17th Jun 2004 23:13 Edited at: 18th Jun 2004 00:07
I know how to subclass a Window Procedure
from a DLL but can I subclass my
DBPro Window Procedure using DBPro Code only
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 18th Jun 2004 21:02
?


Create or Play? You choose!
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 18th Jun 2004 21:20
No, I believe you need a separate .dll to get the window handle first. Although, I believe one of the window's dlls (kernel32.dll) has a function that'll let you do this. You'd need to load up the .dll in DBP, then call the correct function to get the handle.

Its not a bug, its a feature!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Jun 2004 23:48
You can't subclass the DBPro window with DBPro - DBPro just cannot be used to create the callback function required.

Firstly, you can't get the address of a DBPro function, and secondly, DBPro uses the CDECL calling convention rather than the required STDCALL.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
SCI_CO
20
Years of Service
User Offline
Joined: 20th Apr 2004
Location: USA
Posted: 19th Jun 2004 06:37
Thanks

Login to post a reply

Server time is: 2024-09-22 14:24:06
Your offset time is: 2024-09-22 14:24:06