Click here to Skip to main content

Articles by Naveen (Article: 1, Technical Blogs: 21)

Article: 1, Technical Blogs: 21

RSS Feed

Average article rating: 4.79

Shell and IE programming

Listing Used Files
Posted: 28 May 2007   Updated: 29 Sep 2010   Views: 206,973   Rating: 4.79/5    Votes: 79   Popularity: 9.09
Licence: The Code Project Open License (CPOL)      Bookmarked: 183   Downloaded: 8,070
A ShellExtension that lists all the used files in a folder.

Average blogs rating: 3.27

Dialogs and Windows

Hide / Minimize a Dialog on Startup [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 16,006   Rating: 3.25/5    Votes: 4   Popularity: 1.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 17   Downloaded: 0
How to hide/minimize a dialog on startup
Find Which DLL / EXE Created a Window [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 12,592   Rating: 3.60/5    Votes: 4   Popularity: 2.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 17   Downloaded: 0
How to find which DLL / EXE created a Window

Shell and IE programming

How to open Popup Blocker Settings window of IE programmatically [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 11,235   Rating: 4.71/5    Votes: 3   Popularity: 2.25
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
How to open Popup Blocker Settings window of IE programmatically??Well it is with the help of "DisplayPopupWindowManagementDialog" function in the "C:\WINDOWS\system32\inetcpl.cpl".But here rather just showing a misterious function, I would like to explain the methods by which I found out the name o

Applications & Tools

LeakMon - Track Handle leak, GDI Leak and Memory Leak in your Applications [Technical Blog]
Posted: 25 Jan 2011   Updated: 20 Feb 2013   Views: 18,803   Rating: 4.60/5    Votes: 7   Popularity: 3.85
Licence: The Code Project Open License (CPOL)      Bookmarked: 34   Downloaded: 291
LeakMon - Track Handle leak, GDI Leak and Memory Leak in your Applications

C / C++ Language

Dependency Checker [Technical Blog]
Posted: 21 Oct 2009   Updated: 21 Oct 2009   Views: 14,551   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 531
This is a simple lightweight utility to find which DLL/EXE/OCX in a folder uses a particular DLL.
LeakMon :- Part 2 Under the hood [Technical Blog]
Posted: 31 Mar 2011   Updated: 31 Mar 2011   Views: 5,862   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Explains how Leakmon is able to track down all the resource leaks
new with empty bracket [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 4,978   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Have you ever wrote a statement like..int *pnValue = new int[];One of my friend asked me what will happen if the above statement is executed. Executed ??? I though the code won't even compile. Surprisingly it compile and even returned a pointer. Wow that was some thing unbelievable.OK now the questi
How Local Static Variable Is Implemented in vc++ [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 7,547   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
As every one knows, static variables are initialized only ones, even though it is declared in a function. In this post, I will explain how the compiler implements this.OK let start with the storage of the static variables. Where do you think a static variable declared inside a function is stored? If
Optimizing Storage for Constant Data [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 8,083   Rating: 4.25/5    Votes: 3   Popularity: 2.07
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
In programs we usually declare constant string data. Like..const char* g_pchar = "this is a string";You might be knowing that if we run multiple copies of a exe or dll, the code portion is not duplicated per process. So do the constant data. This is because the constant datas are stored in a special
Loader snaps [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 7,494   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
In one of my previous post, I mentioned about breaking the executing on dll Load. This post is actually a continutation of that one.Normally if we start an application from the debugger in the debugging mode, the output window shows some messages as shown below.Loaded 'c:\WINDOWS\system32\calc.exe',
Pointer pointing to Stack or Heap ?? [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 11,839   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
Today on Code project some one posted a question like "Is there any way to find whether a pointer points to stack or heap". Is there actually an API for the same??Well windows dosen't provide an API or a straight forward way to acomplish this. Any how we can find a pointer points to stack or heap by
Break application on dll Load [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 8,413   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
What will you do if you encounter a crash in an application before it reaches the entry point ok exe. I. e the crach happends before the control reaches the WinMain. In such cases the crash might have happened in the dll loaded by the exe. To be more specific say in the DllMain() of dlls. In most ca
__asm int 3 in template function ( in VC6 ) [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 10,037   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
We usually use __asm int 3 in the code to hard code break points. But have you tried setting a __asm int 3 in a template function? Like...templateclass T> int Testfunc( T Obj ){__asm int 3;return Obj++;}void main(){Testfunc( 1 );};The above code will never get compiled in vc6. It will generate the b
MessageBox in ExitInstance [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 9,369   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
Like the problem in displaying the message box in InitInstance of an APP class, there is a problem in displaying the message box in ExitInstance() also. Try the following code..int CMyApp::ExitInstance() {AfxMessageBox( "Some message from CMyApp::ExitInstance" );return CWinApp::ExitInstance();}The m
When a MessageBox in InitInstance Didn't Show [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 9,141   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
When a MessageBox in InitInstance didn't show
WM_DEVICECHANGE problem [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 20,331   Rating: 4.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
In one our Projects at company, we used WM_DEVICECHANGE message to detect the arrival and removal of USB devices. The application was supposed to run on a machine in which will be running along with several other utility applications. Some months after the project delivery, client reported that, som
How to find whether the parent process is GUI or Console [Technical Blog]
Posted: 8 Apr 2009   Updated: 10 Apr 2009   Views: 21,242   Rating: 2.36/5    Votes: 5   Popularity: 1.65
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
This is not 100% fool proof. How ever in normal cases, this works great. This technique can be used to find out, whether the child application was launched from a GUI application or from a Console application.if( AttachConsole( ATTACH_PARENT_PROCESS )){ AfxMessageBox( _T("Parent process is a con
Centralizing modeless child dialog [Technical Blog]
Posted: 18 Apr 2009   Updated: 18 Apr 2009   Views: 8,626   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Describes how to display a modeless child dialog at the center of the parent dialog.

Windows API

GetFinalPathNameByHandle API Hangs [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 11,566   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
GetFinalPathNameByHandle is an new API introduced in Windows Vista. We will look at how to resolve an issue related to its usage.

Debug Tips

LeakMon: Part 3 - Opening a file in Visual Studio through automation [Technical Blog]
Posted: 24 May 2011   Updated: 24 May 2011   Views: 7,716   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
In this post, we will see how the DumpViewer is able to open a particular file in Visual Studio and highlight the specified line.

Hardware & System

Function to get the local system Administrator Name [Technical Blog]
Posted: 8 Apr 2009   Updated: 8 Apr 2009   Views: 12,316   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
A codeproject poster asked this question. He was already aware of the NetLocalGroupGetMembers function with which, was can the list of users in any groups in the system. How were he wasn't quite sure how to use it and there wasn't any sample code in the internet. So I wrote a sample and posted in co
No tips have been posted.

Naveen
Software Developer (Senior)
India India
Member
No Biography provided


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 20 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid