473,498 Members | 359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help fixing "type not recognized" error in VB.net

KRC
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").ContainsWord("containing")

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.
Nov 20 '05 #1
3 2099
Cor
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.microsoft.com/microsoft.public.dotnet.framework.aspnet>

Web interface:
<http://msdn.microsoft.com/newsgroups...ups/loadframes
..asp?icp=msdn&slcid=us&newsgroup=microsoft.public .dotnet.framework.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").ContainsWord("containing")

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.

Nov 20 '05 #2
Hi, Try this:

Dim containsWordA As Boolean = (New TextProcessor("my string containing
words")).ContainsWord("containing")

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*******@yahoo.com> wrote in message
news:a4************************@posting.google.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").ContainsWord("containing")

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.

Nov 20 '05 #3
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.WebZinc.TextProcessor(etc.). I assumed it had already been
defined, but I guess I was wrong.
"KRC" <sp*******@yahoo.com> wrote in message
news:a4************************@posting.google.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").ContainsWord("containing")

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.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
33441
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 ...
1
1198
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...
0
1725
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...
2
6087
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...
2
2037
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...
3
12483
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...
3
2491
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...
2
3909
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 ...
5
3161
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),...
0
6998
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
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
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...
1
4904
isladogs
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...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
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...

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.