Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Programming / Re: Compiling a PM sample with GCC
« Last post by Dave Yeo on June 29, 2022, 02:26:39 am »
Hi Martin, the warning is from ilink it seems, which doesn't seem to handle WINDOWCOMPAT or doesn't like how it is being called. From the Tools Reference from the toolkit,
Code: [Select]
If <apptype> is given, it defines the type of application:

WINDOWAPI
Presentation Manager* application. The application uses the API provided by the Presentation Manager and must be executed in the Presentation Manager environment.

WINDOWCOMPAT
Application compatible with Presentation Manager. The application can run inside the Presentation Manager, or it can run in a separate screen group. An application can be of this type if it uses the proper subset of OS/2 video, keyboard, and mouse functions supported in the Presentation Manager applications.

NOTWINDOWCOMPAT
Application that is not compatible with the Presentation Manager and must operate in a separate screen group from the Presentation Manager.

OK, looking at the error LNK4072, it means
Code: [Select]
L4072 changing application type from oldname to newname
Explanation:  The application type specified with /PMTYPE is different from that in .DEF file. LINK386 is using the application type indicated.
Action:  Edit the file and relink.

So somewhere there are conflicts between WINDOWAPI and WINDOWCOMPAT, possibly it is emxomfld causing it but search your source for both.
12
Programming / Re: Compiling a PM sample with GCC
« Last post by Martin Iturbide on June 29, 2022, 01:30:15 am »
Hi

I got some time today and I wanted to keep compiling some little PM samples. I had restarted my test with "PMHELLO".

My Dev enviroment is back in business and I was able to compile the sample with these warnings.

Code: [Select]
gcc -Wall -Zomf -c -O2 pmhello.c -o pmhello.obj
gcc -Wall -Zomf -c -O2 pmhello1.c -o pmhello1.obj
gcc -Zomf pmhello.obj pmhello1.obj pmhello.def -o pmhello1.exe
E:\projects\SamplePack\TEST\PM-PMHELLOb1\PMHELLO.DEF(3) : warning LNK4072: changing application type from WINDOWCOMPAT to WINDOWAPI
gcc -Wall -Zomf -c -O2 pmhello2.c -o pmhello2.obj
gcc -Zomf pmhello.obj pmhello2.obj pmhello.def -o pmhello2.exe
E:\projects\SamplePack\TEST\PM-PMHELLOb1\PMHELLO.DEF(3) : warning LNK4072: changing application type from WINDOWCOMPAT to WINDOWAPI
gcc -Wall -Zomf -c -O2 pmhello3.c -o pmhello3.obj
gcc -Zomf pmhello.obj pmhello3.obj pmhello.def -o pmhello3.exe
E:\projects\SamplePack\TEST\PM-PMHELLOb1\PMHELLO.DEF(3) : warning LNK4072: changing application type from WINDOWCOMPAT to WINDOWAPI

Just as a reminder I'm using:
Quote
- ArcaOS   - Verion 5.0.7
- RC    - Version 4.00.011 Oct 10 2000
- gcc      - gcc (GCC) 9.2.0 20190812 (OS/2 RPM build 9.2.0-5.oc00)
- make    - Version 3.81 k2 (2017-11-10)
- ilinker     - Version 5.0

Is this warning related to the linker? or gcc?

Regards
13
Internet / Re: lost in Hobbes
« Last post by Martin Iturbide on June 28, 2022, 09:07:37 pm »
automatically, to the requested directory. So where is the problem ?

Hi Lars. This is the second time that Martin uploads the file. The first time it disappeared, but now it worked.

Regards
14
Internet / Re: lost in Hobbes
« Last post by Lars on June 28, 2022, 02:45:57 pm »
Meshell-os2.wpi has been moved to:

https://hobbes.nmsu.edu/download/pub/os2/util/shell/meshell-os2.wpi

automatically, to the requested directory. So where is the problem ?
15
[...] it is a bit strange, because both printers are PS printers.
Guessing here, but probably one of the PS drivers simply generates simpler, more compatible (and verbose!) PS code with bitmap font replacements and such. Sub-optimal for producing PDFs, but there should be no noticeable difference in output when actually printing at the right resolution.
16
Internet / Re: lost in Hobbes
« Last post by Heikki Kekki on June 27, 2022, 10:53:26 am »
NFTP PM is also a very convenient way to get photo files from Android phone.
17
Hi Martin,

If your printers are real postscript printers I would think your best way forward would be to use the PSPRINT driver with the PPD for each printer imported.  That is what I have done for my two Brother Laser printers (DCP-9020cdw and HL-3170cdw with the DCP being available for scanning).  They also work from my Linux Mint computers.
Doing it that way cuts out the messing about with CUPS.
18
Sorry for the wrong track... I now realized that the problems refer to the choice of the default printer which I changed at the same day when running the updates. But it is a bit strange, because both printers are PS printers.
To easy handle updates, I have copied the whole system partition to a backup directory while running another OS/2 installation with XCOPY * X: /H /O /T /S /E /R /V.  So I can simply restore old stable working states of my main system. From SSD to SSD, it takes less than 2 minutes... That is much faster and more secure than running the downgrade functionality of Package Manager.
19
All of that can be done to a PDF file by using jPDFtweak - a java application.
20
why use a two part process rather than going direct to PDF.
There may be reasons for this as well, for example adding "pdfmark" information (links and hyperlinks, table of contents entries aka bookmarks, etc.) that an application won't generate by itself. You create the PS file, add the pdfmarks to it or an additional file, and convert the whole thing to PDF with GS. I do this all the time with WordPerfect for DOS.
Pages: 1 [2] 3 4 ... 10