This is a discussion on Visual C++ Tips & Tricks within the C and C++ Programming forums, part of the Software Development category; Rotating the Image in GDI Hi... Here is the tricks for rotating the Image in GDI+. This code is taken ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#31
| |||
| |||
| Rotating the Image in GDI Hi... Here is the tricks for rotating the Image in GDI+. This code is taken from the Window SDK GDI+ help document. This code is simple and very useful. //------------------- code ------------------..... bye Thanks
__________________ Karpagarajan. R Necessity is the mother of invention |
|
#32
| |||
| |||
| Hi Visual C++ friends, Here is the another tips for getting the x,y cordination while mouse move This is why i gave as tips, it will help to get the point structure from the lparam. When i used ATL control, The mouse move message handler gave the function called LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)in that i couldnt know how to get the (x,y) mouse point the paramters in this function called LPARAM is used to hold the mouse (x,y) coordination. To typecast the LPARAM structure into point structure, use the following code CPoint pint(lParam);hope the above information will help u. bye ..... Thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Booom : 08-09-2007 at 05:42 AM. |
|
#33
| |||
| |||
| Hi VC++ friends Anybody tell me how to assign a string value to the string variable which contains double quotes. Say for example CString mText=_T("My name is "Kabil" . ");? Here is the tips for that. For that you have to use escape sequence( \ ) CString mText=_T("My name is \"Kabil\" . ");bye thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention |
|
#34
| |||
| |||
| Hi ... this tips is good one... Using ATL in visual c++ I have received one error while implementing the ATL Objectsafty script "error C2065: 'm_dwCurrentSafety' : undeclared identifier"I had struggled with clearing this error. After some internet search, i have found that it was because of not including the ATL IObjectSafetyImpl statement in ATL class declaration. After adding the following code, i didnt get the error. public IObjectSafetyImpl<CNewUpl, Hope it will help u to develop the error free controls in vc++ ..... bye thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Booom : 08-09-2007 at 05:43 AM. |
|
#35
| |||
| |||
| Hi Guys, Here this is a very useful tip. This is to call the VB DLL function in Visual C++ module. DO the following code // Add the following code in the StdAfx.husing namespace TestVBdll; // Add the following code in where you want to call the VB dll function....... bye thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Booom : 08-09-2007 at 05:43 AM. |
|
#36
| |||
| |||
| Hi, here is the tips for copying the screen designs in one project to another project in visual c++. Steps 1. Open the destination project workspaceNow you will have the screen design bye thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Booom : 08-09-2007 at 05:43 AM. |
|
#37
| |||
| |||
| Hi friends, How can I shutdown the system programmatically? The appropriately named ExitWindows() and ExitWindowsEx() functions do the trick. On Win9x, using them is pretty straightforward. On NT, however, the calling process must enable the SE_SHUTDOWN_NAME privilege explicitly before calling either of these functions. How to do this? by using AdjustTokenPrivileges(). You'll find examples on both issues below. Also, on NT you'll find a very handy function called InitiateSystemShutdown(). It can basically do the same as ExitWindows(), except it allows you to shutdown remote systems. Remember that to do this, you need to have the SE_REMOTE_SHUTDOWN privilege granted on the remote computer, though. bye thanks
__________________ Karpagarajan. R Necessity is the mother of invention |
|
#38
| |||
| |||
| Visual C++ Modifiers Modifier Meaning \b backspacethanks bye
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Booom : 08-09-2007 at 05:43 AM. |
|
#39
| |||
| |||
| GDI Font in Visual C++ Hi buddies, This tips is about fonts in GDI+(very useful). The System.Drawing.Font class represents a font type. For example, Font fnt = new Font("Arial", 14); Creates a font type verdana with size 14. You can also use a FontStyle as an argument when constructing a font. Font redStyle = new Font("Tahoma", 20, FontStyle.Bold|FontStyle.Italic|FontStyle.Underlin e);The FontStyle Enumeration defines these styles. bye thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention Last edited by Booom : 08-09-2007 at 05:44 AM. |
|
#40
| |||
| |||
| Using Region in GDI+ programming.... Hi friends here is the sample code for GDI+ region in VC++(Good one) Pen myPen(Color(255, 0, 0, 0), 1);bye thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C# .Net Tips & Tricks | oxygen | C# Programming | 85 | 01-08-2009 01:25 AM |
| SAP Tips & Tricks | leoraja8 | Operating Systems | 0 | 03-29-2008 01:11 AM |
| Visual Studio Tips & Tricks | SaravananJ | C# Programming | 197 | 12-20-2007 04:25 AM |
| PHP Tips and Tricks | Sabari | PHP Programming | 20 | 12-18-2007 06:26 AM |
| .NET tricks & Tips | Karpagarajan | VB.NET Programming | 1 | 04-23-2007 09:17 AM |
Our Partners |