Click here to Skip to main content
15,887,256 members
Home / Discussions / C#
   

C#

 
AnswerRe: speech sdk5.1 Pin
Ravi Bhavnani6-May-06 18:01
professionalRavi Bhavnani6-May-06 18:01 
GeneralRe: speech sdk5.1 Pin
TheEagle6-May-06 22:16
TheEagle6-May-06 22:16 
QuestionOpening PDF file Pin
May Thu san6-May-06 16:36
May Thu san6-May-06 16:36 
AnswerRe: Opening PDF file Pin
Sean896-May-06 17:56
Sean896-May-06 17:56 
Questionproblem with threading Pin
Tahsin Sayeeda6-May-06 15:30
Tahsin Sayeeda6-May-06 15:30 
AnswerRe: problem with threading Pin
Ravi Bhavnani6-May-06 17:57
professionalRavi Bhavnani6-May-06 17:57 
AnswerRe: problem with threading Pin
Shy Agam6-May-06 22:57
Shy Agam6-May-06 22:57 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 0:09
Tahsin Sayeeda7-May-06 0:09 
Hi,

Actually after reading the rules of posting a question, I got afraid to send my code!

Here how I called the thread.
CNews cnews = new CNews();

Thread thread = new Thread(new ThreadStart(cnews.readRss));
thread.Start();


And here is the function inside CNews class

public void readRss()
{
    RssReader rssReader = new RssReader();
    rssReader.FeedLoaded += new EventHandler(rssReader_FeedLoaded);
    rssReader.ItemAdded  += new EventHandler(rssReader_ItemAdded);
    rssReader.Error      += new RssReaderErrorEventHandler(rssReader_Error);

    RssFeed feed = rssReader.Retrieve("C:\\news.xml");


    if ( feed.ErrorMessage == null || feed.ErrorMessage == "" )
    {
        int i;
        for(i=0;i<itemsFound;i++)
        {
            ItemDescription[i] = feed.Items[i].Description;
        }

    }
}


I use the code from Rss Reader demo by smallguy78 as I previously mentioned. Please tell me if there is anything more I’ve to send from my code.

Actually the code runs okay in my main form. But I fail to get the value from it in my CNews class (using get and set properties). I have to do further processing with those values which I did in my class. So I put the function in my class. Then the thread doesn’t calling the function!

I can also send my full project if anyone interested I mean need to see it.

Tahsin Sayeeda Moon
(B.Sc. in Computer Science & Engineering
Internation Islamic University Chittagong)

-- modified at 14:43 Sunday 7th May, 2006
GeneralRe: problem with threading Pin
Shy Agam7-May-06 0:54
Shy Agam7-May-06 0:54 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 8:49
Tahsin Sayeeda7-May-06 8:49 
GeneralRe: problem with threading Pin
S. Senthil Kumar7-May-06 2:45
S. Senthil Kumar7-May-06 2:45 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 8:33
Tahsin Sayeeda7-May-06 8:33 
GeneralRe: problem with threading Pin
Guffa7-May-06 5:35
Guffa7-May-06 5:35 
AnswerRe: problem with threading Pin
stbaker9-May-06 4:12
stbaker9-May-06 4:12 
QuestionPorting web navigator from VB6 to VS2005 C# Pin
cweeks786816-May-06 14:12
cweeks786816-May-06 14:12 
AnswerRe: Porting web navigator from VB6 to VS2005 C# Pin
cweeks786818-May-06 8:26
cweeks786818-May-06 8:26 
GeneralRe: Porting web navigator from VB6 to VS2005 C# Pin
cweeks786818-May-06 14:22
cweeks786818-May-06 14:22 
Questionnewbie seeks guidance on how use IDE Pin
wheels4me6-May-06 13:16
wheels4me6-May-06 13:16 
AnswerRe: newbie seeks guidance on how use IDE Pin
led mike6-May-06 13:51
led mike6-May-06 13:51 
AnswerRe: newbie seeks guidance on how use IDE Pin
Josh Smith7-May-06 4:51
Josh Smith7-May-06 4:51 
Questionhow to use progressbar ? Pin
hdv2126-May-06 12:22
hdv2126-May-06 12:22 
AnswerRe: how to use progressbar ? Pin
ekynox6-May-06 14:28
ekynox6-May-06 14:28 
QuestionBeginReceive problem (Sockets question) Pin
tmp06-May-06 10:56
tmp06-May-06 10:56 
AnswerRe: BeginReceive problem (Sockets question) Pin
led mike6-May-06 13:45
led mike6-May-06 13:45 
AnswerRe: BeginReceive problem (Sockets question) Pin
Shy Agam6-May-06 22:44
Shy Agam6-May-06 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.