[Wine] Re: Need config.h
Bob Smith
bsmith at sudleydeplacespam.com
Mon Mar 19 00:54:24 CDT 2007
On 2/2/2007 3:29 PM, Daniel Skorka wrote:
> Bob Smith <bsmith at sudleydeplacespam.com> wrote:
>> I'm not trying to build Wine on my system, only to extract enough
>> files so I can define my own version of an edit control -- the one
>> built into Windows does too much in one area and not enough in
>> another, and subclassing doesn't solve the problem. I've identified
>> the file I need (\dlls\user32\edit.c) and can find the associated
>> include files, however I can't find "config.h".
>
> Here you go, from wine 0.9.30, pretty standard setup:
> http://www.stud.uni-karlsruhe.de/~ulaxx/config.h
Outstanding -- just what I needed.
BTW, after some sleuthing, I found it necessary to include the
following in "config.h":
#define __i386__
#define __WINESRC__
#define WINE_NO_TRACE_MSGS
#define WINE_NO_DEBUG_MSGS
I'm not sure where these are normally defined, but I seemed to need them.
After that, the compile generated various error messages which
necessitated changes to some files. The reasons vary from a missing
structure tag (I use function prototypes) to conversion issues because
I use #define STRICT:
"edit.c":
Line 105:
typedef struct tagEDITSTATE // Because I use function prototypes
Lines 476-479:
r16->left = (WORD) es->format_rect.left;
r16->top = (WORD) es->format_rect.top;
r16->right = (WORD) es->format_rect.right;
r16->bottom = (WORD) es->format_rect.bottom;
Line 1678:
HINSTANCE16 hInstance = (HINSTANCE16) GetWindowLongPtrW( es->hwndSelf,
GWLP_HINSTANCE );
Line 2479:
stack16->ds = (WORD) GetWindowLongPtrW( es->hwndSelf, GWLP_HINSTANCE );
Line 2487:
hloc16_new = LocalReAlloc16(es->hloc16, (WORD) alloc_size,
LMEM_MOVEABLE | LMEM_ZEROINIT);
Line 2751:
stack16->ds = (WORD) GetWindowLongPtrW( es->hwndSelf, GWLP_HINSTANCE );
Line 2755:
if (!LocalInit16(stack16->ds, 0, (WORD) GlobalSize16(stack16->ds))) {
Line 2766:
if (!(es->hloc16 = LocalAlloc16(LMEM_MOVEABLE | LMEM_ZEROINIT, (WORD)
alloc_size))) {
Line 3493:
stack16->ds = (WORD) GetWindowLongPtrW( es->hwndSelf, GWLP_HINSTANCE );
Line 3562:
HINSTANCE16 hInstance = (HINSTANCE16) GetWindowLongPtrW( es->hwndSelf,
GWLP_HINSTANCE );
Line 3636:
es->buffer_limit = (unsigned int) -1;
Line 4220:
stack16->ds = (WORD) GetWindowLongPtrW( es->hwndSelf, GWLP_HINSTANCE );
"debug.h":
line 245:
static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned
char) ~0, #ch }
line 247:
static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned
char) ~0, #ch }; \
Now I need to resolve the numerous symbol issues.
Many thanks for your help!
--
_________________________________________
Bob Smith -- bsmith at sudleydeplacespam.com
To reply to me directly, delete "despam".
More information about the wine-users
mailing list