• Jigar Mehta's Blog

    What is AppID??

    • 11 Comments
    If you have got chance to work with DCOM /COM+ frequently; you might have come across the term called AppID (if you are not able to recollect, take a look here, HKEY_CLASSES_ROOT\AppID). Many people are confused about what AppID is?? If you are one of...
  • Jigar Mehta's Blog

    Why 32 bit registers are called EAX, EBX, ECX, EDX etc.

    • 6 Comments
    This is actually an interesting story, Back in the days when we had 8 bit processors (8 bit processors means registers in processors will be able to hold 8 bit data), registers were called like, AL, BL So, when we moved to 16 bit processors, we named...
  • Jigar Mehta's Blog

    How to register .NET Assembly for COM Interop ?

    • 6 Comments
    Do you want to use your .NET DLL (assembly) from VB6 or C++ application (native code) ? Yes, you can do that using COM Interop. As per COM rules, you need to get your assembly registered on system (in Registry, yes, thats how COM works!). To get an assembly...
  • Jigar Mehta's Blog

    CoCreateInstance returns 0x80080005 for Visual Studio 2008 based ATL service??

    • 6 Comments
    I just worked with a customer who was facing interesting issue. He was getting 0x80080005 at client when he calls CoCreateInstance. The COM component is implemented within an ATL Service which is running on the same machine (we are not hitting wire/network...
  • Jigar Mehta's Blog

    Collection of SysInternal Tools

    • 4 Comments
    The team has just released a new subdomain that has neat and clean list of all SysInternal Tools, ready for you!! Take a look, http://live.sysinternals.com Stay tuned..
  • Jigar Mehta's Blog

    Removing songs from disk with Rating 1 in SongBird.

    • 3 Comments
    Note: This is a simple ‘Week-end adventure’, to make a tedious task into automated, fast and reliable one. The output may not be completely bug free. Problem Description: I have ‘a lot’ of songs in my media library and I use SongBird player to listen...
  • Jigar Mehta's Blog

    Visual Studio 2005 debugging trick..

    • 3 Comments
    Just now, I found a trick in Visual Studio 2005 to debug pointers in better way. You can ',n' in watch window where 'n' is number of elements to display. I think following snapshot is self explanatory.. Stay tuned..
  • Jigar Mehta's Blog

    How to programmatically determine whether UAC is enabled or not

    • 3 Comments
    The moth says, This is a question I get often: "How can I determine if User Account Control is on or off via code?" The answer I always give: "You are asking the wrong question. Who cares?" The point being that, regardless of whether the user has turned...
  • Jigar Mehta's Blog

    A referral was returned from the server.

    • 2 Comments
    I encountered this strange error while playing with a sample to elevate the executable from the starting. Just imagine, that you require your application to run in admin mode to work successfully; in windows vista, we have the functionality of adding...
  • Jigar Mehta's Blog

    How to install windbg for post-mortem debugging..

    • 2 Comments
    I was looking for a way to install windbg as postmortem debugger so that everytime any process crashes or exits unexpectedly, windbg is launched automatically and I can take a look at whats happening there! Windbg has special command line option for installing...
  • Jigar Mehta's Blog

    How to break in WinDbg when particular function returns specific value??

    • 2 Comments
    If you are debugging a lot, you might come across a need where you need to put a breakpoint on a function and special requirement is you need to break only when that function returns a specific value!! e.g. I am checking for CoCreateInstance method from...
  • Jigar Mehta's Blog

    How to attach WinDbg to a service?

    • 2 Comments
    There are various ways to do this. Find the PID for process that is hosting the service. You can do this with the help of command, tasklist /svc Look for service and associated PID, then go to command prompt, into the directory where windbg is installed...
  • Jigar Mehta's Blog

    COM Interop Sample : Using C# DLL from C++ application

    • 2 Comments
    I have found many people who are beginning to learn COM Interop, looking for a sample application that explains how to use C# DLL from C++ application. Here is one sample that I developed (SLN file is in VS2008 format!) Stay tuned..
  • Jigar Mehta's Blog

    Live Mesh Technology Preview Available!

    • 2 Comments
    I am very excited to tell that Microsoft announced Live Mesh Technology preview today. Its awesome piece of system, and will surely increase your productivity if you have multiple machines/devices at multiple location! I just love it!!! More details here...
  • Jigar Mehta's Blog

    VirtualStore in Windows Vista

    • 1 Comments
    I was researching on one of the issues for my customer and got to read about this registry key. HKCU\Software\Classes\VirtualStore This key will be given to applications on vista who tries to do registry operations which requires admin privileges which...
  • Jigar Mehta's Blog

    VC++ Debug C++ Runtime Files..

    • 1 Comments
    How many times have you tried to run the debug build of your project on a test machine where you don't have Visual Studio installed, and faced issues? Issues like, For binaries built in debug configuration with Visual Studio 2005.. Activation context...
  • Jigar Mehta's Blog

    How can I check the details about Process Token while debugging in Visual Studio?

    • 1 Comments
    Visual Studio 2005 onwards, watch window has got a pseudo register for investigating the details about process token. So, all you have to do is, just start debugging and write "$user" in watch window, Its interesting to look at expanded view...
  • Jigar Mehta's Blog

    What is better way of keeping an eye on last win32 error while debugging?

    • 1 Comments
    I have found it necessary many times to keep an eye on last win32 error, while using Win32 APIs in code! (Calling GetLastError() after each API usage is not feasible solution!).. In Visual Studio they have provided a very good small feature. You can write...
  • Jigar Mehta's Blog

    2 years.. and counting!

    • 1 Comments
    Yes, today I finish 2 years working with my Dream company ! Its been great journey so far, and I guess company has given me everything that I ever dreamed for (except night job, but efforts are in motion to find some resolution to that! ) On development...
  • Jigar Mehta's Blog

    Notepad hangs while saving the file

    • 1 Comments
    From last few days, I have been experiencing very strange problem. Problem : When I create a new file in Notepad.exe and click on File+Save or alt+s, it literally hangs when showing the dialog (save dialog to give file name/path). If I wait for more than...
  • Jigar Mehta's Blog

    Thanks Ted Pattison

    • 1 Comments
    I have just finished reading "Programming Distributed Applications With COM & Microsoft Visual Basic 6.0". I really loved this book, though technologies explained in this book are somewhat older (we have new version for almost all technologies...
  • Jigar Mehta's Blog

    How to find out what all processes have loaded particular DLL..

    • 1 Comments
    I was searching for a way to find all the processes running right now, who has loaded particular DLL.. And found a really good command that shows really useful output.. You dont have to install anything on your windows, just go to command prompt and fire...
  • Jigar Mehta's Blog

    Loading/reloading symbols for just one module..

    • 1 Comments
    Many a times it happens that from within a debugging session, we need to load / reload symbols for a particular module (Talking in context of WinDbg).. e.g. we started debugging, set normal symbol path and down the line while debugging, came to know that...
  • Jigar Mehta's Blog

    How to debug startup code for a process which is started by some other executable!

    • 1 Comments
    Yet another debugging challenge.. The problem is, we want to debug the startup code for an application which is run by some other application! e.g. I will open a console (cmd.exe) which in turn opens calc.exe and I want to debug the initial calc.exe code...
  • Jigar Mehta's Blog

    Interesting windbg command-line parameters..

    • 1 Comments
    Here is a list of few interesting command-line parameters and their mapping to interactive commands in windbg.. PS: Taken from "Advanced Windows Debugging" (the best debugging book, I have ever come across!!).. Go grab your copy! Stay tuned..
Page 1 of 3 (71 items) 123