Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Freepascal and binary files? (Developers)

posted by marcov, 21.05.2020, 12:25

> Does anybody know whether is possible to somehow include files with binary
> data into Freepascal sources?
> It would be nice for things like bundled fonts, icons etc.
> In windows environment is it called "ressources" and the special mechanism
> is established but I mean something different.

Since Delphi uses resources, Free Pascal has generalized them. Since go32v2 uses an internal linker, it might simply support linking .res files. (using {$R x.res} )

The library to access them is fcl-res, which has an own CHM file. Or see it online here: https://www.freepascal.org/docs-html/current/fclres/index.html

It seems to be able to generate Coff .o's.

It won't work for 16-bit targets (msdos,win16) afaik.

I don't have much experience with all of this though. I use them on Windows of course, but afaik I retrieve them over winapi.

Several array generators exist too (bin2obj and data2inc)

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 237 users online (0 registered, 237 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum