C_and_CPP 版 (精华区)
发信人: SMS (短信服务系统), 信区: C_and_CPP
标 题: 要是能把Guru的FAQ看完那就好了
发信站: 哈工大紫丁香 (2004年03月02日19:30:08 星期二), 站内信件
俨然可以成为200级以上的了
赫赫
http://www.codeguru.com/forum/showthread.php?s=&threadid=231055
CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ FAQs > FAQ
index
Last Thread Next Thread
Author Thread
Yves M
Super Moderator
Registered: Aug 2002
Location: Madrid
Posts: 3032
FAQ index
C++ language FAQ
General
What are good books about C++ ?
Preprocessor
How to avoid problems with #include files
Predefined Macros
Why is there no .h in the include directive ?
Memory management
difference between delete and delete[]
Deleting a char * makes my program crash
Stack overflow
Constant pointers and references
Why pass parameters as const references ?
Operators
How to overload postfix ++ and -- operators
Why should I use ++i instead of i++ ?
Exception handling
The wrong catch statement catches an exception! Why?
Structures
How do I write a structure to a file?
Why returns 'sizeof()' a bigger size than the member variables actually need?
Casting
What are c-style casts, static_cast, dynamic_cast etc ?
Callbacks
How to use class member functions as callbacks?
Templates
Why do I get unresolved externals with my template code?
Polymorphism
What is polymorphism?
How to use virtual functions?
Random numbers
Why does my random number generator always return the same set of numbers?
What are good random number generators?
Strings
What types of strings are there?
What is the difference between \n and \r\n ?
How to convert between ANSI and UNICODE strings?
How to use CString in non-MFC applications?
How to assign or compare strings?
What is the difference between CString and std::string? Can I mix them?
How to get the hex representation of a ... into a string?
How to convert between a CString and a BSTR?
How to convert between CString and std::string?
How to convert a char* to CString?
How to convert a CString to a char*?
How to convert a numeric type to a string?
How to convert a string into a numeric type?
__________________
Get this small utility to do basic syntax highlighting in vBulletin forums
(like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Last edited by Andreas Masur on 02-29-2004 at 10:35 AM
Report this post to a moderator | IP: Logged
02-13-2003 06:30 PM
Yves M
Super Moderator
Registered: Aug 2002
Location: Madrid
Posts: 3032
STL FAQ
STL FAQ
General
How to declare and use two-dimensional arrays?
How to remove elements of a particular value from a container?
Compilation Warnings in MSVC
Advanced
How do I define my own allocator for use in STL containers?
STL&MFC:
Sorting CArray (or its derived classes)
__________________
Get this small utility to do basic syntax highlighting in vBulletin forums
(like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Last edited by Yves M on 02-09-2004 at 05:22 PM
Report this post to a moderator | IP: Logged
02-13-2003 06:33 PM
Yves M
Super Moderator
Registered: Aug 2002
Location: Madrid
Posts: 3032
Windows programming
Windows programming
General:
My program works in debug mode, but fails in release mode. Why?
Doc/View: A useful table on how to obtain a pointer to various objects
Dialogs:
How to hide/show/maximize/minimize a dialog?
How to add a minimize/maximize button into your dialog?
Dialogs: How to enable/disable the 'Close' button of your dialog at run-time?
How to set/retrieve the values of various controls?
How to start your Dialog Application in hidden mode?
How to set the dialog window always on top?
How to create a non-rectangular dialog box?
How to drag a dialog by grabbing any point?
How to disable/change the behaviour of the <Enter> key for a dialog box?
How to enhance a dialog-based application with Menu, Toolbar...?
Application:
How can I limit my application to one instance?
How to get the applications name?
How to set the current working directory?
How to get the current working directory?
How to get the application directory?
How to get the system directory?
How to get the windows directory?
File System:
How to count the files within a directory and its subdirectories?
How to search for files in a directory and its subdirectories?
How to delete a directory and its subdirectories?
How to get information about a partition?
How to get the available logical partitions on my PC?
How can I check the free space on a partition?
Processes
How can I start a process ?
How can I kill a process ?
How can I wait until a process ends ?
Threads
How to create a worker thread?
How to end a thread?
How to use member functions as thread functions?
How to access UI elements from a thread in MFC?
DLLs:
How to build a DLL to be used from another programming language?
How to a DLL and have the exported functions called via LoadLibrary() and
GetProcAddress()?
How to build a resource-only DLL?
Winsock:
How to get the local hostname?
How to get the local IP address(es)?
How to set a socket option?
Registry:
How can I access the registry?
How can I read data from the registry?
How can I write data to the registry?
List Control:
How to select a full row in a list control?
How to add a subitem in a list control?
How to change the colors in a list control?
How to select multiple items in a list control?
How to use a context menu in a list control?
Tree Control:
How to disable an item?
How to detect which part of an item the user clicked on (label, icon,
checkbox etc)?
How to add icons to a tree control?
How to add checkboxes to a tree control?
How to expand/collapse a branch?
How to use GetItemData() and SetItemData()?
Printing:
Printer does not print bitmap. Why?
Last edited by Andreas Masur on 02-20-2004 at 10:55 PM
Report this post to a moderator | IP: Logged
02-13-2003 06:35 PM
--
你看人黄贯中的F和弦按的多好
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 218.9.123.103]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.692毫秒