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 Laaca Homepage, Czech republic, 12.06.2020, 07:37

> You can use FASM as below.
>
> Cursor1.ASM file:
>  
> format  MS COFF
> public  Cursor
> section '.text' executable
> Cursor  file    "cursor.bmp"
>

> in PAS file:
>
> procedure Cursor; external {$IFDEF FPC}name 'Cursor'{$ENDIF};
> {$L Cursor1.O}
>


Wow! It is exactly what I had on my mind.
Anyway, I've managed to write own tiny implementation of BASE64 encoder and decoder as discused above.
So for smaller data I'll use the PChar strings in BASE64 and eventualy for large data your solution.

---
DOS-u-akbar!

 

Complete thread:

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