Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / September 2009



Tip: Looking for answers? Try searching our database.

Writing VB6 code in Windows 7

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard B - 30 Jun 2009 20:39 GMT
This may have been discussed before, but I can't find it. So I
apologize.
Has anyone had experience writing VB6 with SP6 in Windows 7  ???
What about running a VB6 app in Windows 7  ??

Richard
MikeD - 01 Jul 2009 02:36 GMT
> This may have been discussed before, but I can't find it. So I
> apologize.
> Has anyone had experience writing VB6 with SP6 in Windows 7  ???
> What about running a VB6 app in Windows 7  ??

Been some discussion.  I suggest you search the newsgroups at http://groups.google.com/advanced_search?hl=en.

However, as long as you follow the "rules" , VB6 apps should run fine under Windows 7. The "rules" are basically the same as they've
been since WinXP.  The difference is that your app can't assume it's running with Administrator privileges. So, don't do things that
a non-admin can't do, like trying to save files to certain folders. Save to folders like the user's Documents folder or Application
Data folder.  To get these folders, use the SHGetSpecialFolderPath API function to get them.

Those 2 questions are rather vague though.  If there's a *specific* issue or question you have about VB6 or VB6 apps under Win7,
then you really need to ask about that.

Signature

Mike

axtens - 02 Jul 2009 04:46 GMT
> > This may have been discussed before, but I can't find it. So I
> > apologize.
> > Has anyone had experience writing VB6 with SP6 in Windows 7  ???
> > What about running a VB6 app in Windows 7  ??

I've been doing it for some weeks. Is there something specific you're
concerned about?

Kind regards,
Bruce.
JohnV@nn - 22 Aug 2009 02:10 GMT
> > > This may have been discussed before, but I can't find it. So I
> > > apologize.
[quoted text clipped - 6 lines]
> Kind regards,
> Bruce.

Hello,
I'm running VB6 on Windows 7 release version, and everything appears
to work except for one thing:  So far we haven't been able to get any
VB6 code to read a value from the registry.  We have some legacy VB6
code that uses windows script host to read a string value, but this
throws an error "the system could not find the file specified."  Now a
VB.NET program on the same machine can read the registry fine.

We thought we'd create a workaround by writing a VB.NET assembly to
get registry values, and register it for COM interop so we could call
it from VB6 code.  But this didn't work either:  it always returns an
empty string when called from VB6 code, but it returns the correct
value when called from VB.NET code.  So something is definitely fishy
when it comes to VB6 + Win 7 + registry.

Does anyone knows a solution to this?

Thanks,
John
Jan Hyde - 24 Aug 2009 12:49 GMT
"JohnV@nn" <jmvannoy@gmail.com>'s wild thoughts were
released on Fri, 21 Aug 2009 18:10:52 -0700 (PDT) bearing
the following fruit:

>> > > This may have been discussed before, but I can't find it. So I
>> > > apologize.
[quoted text clipped - 23 lines]
>
>Does anyone knows a solution to this?

You would need to post the code you are using.

--
Jan Hyde
Stephen7405 - 09 Sep 2009 23:27 GMT
I am successfully reading Registry Key vales in VB6/Win7.  Here's a sample of
code:

Dim WshShell As Object
Dim strRootKey As String
Dim strVariable As String

Set WshShell = CreateObject("WScript.Shell")
strRootKey = "HKEY_CURRENT_USER\Software\MyApps\MyApp\TestKey"
On Error Resume Next
Err.Clear
strVariable = Trim(WshShell.RegRead(strRootKey))

If Err.Number = 0 And strVariable <> "" Then
  'ALL is OK
Else
   'NO VALUE RETRIVED FROM REGISTRY
End If

Hope this gives you some help

> "JohnV@nn" <jmvannoy@gmail.com>'s wild thoughts were
> released on Fri, 21 Aug 2009 18:10:52 -0700 (PDT) bearing
[quoted text clipped - 32 lines]
> --
> Jan Hyde
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.