User Profile

Collapse

Profile Sidebar

Collapse
Nishant Gaurav
Nishant Gaurav
Last Activity: Jan 12 '11, 04:28 AM
Joined: Jul 26 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • What is the best way to read data from oracle database and write it in a text file

    Hi,

    I want to know the best way to read bulk data (approx 1 lakh records) from database and write it into a text file, through c/c++/pro*c.

    Thanks
    Nishant Gaurav
    See more | Go to post

  • Can we have Separate where clause for separate column accessing the same table

    Hi All,

    Here is the scenario i want a solution for.

    i have two columns col1 and col2 which needs to access the result of same table whose col(say time col) is required for fetching the result.
    while i want the output of col1 when time col value is equal to some value say 30 and col2 to be when time col <=30.
    Please let me know if this can be achieved.
    Thanks and Regards
    See more | Go to post

  • Nishant Gaurav
    started a topic How to read a file using seek

    How to read a file using seek

    Hi All,

    I have 10 log files whose size is not fixed as they are being updated. I want to read these files and store it in 1 file.
    the twist is i want to read say first 1024 bytes from each file and then after reading from all the files i want to read from the position till where i have read in the first file the next 1024 bytes and so on.

    Please Let me know how this can be achieved.

    Thanks &...
    See more | Go to post

  • Nishant Gaurav
    replied to Event Handling in C#
    Thanks both of u for ur help on event handling.
    i really appreciate ur help.
    I will mark this thread as completed. As now what i need is completely different from the context set for this discussion.
    Thanks once again :)...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    there are 2 application exe's. 1 server and 1 client.
    there is a dll which is common to both server and clients.

    Basically I want to bridge the 2 exe's and i am not getting a workaround.

    i want to send some information from client to server.
    i was working in that direction itself in order to achieve the client server communication.
    but now i dont know what to do.
    It will be great if u can help me...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    yes thats the whole idea...
    the only instance created for vuser has some private non static members too, which i will be using in the member of that class.

    Basically,
    u can see the approach as a client server one.
    In which vuser instance is the server running.
    and the other class which is modifying the static variable of the vuser class is a client.
    and for that reason i dont want the client to create a...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    The static variable is required because that is being modified by the 2nd class which a library and not the same class.
    If i would have to use the non static variable that will mean that i have to create an instance of the class first and then update the value....
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    The thing is there will be only one instance of vuser.
    the other class is actually a library referencing this vuser class.
    And as the variable is static i will not be required to create any other instance for that.
    this library is inturn being referenced by the vuser class in other way.

    please let me know if u want any other information....
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    Thanks ChBinder,
    The thing is with a static constructor, it will require a static method to be invoked which means that the method VuserData_Xchan ged at Line No 29 in the above example should be static. which i dont want to be.

    what i want to know is if there is any difference in terms of performance with the above to sited examples.
    And if it is there then which is the best approach....
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    Hi AmzBee,

    It will be great if u can help me understand how the method u told is more valid and accurate.

    p.s i am a beginner and really appreicaite if u can help me out. :)...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    In that case the Xchanged(x) is never called.
    What am i missing over here....
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    Hi chBinder,
    Thanks for the above code, but
    the above code gives error at XChanged(x);
    The error is:
    System.NullRefe renceException: Object reference not set to an instance of an object.

    It will be really helpful if u tell me what has gone wrong in this case.
    As per the code Xchanged is a public static variab;e so there is no need to create the instance.

    i am putting here the code that...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    Hi chBinder,
    Thanks for the above code, but
    the above code gives error at XChanged(x);
    The error is:
    System.NullRefe renceException: Object reference not set to an instance of an object.

    It will be really helpful if u tell me what has gone wrong in this case....
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    Hi AmzBee/ChBinder,
    Sorry but i didn't get the info that i intended for.
    Or may be i am not able to understand in what way it is potraying the scenario i informed about.

    For that case let me again specify the need.

    Code:
    namespace abc
    {
    	class asd
    	{
    		public static int x;
    		// want an eventlistener or a way to call a function asd
    		public asd()
    		{
    ...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    yes AmzBee, u r spot on on this.
    Let me clear the scenario once again.

    Code:
    namespace asd
    {
    class abc //my main class running the form is running
    {
      // the variable for which i want to create a listener.
      public static int i;
      
      // function that i want to call once the change in value is notified by event listener
      public void fn()
      {
      }
    ...
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    replied to Event Handling in C#
    thanks AmzBee for the response, i did the same thing but was not able to get the event handler respond to that, when the static value was changed in some other class.
    It will be of great help if u can show it with a example how this can be done.

    Thanks & Regards
    Nishant Gaurav
    See more | Go to post

    Leave a comment:


  • Nishant Gaurav
    started a topic Event Handling in C#

    Event Handling in C#

    Hi All,

    I want to create a event on a static variable of the class.
    The intention is to notify the class whenever the static variable value is changed, so that it can do some processings.

    Please help me do this.
    Thanks & Regards
    Nishant Guarav
    See more | Go to post
No activity results to display
Show More
Working...