Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Components
|
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2004, 04:43 AM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default CreateReportOnRuntimeDS + CreateFieldDefFile

When I call these 2 methods from "p2smon.dll"
in VB.net , I receive "Object reference not set to an instance of an object" runtime error.

My code is as belloews :

Dim adors As new ADODB.Recordset
Dim adoconn As new ADODB.Connection

adoconn.open("provider = SQLOLEDB;Data Source = localhost;Initial Catalog = MyDB;Initial Security = SSPI;","","",-1)

adors = CreateObject("adodb.recordset")

adors.open("Select * From MessageTable",adoconn,ADODB.CursorTypeEnum.adOpenF orwardOnly,ADODB.LockTypeEnum.adLockReadOnly,1)

adors.MoveFirst

CreateFieldDefFile(adors,"C:\1.ttx",true) ' error


 
Old October 28th, 2004, 06:18 AM
Authorized User
 
Join Date: Jul 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aravwind Send a message via Yahoo to aravwind
Default

Whether u r calling the COM components in the .NET application
please clarify


Aravindan.N
Faster and consistent will surely beat the slow and steady
 
Old October 28th, 2004, 09:13 AM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I read aravWind reply but I dont understand what did he mean
please explain me more

if anyone has an idea please help me

 
Old October 28th, 2004, 03:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

run the code in the debugger, so you can know which line of code is throwinf the error message (I did not understand arawind neither, faster and consistent does not win when it does not work :-)

Marco
 
Old November 2nd, 2004, 08:53 AM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

on Line CreateFieldDefFile(...) there was an 'object refernce not set to an instance of an object' error .

Can anyone give me a simple sample that those 2 methods work correctly ?

thanks.

 
Old November 13th, 2004, 02:53 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am getting the same error for the CreateFieldDefFile.
Does anybody have a .net code example to use the p2smon.dll in creating a ttx definition file.

Help much appreciated









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.