Hiding the public members of a class without modifying the CLASS

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



HI,

Suppose i have the requirement that i want to hide the pubilc members
of a class without modifying the code inside the class

Example :
class A
{
public foo1();
public foo2();
public foo3();
public foo4();
public foo5();
public foo6();
public foo7();
public foo8();
public foo9();
public foo10();
}

I made this class as a DLL and i have given this DLL to the user. Now the
requirement is, For the user only 7 public methods has to be exposed and the
remaining 3 has not , for that what to do , I am not allowed to change the
code inside the class (But , i can implement this class), can anyone give me
the solution for this.

Thanks in advance,
BR.




.



Relevant Pages

  • Re: CString * in a call to a dll
    ... I followed your advise and really showed that the dll was configured to link ... with static mfc library and the exe with shared mfc. ... >> displaying the dialog box more than once and modifying the value ...
    (microsoft.public.vc.mfc)
  • structure field with embedded space
    ... I am modifying some Matlab code that accesses a .dll. ... frameformat on the command line, one of the fields that is ... returned is 'y offset'. ...
    (comp.soft-sys.matlab)
  • Re: is there a way to replace the default file dialog system wide ?
    ... The DLL won't get loaded because its signature won't ... Besides it sounds like a bad idea just because you are modifying ... system DLLs. ...
    (microsoft.public.vc.mfc)
  • Re: Injecting code into another process
    ... You can hook that function by modifying import table of ... "ama" wrote in message ... > some dll loaded into my process, ...
    (microsoft.public.vc.language)