News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

WTypeLibList4 as test project for Pelles C v11

Started by TimoVJL, August 09, 2021, 10:08:18 PM

Previous topic - Next topic

TimoVJL

WTypeLibList4 as test project for Pelles C v11.
That typelib worker code is from Pelle, but modified for this GUI version.
Have a fun with it :tongue:

EDIT: small fix

EDIT 2025-04-24 WTypeLibList4ms.zip was build with msvc tools.
May the source be with you

TouEnMasm


Trying to view C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86\exdisp.tlb,i win just a crash.
So I have try to recompile it with Visual Studio 2019 c++:
              Find one variable not initialised
              Used analyze of code,who say change this ! by SUCCEEDED and ALL WORKS
Visual Studio impressed me.

static void DumpDispatch(POUTPUT pOut, LPTYPEINFO pITypeInfo, LPTYPEATTR pTypeAttr, BSTR bstrTypeName, BOOL bFlag)
{
    HREFTYPE hRefType;
    if (SUCCEEDED(pITypeInfo->lpVtbl->GetRefTypeOfImplType(pITypeInfo, 0, &hRefType))) {

Here the 64 bits exe compiled with visual studio
Fa is a musical note to play with CL

TimoVJL

#2
Thanks for pointing me a silly error.
...
                        ITypeInfo_GetTypeAttr(pITypeInfoRef, &pTypeAttrRef);
                        if (pTypeAttrRef) {
...
May the source be with you

TimoVJL

Now there is version compiled with msvc 2022 tools with WDDK 7.10 headers and libraries for testing.
Hopefully this time it won't crash easily.
Some code is modified of Pelle's code for this standalone version.
An example isn't bloated, as it use msvcrt.dll in funny way.
May the source be with you