I would like to set up WinMerge as external Diff and Merge Tools after setting the source control plug-in (you have to install WinMerge first): Visual Studio -> TOOLS -> Options -> Expand the “Source Control” Node Double click on … Continue reading
Category Archives: Windows
Remove floating error
Gallery
We need to read IEEE 754 floating point standard to understand floating point error. I wrote a program to add 0.01 hundred time and result should be 1.0. But, in reality double data variable will have 1.0000000000000007 as value. Give … Continue reading
Change foreground & background color of text using Visual Studio C++
Gallery
#include <iostream>#include <windows.h> using namespace std; int main(){ HANDLE hConsole; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); for(int i = 0; i < 255; i ++) { SetConsoleTextAttribute(hConsole, i); cout<<i<<“\t This is testing string…”<<endl; } return 0;}
Incremental Linking (LNK1123) error in VS2010 while building project
Gallery
Question: What is Incremental Linking in Visual Studio 2010? Answer: Please study given link to understand Incremental Linking in visual studio 2010.[Link] http://msdn.microsoft.com/en-us/library/4khtbfyf(v=vs.100).aspx Question: How error looks like while building project on visual studio? Answer: Build error will be looks … Continue reading
Useful FFmpeg library commands
Gallery
Here are two common and useful commands using FFmpeg library. · Frame extraction from video> ffmpeg -i ansoo_lake.mp4 -y -ss 5 -an -f image2 ansoo_lake%03d.jpg · Audio extraction from video> ffmpeg -i ansoo_lake.mp4 -f mp3 -ab 192000 -vn ansoo_lake.mp3
Prompt windows authentication on IE
Gallery
Windows Integrated Authentication mode is one of the idea authentication solution, due to central control and management point of view. Two days back, I was working on a web application has Windows Integrated Authentication mode for authentication. My system user … Continue reading
How to post YouTube video with some starting point on WordPress?
Gallery
I have founded one and only best blogging tool Windows Live Writer. It is too easy to configure and publish post on the blog. Few days back, I start blogging again after a long time. My objective was to help … Continue reading
How to install USB Mass Storage Driver?
Gallery
I know after Windows XP release Universal USB Storage Driver is not an issue for any USB. Two days back, I was facing USB detection issue. My Computer was not recognizing my portable hard disk either. Finally on Sunday, I … Continue reading
How to read log4net configurations from .config file in Console Application?
Gallery
You can learn easily by Google, ‘How to use .config file in log4net?’. My project has two different type of logging file. I want to centralize logging location configurable. Following code will help you to read log4net “File Appender” to … Continue reading
Online TCP/IP Guide Book
Gallery
Outlook 2007: Minimize to System Tray
Gallery
1. Right-click on the Outlook icon in the Notification Area, next to the clock. 2. In the resulting menu, select Hide When Minimized.
How to use excel sheet as DataBase with CSharp?
Gallery
Sample code can help you to use excel sheet as database. private static OleDbDataReader myReader; private static DBManager dbObject; public static void readDatabaseDate( string filePath, string selectQuery ) { String conString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + filePath + … Continue reading
How make debugging levels and enable/disable in C language?
Gallery
Debugging is always pay important role in software development life cycle. You can make your life easy with the help of macros. With the help of macros you can enable and disable debugging and can define debugging level. /** * … Continue reading
How to convert integer into character array in C language?
Gallery
Although windows have “itoa” function but I did not find it in Linux. That time, I did Google and found a beautiful function for conversion of integer value into character string. Sample code is given below, #include <stdio.h> void main() … Continue reading
How we can use malloc, free, new and delete functionality in DDK?
Gallery
Special thanks to OSROnline group to publish a great article on use of malloc, free, new and delete function in DDK. Article link has given below, Global Relief Effort – C++ Runtime Support for the NT DDK The NT Insider, … Continue reading
How to generate new copy of NDIS_PACKET?
Gallery
Given code is working perfect to generate new copy of NDIS_PACKET, NDIS_STATUS CreateNewSendNdisPacket(IN NDIS_HANDLE SendPacketPoolHandle, IN PNDIS_PACKET pkt_old, IN PGUINT8 pkt_raw, IN GUINT32 pkt_len, OUT PNDIS_PACKET * pkt_new) { NDIS_STATUS Status; NdisDprAllocatePacket(&Status, pkt_new, SendPacketPoolHandle); … Continue reading
How to control system reboot after crash?
Gallery
This setting will enables for you to control automatic rebooting of the system after the crash. After the crash, you must be able to check the reason of the crash and for that, the system should not reboot. Therefore, it … Continue reading
Helpful forums for Microsoft Device Driver
Gallery
While working on Microsoft Device Driver domain, I found following most active and helpful forums, 1) OSR-Online: http://www.osronline.com You can configure OSR-Online forum on email client and given client will be helpful for you. http://www.osronline.com/page.cfm?name=NewsReaderInfo 2) Microsoft NNTP Server: msnews.microsoft.com … Continue reading
How to solve Command line error D8004?
Gallery
I faced given compilation error after convert “Komodia Project” from “VC6” to “VS2K5”. Error 1 Command line error D8004 : ‘/D’ requires an argument cl Solution: Remove “/D” from “Additional options” (Example image is given below). Path of “Additional options” … Continue reading
How to build DDK source using vs2k5?
Gallery
Special thanks to Hollis Technology Solution to write script for build DDK source with vs2k5. [link] http://www.hollistech.com/Resources/ddkbuild/ddkbuild3_14.zip Following Environment variables need to use DDKBuild v3.14 script with vs2k5. I am using WDK 6001.18002. Don’t open vs2k5 before do following configuration. … Continue reading
How to install Subversion on Eclipse Ganymede?
Gallery
I always face one problem on fresh Eclipse Ganymede installation, How I can install subversion on it? You can install Subversion on Eclipse Ganymede, in two step, 1. Install SVN Team Provider from http://download.eclipse.org/technology/subversive/0.7/update-site/ 2. After installing SVN Team Provider … Continue reading
How to UnInstall/Repair MSN 2009?
For uninstall/repair Windows Live Messenger 2009, you have to use "Windows Live Essentials" from “Add/Remove Programs”. Image will help you a lot.