Click here to get back home

WDS C++ or C# sample without GUI interface

 HomeNewsGroups | Search | About
 microsoft.public.msn.search    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
WDS C++ or C# sample without GUI interface WDS C++ or C# sample without G 10-22-2005
Posted by WDS C++ or C# sample without G on October 22, 2005, 8:58 pm
Please log in for more thread options


I have the same question with Vijay Anand. The WDS sample provides GUI
interface, but
How to integrate C++ or C# without GUI interface to WDS APIs?


Fokus



Posted by Vijay Anand on October 23, 2005, 1:45 pm
Please log in for more thread options


Fokus,
The sample that comes along has a nice C# class called QueryBuilder and
one can look at the form class to see how to use the QueryBuilder class. I
even got it to work in a .Net console application built using C#. My problem
is that I am trying to write a regular .dll that can be used as a plugin in
another application and haven't had lucj getting the WDS SDK to work..

Vijay




Posted by WDS C++ or C# sample without G on October 23, 2005, 5:19 pm
Please log in for more thread options


Hi Vijay,

I'm a newbie. I tried this simple console code. The compilation was ok, but
the code crashed when it invoked myQuery.ExecuteQuery(...). Any hint for me?

QueryBuilder myQuery;
myQuery = new QueryBuilder();
DataSet dataGrid1;
dataGrid1 = myQuery.resultSet;
myQuery.clearColumns();
myQuery.addColumnList(ColumnType.GeneralColumnList);                
myQuery.addColumnList(ColumnType.MusicColumnList);
myQuery.sortColumn = ColumnType.GeneralColumns.DocTitle;
string yquery = "Innovation";
string typeFilter;
typeFilter = TypeFilter.Documents;
myQuery.ExecuteQuery(yquery, typeFilter);
Console.WriteLine( myQuery.resultSet.Tables[0].Rows.Count.ToString());


Fokus



"Vijay Anand" wrote:

> Fokus,
> The sample that comes along has a nice C# class called QueryBuilder and
> one can look at the form class to see how to use the QueryBuilder class. I
> even got it to work in a .Net console application built using C#. My problem
> is that I am trying to write a regular .dll that can be used as a plugin in
> another application and haven't had lucj getting the WDS SDK to work..
>
> Vijay
>
>


Posted by Vijay Anand on October 24, 2005, 12:08 pm
Please log in for more thread options


hmm .. I am not sure .. but I got the exact same code to work. Maybe you are
missing something .. anyhow, can you send me your entire C# project zipped

Vijay

"WDS C++ or C# sample without GUI interfa" wrote:

> Hi Vijay,
>
> I'm a newbie. I tried this simple console code. The compilation was ok, but
> the code crashed when it invoked myQuery.ExecuteQuery(...). Any hint for me?
>
> QueryBuilder myQuery;
> myQuery = new QueryBuilder();
> DataSet dataGrid1;
> dataGrid1 = myQuery.resultSet;
> myQuery.clearColumns();
> myQuery.addColumnList(ColumnType.GeneralColumnList);                
> myQuery.addColumnList(ColumnType.MusicColumnList);
> myQuery.sortColumn = ColumnType.GeneralColumns.DocTitle;
> string yquery = "Innovation";
> string typeFilter;
> typeFilter = TypeFilter.Documents;
> myQuery.ExecuteQuery(yquery, typeFilter);
> Console.WriteLine( myQuery.resultSet.Tables[0].Rows.Count.ToString());
>
>
> Fokus
>
>
>
> "Vijay Anand" wrote:
>
> > Fokus,
> > The sample that comes along has a nice C# class called QueryBuilder and
> > one can look at the form class to see how to use the QueryBuilder class. I
> > even got it to work in a .Net console application built using C#. My problem
> > is that I am trying to write a regular .dll that can be used as a plugin in
> > another application and haven't had lucj getting the WDS SDK to work..
> >
> > Vijay
> >
> >


Posted by WDS C++ or C# sample without G on October 24, 2005, 1:21 pm
Please log in for more thread options


Hi Vijay,

I've sent you the zipped file.
Thanks!

Fokus


"Vijay Anand" wrote:

> hmm .. I am not sure .. but I got the exact same code to work. Maybe you are
> missing something .. anyhow, can you send me your entire C# project zipped
>
> Vijay
>
> "WDS C++ or C# sample without GUI interfa" wrote:
>
> > Hi Vijay,
> >
> > I'm a newbie. I tried this simple console code. The compilation was ok, but
> > the code crashed when it invoked myQuery.ExecuteQuery(...). Any hint for me?
> >
> > QueryBuilder myQuery;
> > myQuery = new QueryBuilder();
> > DataSet dataGrid1;
> > dataGrid1 = myQuery.resultSet;
> > myQuery.clearColumns();
> > myQuery.addColumnList(ColumnType.GeneralColumnList);                
> > myQuery.addColumnList(ColumnType.MusicColumnList);
> > myQuery.sortColumn = ColumnType.GeneralColumns.DocTitle;
> > string yquery = "Innovation";
> > string typeFilter;
> > typeFilter = TypeFilter.Documents;
> > myQuery.ExecuteQuery(yquery, typeFilter);
> > Console.WriteLine( myQuery.resultSet.Tables[0].Rows.Count.ToString());
> >
> >
> > Fokus
> >
> >
> >
> > "Vijay Anand" wrote:
> >
> > > Fokus,
> > > The sample that comes along has a nice C# class called QueryBuilder and
> > > one can look at the form class to see how to use the QueryBuilder class. I
> > > even got it to work in a .Net console application built using C#. My
problem
> > > is that I am trying to write a regular .dll that can be used as a plugin
in
> > > another application and haven't had lucj getting the WDS SDK to work..
> > >
> > > Vijay
> > >
> > >


Similar ThreadsPosted
Destop search input line interface is terrible and a suggestion June 10, 2007, 3:07 pm
WDS- SDK -Sample C++ code?? October 22, 2005, 3:12 pm
WDS IFilter sample November 28, 2005, 7:03 am
Sample Code for Protocol Handlers for Desktop Search August 17, 2005, 5:05 pm
Problem in running Sample application provided with Windows desktop serach SDK April 18, 2007, 5:24 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap