Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 22nd, 2007, 01:29 AM
Registered User
 
Join Date: Nov 2007
Location: Moscow, , Russia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default Heap of typing errors HELP!!!

 Heap of typing errors in the Russian edition of the book "Beginning E-Commerce with Visual Basic, ASP, SQL Server 7.0 and MTS"
Has made all as it is described in the book, and result: "The mistake of compilation Microsoft VBScript (0x800A0401) Is supposed presence of the termination of the instruction Jo's Coffee/wroxCommercetest2.asp, line 16, column 74
objVisit.Configure "Jo'sCoffee", "jocofee.com", "driver=SQL Server"; &_ " :(

Code of page

<% option explicit %>
<html>
<head>
  <title>WroxCommerce Test page</title>
</head>
<body>

  <%

     ' Visit
     Dim visit
     Set visit = Server.CreateObject("WroxCommerce.Visit")

     ' visit ,
     '
     objVisit.Configure "Jo's Cofee", "jocofee.com", "driver=SQL Server"; &_
     DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost"

      ' DLL
      Response.Write "Version Number: " & visit.Version & "<br><br>"

      '
      Response.Write "Visit object: " & typename(visit) & "<br>"
      Response.Write "Catalog object: " & typename(visit.Catalog) & "<br>"

      '
      visit.Shutdown
      Set visit = Nothing
  %>
</body>
</html>
:(
Please help to understand

  #2 (permalink)  
Old November 27th, 2007, 01:11 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For starters, here are a few changes to make:

     Dim visit
     Set visit = Server.CreateObject("WroxCommerce.Visit")

     visit.Configure "Jo's Cofee", "jocofee.com", "driver=SQL Server;" & _
     "DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost"

You might have a lot of trouble getting this code to work. There needs to be a sql server database and possibly a com object in a dll named "WroxCommerce" that has a class named Visit. I think I had this book, but not in Russian.





Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
  #3 (permalink)  
Old December 7th, 2007, 04:30 AM
Registered User
 
Join Date: Nov 2007
Location: Moscow, , Russia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default

Quote:
quote:Originally posted by woodyz
 For starters, here are a few changes to make:

    Dim visit
    Set visit = Server.CreateObject("WroxCommerce.Visit")
    
    visit.Configure "Jo's Cofee", "jocofee.com", "driver=SQL Server;" & _
    "DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost"

You might have a lot of trouble getting this code to work.There needs to be a sql server database and possibly a com object in a dll named "WroxCommerce" that has a class named Visit.I think I had this book, but not in Russian.





Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
The mistake of compilation Microsoft VBScript (0x800A0400) Is supposed presence of the instruction/jocoffee/site.asp, line 53 " driver=SQL Server; " and _

Code of page

' Create somewhere to hold the Visit object as we process the page...
Dim m_visit

' Visit - this function returns an instance of the Visit back to the caller.
' If one doesn't exist, it will create one...
Function Visit

   ' ?
   If IsEmpty(m_visit) Then

      ' Visit
      Set m_visit = Server.CreateObject("WroxCommerce.Visit")

      m_visit.Configure "g_sitename", "g_domainname"
                       "driver=SQL Server;" & _
                       "DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; & _
                        SERVER=localhost", Session
   End If

   ' Visit ...
   Set Visit = m_visit

End Function

In your variant the same mistake.
Please help


  #4 (permalink)  
Old December 7th, 2007, 08:12 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay - I'll help if you will answer specific questions:

Have you installed the "WroxCommerce" dll that is being called on this line?:
Set m_visit = Server.CreateObject("WroxCommerce.Visit")

In other words, has it been registered on the machine that is running this code?

Second:
Pay close attention to your call to m_visit.Configure call.
The issue is tha you are breaking it onto several lines, and the syntax is not correct.
I would suggest you put that entire call onto one line to help solve your problem with
the syntax:
m_visit.Configure "g_sitename", "g_domainname", "driver=SQL Server;DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost", Session

You will note that this line might break up in the post here due to the width of the page, but put it onto one line.One problem with your code is the missing between "g_domainname" and "driver=SQL Server;....." .These are parameters in the call to m_visit.Configure and you need to separate them with a comma.

There are probably other problems, but that is a start.


Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
By blog... please visit
  #5 (permalink)  
Old December 15th, 2007, 09:08 AM
Registered User
 
Join Date: Nov 2007
Location: Moscow, , Russia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default

Quote:
quote:Originally posted by woodyz
 Okay - I'll help if you will answer specific questions:

Have you installed the "WroxCommerce" dll that is being called on this line?:
Set m_visit = Server.CreateObject("WroxCommerce.Visit")

In other words, has it been registered on the machine that is running this code?

Second:
Pay close attention to your call to m_visit.Configure call.
The issue is tha you are breaking it onto several lines, and the syntax is not correct.
I would suggest you put that entire call onto one line to help solve your problem with
the syntax:
m_visit.Configure "g_sitename", "g_domainname", "driver=SQL Server;"DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost", Session

You will note that this line might break up in the post here due to the width of the page, but put it onto one line.One problem with your code is the missing between "g_domainname" and "driver=SQL Server;....." .These are parameters in the call to m_visit.Configure and you need to separate them with a comma.

There are probably other problems, but that is a start.


Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
By blog... please visit
And so: WrocCommerce.dll it is established. At accommodation of a line m_visit.Configure "g_sitename", "g_domainname", "driver=SQL Server;"DATABASE=Jo's Coffee; UID=jocofeeWeb; PWD=eermlate; SERVER=localhost", Session
 On one line there is a mistake:
  Presence of the termination of the instruction is supposed
   /jocofee/site.asp, line 52, column 68
   m_visit.Configure "g_sitename", "g_domainname", "driver=SQL Server;"DATABASE=russianphoto; UID=russianphotoWeb; PWD=eermlate; SERVER=localhost", Session


  #6 (permalink)  
Old December 17th, 2007, 08:58 AM
Registered User
 
Join Date: Nov 2007
Location: Moscow, , Russia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default

With a code on page has understood.
'm_visit.Configure'"g_sitename", "g_domainname"; "Driver={SQL Server};Server=localhost;Database=jocoffee;Uid=joc offeeWeb;Pwd=eermlate; Session"
Entered into one line.
 Now there was a problem with the notice on reception of the order.
Gives out the message on a mistake at attempt of compilation dll a file:The variable is not certain.
I result a code in object PipelineNotifyOwner

Option Explicit

' Indicate that this is a connector object...
Implements IConnector

' ID - return the ID of the connector...
Public Property Get IConnector_ID() As String
 IConnector_ID = GUID_PipelineNotifyOwner
End Property

' Name - return the name of the connector...
Public Property Get IConnector_Name() As String
 IConnector_Name = "PipelineNotifyOwner"
End Property

' Process - tell the connector to go ahead and start working...
Public Function IConnector_Process(ByVal Processor As OrderProcessor, _
        ByRef RunNextConnector As Boolean) As Boolean
  'On Error GoTo Problem

 ' first thing we have to do is notify Jo that there is a new order...
 Processor.SendEMail Me, PNO_NotifyOwner, _
   "Order Received - Part ID " & Processor.PartID, _
   "Owner", "owner@" & Processor.MailDomain, _
   "An order was received."

 ' second thing we have to do is notify the customer...
 Dim CustomerName As String
 Dim CustomerEMail As String
 Processor.GetCustomerContact CustomerName, CustomerEMail
 If CustomerName <> "" And CustomerEMail <> "" Then

 ' get the email address...
 Processor.SendEMail Me, PNO_NotifyCustomer, _
     "Your order has been received!", _
     CustomerName, CustomerEMail, _
     "Your order, reference " & Processor.PartID & " was received!"

 ' tell the processor to update the status of the part...
 Processor.SetPartStatus 1

 ' now update the status of the master order...
 Processor.SetOrderStatus 1

 ' tell the processor that we want to move onto stage 2...
 RunNextConnector = True

 ' indicate success...
 IConnector_Process = True

 Else
 Processor.AddAudit Me, PNO_NoCustomer, False
 End If

 ' jump over the error handler...
 GoTo Finish

Problem:

 ' flag the error...
 Processor.RecordError "Process", Me

Finish:

End Function
The mistake is allocated by red color.

Thanks



  #7 (permalink)  
Old December 17th, 2007, 11:53 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is unclear what PNO_NotifyOwner is, but it appears to be either a constant or a member of an enum. I believe it is a member of an enum. For your code to use this enum, it needs to have a reference to the dll where this enum exists. I found a site on the internet that has the following code:

Code:
 PipelineNotifyOwner codes...

Public Enum PNOCodes
 ' information codes...

 PNO_NotifyOwner = 30001
 PNO_NotifyCustomer = 30002

 ' error codes...

 PNO_NoCustomer = 30101

 End Enum


The site were this comes from seems to be dealing with the code and the book you are working with:
http://www.ik.ku.lt/lessons/konspekt/e-verslas/ASP.htm

Cheers,

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
By blog... please visit
  #8 (permalink)  
Old December 18th, 2007, 02:50 AM
Registered User
 
Join Date: Nov 2007
Location: Moscow, , Russia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default

Quote:
quote:Originally posted by woodyz
 It is unclear what PNO_NotifyOwner is, but it appears to be either a constant or a member of an enum.I believe it is a member of an enum.For your code to use this enum, it needs to have a reference to the dll where this enum exists.I found a site on the internet that has the following code:

Code:
PipelineNotifyOwner codes...

Public Enum PNOCodes
' information codes...

PNO_NotifyOwner = 30001
PNO_NotifyCustomer = 30002

' error codes...

PNO_NoCustomer = 30101

End Enum
The site were this comes from seems to be dealing with the code and the book you are working with:
http://www.ik.ku.lt/lessons/konspekt/e-verslas/ASP.htm

Cheers,

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
By blog... please visit
In module GUIDs at me the same codes are specified. Thanks for the reference, yes, they work with the same book. There are different interpretations in the announcement of functions, but as a whole codes coincide. In any case at compilation the project the mistake gets out sounded, me. Whether it is possible to bypass it somehow.




  #9 (permalink)  
Old December 18th, 2007, 03:01 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can just use the numbers themselves, or declare your own enum or constants.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
My blog... please visit
  #10 (permalink)  
Old December 19th, 2007, 02:35 AM
Registered User
 
Join Date: Nov 2007
Location: Moscow, , Russia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ours Send a message via MSN to ours
Default

Quote:
quote:Originally posted by woodyz
 You can just use the numbers themselves, or declare your own enum or constants.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
My blog... please visit
Clearly. Has understood, business in typing errors of the Russian edition. After copying a code from the native edition the problem was gone itself. Thanks for the help.

Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need some help with typing narmer93 Visual Studio 2005 1 May 20th, 2008 06:28 AM
Heap Monitor pallavi11 VB How-To 5 January 11th, 2007 08:37 PM
Could not reserve enough space for object Heap overcit Apache Tomcat 0 February 23rd, 2006 12:11 PM
a problem with textbox typing, thanks! raybristol ASP.NET 1.0 and 1.1 Basics 2 December 16th, 2005 06:02 PM
Typing problem with the Phile DM2 BOOK: ASP.NET Website Programming Problem-Design-Solution 5 May 11th, 2005 07:21 AM



All times are GMT -4. The time now is 05:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.