Re: C DLL Code from Assembler

2019-07-04 Thread MELVYN MALTZ
notation is invalid with MF=L Melvyn Maltz. - Original Message - From: "Tony Harminc" To: Sent: Tuesday, July 02, 2019 8:54 PM Subject: Re: C DLL Code from Assembler On Tue, 2 Jul 2019 at 12:50, John McKown wrote: Wouldn't it be nice if IBM were to extend the G

Re: C DLL Code from Assembler

2019-07-03 Thread Joseph Reichman
r List on > behalf of Joseph Reichman > Sent: Wednesday, July 3, 2019 4:52 PM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: C DLL Code from Assembler > > Well there is the first #ifdef > > >> On Jul 3, 2019, at 4:29 PM, John Melcher >> <0a3

Re: C DLL Code from Assembler

2019-07-03 Thread Mike Hochee
From: IBM Mainframe Assembler List on behalf of Joseph Reichman Sent: Wednesday, July 3, 2019 4:52 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler Well there is the first #ifdef > On Jul 3, 2019, at 4:29 PM, John Melc

Re: C DLL Code from Assembler

2019-07-03 Thread Joseph Reichman
sday, July 3, 2019 2:51 PM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: C DLL Code from Assembler > > *** External email: Verify sender before opening attachments or links *** > > > I saw reference to DLL’s in the XL C bookshelf > > Unlike Windows there doesn’t

Re: C DLL Code from Assembler

2019-07-03 Thread John Melcher
mbler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Joseph Reichman Sent: Wednesday, July 3, 2019 2:51 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler *** External email: Verify sender before opening attachments or links *** I saw reference to DLL’s in the XL C bookshe

Re: C DLL Code from Assembler

2019-07-03 Thread Joseph Reichman
I saw reference to DLL’s in the XL C bookshelf Unlike Windows there doesn’t seem to be a DLLMAIN function Thanks > On Jul 3, 2019, at 3:46 PM, Tony Harminc wrote: > >> On Tue, 2 Jul 2019 at 17:24, Joseph Reichman wrote: >> >> I am hoping to have the Assembler Started task code call a

Re: C DLL Code from Assembler

2019-07-03 Thread Tony Harminc
On Tue, 2 Jul 2019 at 17:24, Joseph Reichman wrote: > I am hoping to have the Assembler Started task code call a C DLL, On the > Windows end it would be C/C+ code calling the > DLL obviously there are differences because of the platform but I am guessing > hose call be handled by #IFDEF > >

Re: C DLL Code from Assembler

2019-07-02 Thread Charles Mills
Reichman Sent: Tuesday, July 2, 2019 2:24 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler I have a Z/os Assembler Started task acting as a TCP/IP Server to Windows TCP/IP Client the Windows API is in MFC I have the same basic functionality on the Assembler Server Start

Re: C DLL Code from Assembler

2019-07-02 Thread Joseph Reichman
is there a LoadLibrary Macro or a GetProcAddress macro to call the exported function Thanks -Original Message- From: IBM Mainframe Assembler List On Behalf Of Jon Perryman Sent: Tuesday, July 2, 2019 4:56 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler I assume your

Re: C DLL Code from Assembler

2019-07-02 Thread Charles Mills
On Behalf Of Joseph Reichman Sent: Tuesday, July 2, 2019 1:20 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler Plain and simple I need to write code the majority of which is same in both a windows platform and z/os hence C/C++ I can encapsulate the different function and exp

Re: C DLL Code from Assembler

2019-07-02 Thread Jon Perryman
s >> >> >> -----Original Message- >> From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] >> On Behalf Of Joseph Reichman >> Sent: Monday, July 1, 2019 2:04 PM >> To: ASSEMBLER-LIST@LISTSERV.UGA.EDU >> Subject: Re: C DLL Co

Re: C DLL Code from Assembler

2019-07-02 Thread Joseph Reichman
most part -- depending on exactly what you are trying to >> accomplish -- compatible with Windows C. >> >> Charles >> >> >> -----Original Message- >> From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] >> On Behalf Of Joseph

Re: C DLL Code from Assembler

2019-07-02 Thread Jon Perryman
half Of Joseph Reichman > Sent: Monday, July 1, 2019 2:04 PM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: C DLL Code from Assembler > > I am trying to read a VB file > > First of my Assembler code is RMODE31 > So I anyway have to call something below the line to

Re: C DLL Code from Assembler

2019-07-02 Thread Tony Harminc
On Tue, 2 Jul 2019 at 12:50, John McKown wrote: > Wouldn't it be nice if IBM were to extend the GENCB macro to include > BLK=DCB in addition to BLK=ACB, BLK=RPL, BLK=EXLST, and BLK=NIB? OTOH, does > anyone actually use GENCB? My impression is that GENCB and friends were effectively deprecated

Re: C DLL Code from Assembler

2019-07-02 Thread Charles Mills
+1 Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Steve Smith Sent: Tuesday, July 2, 2019 10:40 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler No. No one does, and no one ever has. I

Re: C DLL Code from Assembler

2019-07-02 Thread Steve Smith
No. No one does, and no one ever has. I tried them once, looked at the expansions, had a good laugh, and never did again. sas On Tue, Jul 2, 2019 at 12:50 PM John McKown wrote: > On Tue, Jul 2, 2019 at 11:31 AM Charles Mills wrote: > > > @Peter is (of course!) correct. I just accepted your

Re: C DLL Code from Assembler

2019-07-02 Thread Joseph Reichman
LIST@LISTSERV.UGA.EDU] > On Behalf Of Peter Relson > Sent: Tuesday, July 2, 2019 4:52 AM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: C DLL Code from Assembler > > > First of my Assembler code is RMODE31 > So I anyway have to call something below the line to o

Re: C DLL Code from Assembler

2019-07-02 Thread John McKown
On Tue, Jul 2, 2019 at 11:31 AM Charles Mills wrote: > @Peter is (of course!) correct. I just accepted your premise and went from > there. You need a 24-bit GETMAIN for the DCB, but a separate DLL or > anything > like that is a way unnecessary over-complication. > > I wrote a paper years ago on

Re: C DLL Code from Assembler

2019-07-02 Thread Charles Mills
- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Peter Relson Sent: Tuesday, July 2, 2019 4:52 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler First of my Assembler code is RMODE31 So I anyway have to call something below

Re: C DLL Code from Assembler

2019-07-02 Thread Peter Relson
First of my Assembler code is RMODE31 So I anyway have to call something below the line to open to read to close It is not true that you have to call something below the line. Code doing OPEN and CLOSE can be RMODE 31, quite possibly needing to specify MODE=31. The DCB itself needs to be

Re: C DLL Code from Assembler

2019-07-01 Thread Joseph Reichman
half Of Joseph Reichman > Sent: Monday, July 1, 2019 2:04 PM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: C DLL Code from Assembler > > I am trying to read a VB file > > First of my Assembler code is RMODE31 > So I anyway have to call something below the line to

Re: C DLL Code from Assembler

2019-07-01 Thread Charles Mills
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Joseph Reichman Sent: Monday, July 1, 2019 2:04 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: C DLL Code from Assembler I am trying to read a VB file First of my Assembler code is RMODE31 So I anyway have to call something below the line

Re: C DLL Code from Assembler

2019-07-01 Thread Joseph Reichman
lish. > > Charles > > > -Original Message- > From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] > On Behalf Of Joseph Reichman > Sent: Monday, July 1, 2019 1:25 PM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: C DLL Code from Assembler

Re: C DLL Code from Assembler

2019-07-01 Thread Charles Mills
"doable" without LE would depend on what functionality you are trying to accomplish. Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Joseph Reichman Sent: Monday, July 1, 2019 1:25 PM To: ASSEMBLER-LIST@LISTSE

C DLL Code from Assembler

2019-07-01 Thread Joseph Reichman
Hi I have some code the majority of which I would like to duplicate on a Windows platform. It occurred to me that if I write the code as a C/C++ DLL the changes most of which I can segregate with a #ifdef. Is this doable using Metal C or do I have to use language environment. I am looking