For Programmers: Free Programming Magazines  


Home > Archive > Cobol > June 2007 > Acucobol & Registry









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Acucobol & Registry
Gio

2007-06-09, 9:55 pm

Hi, I'm new of ACUCOBOL.
I'm using an old 4.3 version and I wish to access the windows
registry.
I just want to create a key to check it again whenever I run my
program.
Can anyone help me ?
Many thanks

Giovanni

Giovanni_dimaio@virgilio.it

Kellie Fitton

2007-06-09, 9:55 pm

On Jun 9, 1:13 pm, Gio <giovanni_dim...@virgilio.it> wrote:
> Hi, I'm new of ACUCOBOL.
> I'm using an old 4.3 version and I wish to access the windows
> registry.
> I just want to create a key to check it again whenever I run my
> program.
> Can anyone help me ?
> Many thanks
>
> Giovanni
>
> Giovanni_dim...@virgilio.it



Hi,

You can use the following APIs to create a registry keys:

RegCreateKeyEx() using KEY_ALL_ACCESS
RegSetValueEx()
RegCloseKey()
RegOpenKeyEx() using KEY_ALL_ACCESS
RegQueryValueEx()
RegCloseKey()

http://msdn2.microsoft.com/en-us/library/ms724844.aspx

http://msdn2.microsoft.com/en-us/library/ms724923.aspx

http://msdn2.microsoft.com/en-us/library/ms724837.aspx

http://msdn2.microsoft.com/en-us/library/ms724897.aspx

http://msdn2.microsoft.com/en-us/library/ms724911.aspx

Kellie.


Gio

2007-06-10, 7:55 am

On 9 Giu, 23:36, Kellie Fitton <KELLIEFIT...@YAHOO.COM> wrote:
> On Jun 9, 1:13 pm, Gio <giovanni_dim...@virgilio.it> wrote:
>
>
>
>
> Hi,
>
> You can use the following APIs to create a registry keys:
>
> RegCreateKeyEx() using KEY_ALL_ACCESS
> RegSetValueEx()
> RegCloseKey()
> RegOpenKeyEx() using KEY_ALL_ACCESS
> RegQueryValueEx()
> RegCloseKey()
>
> http://msdn2.microsoft.com/en-us/library/ms724844.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms724923.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms724837.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms724897.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms724911.aspx
>
> Kellie.


Many thanks Kellie,
unfortunately I don't know how to to it in Cobol.
A small sample would be great.
Thanks.

Giovanni

Kellie Fitton

2007-06-10, 9:55 pm

On Jun 10, 4:23 am, Gio <giovanni_dim...@virgilio.it> wrote:
> On 9 Giu, 23:36, Kellie Fitton <KELLIEFIT...@YAHOO.COM> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Many thanks Kellie,
> unfortunately I don't know how to to it in Cobol.
> A small sample would be great.
> Thanks.
>
> Giovanni- Hide quoted text -
>
> - Show quoted text -



Hi,

You can download the sample program CobReg.zip from microfocus.com:

http://supportline.microfocus.com/e...mp.asp#Win32API


You can download the sample programs in chapter 19 from kimsoft.com:

http://www.kimsoft.com/api-COBOL/api-COBOL.htm

Kellie.



Gio

2007-06-10, 9:55 pm

On 10 Giu, 21:57, Kellie Fitton <KELLIEFIT...@YAHOO.COM> wrote:
> On Jun 10, 4:23 am, Gio <giovanni_dim...@virgilio.it> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> You can download the sample program CobReg.zip from microfocus.com:
>
> http://supportline.microfocus.com/e...samp.asp#Win...
>
> You can download the sample programs in chapter 19 from kimsoft.com:
>
> http://www.kimsoft.com/api-COBOL/api-COBOL.htm
>
> Kellie.- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -


Grazie Kellie.
I never used the MicroFocus but I'll try to convert the routines to
ACUCOBOL calling the ADVAPI32.DLL.
Hope this will help solving my problem.
Very kind

Giovanni

Gio

2007-06-11, 6:55 pm

On 11 Giu, 01:09, Gio <giovanni_dim...@virgilio.it> wrote:
> On 10 Giu, 21:57, Kellie Fitton <KELLIEFIT...@YAHOO.COM> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Grazie Kellie.
> I never used the MicroFocus but I'll try to convert the routines to
> ACUCOBOL calling the ADVAPI32.DLL.
> Hope this will help solving my problem.
> Very kind
>
> Giovanni- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -


Yes!
It works fine.
Thanks again Kellie.

Giovanni

Kellie Fitton

2007-06-11, 6:55 pm

On Jun 11, 3:19 pm, Gio <giovanni_dim...@virgilio.it> wrote:
> On 11 Giu, 01:09, Gio <giovanni_dim...@virgilio.it> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Yes!
> It works fine.
> Thanks again Kellie.
>
> Giovanni- Hide quoted text -
>
> - Show quoted text -



Siete Benvenuti.

Kellie.


Abermobastard9

2007-06-11, 8:15 pm

gay black man sex hot sex movie free sex film free homemade sex video free sex photo
card consolidation credit debt debt debt free [URL=http://jrkrmu4j.t35.com/asian-sex/asian-sex-game.html]asian sex game advice card consolidation credit debt free sex film interracial sex movie
free hardcore sex video paris hilton sex video couple sex video asian sex eden asian sex tgp
free sex video free sex pic and video lesbian having sex funny sex video latina lesbian sex
free arab sex anal sex com free homemade sex movie sex dogen[/URL] keeley sex video
cartoon sex movie viagra on line tamil sex com free anal sex video clip world sex story

http://pwkktxik.t35.com/free-sex/fr...ra-lawsuit.html
http://d18lvjl7.t35.com/sex-com/tam...rdcore-sex.html
http://akeihjc2.t35.com/sex-movie/f...-sex-movie.html
http://az818p0w.t35.com/lesbian-sex...uide-forum.html
James J. Gavan

2007-06-12, 9:55 pm

Kellie Fitton wrote:

>
> Siete Benvenuti.
>
> Kellie.
>


Good on you young lady. Nice to see you are still around. Have you
finished training Kellie, or still got some to go.

Jimmy
Michael Mattias

2007-06-12, 9:55 pm

"James J. Gavan" <jgavandeletethis@shaw.ca> wrote in message
news:Wxnbi.16029$1i1.15108@pd7urf3no...

> Good on you young lady. Nice to see you are still around. Have you
> finished training Kellie, or still got some to go.


I suggest, sir, none of us EVER finish training.

MCM



Kellie Fitton

2007-06-12, 9:55 pm

On Jun 11, 7:29 pm, "James J. Gavan" <jgavandeletet...@shaw.ca> wrote:
> Kellie Fitton wrote:
>
>
>
> Good on you young lady. Nice to see you are still around. Have you
> finished training Kellie, or still got some to go.
>
> Jimmy



Hi Jimmy,

Hope everything is well....

I will be learning SQL language after summer break --- hopefully I get
hired by Oracle Corporation. :-)

By the way, the latest version of microfocus NetExpress 5.0 does not
have any reference or vaunting about OO capabilities, I wonder why.

http://www.microfocus.com/products/NetExpress/

Kellie. :-)


William M. Klein

2007-06-12, 9:55 pm

Kellie,
Where are you looking?

When I go to:
http://supportline.microfocus.com/d...50/nx50indx.htm

There is an entire section of books under
"Object Oriented Programming"

as well as separate books on "COBOL and Java" and "COM, COBOL, and .NET"

Now there ARE certain restrictions on the "personal edition" - but even that
supports OO.

--
Bill Klein
wmklein <at> ix.netcom.com
"Kellie Fitton" <KELLIEFITTON@YAHOO.COM> wrote in message
news:1181666167.987881.132270@a26g2000pre.googlegroups.com...
> On Jun 11, 7:29 pm, "James J. Gavan" <jgavandeletet...@shaw.ca> wrote:
>
>
> Hi Jimmy,
>
> Hope everything is well....
>
> I will be learning SQL language after summer break --- hopefully I get
> hired by Oracle Corporation. :-)
>
> By the way, the latest version of microfocus NetExpress 5.0 does not
> have any reference or vaunting about OO capabilities, I wonder why.
>
> http://www.microfocus.com/products/NetExpress/
>
> Kellie. :-)
>
>



Kellie Fitton

2007-06-12, 9:55 pm

On Jun 12, 1:53 pm, "William M. Klein" <wmkl...@nospam.netcom.com>
wrote:
> Kellie,
> Where are you looking?
>
> When I go to:
> http://supportline.microfocus.com/d...50/nx50indx.htm
>
> There is an entire section of books under
> "Object Oriented Programming"
>
> as well as separate books on "COBOL and Java" and "COM, COBOL, and .NET"
>
> Now there ARE certain restrictions on the "personal edition" - but even that
> supports OO.
>
> --
> Bill Klein
> wmklein <at> ix.netcom.com"Kellie Fitton" <KELLIEFIT...@YAHOO.COM> wrote in message
>
> news:1181666167.987881.132270@a26g2000pre.googlegroups.com...
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> - Show quoted text -



Hi Bill,

We are talking about the actual COBOL compiler per se, not the OO
books that microfocus have in the online bookshelf:

http://www.microfocus.com/products/NetExpress/

Kellie.


William M. Klein

2007-06-12, 9:55 pm

If you "click" on the "product data sheet" link on the page you pointed to you
will find (among other things)

"Full support for object oriented COBOL (including Syntax) and COBOL
development/debugging"

Besides the documents I pointed to, you will also find full support in the LRM.

I just don't understand what you are trying to say about N/E 5.0.

I will admit they don't highlight this as a "new feature" - but that is because
it is FAR from "new" for any Micro Focus compiler or product.

--
Bill Klein
wmklein <at> ix.netcom.com
"Kellie Fitton" <KELLIEFITTON@YAHOO.COM> wrote in message
news:1181682939.931971.57020@d30g2000prg.googlegroups.com...
> On Jun 12, 1:53 pm, "William M. Klein" <wmkl...@nospam.netcom.com>
> wrote:
>
>
> Hi Bill,
>
> We are talking about the actual COBOL compiler per se, not the OO
> books that microfocus have in the online bookshelf:
>
> http://www.microfocus.com/products/NetExpress/
>
> Kellie.
>
>



Kellie Fitton

2007-06-13, 9:55 pm

On Jun 12, 7:45 pm, "William M. Klein" <wmkl...@nospam.netcom.com>
wrote:
> If you "click" on the "product data sheet" link on the page you pointed to you
> will find (among other things)
>
> "Full support for object oriented COBOL (including Syntax) and COBOL
> development/debugging"
>
> Besides the documents I pointed to, you will also find full support in the LRM.
>
> I just don't understand what you are trying to say about N/E 5.0.
>
> I will admit they don't highlight this as a "new feature" - but that is because
> it is FAR from "new" for any Micro Focus compiler or product.
>
> --
> Bill Klein
> wmklein <at> ix.netcom.com"Kellie Fitton" <KELLIEFIT...@YAHOO.COM> wrote in message
>
> news:1181682939.931971.57020@d30g2000prg.googlegroups.com...
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> - Show quoted text -



Hi Bill,

I know that Jimmy have a NetExpress compiler and uses OO programming
classes in his code, I thought it was odd microfocus did not mention
any
reference of OO support under the heading Highlights and Benefits,
that's
why I want it to bring it to his attention. I did not know they only
mentioned the OO support in the product datasheet.

Kellie. :-)




James J. Gavan

2007-06-21, 9:55 pm

Kellie Fitton wrote:
> On Jun 11, 7:29 pm, "James J. Gavan" <jgavandeletet...@shaw.ca> wrote:
>
>
>
>
> Hi Jimmy,
>
> Hope everything is well....
>
> I will be learning SQL language after summer break --- hopefully I get
> hired by Oracle Corporation. :-)
>
> By the way, the latest version of microfocus NetExpress 5.0 does not
> have any reference or vaunting about OO capabilities, I wonder why.
>
> http://www.microfocus.com/products/NetExpress/
>
> Kellie. :-)
>
>

Quite simply they've gone with what pays the bills.

Historically back in DOS days they had several methods of 'windowing',
Panels etc. which became Dialog System and back then using your beloved
APIs they duplicated what Charles Petzold (PC Magazine) did using C.

VISOC and Net Express were geared to enticing users to go full blown OO.
You could do all the above, except DS which was left out. Although many
snapped up a free beta version few went with the real McCoy (don't know
numbers). It was only when Dialog System was re-introduced that the
product truly took off - apart from Procedural folk, my guess 80% plus
use Dialog System for Windowing.

That's fine and dandy, but now comes the need to interface with webbing.
Without having to do too much re-inventing of the wheel, both F/J and
M/F went dotNet - saves them a lot of money - you will have seen Pete
enthuse about the Visual Studio object presentation making it easy to
access a particular method for a particular object.

The reality for 'the now' and the future is that the whole game is about
objects (has been since Simula approx 1947 !). While you can still code
in OO COBOL and interface with other languages, money wise dotNet makes
sense rather than emphasizing OO COBOL as an independent isolated tool.

I hope as part of your SQL endeavour you take a good look at the ESQL
Assistant - it's a real dream to use as a tool and covers you on
numerous SQL engines. Good luck.

PS: The On-line manual for OO in Version 5 is very good.

Jimmy
Rick Smith

2007-06-22, 7:55 am


"James J. Gavan" <jgavandeletethis@shaw.ca> wrote in message
news:lRGei.51103$1i1.27561@pd7urf3no...
[snip]
> The reality for 'the now' and the future is that the whole game is about
> objects (has been since Simula approx 1947 !).


Actually 1967.

"SIMULA 67 - A general-purpose successor to SIMULA I,
in which the simulation support is defined in object-oriented
terms. Introduced the record class, leading the way to data
abstraction and object-oriented programming. Garbage
collection."

Source:
-----
The Language List - Version 2.4, January 23, 1995

Collected information on about 2350 computer languages, past and present.

Available online as:
http://cui_www.unige.ch/langlist
ftp://wuarchive.wustl.edu/doc/misc/lang-list.txt
-----



James J. Gavan

2007-06-22, 7:55 am

Rick Smith wrote:
> "James J. Gavan" <jgavandeletethis@shaw.ca> wrote in message
> news:lRGei.51103$1i1.27561@pd7urf3no...
> [snip]
>
>
>
> Actually 1967.
>
> "SIMULA 67 - A general-purpose successor to SIMULA I,
> in which the simulation support is defined in object-oriented
> terms. Introduced the record class, leading the way to data
> abstraction and object-oriented programming. Garbage
> collection."
>
> Source:
> -----
> The Language List - Version 2.4, January 23, 1995
>
> Collected information on about 2350 computer languages, past and present.
>
> Available online as:
> http://cui_www.unige.ch/langlist
> ftp://wuarchive.wustl.edu/doc/misc/lang-list.txt
> -----
>
>
>

Rick,

Thanks for the correction - didn't sound right when I wrote it. Still
what's twenty years between friends - doesn't seem to have bothered J4 :-)

Jimmy
Rick Smith

2007-06-22, 7:55 am


"James J. Gavan" <jgavandeletethis@shaw.ca> wrote in message
news:P6Iei.50538$NV3.8153@pd7urf2no...
[snip]
> Still
> what's twenty years between friends - doesn't seem to have bothered J4 :-)


Perhaps an adjective such as long-time or childhood. <g>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com