Results 1 to 4 of 4

Thread: Error when run my app on vista (VB 6.0)

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Location
    Indonesia Land
    Posts
    6

    Smile Error when run my app on vista (VB 6.0)

    my program run well in windows xp sp1, sp2 but cannt run on vista ultimate
    database cannt found

    sintax :

    If ConnXX.State = adStateOpen Then
    ConnXX.Close
    Set ConnXX = Nothing
    End If
    ConnXX.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDrive\MyData.mdb;Mode=ReadWrite;Persist Security Info=False;Jet OLEDBatabase Password=MyPass"
    On Error Resume Next
    ConnXX.Open

    can you suggest me, how to make it work on windows vista ultimate.

    When i install my program on vista home basic edition, my program run well and can add new data on my database, but when i want to make a report (i use crystall report 8,5) my program become crash..and say error 339...CRVIEWER.dll...). How i fix it??


    and when i export to microsoft word, my program run error to.

    Set word1 = CreateObject("Word.Application")
    Dim word1 As Word.Document
    word1.Visible = False
    word1.Documents.Open FileName:="C:\mydrive\myfile.doc, ConfirmConversions:=False, _
    ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
    PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
    WritePasswordTemplate:="", Format:=wdOpenFormatAuto
    Set WordDoc1 = word1.ActiveDocument


    can you help me, how to make it run well on windows vista??


    thank for your help...

    bace

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Error when run my app on vista (VB 6.0)

    Are you running your app as Administrator? (Right click > Run as Administrator).

    The location of your database may not be the correct location for how you intent to use it. If its for a single user then it should be located in the appdata folder under the users directory. If its to be accessed by multiple users then it should be stored in hte common data folder. Search the Microsoft site for "File Virtualization" and you will understand why.

    As for the crystal reports issue, did you install by running the setup package as Administrator? did you deploy the CR dependancies?


    Thread Moved
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Location
    Indonesia Land
    Posts
    6

    Thumbs up [RESOLVED] Error when run my app on vista (VB 6.0)

    Thank bro...my program already run well in all version of vista,
    it's simple, i just put all my file on direktory ...\program files\...

    thanks q
    bace

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Error when run my app on vista (VB 6.0)

    This is exactly the wrong place to put these files.

    It only works if you always run elevated or turn off UAC - which is a Bad Thing, but up to you.

    Frankly I'm tired of spam, much of which is emailed by zombied machines. UAC is meant to help prevent this, which means you are potentially impacting everyone when you turn off UAC.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width