News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#71
Add-ins / Re: Export C source as HTML or...
Last post by John Z - October 06, 2026, 12:47:39 PM
Attached is what I'm calling version 1.4

10/05/2026
Version 1.4 Removed options control off of the filename.
            Added an HTML output options dialog activated from the Pelles Menu for Tools, Options, Add-ins
            then select 'Export64 C Source as HTML, PDF, RTF File', then click Options button.

            When none of the first three options are checked the default output is the same as before -
            That means there is no need to use the Options if just wanting the original style output which was
            and is -  White background with colored text. 

            The other option choices are shown. Two new options have been included in this version.
           
            Click OK to save the choice.  Option choice will be retained through a Pelles C
            shutdown/restart
           
John Z

Updated project sources are attached - build it or just use the included export64.dll             
#72
General discussions / Re: Chinese (Simplified) trans...
Last post by TimoVJL - October 01, 2026, 11:22:20 AM
Copy only rsrc004.dll to Bin\Intl
#73
General discussions / Re: Chinese (Simplified) trans...
Last post by xiaofei290 - October 01, 2026, 06:53:32 AM
Hi,how to use it?all extract into the folder "Bin" and cut "rsrc0004.dll" to folder "Intl" ?
#74
Assembly discussions / Re: Windows domain membership
Last post by Vortex - September 30, 2026, 08:18:26 PM
Inspired by the thread :

https://masm32.com/board/index.php?topic=13433.0

include CheckOS.inc

.data

m1  db 'The application is native 32-bit app on a 32-bit OS or a native 64-bit app on a 64-bit OS.',0
m2  db 'The application is running via the WOW64 translation layer.',0
tbl dd OFFSET m1,OFFSET m2

.code

start:

    invoke  IsOS,OS_WOW6432

    xor     ecx,ecx
    test    eax,eax
    setne   cl
    push    ecx
    shl     ecx,2
    lea     edx,[tbl+ecx]

    invoke  StdOut,DWORD PTR [edx]

    pop     eax
    invoke  ExitProcess,eax


OPTION PROLOGUE:NONE
OPTION EPILOGUE:NONE
#75
Add-ins / Re: Line Counter Add-IN
Last post by TimoVJL - September 28, 2026, 01:43:35 PM
Nice to see developments in Add-In again.
Source code parsing can be challenging.
#76
Add-ins / Re: Line Counter Add-IN
Last post by John Z - September 28, 2026, 04:54:38 AM
Updated DLL for Pelles C Version 14.5 and includes a few bug fixes and increased the speed of the analysis.

John Z

version 1.7.10 dll
SHA256: c71bb0595be720f9172f6a343c312ef427f83660a578d24852c8f77b47a64ef1
#77
Assembly discussions / Re: Windows domain membership
Last post by Vortex - September 24, 2026, 12:47:19 PM
Hi Timo,

Thanks, your code works as expected.
#78
Assembly discussions / Re: Windows domain membership
Last post by TimoVJL - September 22, 2026, 02:52:00 PM
A similar C version

Have to test this part:---
char *fmt = "The computer is%s joined to a domain.\n";
char *not[] = {" not", ""};
...
printf(fmt, not[rc]);
#79
Assembly discussions / Re: Windows domain membership
Last post by Vortex - September 22, 2026, 11:52:49 AM
Hello,

Here is the 64-bit version :

OS_DOMAINMEMBER equ 28

ExitProcess PROTO :QWORD
IsOS PROTO :QWORD
printf PROTO :QWORD,:VARARG

.data

m1  db 'The computer is not joined to a domain.',0
m2  db 'The computer is joined to a domain.',0
tbl dq OFFSET m1,OFFSET m2

.data?

rv  dq ?

.code

start:

    sub     rsp,4*8+8

    invoke  IsOS,OS_DOMAINMEMBER

    xor     rdx,rdx
    test    rax,rax
    setne   dl
    mov     rv,rdx
    shl     rdx,3
    lea     rax,[tbl+rdx]

    invoke  printf,QWORD PTR [rax]

    invoke  ExitProcess,rv

END start