Error when running exe file

Discussion forum for PivotCubeX component. Common usage questions. Bug and problem reports

Moderator: Alex Zencovich

Error when running exe file

Postby gregoriog » Thu Mar 08, 2007 7:33 pm

Why PivotCuveX Activex doesn’t run when execute exe file?

The project vb6 works fine, but when execute exe fails.

Error ‘-2147467259 (80004005) run time error:
[Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified.

Where find more samples of code vb6?

Thanks
gregoriog
Guest
 
Posts: 4
Joined: Thu Jan 11, 2007 5:36 pm
Location: Mexico

Postby AlexZencovich » Thu Mar 08, 2007 8:27 pm

Hello,

Is that happened with VB demo from package or with your app?

Also, on Win XP you may get similar error message just when app tried access address 0x0000000 or get proeprty for uninitialized (unregistered) OLE control so it may not have any relation to ODBC driver.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby gregoriog » Thu Mar 08, 2007 9:35 pm

Hi!

> Is that happened with VB demo from package or with your app?
No

Only follow next steps:
- Create new vb6 proyect
- Add component (Pivotcubexlib.ocx)
- Add the pivotcubex at form
- Fill properties the PivotCubeX1
- add this code:
Private Sub Form_Load()
Me.PivotCubeX1.CubeBuild
End Sub

run vb6 works fine, but make exe and when execute exe fails
gregoriog
Guest
 
Posts: 4
Joined: Thu Jan 11, 2007 5:36 pm
Location: Mexico

Postby AlexZencovich » Fri Mar 09, 2007 6:36 am

I do not sure about VB but is it possible if FormLoad() called BEFORE OCX initialized (I assume OCX initialized on loading stage when properties loaded)
Try to move PivotCubeX.CubeBuild to another routine, which will fired by user click.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby gregoriog » Fri Mar 09, 2007 2:16 pm

I change the code:
Private Sub Form_Load()
Me.PivotCubeX1.CubeBuild
End Sub

to
Private Sub Command1_Click()
Me.PivotCubeX1.CubeBuild
End Sub

I have the same problem :cry:

I send by email the vb6 project
gregoriog
Guest
 
Posts: 4
Joined: Thu Jan 11, 2007 5:36 pm
Location: Mexico

Postby AlexZencovich » Fri Mar 09, 2007 7:55 pm

You got error on click or on application start?
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby gregoriog » Fri Mar 09, 2007 9:04 pm

When click on the button
gregoriog
Guest
 
Posts: 4
Joined: Thu Jan 11, 2007 5:36 pm
Location: Mexico

Postby AlexZencovich » Fri Mar 09, 2007 9:41 pm

Which database you tried to connect? Check if connection string you try to use actually works. There may be different ways used when you connect from IDE or connect from exe especially if exe placed in another directory.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby AlexZencovich » Fri Mar 09, 2007 9:42 pm

gregoriog wrote:
I send by email the vb6 project


I did not receive any emails from you.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to PivotCube ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron