1. Dos-Like DLL

Hi all,

Has anyone came across this neat little library? [https://github.com/mattiasgustavsson/dos-like]

It let's you make apps in the style of MS-DOS, but on modern operating systems. I was hoping to make a DLL of it, but all my attempts at getting it to build into an DLL have been futile. I know the library itself isn't really setup for DLL, but it doesn't seem super hard to do, I tried using chatgpt to help get some code going, but I keep coming across linker and build errors.

new topic     » topic index » view message » categorize

2. Re: Dos-Like DLL

Hi Andy

I'd not heard of that before, but it looks very interesting.

Now to get rid of that anoyying frame!

Incidentally it looks so easy to use as-is, why would you want to dll it? Why not just translate it to eu?

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: Dos-Like DLL

Nice! I wonder if there's a C64-like or Amiga-like out there.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Dos-Like DLL

Hi

Have you looked at Commodore OS 3.0? Might satisfy those commodore needs.

C

new topic     » goto parent     » topic index » view message » categorize

5. Re: Dos-Like DLL

ChrisB said...

Hi Andy

I'd not heard of that before, but it looks very interesting.

Now to get rid of that anoyying frame!

Incidentally it looks so easy to use as-is, why would you want to dll it? Why not just translate it to eu?

Chris

To make a DLL so that a euphoria wrapper can be made for it. I guess it wouldn't be super hard to convert to Eu code.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Dos-Like DLL

Ah, I see - it's the 'because it's there' mountain.

Good luck, I enjoy your efforts.

Chris

new topic     » goto parent     » topic index » view message » categorize

7. Re: Dos-Like DLL

After removing the or rather commenting out the dosmain functions, I was able to get it to build as a DLL, I checked and the functions were exported into a DLL.

gcc -c dos.c 
gcc -shared -o doslike.dll dos.o -lgdi32 -lwinmm 

This got it to build as a DLL

new topic     » goto parent     » topic index » view message » categorize

8. Re: Dos-Like DLL

👍

new topic     » goto parent     » topic index » view message » categorize

9. Re: Dos-Like DLL

Hi Andy

Have you wrapped this yet - looking forward to try this one out a bit.

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

10. Re: Dos-Like DLL

ChrisB said...

Hi Andy

Have you wrapped this yet - looking forward to try this one out a bit.

Cheers

Chris

Hi Chris, I ran into some issues while trying to wrap it. I can give out what I have wrapped so far if you'd like.

EDIT: While the wrapper part of it runs fine. Every time I try to make a example program with it, it crashes as soon as I call a function from the doslike DLL.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Dos-Like DLL

Hi Andy

Certainly happy to have a look at it, but note that I take forever to do anything, and not sure how much extra I can add any way.

Just another ridge on the way to the peak!

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu