Prashant Vanarase.
August 21, 2009
Dear Friends,
Recently I encountered very common problem and surprisingly enough didn’t found solution on Google search, so I just thought of sharing my experience with you.
C# .Net First web site problem.
Environment:
Windows XP (SP2)
VS2008
I created my first website using C# .net and published the same. When I tried to access the same from [...]
Archive for the ‘Technical’ Category
C# .Net website not opening on Remote machine.
Posted in Technical on August 21, 2009 | Leave a Comment »
How to disable Windows Desktop Search explorer integration?
Posted in Technical on May 23, 2008 | Leave a Comment »
In RegEdit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows Desktop Search\DS and set “ShowStartSearchBand” to 0, and you’ll get the default search behavior back.
And while you’re at it and poking around in the registry, you might as well go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex and set FilterFilesWithUnknownExtensions to DWORD with the value of “1″ in order to enable full-text searching of files (like [...]
Update your legacy MFC apps in .NET
Posted in Technical on July 17, 2006 | Leave a Comment »
http://www.ddj.com/dept/windows/184416740
August 06, 2002
Using Managed Code from MFC
Chris Sells
Update your legacy MFC apps in .NET without rewiting your older code by using Managed C++. Managed C++ allows existing C++ code to bring in and expose managed types that are compatible with .NET.
CListBox with the Horizontal Scroll Bar.
Posted in Technical on June 23, 2006 | Leave a Comment »
COURTESY : www.codeguru.com
LINK : http://www.codeguru.com/cpp/controls/listbox/article.php/c4759/
For information purpose only.
Environment: Visual Studio, VC++ 6.0, MFC, W9x/Me, W2k, XP.
Overview
CListBox: This is a wrapper class for the ListBox control, and it's used in almost every application. There is a little "gotcha" to this [...]
How to change Default Debugger?
Posted in Technical on May 5, 2006 | 2 Comments »
Suppose you have Microsoft Visual Studio 6.0 installed on tour machine & afterwards you had installed .Net. In this case .Net becomes your default debugger. You can change the default debugger back to Microsoft Visual Studio 6.0 using following steps
Edit Following Registry key :-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug
"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" -p %ld -e %ld "
Resizing Edit control
Posted in Technical on April 27, 2006 | Leave a Comment »
Here is an example of How to resize Edit control :
CRect rect;
((CEdit*)GetDlgItem(IDC_EDIT))->GetClientRect(rect); ((CEdit*)GetDlgItem(IDC_EDIT))->MoveWindow(rect.left + 20,rect.top + 34 ,rect.Width() – 170,20);
MFC :How to mark EOF while writing text file?
Posted in Technical on April 4, 2006 | 1 Comment »
CstdioFile File;
::SetEndOfFile((HANDLE)File.m_hFile);
Unicode file VSS Check in problem.
Posted in Technical on March 20, 2006 | 1 Comment »
If we check in Unicode file on VSS & again check out the same file, then ‘\n’ in the file got replaced with ‘\r\n’
Reason :
In unicode every lines ends with 000D 000A
SourceSafe completed the \r\n sequences to: 0D 0A 00 0D 0A 00
Which in Unicode means: 0A0D 0D00 000A.
Solution :
This happens because Sourcesafe does [...]
Problem : Displaying Tooltip.
Posted in Technical on March 20, 2006 | Leave a Comment »
Recently while switching code from VC++ 6.0 to .NET, we have faced few problems
1) Displaying tooltip : Tooltip window was created but we are unable to display the same.
Solution :-
Just add following chunk of code into your header file.
#define WINVER 0×0400
#define _WIN32_WINDOWS 0×0400
#define _WIN32_WINNT 0×0400
#define _WIN32_IE 0×0500
Unrecognized database format Error.
Posted in Technical on March 20, 2006 | Leave a Comment »
Forcefully convert the version, if we moved to Access2000 from 97.
Otherwise while opening database file you will get following error : Unrecognized database format
AfxGetModuleState()->m_dwVersion = 0×0601;