News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Recent posts

#1
The Laboratory / Re: DBScan, Homogeneity and Co...
Last post by guga - Today at 04:59:54 PM
New version in C (to be compiled with Pelles) with a bit of optimization and precalculating the euclidean distances.

I´ll try optimize it even further before porting it to Assembly.

#2
The Campus / Re: sprintf_s in masm ?
Last post by alCoPaUL - Today at 04:37:40 PM
Quote from: jj2007 on Today at 03:09:59 PMDll hell in the 21st Century, isn't it lovely?
C:\Windows\System32\msvcrt.dll
C:\Windows\System32\msvcr100_clr0400.dll
C:\Windows\System32\msvcr120_clr0400.dll
C:\Windows\System32\msvcrt20.dll
C:\Windows\System32\msvcrt40.dll
C:\Windows\System32\msvcr71.dll
C:\Windows\System32\msvcr80.dll
C:\Windows\System32\msvcr100.dll

There is a simple solution:
- find out what's the latest msvcr*.dll
- use LoadLibrary and GetProcAddress

m$ tactics - either for the $$ or from old school m$ guises who don't want all the os versions to be swiped by malware so they grouped the default development software for the os via different redistributable runtime files..

anyway, attached is similar code that i previously posted with 3 C Standard lib functions but it's written in another assembler. you can easily format this to masm32 assembly src file using the previous code that i shared as template..

splitted the zip (file size restrictions) so just rename faxx.jpg to faxx.z01...
#3
The Campus / Re: sprintf_s in masm ?
Last post by jj2007 - Today at 03:09:59 PM
Dll hell in the 21st Century, isn't it lovely?
C:\Windows\System32\msvcrt.dll
C:\Windows\System32\msvcr100_clr0400.dll
C:\Windows\System32\msvcr120_clr0400.dll
C:\Windows\System32\msvcrt20.dll
C:\Windows\System32\msvcrt40.dll
C:\Windows\System32\msvcr71.dll
C:\Windows\System32\msvcr80.dll
C:\Windows\System32\msvcr100.dll

There is a simple solution:
- find out what's the latest msvcr*.dll
- use LoadLibrary and GetProcAddress
#4
The Orphanage / The power is out here
Last post by sudoku - Today at 03:08:06 PM
Cell phone post. I  can't though, keyboard is much too small. Hopefully we get power soon. The thunderstorms have stopped for now, hopefully they will not start back up, so the power company can get out to repair whatever is damaged.
#5
The Campus / Re: sprintf_s in masm ?
Last post by alCoPaUL - Today at 12:30:20 PM
Quote from: sudoku on Today at 12:19:08 PMTried to run your executable


the library (.lib) is from visual studio 2010, needs the appropriate redistributable runtimes..
#6
The Campus / Re: sprintf_s in masm ?
Last post by sudoku - Today at 12:19:08 PM
Tried to run your executable

I am quite sure that the "32msvcrt.lib" that you are using is not for msvcrt.dll, but rather a dll from the vcruntime dll shown in the message box. A non-starter for me.
#7
The Campus / Re: sprintf_s in masm ?
Last post by alCoPaUL - Today at 09:46:53 AM
masm32 version

; sprintf_s + printf
; by alCoPaUL [GIMO]
; 5/16/2024 NYC
;
; ml.exe printf_s32.asm /link /subsystem:console /defaultlib:32msvcrt.lib /entry:start [or /entry:main (will assemble and link with warning)]
;
.686
.model flat,stdcall
extern printf:proc
extern sprintf_s:proc
.code
start:
main proc
enter 0,0
push offset x
push offset i
push f
push offset b
call sprintf_s
push eax
push offset b
push offset i
call printf
leave
ret
main endp
.data
f equ 10               ; Scale This Length
x db 'Thereupon',0     ; Manually Or Use StrLen()
b db 999426 DUP(0)     ; As Usual, Humongous Buffer
i db 25h,73h,0
end start
#8
Examples / Re: LookingFor: A Masm64 tool ...
Last post by HSE - Today at 08:14:08 AM
Hi greenozon!

Quote from: greenozon on Today at 06:22:35 AM---------------------------
LookingFor:
---------------------------
Could not open
---------------------------
OK 
---------------------------

That could be an error or not, but anyway a good point  :thumbsup:

That message popup after click in some filename that match definitions.

You can see how that work in procedure ListProc, inside more.inc file.

If file extension is .bat or .CMD, shell call \masm64\qeditor. That is hardcoded but you can change path or editor and rebuild program. This necessary to prevent file execution.

Perhaps that also happen with other extensions associated with a program not present or moved.

Because is a tool for programming, is expected that extensions of interest have associated an editor.

Quote from: greenozon on Today at 06:22:35 AMtry to click and on Find by mouse -> nothing
press Space -> gotcha

:thumbsup: There are remains from early development  :biggrin:

Thanks, HSE.
#9
Examples / Re: LookingFor: A Masm64 tool ...
Last post by greenozon - Today at 06:22:35 AM
Thanks a lot for the fresh build!
new err boxes are much better, but.. found out this one -

---------------------------
LookingFor:
---------------------------
Could not open
---------------------------
OK   
---------------------------

it happens when fill in very long value in the 1st drop down
also it's tricky to show this err...
try to click and on Find by mouse -> nothing
press Space -> gotcha
#10
The Campus / Re: sprintf_s in masm ?
Last post by alCoPaUL - Today at 05:20:25 AM
source code & essential files in the zip..