Feeds:
Posts
Comments

Archive for the ‘Technical’ Category

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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.

Read Full Post »

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 [...]

Read Full Post »

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 "

Read Full Post »

Resizing Edit control

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);

Read Full Post »

CstdioFile File;
::SetEndOfFile((HANDLE)File.m_hFile);

Read Full Post »

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 [...]

Read Full Post »

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

Read Full Post »

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;

Read Full Post »