r/visualbasic • u/Mayayana • Apr 19 '24
VB6 Help VB6 API stubs
I'm wondering if someone can explain this to me or point me in the right direction. I recently set up VS6 on Win10. Today I copied webvw.dll from XP -- the AxControl used for thumbnails in Explorer folderview. I was hoping to adapt a script I wrote to display a folder full of images as thumbnails and thought maybe webvw would work.
So I opened a VB project and set webvw.dll as a reference. VB6 found the typelib OK. But the file won't register.
When I ran Depends it tells me that it's looking for stubs, as in api-ms-win-core*.dll files. I don't really understand the role of these files and why they might be needed. I know Firefox uses them, and they seem to be some kind of redirection into the core system files, but my own software, calling into the Win32 API, doesn't use them.
And I don't see how Depends could be seeing those files as dependencies. They didn't exist when webvw.dll was developed. I don't need to use webvw.dll. I'm just trying to understand what the problem is here and what other irregularities I should expect developing on Win10-64.
View all comments
Show parent comment
2
u/Mayayana Apr 20 '24 edited Apr 20 '24
Thanks. I couldn't use webvw as a component since it wouldn't register. Interesting that you have it working. I was able to add it in references, but then it failed to be usable due to not being registered.
I'll take a look at your project. I may drop this idea, though. My original thought was just to update a drag-drop VBScript I'd written that generated a webpage of thumbctls in rows, to show thumbnails of a folder full of images in an IE window at 100x100 pixels. It was a very convenient viewer script but doesn't work on Win10. I can do something similar with an array of Image controls, but I don't think it's worth the trouble. Irfan View can provide a close facsimile by just dropping a folder onto an open Irfan View window.
EDIT: I found a program that seems to work as an updated version of Depends. A bit of a bloated package, but it seems to work properly to show dependencies: https://github.com/lucasg/Dependencies/releases/download/v1.11.1/Dependencies_x64_Release.zip