Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 5th, 2004, 04:21 AM
Authorized User
 
Join Date: Apr 2004
Location: nasik, maharashtra, India.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to debuajm Send a message via Yahoo to debuajm
Default how to use ActiveX DLL in VB.NET

i am using third party DLL in my ASP.NET website using VB.NET. which is creating problem. Same DLL i use in ASP application and its working fine. now i aleady that DLL throug "Add Refernce" in ASP.NET application. i have also improrted that DLL in my .vb class file. but could not use its methods which i have successfully used in ASP Application. please help me. here is my code in .vb class file.
=================================
Imports HTTPREQLib
Public Class XmlLib
    Dim httpReq As HTTPREQLib.SLHttpReqClass
    httpReq.connect ConfigurationSettings.AppSettings("EclipseNetDomai n"), false, false, ConfigurationSettings.AppSettings("EclipseNetPort" )
End Class
=================================

it gives error that : "declaration expected" where i called connect method.

here is my ASP code which is working fine.
==================
set httpReq = CreateObject("Sandlot.HTTPReq")
httpReq.connect Application("EclipseNetDomain"), false, false, Application("EclipseNetPort")
==================

please help and suggest solutions

Thanks
Dev
__________________
Devang Ajmera
sr.Software engg.
Xpanxion int pvt ltd
India.
Phone No:-+91-98903-74412(M)
MSN ID : ajmera_devang@hotmail.com
yahoo   : debuajm
Reply With Quote
  #2 (permalink)  
Old June 5th, 2004, 04:34 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm seeing an inconsistency between the names you are using:

set httpReq = CreateObject("Sandlot.HTTPReq")

  versus

Dim httpReq As HTTPREQLib.SLHttpReqClass

I think you should be doing this:

Dim httpReq As Sandlot.HTTPReq
Reply With Quote
  #3 (permalink)  
Old June 5th, 2004, 05:57 AM
Authorized User
 
Join Date: Apr 2004
Location: nasik, maharashtra, India.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to debuajm Send a message via Yahoo to debuajm
Default

Quote:
quote:Originally posted by planoie
 I'm seeing an inconsistency between the names you are using:

set httpReq = CreateObject("Sandlot.HTTPReq")

versus

Dim httpReq As HTTPREQLib.SLHttpReqClass

I think you should be doing this:

Dim httpReq As Sandlot.HTTPReq
Reply With Quote
  #4 (permalink)  
Old June 5th, 2004, 09:16 AM
Authorized User
 
Join Date: Apr 2004
Location: nasik, maharashtra, India.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to debuajm Send a message via Yahoo to debuajm
Default

Quote:
quote:Originally posted by debuajm
 
Quote:
quote:Originally posted by planoie
Quote:
 I'm seeing an inconsistency between the names you are using:

set httpReq = CreateObject("Sandlot.HTTPReq")

versus

Dim httpReq As HTTPREQLib.SLHttpReqClass

I think you should be doing this:

Dim httpReq As Sandlot.HTTPReq

when i add the dll in my project of asp.net its give me this name
so i use that can u guide me exect syntax or code so i can clarify my self

Reply With Quote
  #5 (permalink)  
Old June 6th, 2004, 05:26 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Did you try my suggestion? Without having the DLL myself, I can't provide much more than speculation as to what the class name you need to use would be.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Can you write an ActiveX DLL with VB.NET? james gold Pro VB.NET 2002/2003 4 November 18th, 2006 01:19 PM
How can I build a ActiveX DLL in VS.net 2003 ? Mohammed ASP.NET 1.0 and 1.1 Basics 13 July 13th, 2006 10:47 AM
Can you write an ActiveX DLL with VB.NET? james gold VB.NET 1 September 8th, 2003 09:49 AM
Can you write an ActiveX DLL with VB.NET? james gold VB Components 0 September 8th, 2003 09:44 AM
Can you write an ActiveX DLL with VB.NET? james gold VB.NET 2002/2003 Basics 0 September 5th, 2003 05:25 AM



All times are GMT -4. The time now is 06:29 PM.


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