 |
|
 |
|
Next: PostgreSQL to XML!
|
| Author |
Message |
External

Since: Dec 31, 2007 Posts: 5
|
(Msg. 1) Posted: Tue Jan 08, 2008 1:38 pm
Post subject: read from registry - vb 6.0 Archived from groups: comp>databases>oracle>misc (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Apr 18, 2007 Posts: 92
|
(Msg. 2) Posted: Tue Jan 08, 2008 1:38 pm
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jan 8, 6:38 am, "Mr. X." wrote:
> Hello,
>
> How can I read from registry (VB 6.0) ?
>
> Need sample code, please.
>
> Thanks
Your question might be better asked in a group dedicated to Windows
(VB) programming.
VB 6.0 has very limited Windows registry access, restricted to a small
subset of the registry that is specific to the application.
SaveSetting, GetSetting, DeleteSetting. Working around this
limitation requires Windows API calls. The book "Visual Basic
Annotated Archives" has an explanation of the process. The .Net
version of VB makes it very easy to access the registry by comparison.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. >> Stay informed about: read from registry - vb 6.0 |
|
| Back to top |
|
 |  |
External

Since: Dec 31, 2007 Posts: 5
|
(Msg. 3) Posted: Tue Jan 08, 2008 3:02 pm
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Jul 01, 2007 Posts: 177
|
(Msg. 4) Posted: Tue Jan 08, 2008 3:02 pm
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: May 31, 2007 Posts: 14
|
(Msg. 5) Posted: Wed Jan 09, 2008 3:59 am
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I suppose if I will search in google,
I will find this thread.
I didn't find any answer, yet,
because there are several problems (ERROR_MORE_DATA ...)
long l
long ln
string value
l = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "<full_path>", 0, 1, hnd)
.... ' the above is O.K and l = 0.
ln = 0
l = RegQueryValueEx(hnd, "a_key", 0, 1, value, ln)
after the above l = 234 (ERROR_MORE_DATA) and ln got the correct size !
I will appreciate if I find the answer in this thread, please.
Thanks >> Stay informed about: read from registry - vb 6.0 |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2006 Posts: 122
|
(Msg. 6) Posted: Wed Jan 09, 2008 6:46 am
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jan 9, 12:46 am, "Mr. X." wrote:
> I suppose if I will search in google,
> I will find this thread.
>
> I didn't find any answer, yet,
> because there are several problems (ERROR_MORE_DATA ...)
> long l
> long ln
> string value
> l = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "<full_path>", 0, 1, hnd)
> ... ' the above is O.K and l = 0.
> ln = 0
> l = RegQueryValueEx(hnd, "a_key", 0, 1, value, ln)
>
> after the above l = 234 (ERROR_MORE_DATA) and ln got the correct size !
>
> I will appreciate if I find the answer in this thread, please.
>
> Thanks
Too lazy to do your own work? You've been directed to a wealth of
information (google.com) and to a proper forum (one on VB/VB6) yet you
decide it's too much work to search for this information yourself or
ask elsewhere so you demand someone post an exact solution to your
particular problem here.
You're not winning any friends with this behaviour.
David Fitzjarrell >> Stay informed about: read from registry - vb 6.0 |
|
| Back to top |
|
 |  |
External

Since: May 31, 2007 Posts: 14
|
(Msg. 7) Posted: Thu Jan 10, 2008 7:01 am
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Well,
I have looked on google.com
(and suppose I will find this thread too :
Google is just a mask for newsgroup like this one, and keep a thread like
this one on the Google's servers).
None of the example is good enough (and doesn't work, as the example I have
sent in this thread).
Please give me a good example that works for VB 6.0.
Thanks >> Stay informed about: read from registry - vb 6.0 |
|
| Back to top |
|
 |  |
External

Since: Jul 01, 2007 Posts: 177
|
(Msg. 8) Posted: Thu Jan 10, 2008 7:01 am
Post subject: Re: read from registry - vb 6.0 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 10 Jan 2008 10:45:59 +0200, "Mr. X."
wrote:
>Well,
>
>I have looked on google.com
>(and suppose I will find this thread too :
> Google is just a mask for newsgroup like this one, and keep a thread like
>this one on the Google's servers).
>
>None of the example is good enough (and doesn't work, as the example I have
>sent in this thread).
>
>Please give me a good example that works for VB 6.0.
>
>Thanks
>
It sounds as though you might be searching google groups, not google.
That would explain why you can't find the information.
1 - Open your browser
2 - In the address bar, type: http://www.google.com/
3 - In the Google window that appears, enter "vb6 modify registry"
(without the quotes)
This will return links to thousands of web sites that discuss
accessing the registry with VB6. There will be many, many examples.
Another search that you might find helpful:
"VB6 RegOpenKeyEx"
Good Luck >> Stay informed about: read from registry - vb 6.0 |
|
| Back to top |
|
 |  |
| Related Topics: | How to read a file in the client system (Forms 6i) using9iAS - My requirement is i am having a file in the client machine. But the forms (Version 6i) is running on the 9iAS. Now i have to access the text file ie. i have to read that file and i have to upload that contents into a table. I am using the Text_IO package...
Oracle view question - Hi, The source table has a column which is varchar2(100). If I create a view new_view on the column as select substr(column_name, 1, 20) new_col from table, then "desc new_view" command shows size of new_col as 60 i.e. 3 times the intended siz...
Trigger Problem updating same table - I have a trigger which I want to update certain colums of the row being updated based on data entered into the first column. The table is being updated from an external datasource using HS. Here is my trigger: CREATE OR REPLACE TRIGGER..
Why is 9i pausing? - Hi all, I'm experiencing an intermittent performance problem reading and writing a 9i database from Sqlplus. I'm running Sqlplus on my laptop and the DB is on a Sun box in the same office. It seems that if my connection to the DB is inactive for a perio...
Q:Converting Forms to J2EE - Hi' Have anyone tried to use any of the conversion utilities on the market? - would you like to share your experiences? Rgds, Henrik |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|