Re: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64
Quote:
Originally Posted by
Tech99
pcjOCR is interesting demo, but how to run it in VB ide?
Stops in Public Function NewObject -> Debug.Assert False
You need <maxversiontested Id="10.0.18362.0"/> in your IDE manifest file.
Here is my complete VB6.exe.manifest from C:\Program Files (x86)\Microsoft Visual Studio\VB98
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity
version="2002.10.0.25"
processorArchitecture="X86"
name="vb6.exe"
type="win32" />
<description>WindowsExecutable</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*" />
</dependentAssembly>
</dependency>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
<maxversiontested Id="10.0.18362.0"/>
</application>
</compatibility>
<application xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:windowsSettings>
<ws2:longPathAware>true</ws2:longPathAware>
</ws2:windowsSettings>
</application>
</assembly>
And stop using Win7 compatibility shims for no apparent reason (no, it's not getting faster with compat shims).
Also IDE does not need to be elevated on Win10/Win11 to register those COM DLLs/OCXs you are compiling your projects to.
cheers,
</wqw>
Re: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64
Thanks wqw, that sorted it out. My vb6.exe manifest was missing win10 supportedOS and maxversionTested IDs.
I have newer run vb6 ide with OS compatibility version option ticked.
Re: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64
Quote:
Originally Posted by
Tech99
Thanks wqw, that sorted it out. My vb6.exe manifest was missing win10 supportedOS and maxversionTested IDs.
I have newer run vb6 ide with OS compatibility version option ticked.
+1
Sorry about the shims, it's from another thread I can't muster up some goodwill to answer there.
cheers,
</wqw>
Re: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64
There is a VB6.EXE.manifest file in the Common folder included in the Samples Collection.
This is mentioned in Post #6 above but worth mentioning again since it got lost along the way. :bigyello:
The maxversiontested attribute is absolutely required whenever you are instantiating XAML controls. The rest of WinRT classes don't care about it.