473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Object required!!

can anyone see where im going wrong?..

im trying to pass a xml string into a vb6 dll, but i get a error

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/MyWeb/Guestbook2.asp, line 55




the code giving the problem is:

dim objGuestbookWriteNode
set objGuestbookWriteInfoDLL = createobject("Guestbookdll.Guestbookclass")

dim GetGuestbookWriteResult
GetGuestbookWriteResult = objGuestbookInfoDLL.Guestbookwrite(cstr(strXMLwrit e))

set objDOM = server.CreateObject("MSXML2.DOMDocument")
objDOM.LoadXML(GetGuestbookWriteResult)



and strXMLwrite is:

strXMLwrite = "<Guestbook><EntryID></EntryID><UsersIP>" & Request.ServerVariables("REMOTE_HOST") & "</UsersIP><DatePosted>" & NOW & "</DatePosted><Message>" & Request.Form("txtGuestbookEntry") & "</Message><UsersName>" & Request.Form("txtUsersName") & "</UsersName></Guestbook>"


and the dll is expecting in StrWrite as string.

can anyone help?...
Jan 9 '08 #1
2 1642
Nicodemas
164 Expert 100+
The error is you have misnamed your object.

You wrote:
Expand|Select|Wrap|Line Numbers
  1. dim objGuestbookWriteNode
  2. set objGuestbookWriteInfoDLL = createobject("Guestbookdll.Guestbookclass")
  3.  
  4. dim GetGuestbookWriteResult
  5. GetGuestbookWriteResult = objGuestbookInfoDLL.Guestbookwrite(cstr(strXMLwrit e))
  6.  
  7. set objDOM = server.CreateObject("MSXML2.DOMDocument")
  8. objDOM.LoadXML(GetGuestbookWriteResult) 

The problem is that you've used a different object name than you've set.

objGuestbookWriteInfoDLL (line 2 of my code above) is different than:
objGuestbookInfoDLL (line 5 of my code above).

Rename the object on line 5 and it just might work. I am assuming this will solve the problem, because I cannot see your entire source.
Jan 9 '08 #2
i feel abit stupid now.. but you cant believe how stuck i was.. cheers for all your help....

thanks...
Jan 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave Hammond | last post by:
I've got what should be a simple assignment of either an element value or a default string to a variable, but when the element doesn't exist I get an "Object required" error rather than an...
7
by: google | last post by:
I am trying to use the following ASP code to examine the file names in a folder: Dim fso, f, fl, s, fs Set fso = CreateObject("Scripting.FileSystemObject") Set f =...
2
by: RICHARD BROMBERG | last post by:
I am using Access 200. I have a form which includes text boxes L1, L2 and L3 And a table tblGrades with number fields L1, L2 and L3
2
by: MaxiBrain | last post by:
How can i correct the Run-time error '424" error that says object required. Every of the required object is in their right order. Please help me. lblExtendedPrice.Caption =...
1
by: Eric | last post by:
What does that error means: Object required I try to use List8.AddItem but when i click on . it not shows AddItem in the window Do Until rst.EOF i = i + 1 Me.List8.ItemData(i) =...
1
by: ced69 | last post by:
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet"...
4
by: =?Utf-8?B?cGJsYWNrYnVybg==?= | last post by:
Summary Getting the error message Run time error 424 Object Required when attempting to assign a value to a C# COM visible property of type object. I have created a COM visible class as below ...
3
by: ShyamKrishnegowda | last post by:
We are writing test scripts to our product. In one of the script we are facing an issue. This test script will create a COM component and executes the following function. O1 and O2 are out...
1
by: ShyamKrishnegowda | last post by:
We are writing test scripts to our product. In one of the script we are facing an issue. This test script will create a COM component and executes the following function. O1 and O2 are out...
1
by: newbguy7040 | last post by:
So I just started learning HTML and Javascript about a week ago, and while I'm writing this code, I get an error saying "Object Required". I don't understand why the object is required, and how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.