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

VBA compatibility #11

Open
afvca opened this issue Dec 11, 2020 · 4 comments
Open

VBA compatibility #11

afvca opened this issue Dec 11, 2020 · 4 comments

Comments

@afvca
Copy link

afvca commented Dec 11, 2020

Hello,

I have been looking for a TCP socket server/client implementation in VBA, but couldn't find any up to date.

However, stumbled upon this library but not sure how to implement this in VBA.

Could you share some guidance on how to make this (can it?) work on a VBA project?

Thank you.

@wqweto
Copy link
Owner

wqweto commented Dec 11, 2020

The project is not tested in VBA at all and github erroneously marks the repo as VBA sources because it apparently does not understand VB6.

Of the three backends only mdTlsNative stands some chances to be x64/VBA compatible but on first look it seems like it will take some (significant) effort to port it to VBA too.

@afvca afvca closed this as completed Dec 11, 2020
@wqweto
Copy link
Owner

wqweto commented Dec 12, 2020

@AndreAfonso It seems you are interested in the cAsyncSocket class, not the TLS implementation.

That would need a new x64 ASM thunk -- never done it before so the challenge is very tempting :-))

@wqweto wqweto reopened this Dec 12, 2020
@afvca
Copy link
Author

afvca commented Dec 12, 2020

Yes, was looking for a socket class implementation (simple connect, send, receive, close), to have some kind of two way communication in VBA. I found some examples using the ws2_32.dll but was not able to get it to work on x64 Excel 2019.

Well, here's a challenge if you want to give it a try 😉

@Montclair
Copy link

I was able to create a DLL for the stuff I need from this project without typing a single line of code, and using that for my VBA programs. It works perfectly. You may want to consider doing that.

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

3 participants