Search This Blog

Monday, December 16, 2013

C++ migrating to Visual Studio 2012/13 from VC6

Read here
Lessons learned migrating to Visual Studio 2012 and .NET 4.5 - CodeProject:

and here - about CDatabase and CRecordset issue:
http://stackoverflow.com/questions/12714310/crecordsetsnapshot-doesnt-work-in-vs2012-anymore-whats-the-alternative
One of the major changes in the ODBC that MS did for MFC is changing the cursor type while opening DB connection.
They change it from SQL_CUR_USE_ODBC to be SQL_CUR_USE_DRIVER


It seems that while accessing DB2 db via MFC/odbc there is no runtime error, when I used  MS default implementation at vs2013(e.g. SQL_CUR_USE_DRIVER), when accessing MSSQL via odbc there are runtime error "feature not implemnted" while trying to update sanpshot CRecordset.

the fix at the moment is as explain in the above link , override the CDatabase OpenEx and use the "old" cursor type SQL_CUR_USE_ODBC.


in case of huge obj files follow this:
Avoid overriding from Template class , its better to use Proxy pattern , and gave it as a data member.



ATL and MFC changes and fixes in Visual Studio 2013

Tuesday, November 26, 2013

Identifying Memory Leak in User App

Identifying Memory Leak With Process Explorer And Windbg - Alik Levin's - Site Home - MSDN Blogs:

http://www.codeproject.com/Articles/31382/Memory-Leak-Detection-Using-Windbg


another one:
The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or fragmentation, and crashes in any user-mode process. The tool includes additional debugging scripts focused on Internet Information Services (IIS) applications, web data access components, COM+ and related Microsoft technologies. http://www.microsoft.com/en-gb/download/details.aspx?id=26798

Create Windows Dump File - How to create a user-mode process dump file in Windows Vista and in Windows 7  && How to use the Userdump.exe tool to create a dump file


Monday, November 4, 2013

Using the GNU C/C++ compiler on AIX

very good article to people who want to port their C++ code that compiled under XLC compiler to work and compile via gcc/g++.

Using the GNU C/C++ compiler on AIX:

from internal test ...( not scientific tests)- its seems like the test program i used for my performence testing run faster when compile with g++  !!!!

FYI
Yaniv Tzanany