NO

Recent Posts

Pages: [1] 2 3 ... 10
1
Assembly discussions / Binary resource data with INCBIN
« Last post by Vortex on Yesterday at 09:42:44 PM »
Hello,

Here is an example to read binary data from a compiled resource script with INCBIN :

Code: [Select]
.386
.model flat,stdcall
option casemap:none

include Dialog.inc

includelib  \PellesC\lib\Win\kernel32.lib
includelib  \PellesC\lib\Win\user32.lib

DlgProc PROTO :DWORD,:DWORD,:DWORD,:DWORD

.data

Resource:
INCBIN Rsrc.res,80
msg db 'Dialog box with menu',0

title1 db 'Hello!',0

IDM_HELLO   equ 11
IDM_EXIT    equ 12
IDC_HELLO   equ 110
IDC_EXIT    equ 120
IDC_EDIT    equ 3000

.code

start:

    invoke  GetModuleHandle,NULL
    invoke  DialogBoxIndirectParam,eax,ADDR Resource,\
            NULL,ADDR DlgProc,NULL
    invoke  ExitProcess,eax

DlgProc PROC hWnd:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM

    .IF uMsg==WM_INITDIALOG
       
        invoke  LoadIcon,NULL,IDI_APPLICATION
        invoke  SendMessage,hWnd,WM_SETICON,ICON_SMALL,eax
        lea     eax,[Resource+0A0h]
        invoke  LoadMenuIndirect,eax
        invoke  SetMenu,hWnd,eax
       
    .ELSEIF uMsg==WM_CLOSE
   
        invoke SendMessage,hWnd,WM_COMMAND,IDM_EXIT,0

    .ELSEIF uMsg==WM_COMMAND

        mov eax,wParam
       
        .IF lParam==0
       
            .IF ax==IDM_HELLO
           
                invoke  MessageBox,NULL,ADDR msg,ADDR title1,MB_OK
               
            .ELSEIF ax==IDM_EXIT
           
                invoke  EndDialog, hWnd,NULL
            .ENDIF
           
        .ELSE
       
            mov edx,wParam
            shr edx,16
           
            .IF dx==BN_CLICKED
                               
                .IF ax==IDC_HELLO
               
                    invoke  SendMessage,hWnd,WM_COMMAND,IDM_HELLO,0
                   
                .ELSEIF ax==IDC_EXIT
               
                    invoke  EndDialog,hWnd,NULL
                .ENDIF
               
            .ENDIF
           
        .ENDIF
       
    .ELSE
   
        mov eax,FALSE
        ret
       
    .ENDIF
   
        mov eax,TRUE
        ret
       
DlgProc ENDP

END start
2
Bug reports / MOVED: IDE TreeView limited files
« Last post by frankie on Yesterday at 09:35:14 AM »
3
General discussions / Re: IDE TreeView limited files
« Last post by WiiLF23 on Yesterday at 03:29:44 AM »
Hi WiiLF23,

I'm not exactly clear on your description, but guessing that in the project files pane the "Target Files" button has been clicked.
Click the left "Source Files" button.

See attachment.

If this does not work please post another description of the problem.

John Z

Oh good grief, I am so sorry.

That is the answer - thank you John Z.

Kindly remove this post as it is not a bug report, but rather an oversight on my part. Cheers!
4
General discussions / Re: IDE TreeView limited files
« Last post by John Z on May 07, 2024, 11:08:45 AM »
Hi WiiLF23,

I'm not exactly clear on your description, but guessing that in the project files pane the "Target Files" button has been clicked.
Click the left "Source Files" button.

See attachment.

If this does not work please post another description of the problem.

John Z
5
General discussions / IDE TreeView limited files
« Last post by WiiLF23 on May 07, 2024, 07:51:04 AM »
I am experiencing filename nodes vanishing, of which reflect source files. I am left with object files and resource file for each project in my workspace (5 projects), and it does not look correct at all. No settings changed, no other relevant configuration. Across Pelles C IDE launches. Latest version.

I installed Windows SDK for signtool today among other binaries, but that is silly to impose this as a problem at the IDE.

Am I the only one experiencing this? How to resolve?

Thanks
6
Assembly discussions / Re: Poasm and FreeBASIC cooperation
« Last post by Vortex on April 17, 2024, 09:58:26 PM »
FreeBASIC sample calling Poasm module.
7
User contributions / Re: Image Tools
« Last post by John Z on April 15, 2024, 01:38:12 PM »
The tool, from 2017, is no longer available from that site.

John Z
8
User contributions / Re: Image Tools
« Last post by Ushavilash on April 15, 2024, 08:32:18 AM »
Hey hi, to launch image tool select a folder containing the images for management. Once chosen, the tool scans the folder, generating thumbnails for each image. Utilizing the computed MD5 checksum, it offers an option to automatically delete duplicate images. When renaming files, temporary names are used, considering various sorting criteria such as image width, height, orientation, DPI, color, file size, and checksum. Additionally, the tool computes the ratio based on image dimensions for further analysis and for compressing these images you can try any online application such as jpeg compressor. It compresses image without losing their quality.
9
Beginner questions / Re: Record audio in windows 10
« Last post by Ushavilash on April 13, 2024, 08:36:35 AM »
Hey hi, you'll get information from https://learn.microsoft.com/en-us/windows/win32/
10
Graphics programming / Re: Squeezing some cool from Windows GDI
« Last post by Vortex on April 12, 2024, 10:02:16 PM »
Hello,

I agree with MrBcx. We must be careful while intepreting the output of the artificail intelligence. One can receive tricky replies to questions related to assembly programming.
Pages: [1] 2 3 ... 10