The MASM Forum

Miscellaneous => The Orphanage => Topic started by: GoneFishing on December 04, 2015, 11:55:59 PM

Title: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 04, 2015, 11:55:59 PM
Google knows nothing about COMViewSrc.ZIP
web.archive.org atleast remembers it  but doesn't have the zip itself :
http://web.archive.org/web/*/http://www.japheth.de:80/Download/COMViewSrc.ZIP
I know I have less than little chance to find it  and still just out of curiosity :
Maybe someone has it hidden in debris of files on one of those old hard drives ?

Anyways,  thank you for you time even if you only try to search for it   !

P.S.: Now  there'll be  one forum search result for  word  "COMViewSrc.ZIP"
Title: Re: WANTED COMViewSrc.ZIP
Post by: fearless on December 05, 2015, 12:24:55 AM
I had a search of the last archive of japheth's website that was uploaded as a torrent a while ago, unfortunately no source for that. Also done a search in my own hard drives where i stuff misc stuff, in case i had downloaded it a while ago - but no joy im afraid.
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 12:28:32 AM
Thanks for quick reply , Fearless
I've already checked that site snapshot . There're 3 linker maps for COMView there .
Let's wait for ZEN , I suspect he has the copy of source code .
Title: Re: WANTED COMViewSrc.ZIP
Post by: mabdelouahab on December 05, 2015, 12:49:56 AM
I searched for a long time and did not find it
GoneFishing, What do you need exactly in COMViewSrc, I'm here to help you
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 01:08:29 AM
Hi mabdelouahab and thank you for offering your help
BTW yesterday I read the sources of your ComViewTest   :t
I was impressed by VARIANT structure . 
Currently I have no questions about COM, extracting info from typelibs etc. 
Just trying to trace the path Japheth came in his COM technology quest :
http://www.masmforum.com/board/index.php?topic=15820.msg130773#msg130773:
Quote
Quote from: baltoro on January 08, 2011, 07:37:00 PM
If you explore Japheth's site, you'll find that you can download the source code for COMView (at least you used to be able to do so),...

I guess it has been removed at some point.

Quote

He actually wrote it in ASSMEBLY LANGUAGE. It's very impressive.   

I wouldn't do that again - C is better for such tasks.

After all Japheth said that  COM  is  dinosaur technology
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 01:48:26 AM
While waiting ...
In this thread we can acomplish some useful tasks in parallel
One interesting observation:
Read my first post :
Quote from: GoneFishing on December 04, 2015, 11:55:59 PM
Google knows nothing about COMViewSrc.ZIP
...
Look at current time and search that file with google again
No results here
Try search with Yahoo and get the link to this thread  ;)
Interesting, yes?

EDIT: Bing also reads this thread  :biggrin:
EDIT:  mabdelouahab,  maybe we 'll have better chances  using BAIDU ?
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on December 05, 2015, 02:58:40 AM

here is the compiled prog
http://www.softpedia.com/get/System/System-Info/COMView.shtml
Don't work with Windows 10
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 03:01:03 AM
I'm happy to report that I just now had a pleasure seeing me is logged in when I was offline  :biggrin:
And it was not a galucination and I'm not drunk  (unfortunately  :( )

EDIT: got it  - I cleared  browser's  cache   
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 03:02:42 AM
ToutEnMasm, we are seeking the source code
Title: Re: WANTED COMViewSrc.ZIP
Post by: jj2007 on December 05, 2015, 06:57:42 AM
Have fun :biggrin:
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 07:21:24 AM
Ерфтлы, ОО
Me comprenez-vous?
ICH SUCHE COMViewSrc.ZIP !
:biggrin:
Title: Re: WANTED COMViewSrc.ZIP
Post by: jj2007 on December 05, 2015, 08:00:11 AM
Sorry... my fault :redface:

I was so happy to have found something on an old notebook that I forgot to have a closer look...
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 05, 2015, 08:10:03 AM
It's okay, JOCHEN
We still have all of Japheth's sources . In fact,  the whole file history is stored on web archive 
But this strange ghost  miracle phantom COMViewSrc.ZIP ...
it drives me crazy that I cannot find it yet ... I almost smell its  presense on the web peacfully lying somewhere on FTP  or SHARED network folder ... 
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 06, 2015, 02:16:56 AM
Thank you for seeding from 49 9
Title: Re: WANTED COMViewSrc.ZIP
Post by: guga on December 25, 2015, 03:45:06 AM
I´m not quite sure if japeth ever released the source but, if he did, can you post it ? I can´t find it either
Title: Re: WANTED COMViewSrc.ZIP
Post by: six_L on December 25, 2015, 04:10:26 AM
i don't know whether the files is being looked for.
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on December 25, 2015, 05:25:25 AM
Yes!
Thank you, six_L !!! How did you find it ?
It's big surprise . Now I know for sure there's nothing impossible !
Merry Christmas to all !


Title: Re: WANTED COMViewSrc.ZIP
Post by: six_L on December 25, 2015, 03:40:49 PM
i'm pleasure to help you a bit.
happy new year to all.
Title: Re: WANTED COMViewSrc.ZIP
Post by: mabdelouahab on December 26, 2015, 01:30:32 AM
Why I didn't find it in the past  :(
I spent years of work and research for the COM, Though I finished work
Thank you six_L, and thank you GoneFishing for the Topic  :t
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 02, 2016, 11:29:48 PM
@mabdelouahab :
I'm glad to be at your service

Hi all !
Hope you feel good after all that you had drunk on New Year's night .

Let's talk  about "How to compile this treasure code"

I've tried to build it in MS VS 2008 using original COMView makefile .
Here's what I got:
Quote
------ Build started: Project: COMView, Configuration: Debug Win32 ------
Performing Custom Build Step
Assembling: EditDlg.asm
***********
ASCII build
***********
objidl.inc(179) : error A2004:symbol type conflict : LPSTREAM
oaidl.inc(20) : error A2004:symbol type conflict : PVOID
oaidl.inc(24) : error A2004:symbol type conflict : LPWSTR
COMView.inc(62) : error A2004:symbol type conflict : PBYTE
COMView.inc(63) : error A2004:symbol type conflict : PSTR
COMView.inc(68) : error A2111:conflicting parameter definition
MASM : fatal error A1016: Internal error
  Version 9.00.21022.08
  ExceptionCode            = C0000005
  ExceptionFlags           = 00000000
  ExceptionAddress         = 00439FD9 (00400000) "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\ml.exe"
  NumberParameters         = 00000002
  ExceptionInformation[ 0] = 00000000
  ExceptionInformation[ 1] = 00000000
CONTEXT:
  Eax    = 00000000  Esp    = 0012F8C4
  Ebx    = 0045EA05  Ebp    = 0012F8E8
  Ecx    = EB762E34  Esi    = 0045EAB7
  Edx    = 785BBB60  Edi    = 00445DE4
  Eip    = 00439FD9  EFlags = 00010206
  SegCs  = 0000001B  SegDs  = 00000023
  SegSs  = 00000023  SegEs  = 00000023
  SegFs  = 0000003B  SegGs  = 00000000
  Dr0    = 00000000  Dr3    = 00000000
  Dr1    = 00000000  Dr6    = 00000000
  Dr2    = 00000000  Dr7    = 00000000
Build log was saved at "file://c:\masm32\proj\COMViewSrc\Debug\BuildLog.htm"
COMView - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

My guess is that COMView v1.5.2 (2003) was built with previous version of MASM32 SDK  .

What's your advice?
Title: Re: WANTED COMViewSrc.ZIP
Post by: jj2007 on January 02, 2016, 11:48:22 PM
Maybe the old LPSTREAM etc definitions can be adapted to the new Masm32 versions?
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 03, 2016, 12:12:38 AM
Quote
MASM : fatal error A1016: Internal error
This one don't surprise me,use jwasm and re-post the result

Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 03, 2016, 02:08:19 AM
Quote from: ToutEnMasm on January 03, 2016, 12:12:38 AM
Quote
MASM : fatal error A1016: Internal error
This one don't surprise me,use jwasm and re-post the result



Ok, but you have to know what have been done on ML build stage:
- DLGPROC and LPSTREAM were commented out (temporarily)   in windows.inc from MASM32 includes

Changes in  COMView makefile :
                                              - replace ML with JWASM (with full path or add the path to environment)
                                              - locate H2INC.EXE and add the path to it to environment

Open MS VS Command Prompt and navigate to COMViewSrc directory.
Execute command:
NMAKE /F COMView.mak

Errors from first run:
Quote
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

        C:\MASM32\BIN\JWASM.exe -c -coff -Zi -nologo -Sg -D_DEBUG -Fl.\Debug\CD
cument -Fo.\Debug\CDocument           CDocument.asm

***********
ASCII build
***********

oaidl.inc(20) : Error A2136: Symbol type conflict: PVOID
oaidl.inc(20): Included by
  COMView.inc(19): Included by
   CDocument.asm(12): Main line code
oaidl.inc(24) : Error A2136: Symbol type conflict: LPWSTR
oaidl.inc(24): Included by
  COMView.inc(19): Included by
   CDocument.asm(12): Main line code
COMView.inc(61) : Error A2136: Symbol type conflict: PVOID
COMView.inc(61): Included by
  CDocument.asm(12): Main line code
COMView.inc(62) : Error A2136: Symbol type conflict: PBYTE
COMView.inc(62): Included by
  CDocument.asm(12): Main line code
COMView.inc(63) : Error A2136: Symbol type conflict: PSTR
COMView.inc(63): Included by
  CDocument.asm(12): Main line code
CDocument.asm: 1302 lines, 1 passes, 250 ms, 0 warnings, 5 errors

Comment out all these definitions and change externdef g_pObjects in COMView.inc to PVOID

Errors from next run of nmake:
Quote
***********
ASCII build
***********

EditDlg.asm(442) : Error A2189: Constant or relocatable label expected
return(2)[macros.inc]: Macro called from
  EditDlg.asm(442): Main line code
EditDlg.asm(516) : Error A2189: Constant or relocatable label expected
return(2)[macros.inc]: Macro called from
  EditDlg.asm(516): Main line code
EditDlg.asm(1445) : Error A2199: Syntax error in control-flow directive
EditDlg.asm(1800) : Error A2189: Constant or relocatable label expected
return(2)[macros.inc]: Macro called from
  EditDlg.asm(1800): Main line code
EditDlg.asm: 1949 lines, 1 passes, 250 ms, 0 warnings, 4 errors
NMAKE : fatal error U1077: 'C:\MASM32\BIN\JWASM.exe' : return code '0x1'
Stop.

You see that 3 out of 4 errors are caused by return macro (macros.inc):


;--- return: return a value in eax

ifndef return

return macro x
ifnb <x>
if OPATTR(x) eq 4 ;;constant?
  if x
mov eax,x
  else
xor eax,eax
  endif
else
mov eax,x
endif
endif
ret
endm

endif ;return







Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 03, 2016, 02:33:07 AM

The good advise,use Jwasm OK
good advise,del all sorts of old builds and use vc++ to build the project:
Here the result,seems to work with minor modifies (name conflicts,public symbol..)
Compiled Under Windows 10 with vc++ 2015,put it in the disk with the masm32 package
and use the original libs.
comview.exe is in the release directory
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 03, 2016, 02:39:46 AM
Thank you , ToutEnMasm
Still I have to understand and build it myself !
BTW I reached the LINK stage with ML and got lots of LNK2005 errors
for example : OnNotify@0 is already defined in foo.obj

[EDIT]: I'm on Win XP 32 (which cannot run 64 bit executable)  and   MS VS 2008 (which doesn't recognize new solution file format)

[EDIT2]: BINGO ! I've built the source code from your attachment in MS VS Command Prompt with COMView makefile using JWASM :
NMAKE /F COMView.mak   
It would be great if you documented (if possible) those minor source code adjustments you've made
Below atached : 32 bit binary + PDB + listings = full debug info
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 03, 2016, 07:34:02 AM

document the change,take too much time.
for example :ptr = DWORD if error at compile and so on.
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 03, 2016, 07:38:44 AM
OK, I'll let the command line tools find the differences
o = original , c = changed

Files c/CDocument.asm and o/CDocument.asm differ
Files c/CMainDlg.asm and o/CMainDlg.asm differ
Files c/COMView.asm and o/COMView.asm differ
Files c/COMView.inc and o/COMView.inc differ
Files c/EditDlg.asm and o/EditDlg.asm differ
================================================
sdiff -s ./o/CMainDlg.asm ./c/CMainDlg.asm
================================================
lea ecx,g_pObjects
      | lea ecx,ga_pObjects

mov ebx,g_pObjects
      | mov ebx,ga_pObjects

mov eax,g_pObjects
      | mov eax,ga_pObjects

================================================      
sdiff -s ./o/CDocument.asm ./c/CDocument.asm
================================================
mov ebx,g_pObjects
      | mov ebx,ga_pObjects

mov esi,g_pObjects
      | mov esi,ga_pObjects
     
================================================
sdiff -s ./o/COMView.asm  ./c/COMView.asm
================================================      
     
      > PUBLIC ga_pObjects


      <
g_pObjects PVOID 0
      | ga_pObjects DD 0

lea ecx,g_pObjects
      | lea ecx,ga_pObjects

lea esi,g_pObjects
      | lea esi,ga_pObjects

================================================
sdiff -s ./o/COMView.inc  ./c/COMView.inc
================================================
externdef g_pObjects:ptr
      | externdef ga_pObjects:DWORD

PVOID typedef ptr
      | PVOID typedef dword ;ptr

PBYTE typedef ptr byte
      | PBYTE typedef dword ;ptr byte

PSTR typedef ptr sbyte
      | PSTR typedef dword ;ptr sbyte

DLGPROC typedef proto :ptr, message:dword,wParam:dwor
      | DLGPROCA typedef proto :dword, message:dword,wParam:dw

PDLGPROC typedef ptr DLGPROC
      | PDLGPROC typedef ptr DLGPROCA

=================================================
sdiff -s ./o/EditDlg.asm  ./c/EditDlg.asm 
=================================================

      > ;----------- ajout -------------

      > return macro x

      > ifnb <x>

      > if (OPATTR x) eq 4 ;;constant?

      >   if x

      > mov eax,x

      >   else

      > xor eax,eax

      >   endif

      > else

      > mov eax,x

      > endif

      > endif

      > ret

      > endm

      >

      > ;---------------------------------

.elseif
      | .else ;if

      > ;----------- ajout -------------

      > return macro x

      > ifnb <x>

      > if (OPATTR x) eq 4 ;;constant?

      >   if x

      > mov eax,x

      >   else

      > xor eax,eax

      >   endif

      > else

      > mov eax,x

      > endif

      > endif

      > ret

      > endm

      >

      > ;---------------------------------

.elseif
      | .else ;if

Title: Re: WANTED COMViewSrc.ZIP
Post by: wayne on January 03, 2016, 02:28:30 PM
Found these on a old CD.  I'll have to do 2 posts for file size.
Title: Re: WANTED COMViewSrc.ZIP
Post by: wayne on January 03, 2016, 02:30:35 PM
COMViewSrc help
Title: Re: WANTED COMViewSrc.ZIP
Post by: _japheth on January 03, 2016, 04:49:56 PM
Hello,

here's the latest what I have found. It "should" assemble with both ML and jwasm (no guarantee!).

P.S.: the source needs the WinInc include files.

P.P.S: it has been compressed with 7z (to make it smaller than 512 kB). Original filename was "comviewsrc.7z"
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 03, 2016, 08:06:37 PM
_japheth and wayne, thank you  :t

Happy New Year !

What an unexpected surprise!!!
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 03, 2016, 09:32:52 PM
For the sake of completeness I should mention those files from original site japheth.de
that are missing from web.archive.org :

http://web.archive.org/web/*/http://www.japheth.de/BBtnOn.gif           
http://web.archive.org/web/*/http://www.japheth.de/bg.gif               
http://web.archive.org/web/*/http://www.japheth.de/COMPAT.TXT             
http://web.archive.org/web/*/http://japheth.de/Download/COMViewSrc.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/dbbug.zip   
http://web.archive.org/web/*/http://www.japheth.de/Download/Dos64.zip   
http://web.archive.org/web/*/http://www.japheth.de/Download/DragDrop.ZIP
http://web.archive.org/web/*/http://www.japheth.de/Download/GetIConn.ZIP
http://web.archive.org/web/*/http://www.japheth.de/Download/HDEditE.ZIP 
http://web.archive.org/web/*/http://japheth.de/Download/HDEditG.ZIP     
http://web.archive.org/web/*/http://www.japheth.de/Download/hxffsupp.zip 
http://web.archive.org/web/*/http://www.japheth.de/Download/HXNTVDM.zip   
http://web.archive.org/web/*/http://www.japheth.de/Download/HXRT215.zip   
http://web.archive.org/web/*/http://www.japheth.de/Download/Jemm534.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/Jemm545.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/Jemm569b.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/JMPPM32.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/Joe117.zip   
http://web.archive.org/web/*/http://www.japheth.de/Download/jwlink_090910.zip 
http://web.archive.org/web/*/http://japheth.de/Download/keybgr.ZIP       
http://web.archive.org/web/*/http://www.japheth.de/Download/MemStat.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/NTDPMIX.ZIP   
http://web.archive.org/web/*/http://www.japheth.de/Download/RegView.ZIP     
http://web.archive.org/web/*/http://www.japheth.de:80/Download/SE.ZIP                           
http://web.archive.org/web/*/http://japheth.de/Download/SG.ZIP                     
http://web.archive.org/web/*/http://www.japheth.de/Download/share.zip               
http://web.archive.org/web/*/http://www.japheth.de/Download/ShellExt.ZIP             
http://web.archive.org/web/*/http://www.japheth.de/Download/spammer.ZIP             
http://web.archive.org/web/*/http://www.japheth.de/Download/svgaptch.zip           
http://web.archive.org/web/*/http://www.japheth.de/Download/TestSEH.ZIP             
http://web.archive.org/web/*/http://www.japheth.de/Download/XJLM.ZIP               
http://web.archive.org/web/*/http://www.japheth.de/downloads/svgaptch.zip       
http://web.archive.org/web/*/http://www.japheth.de/Jemm386/readme.txt           
http://web.archive.org/web/*/http://www.japheth.de/JWasm/format4.css             
http://web.archive.org/web/*/http://www.japheth.de/JWasm/index.html                 
http://web.archive.org/web/*/http://www.japheth.de:80/JWasm/License.txt                           
http://web.archive.org/web/*/http://www.japheth.de/JWlink/CHECK_Option                 
http://web.archive.org/web/*/http://www.japheth.de/JWlink/Download/JWlink/JWlinkbd.zip 
http://web.archive.org/web/*/http://www.japheth.de/JWlink/Download/JWlink/JWlinkbl.zip   
http://web.archive.org/web/*/http://www.japheth.de/JWlink/Download/JWlink/JWlinkbw.zip     
http://web.archive.org/web/*/http://www.japheth.de/JWlink/JWlink/JWlink.htm               
http://web.archive.org/web/*/http://www.japheth.de/static/images/toolbar/transp-black-pixel.png 


Some of them can be found in this archive (http://masm32.com/board/index.php?topic=3624.msg38149#msg38149)

All the rest are included in The List of missing files :
Quote
       
dbbug.zip       
Dos64.zip       
GetIConn.ZIP   
HDEditE.ZIP     
HDEditG.ZIP       
hxffsupp.zip   
HXNTVDM.zip     
Jemm534.ZIP     
Jemm545.ZIP     
JMPPM32.ZIP     
jwlink_090910.zip   
MemStat.ZIP     
SE.ZIP                           
SG.ZIP                       
ShellExt.ZIP             
spammer.ZIP               
XJLM.ZIP   
readme.txt                    (JEMM386)           
index.html                    (JWASM)             
License.txt                    (JWASM)                     
CHECK_Option            (JWlink, directory)
D3DSmpl1.Asm            (Win32Inc, empty file)                 
transp-black-pixel.png 
BBtnOn.gif         
bg.gif               
COMPAT.TXT
   

addition :
Quote
jwasmdll.zip    (https://sourceforge.net/p/jwasm/discussion/927109/thread/9faeda32/)
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 04, 2016, 08:35:36 PM

Is someone try to compile the one given by _japheth ?
I have made an attempt on Windows 10 and he stay on the background.
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 04, 2016, 08:42:56 PM
I've successfully built it with MAKE.BAT using JWASM / JWLINK  ( in MS VS Command Prompt )
Check that your WinInc path and path to EXCEPT.LIB match those ones in MAKE.BAT 

P.S.: CHM help compiles just fine also .
       
My overall impression of COMView is that it's a SUPERHUMAN work
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 05, 2016, 12:30:01 AM
As I said,I have build it but ... comview stay in the background (Windows 10).
Can you post the one built on your system ?
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 05, 2016, 01:11:40 AM
ouf!
Made it with vc2015 (Under Windows 10)
_japheth Version from here  (http://masm32.com/board/index.php?topic=4888.msg53484#msg53484)
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 05, 2016, 01:22:58 AM
Here it is v2.9.12 , built from _japheth's archive without modification 
Win32 Release ( JWASM / JWLINK )
Title: Re: WANTED COMViewSrc.ZIP
Post by: guga on January 05, 2016, 03:08:51 AM
Hi Yves. Your version is not working on WinXP :(
Title: Re: WANTED COMViewSrc.ZIP
Post by: jj2007 on January 05, 2016, 03:20:29 AM
Quote from: guga on January 05, 2016, 03:08:51 AM
Hi Yvesl. Your version is not working on WinXP :(

But it works on Win7-64 :t
Title: Re: WANTED COMViewSrc.ZIP
Post by: guga on January 05, 2016, 03:28:18 AM
Great, but, why XP says that "it is not a valid win32 application" ? It was written in 32 bits. I can reassemble it with RosAsm and it runs (Since RosAsm can´t disasm 64 bits yet., i don´t understand why XP don´t wants to open it)
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 05, 2016, 04:12:31 AM
I think it's because of differences in MajorOperatingSystemVersion fields of IMAGE_OPTIONAL_HEADER structure (https://msdn.microsoft.com/en-us/library/windows/desktop/ms680339%28v=vs.85%29.aspx) .
           
On the attached screenshots I compared Yves' executable (Windows 10) and mine (Windows XP)

[EDIT]: Seems that  MajorOperatingSystemVersion doesn't matter .
MajorSubsystemVersion should be 4 for Windows XP !!! Change this value in Hex editor and run the program  :t
Title: Re: WANTED COMViewSrc.ZIP
Post by: guga on January 05, 2016, 05:04:32 AM
Indeed ! Also, other differences are in DllCharacteristics, MajorSubsystemVersion, MajorOperatingSystemVersion

I manually changed the dll characteristicis and those other members

The DllCharacteristics member of the structure are related to equates for the value on the image you posted are:
IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE
IMAGE_DLLCHARACTERISTICS_NX_COMPAT
IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE

On XP executables, this flag is normally set to 0. So, i manually set it to 0

And on MajorSubsystemVersion and  MajorOperatingSystemVersion i changed from 6 to 4

After those changes, the app runned.
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 05, 2016, 09:37:05 PM
Hi GUGA ,
Is that "fixed" executable fully functional for you ?
Mine is not :
- Dialog "About" has no text
- In CSLID tab  double-clicking the line brings up an empty "Edit Registry" dialog.
That's all I've noticed for now.
Title: Re: WANTED COMViewSrc.ZIP
Post by: guga on January 05, 2016, 11:01:44 PM
Mine is also having problems (Same as yours). When double clicking on the CLSID list of register a dialogbos shows up, but it is in blank. About dialog, the same as you, and some data on the registry listing have weird chars

(http://i64.tinypic.com/xav4uu.jpg)

(http://i64.tinypic.com/357qeqr.jpg)
Title: Re: WANTED COMViewSrc.ZIP
Post by: GoneFishing on January 05, 2016, 11:22:21 PM
Thanks, GUGA
Now the question is  - How does it run on Windows 7 and above ?     
Title: Re: WANTED COMViewSrc.ZIP
Post by: guga on January 05, 2016, 11:58:55 PM
 :t

I don´t know. Didn´t had time to analyze his app. What is the problem on Windows7 ? The same as here on XP ? Or simply Windows7 and above refuses to run the app ?
Title: Re: WANTED COMViewSrc.ZIP
Post by: TWell on January 06, 2016, 12:20:15 AM
Win10
Title: Re: WANTED COMViewSrc.ZIP
Post by: TouEnMasm on January 06, 2016, 12:30:31 AM

The win10 version (compiled with vc++2015) had just a problem (in Windows 10) when the internet explorer is open.
The internet explorer must be closed to view the main dialog .
I search a soluce.