Sunday, May 17, 2009

Converting CString to double in MFC

You can use the following snippet to convert CString to double in MFC:

#include "stdlib.h"

double func(CString pValue)
wchar_t* stopString;
double num = wcstod(pValue, &stopString);
return num;

Tuesday, April 07, 2009

View Native DLL Dependencies

If you develop a native DLL using Visual Studio 2005 SP1, you may need to know the dependencies of this DLL in order to ship it with your application, you can use the Visual Studio utility: depends.exe


  1. Run Visual Studio Command Prompt
  2. type depends.exe and press enter.
  3. Click file->open to choose your DLL.
  4. View the dependencies in the left side tree view.