CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    C++ FAQ sections






    General


    1. What are good books about C++?
    2. How do I convert between big-endian and little-endian values?
    3. What do 'ntohl()' and 'htonl()' actually do?
    4. How to declare and use two-dimensional arrays?
    5. What are different number representations?
    6. How is floating point representated?
    7. How to deal with references?
    8. What are the principles of Object-Oriented Design?
    9. What are the differences between inline functions and macros?
    10. What is the 'this' pointer?
    11. What are different methods to pass parameters to functions?
    12. What are C++ Headers?
    13. How to minimise mutual dependencies?
    14. What are different methods to access identifiers from a namespace?


    Preprocessor


    1. How to avoid problems with include files?
    2. What are '__FILE__' and '__LINE__'?
    3. What is the purpose of include guards?


    Classes


    1. What is the initialization list and why should I use it?
    2. What members of a class are implicitly defined?
    3. What are the differences between classes and structs?
    4. Does implicitly-defined copy constructor bitwise copy?
    5. Which are the differences between 'struct' and 'class'?


    Memory Management


    1. What is the difference between 'delete' and 'delete[]'?
    2. How to release memory for an array of pointers?
    3. Why does deleting a pointer cause my program to crash?
    4. Why does declaring an array cause my program to crash?
    5. What is the difference between 'const char*' and 'char*const'?
    6. What are the differences between constant objects?
    7. What is the purpose of a constant reference?
    8. What is the difference between malloc/free and new/delete?


    Operator


    1. How to overload postfix increment and decrement operators?
    2. Why should I use '++i' instead of 'i++'?
    3. How to deal with operator overloading?


    Exception Handling


    1. The wrong catch statement catches an exception! Why?


    Structure


    1. How do I write a structure to a file?
    2. Why returns 'sizeof()' a bigger size than the members actually need?


    Casting


    1. What are the C++ casting operators?


    Callback


    1. How to use class member functions as callbacks?


    Template


    1. Why do I get unresolved externals with my template code?


    Polymorphism


    1. What is polymorphism?
    2. How to use virtual functions?


    Design Pattern


    1. What is a Design Pattern?
    2. What is a Singleton class?


    Profiling


    1. How do I determine the speed of a particular function or operation?
    2. Which is faster: <...> or [...]?
    3. How can I optimize my code?


    Random Number


    1. Why does my random number generator always return the same set?
    2. What are good random number generators?


    String


    1. What types of strings are there?
    2. What is the difference between '\n' and '\r\n'?
    3. How to use 'CString' in non-MFC applications?
    4. How to assign or compare strings?
    5. What is the difference between 'CString' and 'std::string'?
    6. How to convert between 'CString' and 'std::string'?
    7. How to convert a numeric type to a string?
    8. How to convert a string into a numeric type?



    Last edited by ovidiucucu; October 6th, 2022 at 02:24 AM. Reason: some fixes

  2. #2
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

  3. #3
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Windows SDK FAQ Sections





    General


    1. How to Get Hard Disk Serial Number?
    2. How to get the processor frequency?
    3. How to correctly use GetLastError?
    4. How to get the reason for a failure of a SDK function?
    5. What is the difference between 'BOOL' and 'bool'?
    6. How to register Windows Common Controls in a Win32 application?
    7. Which Windows API functions are faster, ANSI or UNICODE?


    Window Types


    1. What is a child window?
    2. What is a top-level window?
    3. What is an owned window?
    4. Which are the differences between child and owned windows?
    5. What is an overlapped window?
    6. What is a pop-up window?


    Application


    1. How to get the application name?
    2. How to set the current working directory?
    3. How to get the current working directory?
    4. How to get the application directory?
    5. How to retrieve the version information of my application?
    6. How to get the system directory?
    7. How to get the windows directory?


    File System


    1. How to check for the existance of a directory/file?
    2. How to count files within a directory and subdirectories?
    3. How to search for files in a directory and subdirectories?
    4. How to delete a directory and subdirectories?
    5. How to get information about a partition?
    6. How to get the available logical partitions on my PC?
    7. How can I check the free space on a partition?
    8. How to open a folder?


    Processes


    1. How to enumerate processes?
    2. How can I start a process?
    3. How can I kill a process?
    4. How can I wait until a process ends?


    Threads


    1. Where can I find references on Multithreading?
    2. How to create a worker thread?
    3. How to end a thread?
    4. How to use member functions as thread functions?
    5. How to check if a thread is still active?


    DLL


    1. How to build a resource-only DLL?


    Debugging


    1. How to manage memory leaks?
    2. How to use 'ASSERT' and deal with assertion failures?
    3. How to I find the source of memory leaks?


    Registry


    1. How can I access the registry?
    2. How can I read data from the registry?
    3. How can I write data to the registry?


    String


    1. How to convert between ANSI and UNICODE strings?
    2. How to use 'CString' in non-MFC applications?
    3. How to convert between a 'CString' and a 'BSTR'?
    4. How to convert a numeric type to a string?
    5. How to convert a string into a numeric type?
    6. What are the rules for BSTR allocation and deallocation?


    Printing


    1. Why does printer not print bitmap?


    User Interface


    1. How can I emulate keyboard events in an application?
    2. How can I emulate mouse events in an application?


    GDI


    1. How do I fill rectangles, regions and texts in graded colours?
    2. How do I choose a font size to exactly fit a string in a given rectangle?
    3. How do I display text filled and in shape of a region?
    4. How do I display a bitmap rotated?
    5. How do I calculate the area of a window exposed?
    6. How do I drag an image?
    7. How to capture layered windows?


    Edit Control


    1. How to append text to an edit control?



    Last edited by ovidiucucu; October 6th, 2022 at 02:29 AM. Reason: removed redundant stuff

  4. #4
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Visual C++ FAQ sections





    General


    1. Where can I find Visual C++ code samples?
    2. Can you help me with my homework assignment?
    3. Posting tips: minimal, yet complete
    4. What is the difference between 'BOOL' and 'bool'?
    5. How to show all messages in ClassWizard list?
    6. How to use different character sets?
    7. How to avoid making an assignment when the intention is a comparison?
    8. Questions about the VC++ 2005 Express Edition
    9. How to get user details from Active Directory
    10. Where can I get the VC++ redistributable packages?
    11. How to make an ANSI build for Windows CE target?
    12. Why Watch window shows 'unused' for a HWND variable?


    Application


    1. How to get the application name?
    2. How to use manifests and re-distributable assemblies?


    DLL


    1. How to make a "Message DLL"?
    2. How to build a DLL to be used from another programming language?
    3. How to a DLL and have the exported functions called via 'LoadLibrary()' and 'GetProcAddress()'?
    4. How to build a resource-only DLL?


    Network


    1. Where can I find examples of socket programs?
    2. How to get the local hostname?
    3. How to get the local IP address(es)?
    4. How to set a socket option?
    5. Does one call to 'send()' result in one call to 'recv()'?
    6. When does 'send()' return?
    7. When does 'recv()' return?
    8. How do I transfer a structure?
    9. How do I impose a packet scheme?
    10. How do I use a timeout for 'connect()'?
    11. Why does my machine send a 'RST' packet in reply to a 'SYN'/'ACK' package?
    12. How do I terminate a TCP connection?
    13. How does a TCP connection close?


    Debugging


    1. Step by Step Introduction
    2. Why does program work in debug mode, but fail in release mode?
    3. How to manage memory leaks?
    4. How to use 'ASSERT' and deal with assertion failures?
    5. How do I debug my ActiveX/COM component?
    6. How to display UNICODE strings in the Watch/QuickWatch window?
    7. How do I evaluate the time difference between two events?
    8. How to show Windows API errors in the Watch window?


    Profiling


    1. Why can't I enable profiling in Visual Studio 6.0?


    String


    1. What types of strings are there?
    2. What is the difference between '\n' and '\r\n'?
    3. How to convert between ANSI and UNICODE strings?
    4. How to use 'CString' in non-MFC applications?
    5. How to convert a numeric type to a string?
    6. How to convert a string into a numeric type?


    STL


    1. How to remove compilation warning C4786 in Visual C++?
    2. How do I use hash maps with Visual C++?


    Random Number


    1. How do I generate random numbers of specified frequency distribution?



    Last edited by ovidiucucu; October 6th, 2022 at 02:30 AM. Reason: removed redundant stuff

  5. #5
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    MFC FAQ Sections





    General


    1. How to prevent a resizable window to be smaller than...?
    2. How do I create full screen applications?
    3. How to change the font of a control?
    4. What is the difference between 'BOOL' and 'bool'?
    5. How to change frame and caption window styles at run-time?
    6. How to make a simple text editor?
    7. How to make a simple Web Browser?
    8. How to process command line arguments in a MFC application?


    Document/View


    1. How to obtain a pointer to various objects?
    2. How to modify the default 'Open' dialog?


    SDI


    1. How do I create transparent SDI views?


    MDI


    1. How to change the background of the MDI main frame?


    Dialog


    1. How to show modeless dialogs behind the main window?
    2. How to hide/show/maximize/minimize a dialog?
    3. How to add a minimize/maximize button into your dialog?
    4. How to enable/disable the 'Close' button of your dialog at run-time?
    5. How to set/get the values of various controls?
    6. How to start your dialog application in hidden mode?
    7. How to set the dialog window always on top?
    8. How to create a non-rectangular dialog box?
    9. How to drag a dialog by grabbing any point?
    10. How to disable/change the behaviour of the <...> key in a dialog?
    11. How to enhance a dialog-based application with Menu, Toolbar...?
    12. How to handle notifications for dinamically created controls?
    13. How to set the initial position of a modal dialog?
    14. How to add tooltips to controls in a dialog?
    15. How to disable a dialog from being moved?


    Application


    1. How can I limit my application to one instance?
    2. How to get the application name?
    3. How to set the current working directory?
    4. How to get the current working directory?
    5. How to get the application directory?
    6. How to retrieve the version information of my application?
    7. How to get the system directory?
    8. How to get the windows directory?
    9. How to show a message box in ExitInstance of a dialog-based application?


    File System


    1. How to search for files in a directory and subdirectories?


    Threads


    1. Where can I find references on Multithreading?
    2. How to create a worker thread?
    3. How to end a thread?
    4. How to use member functions as thread functions?
    5. How to access UI elements from a thread in MFC?


    DLL


    1. How to build a resource-only DLL?


    Debugging


    1. How to detect memory leaks in MFC?
    2. How to manage memory leaks?
    3. How to use 'ASSERT' and deal with assertion failures?


    Registry


    1. How can I access the registry?
    2. How can I read data from the registry?
    3. How can I write data to the registry?
    4. How to store the application settings in registry?


    String


    1. How to pass CString to Windows API functions?
    2. How to use 'CString' in non-MFC applications?
    3. How to assign or compare strings?
    4. What is the difference between 'CString' and 'std::string'?
    5. How to get the hexadecimal representation of a ... into a 'CString'?
    6. How to convert between a 'CString' and a 'BSTR'?
    7. How to convert between 'CString' and 'std::string'?
    8. How to convert a 'char*' to 'CString'?
    9. How to convert a 'CString' to a 'char*'?
    10. How to convert a numeric type to a string?
    11. How to convert a string into a numeric type?
    12. What are the rules for BSTR allocation and deallocation?


    Printing


    1. Why does printer not print bitmap?


    MFC & STL


    1. How can I sort a 'CArray' (or 'CStringArray', 'CIntArray', etc.)?


    Edit Control


    1. How to append text to an edit control?
    2. How to know when text is pasted from clipboard to 'CEdit' control?
    3. How to replace a line in a multi-line edit control?
    4. How do I introduce insert/overwrite mode to 'CEdit' derived edit control?


    ListView Control


    1. How to select a full row in a list control?
    2. How to add a subitem in a list control?
    3. How to change the colors in a list control?
    4. How to get selected items in a list control?
    5. How to use a context menu in a list control?
    6. How to correctly delete items from a CListCtrl?
    7. How CListCtrl notifies "checkbox status changed"?


    ListBox Control


    1. How CCheckListBox notifies "checkbox status changed"?


    Tree Control


    1. How to disable an item?
    2. How to detect which part of an item the user clicked on?
    3. How to add icons to a tree control?
    4. How to add checkboxes to a tree control?
    5. How to expand/collapse a branch?
    6. How to use 'SetItemData()' and 'GetItemData()'?


    Date and Time


    1. COleDateTime vs. CTime. Which one is better?



    Last edited by ovidiucucu; October 29th, 2022 at 07:01 AM. Reason: removed redundant stuff

  6. #6
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

  7. #7
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured