News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#31
Expert questions / Re: PellesC_V13\Include\Win\oc...
Last post by Vortex - December 08, 2025, 08:07:25 PM
Not sure if it could help but Frankie's SDK for PellesC offers another version of ocidl.h :

https://github.com/Frankie-PellesC/fSDK
#32
Expert questions / PellesC_V13\Include\Win\ocidl....
Last post by John Z - December 08, 2025, 07:36:57 PM
Major issue  -  programs that previously compiled OK are now crashing out of compile if ocidl.h is included. 

Tested on two different windows 11 systems using known good projects.  I even unarchived a prior build and tried to rebuild it - same result, bad.
C:\Program Files\PellesC_V13\Include\Win\ocidl.h(25): error #2158: Unrecognized type 'interface' (did you mean: ?).
C:\Program Files\PellesC_V13\Include\Win\ocidl.h(25): error #2119: Redeclaration of 'IEnumConnections', previously declared at C:\Program Files\PellesC_V13\Include\Win\ocidl.h(25).
.
.
.
C:\Program Files\PellesC_V13\Include\Win\ocidl.h(190): fatal error #2210: More than 100 errors, please improve yourself.


Looks like every function in ocidl.h is throwing an error example below and full list in the attachment.

Removed and reinstalled V13 on the main system as well even though 2nd laptop now shows the issue too.
I've built the program for many years and no recent changes to it since May - when it was rebuilt.

Unfortunately I suspect a WIN 11 24H2 update -

Any thoughts welcome, also if someone can try -
I'm on Windows 11 Home, 24H2 OS build 26100.7171 and updates in the image below.  I think anything in October could be contributing... otherwise I have no idea.

Sadly,
John Z
#33
Assembly discussions / File downloader
Last post by Vortex - December 08, 2025, 06:48:34 PM
Here is a very simple file downloader :

DownloadFile.exe http://address filename.ext
include     DownloadFile.inc

.data?

buffer      db 512 dup(?)

.code

start:

    call    main
    invoke  ExitProcess,eax

main PROC uses esi

    mov     esi,OFFSET buffer
    invoke  ParseCmdLine,esi
    cmp     eax,3
    jne     finish

    xor     ecx,ecx
    invoke  URLDownloadToFile,ecx,DWORD PTR [esi+4],\
            DWORD PTR [esi+8],BINDF_GETNEWESTVERSION,ecx
finish:

    ret

main ENDP

ParseCmdLine PROC uses esi edi ebx _buffer:DWORD

    push    0
    mov     esi,_buffer
    lea     edi,[esi+256]
    invoke  GetCommandLine
    lea     edx,[eax-1]
    mov     ax,32+256*34
    mov     ch,al
    mov     bx,9+256*9

scan:

    inc     edx
    mov     cl,BYTE PTR [edx]
    test    cl,cl
    jz      finish
    cmp     cl,al
    je      scan
    cmp     cl,bh
    je      scan
    inc     DWORD PTR [esp]
    mov     DWORD PTR [esi],edi
    add     esi,4

restart:

    mov     cl,BYTE PTR [edx]
    test    cl,cl
    jne     @f
    mov     BYTE PTR [edi],cl
    jmp     finish
@@:
    cmp     cl,ch
    je      end_of_line
    cmp     cl,bl
    je      end_of_line
    cmp     cl,ah
    jne     @f
    xor     ch,al
    xor     bl,bh
    jmp     next_char
@@:   
    mov     BYTE PTR [edi],cl
    inc     edi

next_char:

    inc     edx
    jmp     restart

end_of_line:

    mov     BYTE PTR [edi],0
    inc     edi
    jmp     scan
   
finish:

    pop     eax
    ret

ParseCmdLine ENDP

END start
#34
General discussion / Re: Pellesc site down?
Last post by Vortex - December 08, 2025, 06:19:27 PM
Hello,

The site is still unavailable :

http://www.smorgasbordet.com/pellesc/
#35
User contributions / Re: Vintage code
Last post by Vortex - December 08, 2025, 06:06:20 PM
The application works fine under Windows 7 Home Premium 64-bit.
#36
User contributions / Re: Vintage code
Last post by John Z - December 08, 2025, 04:23:15 PM
Update :

Runs just fine under windows 7 Home as well as Windows 7 Pro.

No errors, but I had nothing scheduled to see.

Run as ADMIN.

John Z
#37
User contributions / Re: Vintage code
Last post by John Z - December 08, 2025, 03:08:58 PM
Well here is an/the issue -

C:\Users\John>AT
The AT command has been deprecated. Please use schtasks.exe instead.

The request is not supported.

C:\Users\John>

However AT /? still lists the old commands -

John Z
#38
User contributions / Re: Vintage code
Last post by John Z - December 08, 2025, 01:46:16 PM
Saw that too - here is what I found:

AI Overview
Error Code 50, "Conflicting I/O operation is running," usually means another process is using a disk/device, often seen with external drives on Mac (file system issues, sleep settings) or Windows (driver/network stack problems), or within apps like Steam (download conflicts)
. Solutions involve restarting the PC, running as administrator, checking/updating drivers, disabling antivirus, resetting network settings, or addressing specific file system/permission issues on Mac

For Windows Users (Event ID 50)

    Hardware Failure: Check system logs for underlying hardware issues (especially disk/network).
    Network/Driver Issues: Roll back network drivers or run network reset commands.
    Filter Drivers: Other software (antivirus, backup tools) can interfere; perform a clean boot (msconfig) to find the culprit.
----
Seems more likely that Windows has changed something from the 'good ole days' that now creates the error -

I did try many 'compatibility' modes in Win 11 24H2 to no avail.  Also tried as Admin - no improvement
Did not try disabling Antivirus yet though....

John Z
#39
User contributions / Re: Vintage code
Last post by Vortex - December 08, 2025, 10:19:30 AM
Thanks, here are the error messages while trying to run the application on Windows 11 2024 H2 :

Conflicting i/o operation is running.
Error code : 50
#40
User contributions / Re: Vintage code
Last post by John Z - December 07, 2025, 09:48:23 PM
Not too sad though; can't let language be a a showstopper for a 'classic' :)

Here is the program translated to English for the C part and the .rc part.
Original Finnish version is still there, just 'excluded'.  To get that version
just 'exclude' the _EN versions and include the original as Timo adjusted for
Pelles C V13, then build again.


John Z