Registry CLASS from Thomas Braun for harbour / HMG

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Registry CLASS from Thomas Braun for harbour / HMG

Post 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 108 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
have fun
Jimmy
User avatar
mol
Posts: 3721
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Registry CLASS from Thomas Braun for harbour / HMG

Post 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
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Registry CLASS from Thomas Braun for harbour / HMG

Post 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"
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Registry CLASS from Thomas Braun for harbour / HMG

Post 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
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Registry CLASS from Thomas Braun for harbour / HMG

Post 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
have fun
Jimmy
Post Reply