472,374 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

Error control when accessing the Registry

Hello all,

Let me start by saying that I'm not certain whether this belongs
here, in this notes group, or another more developmentally
oriented one. I'll try starting here then go elsewhere if you
decide otherwise. (Already forwarded here, sort-of, from:
microsoft.public.windowsnt.registry.)

I'm writing a Visual Basic program which stores and retrieves
data in the registry - no big thing, I've got all that code written
and it works fine. My problem is that I want to build this thing
as bullet-proof as possible.

My question is, does anyone have, or know the location of a
good example of using the "try/catch/finally/end_try" error
manipulation code (preferably related to accessing the registry
which I could pour over to get an idea of how to beef up the
stability of my code? (I've read all the stuff that I have been
able to find on "try/etc." and also on "error exemptions" but
none of them have any good examples or anything which could
easily be adapted.

Any help or pointers appreciated.

David
Jan 15 '08 #1
1 1546
On Jan 15, 9:35 am, "David Schrader" <schra...@ucs.fsu.eduwrote:
Hello all,

Let me start by saying that I'm not certain whether this belongs
here, in this notes group, or another more developmentally
oriented one. I'll try starting here then go elsewhere if you
decide otherwise. (Already forwarded here, sort-of, from:
microsoft.public.windowsnt.registry.)

I'm writing a Visual Basic program which stores and retrieves
data in the registry - no big thing, I've got all that code written
and it works fine. My problem is that I want to build this thing
as bullet-proof as possible.

My question is, does anyone have, or know the location of a
good example of using the "try/catch/finally/end_try" error
manipulation code (preferably related to accessing the registry
which I could pour over to get an idea of how to beef up the
stability of my code? (I've read all the stuff that I have been
able to find on "try/etc." and also on "error exemptions" but
none of them have any good examples or anything which could
easily be adapted.

Any help or pointers appreciated.

David
My question is:

What do you want to do if there is an error accessing the registry?

Thanks,

Seth Rowe [MVP]
Jan 15 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Manitoba98 | last post by:
I have been having trouble with controls in VB5 every since I got XP. I am not the administrator, and thus I cannot use OCXs or DLLs (except for API Calls, which work). When I try to add a new...
2
by: Wanda | last post by:
Hi there, I am getting a Error accessing the OLE registry when the system goes hit the following line set xWd = Server.CreateObject("Word.Application") in my asp? Anything I have to set-up...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: Ramesh | last post by:
hi, I have created COM when i try to use that instance in C#.net Wep application i am getting following error message. DBUsingCom is my Component name and BusinessObject as a Class name.can...
2
by: Chakkaradeep | last post by:
Hi all, heres my code, *******//////////////////////Starts Here////////////////////////////////////********* try { RegistryKey rKey =...
1
by: Jody Gelowitz | last post by:
This one should be relatively simple, though I have yet to figure it out. I have an ASP.NET project which uses LDAP authentication to login to the system. When run on our Development or Staging...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
7
by: Cogito | last post by:
I installed Office 2000 Professional onto a Windows Vista laptop and when I tried to compile the code the following error message appears: 'User-Defined type not defined' I went to check the...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.