flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 27 Feb 2010, 03:57
Where do you want this description to appear? On the screen? In the source? In the exe? In a help file?
Under what OS? What file format? |
|||
![]() |
|
adroit 01 Mar 2010, 02:57
I want it to appear in the source code. It's under XP.
Rem: I want it to be technical |
|||
![]() |
|
revolution 01 Mar 2010, 03:01
Is there some reason you can't use the semi-colon?
Code: ;Name: Hexpad ;File: Hexpad.exe ;Lang: Eng ;.... ;Description: Hexpad is a hex editor, the is able to compile hex scripts back to bin format |
|||
![]() |
|
adroit 01 Mar 2010, 03:04
Um, no.
|
|||
![]() |
|
revolution 01 Mar 2010, 03:06
Why not? Please explain your problem in more detail.
|
|||
![]() |
|
adroit 01 Mar 2010, 03:06
I just want to know how to add information about my program into the source code
|
|||
![]() |
|
revolution 01 Mar 2010, 03:09
You can add anything you want to the source code. But if you don't want to use the semi-colon (why?) then you make your job a lot harder.
|
|||
![]() |
|
Madis731 01 Mar 2010, 07:39
Maybe its a weird explanation for an "about"-dialog?
About_text db "Hex info....",0 |
|||
![]() |
|
ouadji 01 Mar 2010, 08:24
|
|||
![]() |
|
edfed 01 Mar 2010, 08:37
readme.txt
whatsnew.txt |
|||
![]() |
|
ouadji 01 Mar 2010, 09:33
![]() ![]() |
|||
![]() |
|
edfed 01 Mar 2010, 14:25
readme.txt in more compatible with .zip than a note book.
![]() |
|||
![]() |
|
LocoDelAssembly 01 Mar 2010, 17:20
I think he means that thing that appears in the properties dialogs of executables.
Check MINIPAD example in fasm Windows package. |
|||
![]() |
|
MHajduk 01 Mar 2010, 17:25
MeshNix wrote: Hey, I want to find out how to add technical description to my programs. I have searched on the net, and couldn't find anything. Here is an example of what I'm looking for: Code: ; Modified template example from the FASM package with added version info ; and embedded manifest. ; format PE GUI 4.0 include 'win32wx.inc' include '\ENCODING\utf8.inc' section '.data' data readable writeable _class du 'FASMWIN32',0 _title du 'Win32 program template',0 _error du 'Startup failed.',0 wc WNDCLASS 0,WindowProc,0,0,NULL,NULL,NULL,COLOR_BTNFACE+1,NULL,_class msg MSG section '.text' code readable executable start: invoke GetModuleHandle,0 mov [wc.hInstance],eax invoke LoadIcon,0,IDI_APPLICATION mov [wc.hIcon],eax invoke LoadCursor,0,IDC_ARROW mov [wc.hCursor],eax invoke RegisterClass,wc test eax,eax jz error invoke CreateWindowEx,0,_class,_title,WS_VISIBLE+WS_DLGFRAME+WS_SYSMENU,128,128,256,192,NULL,NULL,[wc.hInstance],NULL test eax,eax jz error msg_loop: invoke GetMessage,msg,NULL,0,0 cmp eax,1 jb end_loop jne msg_loop invoke TranslateMessage,msg invoke DispatchMessage,msg jmp msg_loop error: invoke MessageBox,NULL,_error,NULL,MB_ICONERROR+MB_OK end_loop: invoke ExitProcess,[msg.wParam] proc WindowProc hwnd,wmsg,wparam,lparam push ebx esi edi cmp [wmsg],WM_DESTROY je .wmdestroy .defwndproc: invoke DefWindowProc,[hwnd],[wmsg],[wparam],[lparam] jmp .finish .wmdestroy: invoke PostQuitMessage,0 xor eax,eax .finish: pop edi esi ebx ret endp .end start ; Section containing definitions of the application resources. ; section '.rsrc' resource data readable RT_MANIFEST = 24 ID_MANIFEST = 1 directory RT_VERSION, versions,\ RT_MANIFEST, manifest resource versions,\ 1, LANG_NEUTRAL, version resource manifest,\ ID_MANIFEST, LANG_NEUTRAL, man versioninfo version, VOS__WINDOWS32, VFT_APP, VFT2_UNKNOWN, LANG_ENGLISH + SUBLANG_DEFAULT, 0,\ 'FileDescription', 'Short description of your application.',\ 'LegalCopyright', '(C) 2010, Your Name',\ 'FileVersion', '1.0.0.0',\ 'ProductVersion', '1.0.0.0',\ 'OriginalFilename', 'YourProgName.exe' ; Data of the manifest embedded directly into the source file. ; resdata man db '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' db '<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">' db '<assemblyIdentity ' db 'version="1.0.0.0" ' db 'processorArchitecture="X86" ' db 'name="Your Name.YourProgName" ' db 'type="win32"' db '/>' db '<description>Short description of your application.</description>' db '<dependency>' db '<dependentAssembly>' db '<assemblyIdentity ' db 'type="win32" ' db 'name="Microsoft.Windows.Common-Controls" ' db 'version="6.0.0.0" ' db 'processorArchitecture="X86" ' db 'publicKeyToken="6595b64144ccf1df" ' db 'language="*"' db '/>' db '</dependentAssembly>' db '</dependency>' db '</assembly>' endres |
|||
![]() |
|
adroit 01 Mar 2010, 20:17
MHajduk, Yea - you got the idea. That's what I meant.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.