Hi i want to know how to talk to the register so i can find out a value of the windows produt name in VB6.
My other problem is that for some reason the system info in the about box does not seem to work i always get system unavaliable at this time. I have looked in the code and it is a manual error so i havn't got a clue why it is comming up.
Can annyone hel;p cheers
5 1124
Try to use Savesettings,getsettings,deletesetings for handling the registry.
u can use savesetting and deletesetting but i think as i remmember it only will work with ur application setting not all keys in registery, if u wanna work with registry and do what u want u must use API function
all registry functions start by "Reg" as RegOpenKey, RegCloseKey, RegQueryvalueEx and so on, if u not ordinary work with API u must read about it or u can get external component and i have file that work with registry i was made it before and if u wanna it email me [ mail id removed ]
Try to use Savesettings,getsettings,deletesetings for handling the registry.
sry about my mail id , i didnt mean anything except help and this is my first time use forums, sry again
u can use savesetting and deletesetting but i think as i remmember it only will work with ur application setting not all keys in registery, if u wanna work with registry and do what u want u must use API function
all registry functions start by "Reg" as RegOpenKey, RegCloseKey, RegQueryvalueEx and so on, if u not ordinary work with API u must read about it or u can get external component and i have file that work with registry i was made it before and if u wanna it email me [ mail id removed ]
Hi there ,
Can you please help.
Infact I am trying to read registry keys but unable to do so. I obtained a sample code from the net, however the program is not able to read the registry keys.
Error msg obtained :"Run MRU list not found"
however there are values for the key MRUList in the registry.
Program is as follows: - Public Sub ShowRunMRU()
-
-
Dim iCtr As Integer
-
Dim hKey As Long
-
Dim nValues As Long, lValueData As Long
-
Dim lData As Long
-
Dim sPath As String
-
Dim sList As String
-
Dim sMsg As String
-
Dim sData As String
-
Dim sName As String
-
Dim ft As FILETIME
-
-
-
sPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"
-
-
' Open registry key
-
RegOpenKeyEx HKEY_CURRENT_USER, sPath, 0, KEY_READ, hKey
-
-
-
-
' Collect information on key's values
-
If RegQueryInfoKey(hKey, "", 0, 0, 0, 0, 0, nValues, 0, lValueData, _
-
0, ft) <> ERROR_SUCCESS Then
-
sMsg = "Run MRU list not found"
-
Else
-
' initialize data buffer
-
lData = lValueData + 1
-
sData = Space(lData)
-
' Retrieve MRUList Value
-
If RegQueryValueEx(hKey, "MRUList", 0, 0, ByVal sData, lData) <> ERROR_SUCCESS Then
-
sMsg = "Run MRU list not found"
-
Else
-
' Trim MRU list data
-
sList = Left(sData, lData - 1)
-
-
For iCtr = 1 To Len(sList)
-
' Get value name
-
sName = Mid(sList, iCtr, 1)
-
' Reinitialize buffer on each iteration
-
lData = lValueData + 1
-
sData = Space(lData)
-
-
' Get data
-
RegQueryValueEx hKey, sName, 0, 0, ByVal sData, lData
-
-
' Trim string data
-
sData = Left(sData, lData - 1)
-
-
sMsg = sMsg & sData & vbCrLf
-
Next
-
End If
-
-
RegCloseKey hKey
-
-
End If
-
-
' Display MRU list
-
MsgBox sMsg, vbOKOnly, "Run MRU List"
-
-
End Sub
sry about my mail id , i didnt mean anything except help and this is my first time use forums, sry again
It's not a major problem. We disallow posting of e-mail addresses ffor your own protection. There are scammers and spammers out there who scan forums like this to harvest addresses.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Jerome Lefebvre |
last post by:
Hello,
Hope this will interest a few. I been working with a friend on the
problems given out during the "International Collegiate Programming Contest"
(ICPC) http://icpc.baylor.edu/icpc/ ....
|
by: Jim Hubbard |
last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework?
Not if you are unaware of the 1,596 issues listed at KBAlertz
(http://www.kbalertz.com/technology_3.aspx).
If you are...
|
by: 3f |
last post by:
Hello;
We have made a web application that people can download from our web site
and installed on:
Windows XP
Windows 2000 Professional
Windows 2003 Server
Windows 2000 Server
|
by: Corky |
last post by:
This works:
db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS
INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID =
PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
|
by: Ellen Graves |
last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1.
Installing and running stored procedures is problematic. Stored
procedures I have used for years on V7 on WinNT are now failing...
|
by: Jim |
last post by:
I have spent the past few weeks designing a database for my company.
The problem is I have started running into what I believe are stack
overflow problems. There are two tab controls on the form...
|
by: BBFrost |
last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net
2003. At first things were looking ok, now problems are starting to
appear.
So far ...
(1) ...
|
by: Dales |
last post by:
I have a custom control that builds what we refer to as "Formlets"
around some content in a page. These are basically content "wrapper"
sections that are tables that have a colored header and...
|
by: Brian |
last post by:
NOTE ALSO POSTED IN
microsoft.public.dotnet.framework.aspnet.buildingcontrols
I have solved most of my Server Control Collection property issues.
I wrote an HTML page that describes all of the...
|
by: Sergistm |
last post by:
Hello World, :D
I have a problem that it is making me crazy, I hope you can help me.
I'm trying to execute a .exe file with the Procces.Start, and there
is no problem when the file is on my...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |