Solved

Undocumented MFC Functions

Posted on 2000-05-11
4
574 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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 video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

707 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