By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,017 Members | 1,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,017 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.