I am using an external object called WebZinc to help parse web pages
in VB.net. I am trying to use a particular method following the
example in the help reference but am unable to get VB.net to recognize
it. The code example is:
Dim containsWordA As Boolean = New TextProcessor(" my string containing
words").Contain sWord("containi ng")
where TextProcessor is the object and ContainsWord is the method.
VB.net underlines the TextProcessor statement and indicates type not
recognized.I have included the Webzinc Namespace in the Objects
Directory and have used the Imports statement to reference the
namespace. When I browse the Object Directory, the Webzinc objects are
are visible. Other objects work fine. I suspect I have some sort of an
initialization problem.
I'm a newbie, so I suspect a simple mistake. I would appreciate any
thoughts.
Thanks. 3 2115
Hi KRC,
The chance that you get an answer that helps you in this is in this
newsgroup very low.
I think that you can ask it better on the place where you got your WebZinc
object.
You can also try it in this newsgroup because that has more special to do
with aspnet problems.
Aspnet
<news://msnews.microsof t.com/microsoft.publi c.dotnet.framew ork.aspnet>
Web interface:
< http://msdn.microsoft.com/newsgroups...ups/loadframes
..asp?icp=msdn& slcid=us&newsgr oup=microsoft.p ublic.dotnet.fr amework.aspnet>
I hope this helps a little bit?
Cor I am using an external object called WebZinc to help parse web pages in VB.net. I am trying to use a particular method following the example in the help reference but am unable to get VB.net to recognize it. The code example is:
Dim containsWordA As Boolean = New TextProcessor(" my string containing words").Contain sWord("containi ng")
where TextProcessor is the object and ContainsWord is the method. VB.net underlines the TextProcessor statement and indicates type not recognized.I have included the Webzinc Namespace in the Objects Directory and have used the Imports statement to reference the namespace. When I browse the Object Directory, the Webzinc objects are are visible. Other objects work fine. I suspect I have some sort of an initialization problem.
I'm a newbie, so I suspect a simple mistake. I would appreciate any thoughts. Thanks.
Hi, Try this:
Dim containsWordA As Boolean = (New TextProcessor(" my string containing
words")).Contai nsWord("contain ing")
i.e. the addition of parentheses around the type initialization
--
HTH,
-- Tom Spink, Über Geek
Woe be the day VBC.EXE says, "OrElse what?"
Please respond to the newsgroup,
so all can benefit
"KRC" <sp*******@yaho o.com> wrote in message
news:a4******** *************** *@posting.googl e.com... I am using an external object called WebZinc to help parse web pages in VB.net. I am trying to use a particular method following the example in the help reference but am unable to get VB.net to recognize it. The code example is:
Dim containsWordA As Boolean = New TextProcessor(" my string containing words").Contain sWord("containi ng")
where TextProcessor is the object and ContainsWord is the method. VB.net underlines the TextProcessor statement and indicates type not recognized.I have included the Webzinc Namespace in the Objects Directory and have used the Imports statement to reference the namespace. When I browse the Object Directory, the Webzinc objects are are visible. Other objects work fine. I suspect I have some sort of an initialization problem.
I'm a newbie, so I suspect a simple mistake. I would appreciate any thoughts. Thanks.
Thanks to all for the suggestions. With some experimentation , I solved the
problem. Solution: I needed to reference the namespace in the statement,
e.g. Whitecliff.WebZ inc.TextProcess or(etc.). I assumed it had already been
defined, but I guess I was wrong.
"KRC" <sp*******@yaho o.com> wrote in message
news:a4******** *************** *@posting.googl e.com... I am using an external object called WebZinc to help parse web pages in VB.net. I am trying to use a particular method following the example in the help reference but am unable to get VB.net to recognize it. The code example is:
Dim containsWordA As Boolean = New TextProcessor(" my string containing words").Contain sWord("containi ng")
where TextProcessor is the object and ContainsWord is the method. VB.net underlines the TextProcessor statement and indicates type not recognized.I have included the Webzinc Namespace in the Objects Directory and have used the Imports statement to reference the namespace. When I browse the Object Directory, the Webzinc objects are are visible. Other objects work fine. I suspect I have some sort of an initialization problem.
I'm a newbie, so I suspect a simple mistake. I would appreciate any thoughts. Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lou Pecora |
last post by:
g++ compiler error question.
I have a container C whose constructor takes a class B that is inherited
from an abstract class A. So I have the line of code:
B binstance;
C cinstance(binstance);
The compiler gives the error,
|
by: sling blade |
last post by:
Hi,
For some reason asp.net will not let me publish a new Webpage.
I am able to create a new page however when I set it as the start page
and hit run, I recieve "Could not load type" error message. The first
line of the html is highlighted.
I have tried to create a second page with the same results. The second
page was blank I had not written any code for it.
|
by: hamstak |
last post by:
While attempting to perform a build on an .aspx page from within VS
2005 I receive the "Could not load type" error pertaining to the class
representing the page. The class is derived from a custom base class
(which itself is derived from System.Web.UI.Page). This custom base
class has been used in other projects successfully. The Inherits
attribute of the @Page directive is properly assigned and the
application root is properly...
|
by: Ian825 |
last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my pointers, but I'm not sure. Please help.
The code:
void equate(matrix *A, matrix *B)
{
int i, j;
assert(A.row_dim == B.col_dim && A.col_dim == B.col_dim);
for(i=0; i < A.row_dim; i++)
for(j=0; j < A.col_dim; j++)
|
by: magyar.laszlo |
last post by:
Hi !
I have an activex .net dll in a webpage. This activeX is trying to
connect to an LDAP server using System.DirectoryServices.
Unfortunatelly it gets always "request for the permission of type"
error.
If I give full trust at the .net config tool it is working fine.
Is there any way to avoid this client .net confoguration?
| |
by: eros |
last post by:
ALTER TABLE public.postcodes
ALTER COLUMN machi
TYPE varchar(100);
Error: ERROR: syntax error at or near "TYPE";
Error while executing the query (State:42601, Native Code: 7)
I am using WinSQL, Windows XP SP2 Japanese Version, PostgreSQL 8.x.
I want to alter my machi field from varchar(30) to varchar(100) TYPE.
This is my CREATE TABLE script:
|
by: bxscikid |
last post by:
I am using VB 6 in order to clear a listbox (lststuff) containing material entered by the user via input boxes. I am trying to utilize a command button which will clear the list for the user. When testing the program, as soon as i click on the command button I receive a "Type mismatch" error. How can I solve this?
This is the code I am using:
Private Sub cmdclear_Click(Index As Integer)
Dim warning As String
warning =...
|
by: unclefester |
last post by:
I have two classes: Test1 and Test2. Test1 has a field of data type Test2, & vice versa. I need some help in avoiding the incomplete type error ("Error: field has incomplete type").
Test1.h
#ifndef _TEST1_
#define _TEST1_
#include "Test2.h"
using namespace std;
|
by: tejesh |
last post by:
I am trying to compile the following code
int backend_sm_run(struct interface_data *ctx)
{
xsup_assert((ctx != NULL), "ctx != NULL", TRUE);
xsup_assert((ctx->statemachine != NULL), "ctx->statemachine != NULL",
TRUE);
backend_sm_check_globals(check);
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |