Solved

Undocumented MFC Functions

Posted on 2000-05-11
4
569 Views
Last Modified: 2013-11-20
Browsing through the source for CWinApp i came across two undocumented functions... GetProfileBinary and WriteProfileBinary. Their purpose seems to be to allow reading/writing of arbitrary binary data to the registry, similar to the documented functions GetProfileInt/WriteProfileInt and GetProfileString/WriteProfileString.

Does anyone know why they are not documented? Does this mean i shouldn't use them in my own applications?
0
Comment
Question by:paulburns
4 Comments
 
LVL 4

Expert Comment

by:captainkirk
ID: 2805218
MFC contains several undocumented features / functions, the reason for lack of documentation known only to Microsoft, for the most part. I believe I have seen books, however, on undocumented MFC stuff... it may be worth your while to get one to satisfy your curiosity. I would say that if the functions work as you expect them to, use them.
0
 
LVL 1

Accepted Solution

by:
kkarunakar earned 20 total points
ID: 2812057
Hi there...
There are so many functions and data undocumented in the MFC..So if u find such functions in CWinApp class u can use them without any trouble. But if u find this function while going thru debug and nesting stuff than don't use that functions. Those functions are written for internal use and they may not support in ur application by not linking ....
Regards Keshav
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2816110
If it is a protected function, don't use it. (it is probably only for implementation and may not exist in a future version)

If it is a function in a class that isn't documented, don't use it. (likewise)

BUT: if it gets you out of troble and solves a problem for you, then use it and DOCUMENT that you are 'cheating' in your code.

0
 
LVL 2

Author Comment

by:paulburns
ID: 2819445
Thanks everyone for the advice. Since the specific functions mentioned are public and in a well documented class i'll go ahead and use them. They definitely will save me a lot of hassle.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
string initialization in java 11 115
conditional code and condition difference 9 84
fizzArray2 challenge 1 91
has77  challenge 9 90
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question