Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Martin Iturbide

Pages: 1 ... 223 224 [225] 226 227 ... 304
3361
Programming / Re: The OS/2 API Project at EDM/2
« on: July 04, 2016, 04:06:51 pm »
Thanks for the feedback. I also created a little page to don't forget about it on the EDM/2 Wiki (Extracting information from LIB files).

I will continue little by little to complete the CPI API page.

Regards

3362
Programming / Re: The OS/2 API Project at EDM/2
« on: July 03, 2016, 04:12:34 pm »
Thanks for the feedback.

Wim, can you let me know how to inspect the .LIB files?  Any tools? I really do now know anything about those files. How do you see it's internals?

Regards

3363
Programming / Re: The OS/2 API Project at EDM/2
« on: June 26, 2016, 07:19:08 pm »
Hi.

For the moment I will organize CPI API like I set it up on the page.

The latest documentation (CP1 and Addendum) is going to be on the top. 
The Legacy (PRCP) is going to be after that on the next block. On the legacy functions I'm going to name the pages of the functions:  "OS2 API:CPI:LEGACY:xxxxxxx" so they can not be confused with the CP1 ones. 

Regards

3364
Programming / Re: The OS/2 API Project at EDM/2
« on: June 24, 2016, 07:13:18 pm »
Hi. 

I didn't liked the other issue.

Issue 2) The second issue is that there functions on CP1.INF that are also on the legacy (prcp.INF), but the CP1 function is not specified correctly. Which it also means that those CP1 functions have not been implemented, and only the legacy documentation should apply. right?

For example:

VioScrollUp from CP1.INF says:

Code: [Select]
ULONG     TopRow;     /*  Top row to be scrolled. */
ULONG     LeftCol;    /*  Left column to be scrolled. */
ULONG     BotRow;     /*  Bottom row to be scrolled. */
ULONG     RightCol;   /*  Right column to be scrolled. */
ULONG     Lines;      /*  Number of lines. */
PBYTE     Cell;       /*  Cell to be written. */
HVIO      VioHandle;  /*  VIO presentation-space handle. */
APIRET    rc;         /*  Return code. */

rc = VioScrollUp(TopRow, LeftCol, BotRow,
       RightCol, Lines, Cell, VioHandle);

VioScrollUp from prcp.inf (legacy) says:

Quote
VioScrollUp   (TopRow, LeftCol, BotRow, RightCol, Lines, Cell, VioHandle)

TopRow (USHORT) - input
LeftCol (USHORT) - input
BotRow (USHORT) - input
RightCol (USHORT) - input
Lines (USHORT) - input
Cell (PBYTE) - input
VioHandle (HVIO) - input

OS2TK45 has:

bseord.h:
Code: [Select]
/* VIOCALLS */
#define ORD_VIOSCROLLUP          7


bsesub.h
Code: [Select]
#define VioScrollUp             VIO16SCROLLUP
...
#define VR_VIOSCROLLUP             0x00040000L
...   
   APIRET16 APIENTRY16  VioScrollUp (USHORT usTopRow,
                                     USHORT usLeftCol,
                                     USHORT usBotRow,
                                     USHORT usRightCol,
                                     USHORT cbLines,
                                     PBYTE pCell,
                                     HVIO hvio);


If you call VIOSCROLLUP but sending ULONG parameters (like CP1 says) will it not work?

Is there a way to confirm that CP1's VIOSCROLLUP (the new one) does not exists at all? Or what I posted is enough evidence? I'm not sure about it.

If it does not work, that would mean to me that I also need to document the legacy functions, and also put some warning on it that even that there is a "non-legacy function" you still need to use the legacy one because the newer one does not work. Does it makes sense?

I will need to think about it which will be a good way to document this on the CPI API Project.

Regards

3365
Programming / Re: The OS/2 API Project at EDM/2
« on: June 24, 2016, 07:01:39 pm »
Hi.

So let me get the issues.

1) There are some functions that are listed on CP1 but not implemented on the headers of OS2TK45.

I searched the OS2TK45 *.h files and found out this ones that does not seems to have a definition on the headers:

Code: [Select]
VioScrollDown  - not found
VioScrollLeft  - not found
VioScrollRight   - not found
VioGetOrigin  - not found
VioSetOrigin   - not found
KbdGetConsole  - not found
KbdGetLayout  - not found
KbdGetLayoutUni  - not found
KbdSetLayout  - not found
DosSuppressPopUps  -  Looks strange. incomplete? No APIRET no Ordinal
DosDumpProcess  -  Looks strange. incomplete? No APIRET no Ordinal
DosForceSystemDump  - not found

Can someone validate these since my method is not fail-proof ?

In this case I plan to put some warning inside the functions. Something like "Warning: This function has not been found or implemented on the headers of OS2TK45".  Is it ok? any better wording?

Regards

3366
Programming / Re: The OS/2 API Project at EDM/2
« on: June 24, 2016, 04:33:01 pm »
Thanks Wim. I will be checking those headers from the OS2TK45.
I'm going to mark as "* Not Implemented" the ones that I can found.

For the moment I got:
- VioScrollDown
- VioScrollLeft
- VioScrollRight

Anybody that know any other functions, please post it so I can also validate it and mark those.

As for disassembling, understand that doscalls is split between the kernel and doscall1.dll....

This is also interesting. For what I know DOSCALLS.DLL is from older OS/2 version and the latest ones has DOSCALL1.DLL. But I never was able to understand or list which functions are now on the kernel, I guess that is the OS2KRNL file. I also  want to update the kernel part the OS2 API project, but I want to focus on CPI first. Maybe I will ask this later.

Regards


3367
Applications / Re: New QTpy from BWW Bitwise
« on: June 24, 2016, 12:23:20 am »
Hi Paul.

Maybe there is no interest on PyQt because the users don't know the potential of it. This is why I think it is important to show what application can be ported that uses PyQt to get more interest. In my case when I saw all the apps that Tellie ported, and the things that are also available for Qt on their community, that was when I started to get interest on the Qt framework and started to see it as an important thing.

But let's face it, it is also true that there is no much feedback on the community :)

Regards

3368
Programming / Re: The OS/2 API Project at EDM/2
« on: June 23, 2016, 06:03:23 pm »
Hi

I also did a quick and dirty search of "VioScrollDown" with Dataseek on my hard drive. (Check attachment)
It was only referenced on CP1.INF and RXTT36.INF.

Does that function really exists? or just in documentation and was never implemented?
If so, I think I need to mark it on the Wiki that it was never implemented and does not work.

Regards

3369
Programming / Re: The OS/2 API Project at EDM/2
« on: June 23, 2016, 05:40:08 pm »
Hi.

I understand the issue better now.

I want to check the headers of the OS/2 Toolkit 4.5 and see if I can understand those and try to make a quick list (on other page of the wiki) on which functions may be available on the CP1 documentation, but missing on the headers.

Since I see that all the headers on toolkit are on /H directory and I only want to focus on the CPI components for the moment, which are the .H files that I should be looking at? Does this question makes sense ?

Regards

3370
Applications / Re: New QTpy from BWW Bitwise
« on: June 23, 2016, 03:05:51 am »
Hi Tellie.

Can you please explain a little bit more what is the benefit of PyQt? I'm reading that "PyQt is one of the two most popular Python bindings for the Qt cross-platform GUI/XML/SQL C++ framework".  But what would it means? that are there are potential of important application that can be easily ported to OS/2-eCS-ArcaOS with this framework?. The screenshots that you show look really cool.

About Qt in general terms I think it is very important for the platform today. I personally think/suggest that it should be supported as one of the preferred ways to create applications for ArcaOS and try to move away from other dead (unsupported) frameworks/APIs to use Qt instead.

I also think that Qt needs all the support that everyone can offer to keep it updated on this platform.

Regards.

3371
Programming / Re: db_mt.zip
« on: June 22, 2016, 11:25:59 pm »

3372
Applications / Re: PDF Printer
« on: June 22, 2016, 11:17:00 pm »
Thanks for the reply.

I went back to the basics with PMPDF to see why I was not able to print.
It seems that my issue was that I was pointing to the wrong path, since PMPDF looks for the gsos2.exe on \bin\gsos2.exe.

Now it seems to work with ghostscript 9.18-5 installed from ANPM. I just wrote it down here to don't forget about it next year.
http://www.os2world.com/wiki/index.php/Remembering_How_to_Use_PMPDF

I'm still not sure how to make ePDF to work, I guess I need to read the documentation and no idea how to print PDF with CUPS yet.
But for the moment I can generate some PDFs with PMPDF.

Regards

3373
Programming / Re: The OS/2 API Project at EDM/2
« on: June 22, 2016, 10:06:15 pm »
Hi Wim.

I'm sorry if I'm slow on this subject and if it is necessary to repeat something to me. I'm not sure if I'm asking the right thing.

What about "VioScrollDown"?  From what I understand "VioScrollDown" is the one that should be used and "VioScrollDn" is legacy. I guess they both do a similar thing. So it will mean (in my limited knowledge) that somebody doing some new development with CPI should avoid using "VioScrollDn" and use "VioScrollDow" instead. Am I right?

On the latest cp1.inf I can only find "VioScrollDown" and not "VioScrollDn". I can only find "VioScrollDn" as legacy on prcp.inf.

For the moment I ignored the functions with "16" on it because someone suggest me that developers should use the function without it.  Like on  "Dos32QueryCtryInfo" and "DosQueryCtryInfo" the developer should use (normally) "DosQueryCtryInfo" and for some exception sometimes they might call the 16 one. This is what I understood in short and in my limited knowledge of programming.

But I'm always open for other suggestions. I think that it is important to document everything, and if something that is being documented is wrong and/or old, suggest on that same documentation what should be used instead.

Thanks for helping me out to organize this.

Regards




3374
General Discussion / Fun: We don't have that issues.
« on: June 22, 2016, 07:33:44 pm »
We don't have that issue with OS/2  :P

Mark Zuckerberg Tapes Over His Webcam. Should You?




3375
Applications / Re: PDF Printer
« on: June 22, 2016, 02:49:23 pm »
Thanks for the replies.

What I want to accomplish is:
1) Use cups/ghostscript from the RPM repository. Which according to Andi B. it is possible.
2) Set CUPS to work as a PDF Printer to generate PDF files from NewView and QPDFView ( I never did that on the past).

Can somebody point me to some documentation on how to use CUPS to create a PDF Printer?

Regards

Pages: 1 ... 223 224 [225] 226 227 ... 304