| | ||||
| About GDI+ int nRet = CWinApp::Run(); | | |||
| 8/September/2008 | | |||
| | ||||
Sunday, September 7, 2008
Working with GDI+
Posted by
Sen SD
at
11:09 PM
0
comments
Labels: Microsoft Technologies
Monday, July 7, 2008
Creating / Editing Icon using Visual Studio
Today Vivek created a C# windows application and he created a new ICON using visual studio. He applied same icon to the Form ,but after running the application we can’t see any change. I tried different scenario ,but no chance. So I decided to study about Icon format. |
Icon Format |
Creating / Editing Icon using Visual Studio |
Following Figure shows different New Image Type dialog boxes. |
Posted by
Sen SD
at
6:07 AM
0
comments
Labels: Microsoft Technologies
Visual C++ 2008 Feature Pack Released : MFC 9.0.30411
Overview Feature pack is available for download at http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-445F-A7B4-448B326C48E7&displaylang=en.] |
I) The MFC Feature Pack library supports new features in the following areas: · Office Ribbon style interface · Office 2007, Office 2003 and Office XP look and feel · Modern Visual Studio-style docking toolbars and panes · Fully customizable toolbars and menus · A rich set of advanced GUI controls · Advanced MDI tabs and groups · And much more! Click http://msdn.microsoft.com/en-us/library/bb984556.aspx II) This feature pack also includes an implementation of TR1*. · Smart pointers · Regular expression parsing · New containers (tuple, array, unordered set, etc) · Sophisticated random number generators · Polymorphic function wrappers · Type traits · And more click http://msdn2.microsoft.com/en-us/library/bb982198.aspx |
More about UI Design Guidelines and Licensing : http://SenAPI.4shared.com/ |
*Technical Report 1 (TR1) is a draft document specifying additions to the C++ Standard Library such as regular expressions, smart pointers, hash tables, and random number generators. TR1 is not yet standardized, but likely will be part of the next official standard mostly as it stands now. Much of it is available in Boost. |
Posted by
Sen SD
at
3:50 AM
30
comments
Labels: Microsoft Technologies
Wednesday, July 2, 2008
How to Show a wait cursor - VC++, C#
| When my project mate(Omar) asked me about wait curser ( for search process ), I suddenly started implementing using LoadCursor and SetCursor. In main frame I loaded wait curser. BOOL CMainFrame::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) Finally I felt very hard to manage this, and thought about to build a custom singleton class which can be called from anywhere. After a short time Omar got some information about CWaintCursor, and I stopped writing custom class. I got following information from MSDN: |
| Method1:Using CWaitCursor class |
| Provides a one-line way to show a wait cursor, which is usually displayed as an hourglass, while you're doing a lengthy operation.
void SomeLengthyProcess() |
| Method2: Using CCmdTarget class |
| void CwaitTestDlg::SomeLengthyProcess() |
| Method3: Using CWinApp::DoWaitCursor |
| virtual void DoWaitCursor( int nCode ); |
| Show a wait cursor in C# |
| Example1: Using UseWaitCursor property in the System.Windows.Forms.Control class private void SomeLengthyProcess()//not working.
|
Posted by
Sen SD
at
7:25 AM
51
comments
Labels: Microsoft Technologies
Sunday, March 9, 2008
How to create Auto Increment column in SQL Server.
Problem with auto increment. · we have no idea about what is the next ID. · Auto Increment value never reset to 1 ,after deleting all rows from a table.[ but we can reset] Resetting current identity value
Inserting Explicit Values into an Identity Column | |||||
10/March/2008 | |||||
Posted by
Sen SD
at
9:52 PM
1 comments
Labels: Microsoft Technologies
Thursday, December 20, 2007
Handling Errors and Messages in Applications SQL
| MS SQL |
| The Database Engine can return information to the caller in one of two ways: |
| SqlClient Error Handling |
| The SqlClient managed provider throws an SqlException exception when an unhandled error is raised by the SQL Server Database Engine. Through the SqlException class, applications can retrieve information about errors produced on the server side, including error number, error message, error severity, and other exception context information. For processing warnings or informational messages sent by the SQL Server Database Engine, applications can create a SqlInfoMessageEventHandler delegate to listen for the InfoMessage event on the SqlConnection class. Similar to the exception case, message context information such as severity and state are passed as arguments to the callback. |
| Raising Error message – stored procedure Example |
| ALTER PROCEDURE dbo.SenTest RETURN 0 |
Posted by
Sen SD
at
6:25 AM
0
comments
Labels: Microsoft Technologies
Monday, November 19, 2007
Register ActiveX Files Using the Mouse ..reg
| Register ActiveX Files Using the Mouse .reg |
| Do you find yourself constantly registering and unregistering ActiveX .exe, .dll, .ocx, or .olb files? This script allows you to do so with just a mouse click. Here's how to use it: |
| Open Notepad. Paste the following code into Notepad: |
| REGEDIT4 [HKEY_CLASSES_ROOT\.exe] @="exefile" [HKEY_CLASSES_ROOT\.dll] @="dllfile" [HKEY_CLASSES_ROOT\.ocx] @="ocxfile" [HKEY_CLASSES_ROOT\.olb] @="olbfile" [HKEY_CLASSES_ROOT\exefile\shell\Register\command] @="%1 /register" [HKEY_CLASSES_ROOT\dllfile\shell\Register\command] @="regsvr32.exe %1" [HKEY_CLASSES_ROOT\ocxfile\shell\Register\command] @="regsvr32.exe %1" [HKEY_CLASSES_ROOT\olbfile\shell\Register\command] @="regsvr32.exe %1" [HKEY_CLASSES_ROOT\dllfile\shell\Silent Register\command] @="regsvr32.exe /s %1" [HKEY_CLASSES_ROOT\ocxfile\shell\Silent Register\command] @="regsvr32.exe /s %1" [HKEY_CLASSES_ROOT\olbfile\shell\Silent Register\command] @="regsvr32.exe /s %1" [HKEY_CLASSES_ROOT\exefile\shell\UnRegister\command] @="%1 /unregister" [HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command] @="regsvr32.exe /u %1" [HKEY_CLASSES_ROOT\ocxfile\shell\UnRegister\command] @="regsvr32.exe /u %1" [HKEY_CLASSES_ROOT\olbfile\shell\UnRegister\command] @="regsvr32.exe /u %1" [HKEY_CLASSES_ROOT\dllfile\shell\Silent UnRegister\command] @="regsvr32.exe /u /s %1" [HKEY_CLASSES_ROOT\ocxfile\shell\Silent UnRegister\command] @="regsvr32.exe /u /s %1" [HKEY_CLASSES_ROOT\olbfile\shell\Silent UnRegister\command] @="regsvr32.exe /u /s %1" |
| Save the file as register.reg. |
| Right click on register.reg and select Merge from the context menu. Alternatively, you can run regedit and import the file |
| After merging the script, you should be able to right click on any .exe, .dll, .ocx, or .olb file and see a list of register and unregister options. |
| Note: Make sure that regsvr32.exe is in your path or the menu commands will fail. |
| Sen Paravur |
Posted by
Sen SD
at
8:30 PM
1 comments
Labels: Microsoft Technologies
Wednesday, November 7, 2007
Why we can't create con folder?
Why we can’t create con folder?
we cant create a folder(or file) named CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4,
COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9.
| "CON" is for "CONSOLE", which is... the keyboard. |
| Example: Command using CON |
| The following COPY command copies what you type at the keyboard to the OUTPUT.TXT file: After you type this command and press ENTER, MS-DOS copies everything you type to the file OUTPUT.TXT. When you are finished typing, press CTRL+Z to indicate that you want to end the file. The CTRL+Z character will appear on the screen as "Z". You can also end a COPY CON command by pressing the F6 key. When you press F6, it generates the CTRL+Z character, which appears on the screen as Z. copy con lpt1 |
| How to create a folder named CON ? |
| command prompt type mkdir \\.\c:\con will create a folder CON in c:\ |
Posted by
Sen SD
at
9:01 PM
0
comments
Labels: Microsoft Technologies
Wednesday, October 31, 2007
Path Combine Fucction C# and VC++
| Path.Combine Function C# |
| public static string Combine ( string path1, string path2 ) |
| PathCombine Function VC++ |
| LPTSTR PathCombine( LPTSTR lpszDest LPCTSTR lpszDir, LPCTSTR lpszFile ); |
Posted by
Sen SD
at
6:00 AM
0
comments
Labels: Microsoft Technologies
Monday, October 22, 2007
How to disable WebDAV for IIS 5.0
1.Start Registry Editor (Regedt32.exe).
2.Locate and click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters
3.On the Edit menu, click Add Value, and then add the following registry value:
Value name: DisableWebDAVData type: DWORDValue data: 1
4.Restart IIS. This change does not take effect until the IIS service or the server is restarted.
Posted by
Sen SD
at
11:50 PM
0
comments
Labels: Microsoft Technologies
Sunday, October 21, 2007
IIS 7 and ASP.NET
ASP.NET and IIS 7.0 Integration
IIS 7.0 is one of the products that my team is shipping later this year that I'm most excited about. It is the most significant release of our web-server that we've done since IIS 1.0, and introduces a huge number of improvements for both administrators and developers.
In previous versions of IIS, developers had to write ISAPI extensions/filters to extend the server. In addition to being a royal pain to write, ISAPIs were also limited in how they plugged into the server and in what they allowed developers to customize. For example, you can't implement URL Rewriting code within an ISAPI Extension (note: ASP.NET is implemented as an ISAPI extension). And you end up tying up the I/O threads of the web-server if you write long-running code as an ISAPI Filter (which is why we didn't enable managed code to run in the filter execution phase of a request).
One of the major architectural changes we made to the core IIS processing engine with IIS7 was to enable much, much richer extensibility via a new modular request pipeline architecture. You can now write code anywhere within the lifetime of any HTTP request by registering an HTTP Extensibility Module with the web-server. These extensibility modules can be written using either native C++ code or .NET managed code (you can use the existing ASP.NET System.Web.IHttpModule interface to implement this).
All "built-in" IIS7 functionality (authentication, authorization, static file serving, directory listing support, classic ASP, logging, etc) is now implemented using this public modular pipeline API. This means you can optionally remove any of these IIS7 "built-in" features and replace/extend them with your own implementation.
ASP.NET on IIS 7.0 has itself been changed from being implemented as an ISAPI to instead plug in directly as modules within the IIS7 pipeline:
for more information : http://msdn.microsoft.com/msdnmag/issues/07/03/IIS7/
Posted by
Sen SD
at
11:03 PM
0
comments
Labels: Microsoft Technologies