Visual studio installer help needed 
Author Message
 Visual studio installer help needed

Hi
   I just created a Setup for my VB6.0 program with Visual Installer, and by
taking care of putting all the .OCX and by putting all the names less than 8
caracters (the server is in NT)
 I run the Setup, and everthing works fine. Then I run my program, and when
it gets at this function (that I wrote on at the bottom) and its right after
I choose the file from the commondialog, windows write me this fatal error:

Run-time error '429'
ActiveX component can't create object

Here is my function:

I declared my database like this:
public dbJobbag as database

Public Sub fctopenFichierJobBag()
Dim paTH, cheminJobBag As String
Dim reponse
On Error GoTo ouvrirCMD

paTH = "c:\gestion\pathJB.txt"

Open paTH For Input As #1   ' Open file.
Input #1, cheminJobBag   ' Read line into variable.
Close #1

If cheminJobBag <> "" Then
    Set dbJobbag = OpenDatabase(cheminJobBag, , True)

Else: GoTo ouvrirCMD

End If

Exit Sub

ouvrirCMD:
    Close #1

    MsgBox "You must get the JobBag"

    FrmMnu_Principal.CommonDialog1.InitDir = "J:\data\"
    FrmMnu_Principal.CommonDialog1.ShowOpen

    If FrmMnu_Principal.CommonDialog1.FileName = Null Or
FrmMnu_Principal.CommonDialog1.FileName = "" Then
        reponse = MsgBox("Are you sure you want to quit?", vbYesNo, "Error")

        If reponse = vbYes Then
            End
        Else
            Call fctopenFichierJobBag
        End If

    Else
        cheminJobBag = FrmMnu_Principal.CommonDialog1.FileName

****the error is here*******
        Set dbJobbag = OpenDatabase(cheminJobBag, , True)

****or here*******
        Open paTH For Output As #1   ' Open file.
        Write #1, cheminJobBag
        Close #1

    End If

End Sub

Waht should I do ? is this an OCX missing, or what?
By the way, the program only works at a machine that have VB6 installed on.

Thanks for your help,
       Sebastien Anselmo
       QUEBECOR inc.



Mon, 16 Sep 2002 03:00:00 GMT  
 Visual studio installer help needed
Your program runs on your development system?
you line... > public dbJobbag as database
makes me think that there's no reference set to a database object library (since the word 'database' is in all lower case)

If you do have a reference set double check to make sure that all database related dll's have been installed along with your app.

BTW.... your lines that read...

Quote:
> Dim paTH, cheminJobBag As String
> Dim reponse

You do know that only 'cheminJobBag' is actually declared as a string... All others are variants. No problem there.... just an
observation.
Quote:

> Hi
>    I just created a Setup for my VB6.0 program with Visual Installer, and by
> taking care of putting all the .OCX and by putting all the names less than 8
> caracters (the server is in NT)
>  I run the Setup, and everthing works fine. Then I run my program, and when
> it gets at this function (that I wrote on at the bottom) and its right after
> I choose the file from the commondialog, windows write me this fatal error:

> Run-time error '429'
> ActiveX component can't create object

> Here is my function:

> I declared my database like this:
> public dbJobbag as database

> Public Sub fctopenFichierJobBag()
> Dim paTH, cheminJobBag As String
> Dim reponse
> On Error GoTo ouvrirCMD

> paTH = "c:\gestion\pathJB.txt"

> Open paTH For Input As #1   ' Open file.
> Input #1, cheminJobBag   ' Read line into variable.
> Close #1

> If cheminJobBag <> "" Then
>     Set dbJobbag = OpenDatabase(cheminJobBag, , True)

> Else: GoTo ouvrirCMD

> End If

> Exit Sub

> ouvrirCMD:
>     Close #1

>     MsgBox "You must get the JobBag"

>     FrmMnu_Principal.CommonDialog1.InitDir = "J:\data\"
>     FrmMnu_Principal.CommonDialog1.ShowOpen

>     If FrmMnu_Principal.CommonDialog1.FileName = Null Or
> FrmMnu_Principal.CommonDialog1.FileName = "" Then
>         reponse = MsgBox("Are you sure you want to quit?", vbYesNo, "Error")

>         If reponse = vbYes Then
>             End
>         Else
>             Call fctopenFichierJobBag
>         End If

>     Else
>         cheminJobBag = FrmMnu_Principal.CommonDialog1.FileName

> ****the error is here*******
>         Set dbJobbag = OpenDatabase(cheminJobBag, , True)

> ****or here*******
>         Open paTH For Output As #1   ' Open file.
>         Write #1, cheminJobBag
>         Close #1

>     End If

> End Sub

> Waht should I do ? is this an OCX missing, or what?
> By the way, the program only works at a machine that have VB6 installed on.

> Thanks for your help,
>        Sebastien Anselmo
>        QUEBECOR inc.




Mon, 16 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need help w/Visual Studio Installer

2. Need help w/Visual Studio Installer

3. Help: How to install Visual Studio Installer

4. HELP: Visual Studio Installer

5. Visual Studio Installer Help

6. help pls: visual studio installer

7. Visual Studio Installer Error, solution update failed...

8. Visual Studio Installer

9. Visual Studio Installer

10. How to program visual studio installer?

11. Visual Studio Installer 6

12. Visual studio installer

 

 
Powered by phpBB® Forum Software