Http://www.cnblogs.com/clever101/archive/2010/04/14/1712207.htmlZhu JinchanSource: http://www.cnblogs.com/clever101/The LUA language is widely used in the gaming world for its excellent extensibility, simplicity, efficiency, and platform independence. It took some time today to learn how VC and LUA mixed development, to write a small routine, and to share this experience with you.First download the latest version of Lua in http://www.lua.org/ftp/: lua
VC + +, in the stack space to apply for storage of the structure or class object array space, if the array length is too large, resulting in the application of the stack space over or close to 1MB, the program can be compiled through, but can not be executed. Hitting debug mode will pop up as shown in the stack space out of Bounds error dialog box.As the following class defines:classcharacter{ Public: Character () {x0=0; Y0=0; X1=0; Y1=0; OffsetX=0; O
The VC ++ client reduces the package size and the vc size.Image compression:
1. The size of the background image is generally-kb. The solid color image can be reduced to 1-3 kb. The method can be reduced to more than 1 MB;2. ico is generally 256-256 kb, 16x16 to x, which can be reduced by about 50 kb after several sizes are subtracted. exe with. ico can be reduced;3. The. ico file is compiled into the exe
Vc type conversion functions, vc Functions
There are various types in windows c ++. in actual application, the types also need to be converted to each other. Therefore, conversions between common types are sorted and encapsulated into functions for reference only, please correct me if anything is wrong! **************************************** * ****************************** 1. function: toInteger descript
It is still difficult to configure ice in VC ++ 6.0. After many tests, the following configurations can be successfully compiled:
1. Project> Settings> C/C ++Configuration of categories1. c ++ LanguageSelect "allowed time type information (rtti )"2. CodeGenerationIn the debug version:Use run-time library = debug multithreadedDLLIn the release version:Use run-time library = multithreaded DLLIi. Project> Settings> Link1. GeneralObject/Library module: a
VC ++ failed to use recordset mspersist to load the XML saved by C # dataset, but it is okay to load the XML saved by VC recordset. Why is XML not universal?
After checking their respective formats, the content is indeed quite different. The XML generated by recordset stores data in data columns as node attributes, while the XML generated by dataset stores data as subnodes. In terms of size, recordset pr
Common commands for vc and vc operations
1. restart the computer:
ExitWindowsEx (EWX_REBOOT, 0 );
2. Shutdown:
ExitWindowsEx (EWX_SHUTDOWN, 0 );
3. logout:
ExitWindowsEx (EWX_LOGOFF, 0 );
4. screen lock:
LockWorkStation ();
5. Make the current program appear in the application bar:
ModifyStyleEx (WS_EX_APPWINDOW, WS_EX_TOOLWINDOW); // not displayed in the taskbar
6. Minimize programs to pallets;
Related API
VC ++ detailed description of Reading Notes-Chapter 6 menu, vc Reading Notes
1. MFC uses uppercase letters to identify the resource ID.
2. multiple resources are used in the program. When determining its ID number for the resource, in order to clearly distinguish the resource type, this principle is generally followed: add a letter to the end of the "ID" string to identify the resource type. For example, w
VC ++ modal dialog box and non-modal dialog box, vc Modal Dialog Box
There are two types of dialog boxes in MFC: Modal Dialog Box and non-modal dialog box.
The modal dialog box means that when it is displayed, the program will pause the execution until the modal dialog box is closed, and other tasks in the program can continue to be executed. A non-modal dialog box allows you to execute other tasks in the p
VC ++ Dialog Box program response Keyboard Message Processing Method (very important), vc Processing Method
The application based on the MFC dialog box cannot respond to the pressing messages and hotkeys. The TranslateAccelerator function is removed from the message loop of the CDialog class, so it cannot respond to hot keys. At the same time, there may be many widgets in the dialog box, by default, these s
How does VC ++ maximize or minimize forms? vc forms
The ShowWindow function is used to maximize the minimum value.
ShowWindow (SW_SHOWMINIMIZED); // minimize ShowWindow (resize); // maximize ShowWindow (SW_RESTORE); // restore ------- PostMessage (hwnd, WM_SYSCOMMAND, SC _MINIMIZE, 0); SC _MAXIMIZE is maximized.
Usage:
BOOL ShowWindow (int nCmdShow); The nCmdShow parameter specifies how CWnd will be display
How to add a shortcut menu for vc ++ and a shortcut menu for vc
1. Create a new project
Ii. Edit menu Resources
1. Press Ctrl + R to add a Menu. Double-click the Menu icon. 2. Edit the Menu in the Menu editor.
4. Add code (red part)
Void CCMenuView: OnUpdateShow (CCmdUI * pCmdUI) {// TODO: Add your command update UI handler code hereMessageBox ("right-click the pop-up menu to test! ");} Void CCMenuView: On
Toolbar is inevitable for VC development. When there is no artist, we can only do it ourselves most of the time.
The first method is to tile fireworks/photoshop. Currently, most image resources are png images with transparent backgrounds. Although the fireworks tool can directly tile multiple images to generate a toolbar image
Appendix:
Note: This program requires the DotNet Runtime Library (you can directly run the installed Runtime Librar
Can you use sizeof? (VC article)Source: http://dev.csdn.net/Develop/article/42/42446.shtmThis article mainly includes two parts, the first part focuses on VC, how to use sizeof to find the size of the structure, as well as easy to appear problems, and to solve the problem of the method, the second part of the VC sizeof the main usage.
1, sizeof application in the
1. VC is not as popular as it is imagined, and there are exaggerated elements. I don't know about it abroad. I only talk about China.
For several years in a row, VC is definitely the main force in school libraries, Xinhua Bookstore, and XX training courses.
Many universities are either still in the turboc era when they offer C/C ++ courses, or even in the VC ++ e
ATL GUI programming (preface)
ATL GUI programming (2)
ATL GUI programming (1)
Atl/com Simple Project
ATL com and ADO
Hybrid programming of VC + + and MATLAB and its application
Matlab and VC + + mixed programming to achieve one-dimensional wavelet multi-scale decomposition.
An approach to creating ActiveX control in ATL based on VC + +
Proficient
The sky was so bright that I couldn't sleep.
How does a start-up go from 0 to 1? In many media, we often see VC talk, summed up the view of the winners: Market, Team, innovation, that is to measure whether an enterprise can be worth the investment of the three elements, or to measure whether one can move to the three elements of success. This is wrong, is misleading the entrepreneur,
To do one thing successfully is to need three elements, but not mark
Under the Windows system, you often encounter the problem: Click on vc++6.0 "Open" under the "file" can not operate, and can not add files to the project, the following details about the solution?Tools/Materials
vc++6.0
Repair Tool: FileTool.exe
Method/Step
1Download Filetool. zip package, unzip to get FileTool.exe, double-click FileTool.exe file again decompression, specify the decom
Some tips for using VC + + 6.0
-Always remember to save as often as you can when using any program (whether it's Word or VC + + 6.0 or playing a game). Trust me, one crash is enough to make you mad.-Compile (Compile) (the first item of the Build menu) before writing the program (even when it is still an empty file), and choose Yes if you have a dialog box to ask.So, write the program
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.