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

Using HttpRequest.dll and WinsockTls.ocx in the same VBA project #49

Open
Docent24 opened this issue May 22, 2024 · 5 comments
Open

Using HttpRequest.dll and WinsockTls.ocx in the same VBA project #49

Docent24 opened this issue May 22, 2024 · 5 comments

Comments

@Docent24
Copy link

Docent24 commented May 22, 2024

This case looks weird for me, but i try to explain what i discovered.

I have Access VBA project, where i use WinsockTls.ocx for local connection to Asterisk PBX, and WBA-web framework with HttpRequest.dll instead of WinHttp.WinHttpRequest.5.1 object for API requests.

So.... When i try to use HttpRequest.dll with active connection, made wth WinsockTls.ocx - i got strange error after HttpRequest.Send Method:

5: Invalid procedure call or argument

It seems like for all requests, even the basic ones.

If i drop WinsockTls.ocx connection - all executed perfectly.

Is it make any sense?.. =)

@wqweto
Copy link
Owner

wqweto commented May 22, 2024

Can you dump Err.Source (besides Err.Number and Err.Description) when this error happens?

@wqweto
Copy link
Owner

wqweto commented May 22, 2024

I think I was able to reproduce the issue here and fixed it in commit 6413ce7

Try downloading/updating both ZIP files from Releases section.

@Docent24
Copy link
Author

and fixed it in commit 6413ce7

Unfortunately, still getting the same error...

Can you dump Err.Source

Err.Source is HttpRequest

@wqweto
Copy link
Owner

wqweto commented May 22, 2024

Just pushed alternative fix in aa9c546 which allows running both class and user-control from binaries (your case) and allows mixing running projects from the IDE too (the original fix). Both ZIPs updated.

@Docent24
Copy link
Author

Yes, all works fine now.

Thanks for the fix!

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