Is this possible, or am I pushing it? 
Author Message
 Is this possible, or am I pushing it?

Hello,

I am using VB5 Enterprise to construct an FTP client. I want to be
able to save session profiles to the registry, which is no problem. I
have it saving the profiles to the registry in the following manner:

HKEY_CURRENT_USER\MyPrograms\MyFTP\Profiles

and in there, each individual profile has it's own subkey, for
instance:

HKEY_CURRENT_USER\MyPrograms\MyFTP\Profiles
                                                MyProfile1
                                                MyProfile2
                                                MyProfile3

Now, the thing that I want to do with this is have EACH individual
profile subkey load into a combo box, and when I select the subkey
name from the combo box, have all of the settings load into various
text boxes on my form.

As I said, SAVING the profiles to the registry is not a problem. But
loading the subkeys from the registry in to the combo box has me
spending MANY speepless nights trying to figure it out. If anyone can
help me on this, THANKS A MILLION!!       =)

Some Dude


All good comments and others to: sin 666 at iname dot com

"Beer: Nectar of the Gods."
        - Unknown



Sun, 14 Jan 2001 03:00:00 GMT  
 Is this possible, or am I pushing it?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How did you do the naming of the subkeys? If you had your system
naming them (1,2,3,..... would be a nice idea), you can easily loop
though them until you encounter your default value.

Andre'

Quote:

>Hello,

>I am using VB5 Enterprise to construct an FTP client. I want to be
>able to save session profiles to the registry, which is no problem. I
>have it saving the profiles to the registry in the following manner:

>HKEY_CURRENT_USER\MyPrograms\MyFTP\Profiles

>and in there, each individual profile has it's own subkey, for
>instance:

>HKEY_CURRENT_USER\MyPrograms\MyFTP\Profiles
> MyProfile1
> MyProfile2
> MyProfile3

>Now, the thing that I want to do with this is have EACH individual
>profile subkey load into a combo box, and when I select the subkey
>name from the combo box, have all of the settings load into various
>text boxes on my form.

>As I said, SAVING the profiles to the registry is not a problem. But
>loading the subkeys from the registry in to the combo box has me
>spending MANY speepless nights trying to figure it out. If anyone can
>help me on this, THANKS A MILLION!!       =)

>Some Dude


>All good comments and others to: sin 666 at iname dot com

>"Beer: Nectar of the Gods."
> - Unknown

-----BEGIN PGP SIGNATURE-----
Version: PGP 5.5.5

iQA/AwUBNb9j9kiQ6hC5HiceEQKkkgCg6BWvQA1ThYHz/kj84UWyOXkT8TEAn3NG
F71fVH0PeEWTgj0duF2y7gU/
=wAgn
-----END PGP SIGNATURE-----



Sun, 14 Jan 2001 03:00:00 GMT  
 Is this possible, or am I pushing it?

Quote:
> As I said, SAVING the profiles to the registry is not a problem. But
> loading the subkeys from the registry in to the combo box has me
> spending MANY speepless nights trying to figure it out. If anyone can
> help me on this, THANKS A MILLION!!       =)

What you need to do is use the Win32 API to recurse through all of the profies
in the registry and load them into either an array or directly into the combo
box.

Daniel Appleman's book "Visual Basic Programmers Guide to the Win32 API"
should give you the API information you need to do this.

--Dave



Sun, 14 Jan 2001 03:00:00 GMT  
 Is this possible, or am I pushing it?
Try my DMReg Registry Tool on
http://www.wave.co.nz/pages/datamasta/download.htm. It supports Key
Enumeration which is what you need.

--
Jeff Law
DataMasta Limited
New Zealand
http://www.wave.co.nz/pages/datamasta

begin 666 Jeff Law.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DQA=SM*969F#0I&3CI*969F
M($QA=PT*3U)'.D1A=&%-87-T82!,:6UI=&5D#0I.3U1%.B -"E1%3#M73U)+


`
end



Mon, 15 Jan 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Is this possible, or am I pushing it?

2. Is this possible, or am I pushing it?

3. I am trying to update a record, i am not using data control

4. I am learning VB.NET and am wondering....

5. I am trying to update a record, i am not using data control

6. is this possible or am I dreaming

7. When is 5:00 AM not 5:00 AM? When it's 5:00 AM.

8. Am I missing something or am I just plain dumb?

9. Am I missing something???? Or Am I just Dumb????

10. Am I an .EXE, or am I running under VB env?

11. I am stopping(error 70) when I am distributing a client program using DCOM server.

12. I am trying to create a database application. I am using a data control

 

 
Powered by phpBB® Forum Software