Page 1 of 1

Registry CLASS from Thomas Braun for harbour / HMG

Posted: Tue Jul 13, 2021 10:01 pm
by AUGE_OHR
hi,

i had Problem with HMG / Extended Version to get a "valuelist" of Registry when have only "Standard"
so i try my "old" Xbase++ Code from Thomas Braun and re-wrote it to Unicode to use it with HMG

include Sample to get Location of Outlook.PST File when PST File was move to "other" Location than default.

---

Registry CLASS from Thomas Braun was made for Xbase++
that´s why i need to include

Code: Select all

libs=hbxpp.hbc      // C:\hmg.3.4.4\HARBOUR\contrib\hbxpp\hbxpp.hbc  
REGCLASS.ZIP
(35.71 KiB) Downloaded 120 times
have a look at REGCLASS.ZIP\Note\test.prg which show how to "move" in Registry to navigate "up/down"
! Note : it include some Xbase++ Code so delete that Part of Code to run it under harbour / HMG

Re: Registry CLASS from Thomas Braun for harbour / HMG

Posted: Wed Oct 06, 2021 7:32 pm
by mol
Hi Jimmy!
I need to enumerate serial ports in system.
I'm trying to use your code, but I can't compile it.
Can you write to me, how to do it?

Marek

Re: Registry CLASS from Thomas Braun for harbour / HMG

Posted: Wed Oct 06, 2021 11:13 pm
by AUGE_OHR
hi Mol,
mol wrote: Wed Oct 06, 2021 7:32 pm I'm trying to use your code, but I can't compile it.
Can you write to me, how to do it?
does Demo "not compile" our your modify Code ?

i need to "see" Registry to understand what you need.

RegClass from Thomas Braun can "navigate" in Registry
RegClass have Method MoveUp, MoveDown and KeyList

KeyList give you Array of all Item in "Sub-Dir"

in REGCLASS.ZIP you will find \Note\reghelp.prg which have some Function like

Code: Select all

Function EnumKey(cKey, Index)
Function EnumValueKey(cKey, Index)
Function EnumValue(cKey, Index)
also have a look into \Note\Article.doc

if you need more help i need "SnapShot" of Registry where you want to "start"

Re: Registry CLASS from Thomas Braun for harbour / HMG

Posted: Thu Oct 07, 2021 2:03 pm
by mol
I need to get list of COM ports installed in system

Re: Registry CLASS from Thomas Braun for harbour / HMG

Posted: Thu Oct 07, 2021 4:08 pm
by andyglezl
mol wrote: Thu Oct 07, 2021 2:03 pm I need to get list of COM ports installed in system
Mol ya viste esto ?
*-------------------------------
Mol, did you see this?

https://www.hmgforum.com/viewtopic.php? ... ezl#p34899

http://www.hmgforum.com/download/file.php?id=4263

Re: Registry CLASS from Thomas Braun for harbour / HMG

Posted: Thu Oct 07, 2021 8:57 pm
by mol
Oh, thanks for remembering me that!

Re: Registry CLASS from Thomas Braun for harbour / HMG

Posted: Fri Oct 08, 2021 1:25 am
by AUGE_OHR
hi,

now i understand your Question about "Serial Port"

my Problem : i have no "active" PC with "Serial Port" so no Entry in Registry
also my WMI "Generator" fail while Hardware does not exist

---

for WMI you can use "WMI Code Creator v1.0"
https://www.microsoft.com/en-us/downloa ... px?id=8572

it can create Code (not xBase ) where you can "see" all available Property
than you can "translate" it easy to xBase World