News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

The Universal CRT

Started by Vortex, October 08, 2023, 06:58:53 AM

Previous topic - Next topic

Vortex

A nice article by James McNellis :

Introducing the Universal CRT

https://devblogs.microsoft.com/cppblog/introducing-the-universal-crt/

jj2007

QuoteYou will need to copy all of the DLLs with your app (note that the set of DLLs are necessary is different on different versions of Windows, so you must include all of the DLLs in order for your program to run on all supported versions of Windows)

Sounds suspiciously like good ol' DLL hell :biggrin:

Vortex

Hi Jochen,

Exactly. The last versions of the C\C++ compilers are defaulting to the universal C runtime library. Too bad that this is going to replace our good old friend msvcrt.dll

Vortex

How to correctly link to UCRT :

https://mingwpy.github.io/ucrt.html

NoCforMe

Quote from: Vortex on October 08, 2023, 08:18:55 AMHi Jochen,

Exactly. The last versions of the C\C++ compilers are defaulting to the universal C runtime library. Too bad that this is going to replace our good old friend msvcrt.dll

Not my friend; I've never used it.

Just out of curiosity, what exactly is in that library and why would I want to use it? I make do pretty well between the MASM32 stuff and my homemade functions.
Assembly language programming should be fun. That's why I do it.

TimoVJL

Quote from: NoCforMe on October 09, 2023, 03:07:20 PMJust out of curiosity, what exactly is in that library and why would I want to use it? I make do pretty well between the MASM32 stuff and my homemade functions.
Quote1. The Universal CRT is a Windows operating system component. It is a part of Windows 10.
May the source be with you

NoCforMe

OK, but what's in it? Curious but not enough to do further research, hence the question.
Assembly language programming should be fun. That's why I do it.

Vortex

Hi NoCforMe,

You can consider the Universal C Runtime as a replacement \ upgrade to the classical library msvcrt.dll

jj2007

I made a quick check: neither the MasmBasic library nor the RichMasm IDE use the msvcrt library. No crt_ in over 50k lines - you really can live without it.

Hutch didn't like the crt, and it was always kind of uncool to use it in Masm32 code.

zedd

Quote from: TimoVJL on October 09, 2023, 07:04:35 PM
Quote1. The Universal CRT is a Windows operating system component. It is a part of Windows 10.

Well, that does it for me... I now know, that I will never use it. I break out in hives just thinking about Windows 10/11...  :tongue:  :joking:

I try to make my code backward compatible. Something which Microsoft has done everything in its power, to abandon.

Quote from: jj2007 on October 10, 2023, 07:55:44 AMHutch didn't like the crt, and it was always kind of uncool to use it in Masm32 code.
You would be surprised to see then, that one of the last versions of qeditor uses a couple api's from msvcrt...  :cool: ... "atol" and "atoi"  :wink2:  I was surprised.

NoCforMe

Quote from: Vortex on October 10, 2023, 06:32:38 AMYou can consider the Universal C Runtime as a replacement \ upgrade to the classical library msvcrt.dll

But I don't use that either; never have and never will. So what's in there, string routines, numeric conversion functions, low-level stuff?
Assembly language programming should be fun. That's why I do it.

Greenhorn

Quote from: NoCforMe on October 10, 2023, 01:09:17 PM
Quote from: Vortex on October 10, 2023, 06:32:38 AMYou can consider the Universal C Runtime as a replacement \ upgrade to the classical library msvcrt.dll

But I don't use that either; never have and never will. So what's in there, string routines, numeric conversion functions, low-level stuff?

https://cplusplus.com/reference/

https://learn.microsoft.com/en-us/cpp/c-runtime-library/c-run-time-library-reference?view=msvc-170

https://www.gnu.org/software/libc/manual/pdf/libc.pdf
Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

TimoVJL

The nickname NoCforMe tell a lot for many.
Just an one person to develop a new stone wheels ?
In TLPEView msvcrt.dll wasn't used, but if you really work for someone ?
May the source be with you

NoCforMe

Quote from: TimoVJL on October 11, 2023, 03:18:20 AMThe nickname NoCforMe tell a lot for many.
Well, I damn well hope so. I didn't make that handle for no reason.

QuoteJust an one person to develop a new stone wheels ?
Yes, just one person here who likes to reinvent my own wheels, stone or otherwise. Do you have a problem with that?

QuoteIn TLPEView msvcrt.dll wasn't used, but if you really work for someone ?
Look, I don't work for anyone; I'm a hobby programmer, so I just don't need those libraries. Sheesh, what is it with you people? This is supposed to be an assembly language forum, not some fan club for high-level languages.
Assembly language programming should be fun. That's why I do it.

Vortex

Hi NoCforMe,

The Universal C runtime library contains a lot of useful services like string manipluation, memory management, file handling, number to string convertion etc. There is nothing wrong with this thread as it's location is the Assembler/Compiler Technology subforum. An assembly programmer might be interested in this library for practical programming purposes. It's just only an approach to combine assembly and C code. If you wish, I can present a small example.