Skip to content

x64 compilation issue #2

@fafalone

Description

@fafalone

I use this control in VB6 apps I'm now upgrading to x64 in twinBASIC, so wanted to compile native versions (even though tB now supports 32bit ocxs in 64bit hosts). Apart from a number of config changes, this line of code caused issues:

typedef BOOL WINAPI IsAppThemedFn();
IsAppThemedFn* pfnIsAppThemed = static_cast<IsAppThemedFn*>(GetProcAddress(hThemeDLL, "IsAppThemed"));

helpers.cpp. 1146

suggested change is

typedef BOOL(WINAPI* IsAppThemedFn)();
IsAppThemedFn pfnIsAppThemed = reinterpret_cast<IsAppThemedFn>(GetProcAddress(hThemeDLL, "IsAppThemed"));

which compiles in my new x64 config too.

Haven't gone too deep in testing (there's a number of warnings flagged for e.g. WPARAM-int) but the new x64 version of the ocx now successfully loads and displays initial data.

PS- Offtopic but I finally got a port of your ListView SubItem Controls code to work in VBx (specifically twinBASIC but it's just a couple vtable swaps from working in VB6 too). 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions