Author Topic: WTypeLibList4 as test project for Pelles C v11  (Read 197 times)

TimoVJL

  • Member
  • ****
  • Posts: 725
WTypeLibList4 as test project for Pelles C v11
« on: August 09, 2021, 10:08:18 PM »
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
« Last Edit: August 10, 2021, 01:03:55 AM by TimoVJL »
May the source be with you

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: WTypeLibList4 as test project for Pelles C v11
« Reply #1 on: August 10, 2021, 12:05:14 AM »

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.
Code: [Select]
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

  • Member
  • ****
  • Posts: 725
Re: WTypeLibList4 as test project for Pelles C v11
« Reply #2 on: August 10, 2021, 12:59:54 AM »
Thanks for pointing me a silly error.
Code: [Select]
...
                        ITypeInfo_GetTypeAttr(pITypeInfoRef, &pTypeAttrRef);
                        if (pTypeAttrRef) {
...
May the source be with you