Page 3 of 3 FirstFirst 123
Results 81 to 84 of 84

Thread: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64

  1. #81
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,190

    Re: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64

    Quote Originally Posted by Tech99 View Post
    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>

  2. #82
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    694

    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.

  3. #83
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,190

    Re: [VB6] - WinRT Interfaces & XAML Islands TypeLibs for VB6/VBA x86 and VBA7 x64

    Quote Originally Posted by Tech99 View Post
    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>

  4. #84

    Thread Starter
    PowerPoster VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,644

    Lightbulb 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.

    The maxversiontested attribute is absolutely required whenever you are instantiating XAML controls. The rest of WinRT classes don't care about it.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width