Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Ashish Tyagi 40

@Ashish Tyagi 40
About
Posts
13
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Looks like almost every "Daily News" from code project is just advertisement. @ Code project please send advertisement in a SEPARATE email !!
    A Ashish Tyagi 40

    I understand. It's just about "accepting this fact" and not sending adds as news.

    Site Bugs / Suggestions tools announcement html com sales

  • Looks like almost every "Daily News" from code project is just advertisement. @ Code project please send advertisement in a SEPARATE email !!
    A Ashish Tyagi 40

    Why your email is always full of Microsoft? Aug 5th, 4 out of 5 "Industry News" are of Microsoft.[^] I don't need to provide more data because readers (who didn't routed your emails to junk yet) already know that. Infoworld.com, full of paid news (advertisement) but why you keep forwarding there adds? From today's "Daily News" [^] perforce helix better then Git by "product marketing manager at Perforce Software"[^] Readers.. what do you suggest?

    Site Bugs / Suggestions tools announcement html com sales

  • Application crash when reading file from mapped network drive is discoonected
    A Ashish Tyagi 40

    If you share which API you are using for file I/O then you'd get answer more accurately. Did you used std::fstream or some other API?

    C / C++ / MFC sysadmin tutorial

  • Pop Quiz Hot Shot
    A Ashish Tyagi 40

    Nice one :thumbsup:, but billing of 40 hours will not be sufficient if it break any existing (working) things :)

    The Lounge testing json csharp com ai-testing

  • Pop Quiz Hot Shot
    A Ashish Tyagi 40

    B) Refuse to do it. I'll tell them, its not logical and why its not logical And will ask them why they need it and suggest alternative solution if possible.

    The Lounge testing json csharp com ai-testing

  • They just keep on trying
    A Ashish Tyagi 40

    too funny :-)

    The Lounge question sysadmin windows-admin hosting tools

  • Git!
    A Ashish Tyagi 40

    "someone would leave a file locked at the end of the day and was nowhere to be found"

    Same happened in my org, someone left entire directory (containing a big project) locked (reserved checked-out) in ClearCase on his last working day and we had to copy the dir with dir_new :-) I really hate ClearCase, when it take 5 seconds just to show the diff. Git is fast.

    The Lounge question collaboration

  • Application Watchdog
    A Ashish Tyagi 40

    Developing whatch dog on windows is very easy, all you need to create a named mutex from the process (program) needed to moniter, and from your moniter process, wait for that mutex handle to be closed. If it get closed than restart your program. If you are a Linux user than crontab is your friend, use crontab instead of develop new watchdog so that you can spent time to find out why you program is crashing. On windows you can use cronw. Good Luck.

    C / C++ / MFC question

  • AsyncIO C++
    A Ashish Tyagi 40

    You can use bosst asio. And as you are looking to retrive any collection object, I would propose you to use boost serialization, it is more easier to code and design these kind of requirement.

    ATL / WTL / STL c++ sysadmin tutorial question

  • ISP hacked
    A Ashish Tyagi 40

    What the **** They Saved password in plain test????????????

    The Weird and The Wonderful com tutorial

  • Problem in Multithreading ,,....
    A Ashish Tyagi 40

    To ensure that a thread (referenced by some reference say threadRef) is finished, then you join() on that reference. like threadRef.join() if that thread is finished, then join() returned immediately otherwise join() will blocked until that thread get finished. For example if you create three thread (a, b, c) for doing three different task A, B, C, from your main thread, but you need some initialization processing (which must be executed before start-up of a, b, c) and shutdown processing (which must be executed after finishing of a, b, c) then you may code like this // in main() System.out.println("System started"); initialization(); // a, b, c are not running yet. System.out.println("initialization complete "); Thread a = new Thread(new Task_A_RunnableClass()); Thread b = new Thread(new Task_B_RunnableClass()); Thread c = new Thread(new Task_C_RunnableClass()); a.start(); System.out.println("Thread "a" started "); b.start(); System.out.println("Thread "b" started "); c.start(); System.out.println("Thread "c" started "); //Now wait for all thread to finished. a.join(); System.out.println("Thread "a" finiished "); b.join(); System.out.println("Thread "b" finiished "); c.join(); System.out.println("Thread "c" finiished "); shutdown(); // a, b, c are finished now. System.out.println("System shutdown..... ");

    Java help

  • static keyword problem.....
    A Ashish Tyagi 40

    Actually non-static members are accessed via an object. An static member function can access non-static member of it's class also but through an oject... like-- class TestClass{ int i_m_belongs_to_an_object_of_TestClass; // non-static data member static int i_m_belongs_to_TestClass; // static data member public static void function(){ // i_m_belongs_to_an_object_of_TestClass = 0; // wont compile i_m_belongs_to_TestClass = 0; TestClass obj = new TestClass(); obj.i_m_belongs_to_an_object_of_TestClass = 0; // will compiled but accessed through object OtherClass objOther = new OtherClass(); objOther.i_m_belongs_to_an_object_of_OtherClass = 0; // will compiled but accessed through object int someInt = OtherClass.i_m_belongs_to_OtherClass; // accessed through Class name can also be accessed by an object } } class OtherClass { int i_m_belongs_to_an_object_of_OtherClass; // non-static data member static int i_m_belongs_to_OtherClass; // static data member }code> Only one copy is allocated for static data members, one copy per object for non-static data members

    Java java help question

  • Polymorphism problem in java..
    A Ashish Tyagi 40

    Hello friend... Just add this line in main() System.out.println("aRef's type is " + aRef.getClass().toString()); and output for this line must me : aRef's type is b when you call aRef.show() then first this call must be resolved by class of aRef's object if fuction show() not found then jvm try to resolved it from super class.

    Java java oop help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups