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
N

Nawal K Gupta

@Nawal K Gupta
About
Posts
20
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Dragging/Moving Dialog to show only border
    N Nawal K Gupta

    When I move the dialog box I just want to paint the border. This is the deafult behaviour in Java/Swing. It avoids a lot of flickering and refresh problem. Is there any easy way to achive this in wonodws?

    C / C++ / MFC java help question

  • Mixing Unicode and Non Unicode CEdit, CWnd
    N Nawal K Gupta

    I want a unicode version and in same dialog Some Edit Boxes shd be unicode enabled and some edit boxed shd be unicode disabled

    C / C++ / MFC visual-studio csharp question

  • Mixing Unicode and Non Unicode CEdit, CWnd
    N Nawal K Gupta

    Hi All, 1. We have created a dialog with unicode compilation. In this we have some text boxes or other controls where we don't want to allow to enter any non-english charaters. Can there is some easy way to set the flag for CEdit, so that it won't allow to enter any non english characters. I don't want to override (MaskEdit) the CEdit. In MBCS build we are able to type only English chars. Non english is converted to ????. How Windows is managing this Non unicode and unicode windows? 2. Is the support for _MBCS is removed from the Visual Studio 2005. In non unicode (MBCS) build, in Visual Studio 98, we were able to type the unicode characters, but this seems not to be working with VS 2005 Indian Idol

    C / C++ / MFC visual-studio csharp question

  • Com Redirection
    N Nawal K Gupta

    There is an article in MSDN so that we can run multiple version of COM Components at the same time using a .local file. "DLL/COM Redirection on Windows" I tried this but it never works. Any Idea?

    COM com question announcement

  • Threading Interview Question
    N Nawal K Gupta

    This is not my interview questions. I saw this question somewhere and I wanted to increase my Academic knowledge. Noting related to homework.

    C / C++ / MFC javascript algorithms business help question

  • One More IV : Optimization
    N Nawal K Gupta

    This is not my interview questions. I saw this question somewhere and I wanted to increase my Academic knowledge. Noting related to homework. I have some solutions just wanted to verify and hoping to get a better solution.

    C / C++ / MFC performance c++ algorithms data-structures help

  • Threading Interview Question
    N Nawal K Gupta

    This is not my interview questions. I saw this question somewhere and I wanted to increase my Academic knowledge.

    C / C++ / MFC javascript algorithms business help question

  • One More IV : Optimization
    N Nawal K Gupta

    Problem 1: Optimization A C++ class has the following member: int status_[75]; During performance analysis it was found out that the class (its object) was performing unsatisfactorily making it a necessary candidate for optimization. The following additional information was also found out *) Each element of the status_ array assumes only the following 4 values: -1, 0, 1, 2 *) The bulk of the time was spent in loops like: for(size_t i=0; i != 75; ++i) { if(status_[i] == 1) { // do something... } } *) The set of elements of the status_ array that assume a particular value is sparse making the above loop inefficient. Assume that 0 is the default value. *) The status_ array is updated at places scattered throughout the code making it difficult to rewrite. However, a particular element is updated only through a statement like status[i] = -1; Task: Your task is to optimize the class, considering the above information. The optimization should introduce the least bugs possible, i.e. it must have minimal changes and those changes that have lesser chance of introducing bugs. Never Ending Probloem

    C / C++ / MFC performance c++ algorithms data-structures help

  • Threading Interview Question
    N Nawal K Gupta

    Problem 2: Threading: Requirements: In a particular system there are two threads T1 and T2. T1 is the master thread that periodically sends messages to the worker thread T2. The system is time-critical and hence T2 must react to every message that T1 sends. None of the messages must be lost.T2 performs time consuming operations like say mixing sound samples and sending them to the sound buffer. Here is the hypothetical POSIX like library that is available to synchronize the threads: Mutex locking and unlocking are done through to the calls int lock(Mutex_t* mutex); int unlock(Mutex_t* mutex); Thread messaging is done through condition variables that operate with an associated mutex. A thread that responds to a message needs to wait on a condition variable. It should own the associated mutex prior to entering the wait state. When it enters the wait state, it simultaneously releases the ownership of the mutex. Upon return from the wait state, it owns the mutex. int wait(Condition_t* condition, Mutex_t* mutex); A thread that sends message to another thread needs to signal the condition variable. In order to signal the condition variable, the thread must own the associated mutex.If no thread is waiting on the condition variable, the `signal' or message is lost. If a thread is waiting on the condition variable, then it resumes execution. int signal(Condition_t* condition, Mutex_t* mutex); Task: You can write this in pseudo code. The idea is to come up with the best and efficient algorithm that would address the requirements. Search Not Complete

    C / C++ / MFC javascript algorithms business help question

  • WM_KILLFOCUS [modified]
    N Nawal K Gupta

    In Some Old Code some validation is done in WM_KILLFOCUS. Now We know that this is not a good way, But we don't wan't to change the code. If Some User's closes the dialog using "Top Right Cross Button" the dialog and its Data becomse invalid and after that the KillFocus comes. In This case we dont want the killfocus event to happen. Please suggest. Stuck in a Problem

    C / C++ / MFC help

  • Jobs in demand
    N Nawal K Gupta

    Now rectified. Give me some ratings. Cheers

    The Lounge csharp c++ java question

  • Jobs in demand
    N Nawal K Gupta

    Which is in demand? 1. VC++? 2. Java 3. .Net Cheers

    The Lounge csharp c++ java question

  • hi all [modified]
    N Nawal K Gupta

    In you use this code void OnSomeFunction() { CMy dlg; dlg.Create(IDD_DIALOG1); dlg.ShowWindow(1); } this is not safe, because the dlg object is created in Stack and it will get destroyed as soon as the function is out of scope. Create ModeLess Dialogs in Heap or Make Sure that the Object is not out of scope by making is static or Global/Top Clsss Variale Like. One Way of Doing It is: void OnSomeFunction() { static CMy * Dlg =NULL; if (!m_Dlg) { Dlg= new CMy(); Dlg->Create(IDD_DIALOG1); } dlg.ShowWindow(1); }

    C / C++ / MFC help

  • Meaning of Life
    N Nawal K Gupta

    And F3 Results?

    The Lounge help question

  • Meaning of Life
    N Nawal K Gupta

    Is Sombody Controls the Life either Matrix or God? or there is free will? We can do what ever we want?

    The Lounge help question

  • Meaning of Life
    N Nawal K Gupta

    Help me to search the meaning of life? For Coders? Confused

    The Lounge help question

  • IE Plugins
    N Nawal K Gupta

    The Plugins are kind of viewer, which can load any special document and display it. The behave is little different from other Active X Controls. I am looking for any reference sample.

    C / C++ / MFC com adobe question

  • IE Plugins
    N Nawal K Gupta

    Is IE Plugins ( like Acrobat Plugin for IE or Flash Plugin/ Media Player etc) are ActiveX Controls or ActiveX documents;? Is there any link for more information? Happy New Year

    C / C++ / MFC com adobe question

  • Which language is easy ( Speaking/ Writing)
    N Nawal K Gupta

    Hey Guys: Just wondering which is an easy language to learn as native or foreign language? NB: This is not about Computer Programming Language. No more attacks. -- modified at 0:39 Thursday 29th December, 2005

    The Lounge c++ question

  • The Crimson Room puzzle
    N Nawal K Gupta

    I found 12 items. Where is the Safe Behind the wall?

    The Lounge csharp css adobe
  • Login

  • Don't have an account? Register

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