CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: somu0915

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,176

    Threading Concepts.

    Hi I am creating two threads in my main method.
    One: UI Thread which runs the UIMethod.
    Second: Background Thread which runs the BackGroundMethod.

    Now in the BackGroundMethod, I am calling...
  2. Replies
    2
    Views
    654

    How to keep track of background threads?

    I have two threads, one UI thread and one Background thread..

    I want to keep a track of the background thread so that I may kill my UI thread (a tray icon) when the background thread has...
  3. Replies
    2
    Views
    743

    Re: Windows service dosent show !!

    Thanks for the alternate choices.
    Let me tell you more about what I am doing so that you may understand my problem.

    But my service calls a console application and in this I perform background...
  4. Replies
    2
    Views
    743

    Windows service dosent show !!

    I have created a windows service, but there is a difference.. It has to interact with the user.. (I know this is not the usual way but the requirement was there so I had to make it..)

    This was...
  5. Replies
    1
    Views
    1,002

    Call a virtual method non-virtually..

    Hi I am very new to .NET and C#..

    Presently I am reading Jeffrey Richter's "CLR via C#" and here he always mentions (in Type and Member Basics Chapter) that the CLR can call a virtual method...
  6. Re: Cannot pass String Arrays as arguments to delegates??

    Okay got the point..
    Thanks again for removing all my doubts..
  7. Re: Cannot pass String Arrays as arguments to delegates??

    Thanks for your answer..

    If what you say is true then passing arraylists should also confuse the compiler at runtime. If I have many objects in a arraylist then passing them to compiler would...
  8. Re: Cannot pass String Arrays as arguments to delegates??

    Thank you very much..
    It worked like a charm..
    It took me hours to debug that one and i was literally pulling my hairs..

    But now this takes me to my next question..
    What is the need to call it...
  9. Re: how do i reference my own compiled library?

    Did you use proper name space??
    I doubt it..

    Here's my implementation of your code:

    ClassLibrary1.dll


    using System;
    using System.Collections.Generic;
  10. Replies
    3
    Views
    845

    Re: lsitview with autosize

    You can always add a length to the column of a listview..


    int colLength = 500;
    listview1.Columns.Add(L"Column Name", colLength);
  11. Replies
    11
    Views
    1,545

    Re: reference type in EXE?

    Hey that was really very very funny Jonny..
    :cool
  12. Cannot pass String Arrays as arguments to delegates??

    Hi,

    When I pass Strings as arguments to delegate, it runs perfectly fine.. But when I try to pass String Arrays, it gives error..

    So does that mean we cant pass string arrays as parameters to...
  13. Replies
    3
    Views
    1,119

    Re: A Duplicate File Search Application..

    Can Anyne post a better idea?
  14. Replies
    3
    Views
    1,119

    A Duplicate File Search Application..

    Hi,
    I am new to C#.NET..
    I am building a C# application which searches for files in the HDD..
    However there may be many duplicate files with the same name and same contents..
    My objective is to...
  15. Replies
    1
    Views
    865

    retrieve an object from an ArrayList

    How do I retrieve an object from an ArrayList?
    Can I do that??
    Strange, I didnt get much on google!
  16. Unusual Problem in "vcclr.h" and PtrToStringChars..

    I am having a strange problem..
    I had a piece of running code, untill suddenly one day out of nowhere, the compiler flashes this error:



    OffsetToStringData is not a member of...
  17. Replies
    0
    Views
    580

    Shutdown code in Windows Service...

    When we write a windows service, what is the OnStop() method for?
    To explicitly stop the service as a user does??

    Does this method get executed when we shutdown the system??
    I thought that is...
  18. Replies
    5
    Views
    4,212

    Re: TimerCallback runs only once??

    What if I want the timer to run indefinately?
    I will have to make to sleep the thread indefinately !!
  19. Replies
    5
    Views
    4,212

    TimerCallback runs only once??

    Here is a console application snippet which runs only once even though TimerCallback is used..

    Can anyone tell me why??




    using namespace System;

    using namespace System::Threading;
  20. Replies
    16
    Views
    2,211

    Re: Scheduled Services..

    Yeah I know how to add a scheduled task!

    However I didnt find any Windows API or BCL method which can do it programmatically (on google)..
    I can run the scheduled task, its just another...
  21. Replies
    16
    Views
    2,211

    Re: Scheduled Services..

    Yes, I also get the point..
    So can u guide me how I can add an app(as a task) to the scheduler??
    How can I add a task programmaticaly to the windows scheduler??
  22. Replies
    16
    Views
    2,211

    Re: Scheduled Services..

    Ok..
    But logically, is it a good practice to schedule windows services?
  23. Replies
    16
    Views
    2,211

    Re: Scheduled Services..

    Well I found out what was wrong with my windows service..
    Microsoft has a bug with System::Timer class and it might not run properly..
    http://geekswithblogs.net/gavin/archive/2004/09/01/10546.aspx...
  24. Replies
    16
    Views
    2,211

    Scheduled Windows Services..

    Hi,

    I am trying to create a scheduled windows service application with timers which writes periodically to a file..and I am using timers for that..

    But the code dosent seem to work..

    Here's...
  25. Replies
    4
    Views
    1,014

    Re: Windows Service Application Dosent run!!

    Yes I admit I am new to this, since I am only 2 months old in .NET.
    But working on it.
Results 1 to 25 of 62
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)