Solved

Undocumented MFC Functions

Posted on 2000-05-11
4
563 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now