cvt1101 can't open xxx.res for reading?

wei liu 1 Reputation point
2022-01-25T14:52:35.267+00:00

can't include more than about 510 .rc file in one mfc project. (there is a reason to include so many .rc in one project!)

after investigation (reverse engineering cvtres.exe), I fond the reason: cvtres will first open all the .rc files through fopen, and max file count can be opened by fopen are limited to 512 by default.

so, why would cvtres open all .rc file at the same time, not open one, read data, close it, and open another.

I think a file should be closed when no need to read it again. so, is this by design or it's just a bug?

can anyone shed any light on this?

I attach an IDA screen shot below.
cvtres-main-read-res-file-reverse-engineering.png

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,526 questions
{count} votes