PC Review


Reply
Thread Tools Rate Thread

Api functions with VB 2005

 
 
=?Utf-8?B?RnJpZWRp?=
Guest
Posts: n/a
 
      17th May 2007
We are trying to programm Save and Retrieve Settings in the Windows Registry
with VB 2005, but it doesn't work. What is explained in Article ID : 145679
Last Review : July 15, 2004 Revision : 1.2 , works fine with VBA - Access
but not
with VB 2005. Can anybody give an input about the differences to apply for
these functions with VB 2005?
Thanks --
Friedi
 
Reply With Quote
 
 
 
 
Newbie Coder
Guest
Posts: n/a
 
      17th May 2007
Friedi,

First of all you can ask VB.NET questions in:

microsoft.public.dotnet.languages.vb

You don't use API for the registry functions because you using the
'Microsoft.Win32' class. The article you are looking at is Pre .NET

Imports Microsoft.Win32

Dim reg As RegistryKey = Registry.CurrentUser.OpenSubKey("Key Here", True) '
Write Access... (False = read only)

....

Here's a KBase article:

http://support.microsoft.com/kb/316151/en-us

I hope this helps,

--
Newbie Coder
(It's just a name)


"Friedi" <(E-Mail Removed)> wrote in message
news:2CE3595C-D47C-4823-B034-(E-Mail Removed)...
> We are trying to programm Save and Retrieve Settings in the Windows

Registry
> with VB 2005, but it doesn't work. What is explained in Article ID :

145679
> Last Review : July 15, 2004 Revision : 1.2 , works fine with VBA - Access
> but not
> with VB 2005. Can anybody give an input about the differences to apply

for
> these functions with VB 2005?
> Thanks --
> Friedi



 
Reply With Quote
 
=?Utf-8?B?RnJpZWRp?=
Guest
Posts: n/a
 
      19th May 2007
Thanks Newbie Coder - it works - you helped a lot
--
Friedi


"Newbie Coder" wrote:

> Friedi,
>
> First of all you can ask VB.NET questions in:
>
> microsoft.public.dotnet.languages.vb
>
> You don't use API for the registry functions because you using the
> 'Microsoft.Win32' class. The article you are looking at is Pre .NET
>
> Imports Microsoft.Win32
>
> Dim reg As RegistryKey = Registry.CurrentUser.OpenSubKey("Key Here", True) '
> Write Access... (False = read only)
>
> ....
>
> Here's a KBase article:
>
> http://support.microsoft.com/kb/316151/en-us
>
> I hope this helps,
>
> --
> Newbie Coder
> (It's just a name)
>
>
> "Friedi" <(E-Mail Removed)> wrote in message
> news:2CE3595C-D47C-4823-B034-(E-Mail Removed)...
> > We are trying to programm Save and Retrieve Settings in the Windows

> Registry
> > with VB 2005, but it doesn't work. What is explained in Article ID :

> 145679
> > Last Review : July 15, 2004 Revision : 1.2 , works fine with VBA - Access
> > but not
> > with VB 2005. Can anybody give an input about the differences to apply

> for
> > these functions with VB 2005?
> > Thanks --
> > Friedi

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using User-defined Functions in VB.net 2005 NoviceProgramer Microsoft ADO .NET 0 13th Feb 2007 01:28 PM
Public functions (asp.net 2.0/vb.net 2005) Igor Microsoft ASP .NET 3 7th Nov 2006 02:46 PM
VB Module functions not available in 2005 =?Utf-8?B?QmlnSm9obg==?= Microsoft VB .NET 5 1st Aug 2006 12:15 AM
[OT] User-Defined string Functions MS SQL Server 2005 T-SQL C# CLR =?Utf-8?B?SWdvciBOaWtpZm9yb3Y=?= Microsoft C# .NET 1 6th Jul 2006 04:20 PM
VC++ 2005: private virtual functions Nemanja Trifunovic Microsoft VC .NET 20 24th Jun 2005 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 PM.