Solved

Undocumented MFC Functions

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now