Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64-bit VBA7 support #3

Open
Greedquest opened this issue Nov 21, 2022 · 1 comment
Open

64-bit VBA7 support #3

Greedquest opened this issue Nov 21, 2022 · 1 comment

Comments

@Greedquest
Copy link

I know this is for VB6 not VBA. I'm just wondering if it's likely to be at all possible to get this working for 64 bit VBA. At the assembly level I think there start to be some key differences so I think the thunk code might have to change.

I'm not actually trying to subclass but I am trying to get some code working that uses WinAPI timers to call VBA methods and this approach you outline I'm pretty sure could allow the debugger to work cleanly in those (right now if I have an End statement in the callback method then that crashes the VBA host)

Shot in the dark asking! But I'm sure you know enough of the internals to figure it out ;)

@wqweto
Copy link
Owner

wqweto commented Nov 21, 2022

x64 support is planned in connection with (mostly) TB support but VBA7 x64 will have these too if possible.

There are some shenanigans going on with x64 VBA vtables I'm not sure if there is going to be a problem.

Unfortunately MSVC++ does not support inline x64 ASM so the plan is to rewrite all the thunks in C which will be much easier for me.

Using NASM and porting x86 ASM to x64 ASM is the other option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants