Hello! seach for the concepts like RamFS, RAM disk.... http://www.superspeed.com/desktop/ramdisk.php
sanket patel
Hello! seach for the concepts like RamFS, RAM disk.... http://www.superspeed.com/desktop/ramdisk.php
sanket patel
Look at QSetup Installation Suit
sanket patel
Thank you very much! yeah I know about getters and setters and I know I choose the worst! but the the question is about that only.. i.e. the unusual ways to access the private data. Thanks,
sanket
Actually !! I was asked to find the ways to access private members outside the class? so one method is using friends.... and i thought of this as the other way... Thanks,
sanket
Thanks!! but dont you think this should not be allowed??
sanket
Hello All !! I am using visual studio 6.0 I tried to access the private class member outside the class using #define macro. here is the code. I was able to access private member outside the class? why did this work? This should be allowed or not?
#define private public
class A
{
private:
int i;
public:
A()
{
i = 44;
}
};
int main()
{
A obA;
cout<<"\ni = "<
sanket
Thanks NealAB, Yeah I got your point! I think that is only happening. I was trying to use A's method before it was created. Thanks again...
sanket patel
Thank you David!! the code you show is working fine! so can you please explain me where I was wrong ?
sanket patel
I am sorry again!! But I dont know why this code is not executing. I know there is some problem with my understanding of the code. so I just want to know that Where I am wrong? Thank you
sanket patel
oh I am sorry! whenever I try to run this code my program crashes. I dont know what is wrong with it?
sanket patel
Hello All ? can anyone please tell me what's wrong with following code?
class A
{
public:
A(const string& s)
{ /* */}
string f()
{
return "hello world";
}
};
Class B : public A
{
private:
string s;
public:
B():A(s=f())
{ }
};
void main()
{
B obB;
}
Thank you,
sanket patel
hi you can build ActiveX control with MFC ActiveX control wizard.so it is not a big deal. main thing is to show it in browser. for that you have to sign your activeX control.other wise it wont be shown due to default security settings of the browser wont let it(unsigned ActiveX control) execute. to sign your control for testing purpose you can use codesigning SDK. sanket patel
you can try following CWnd *cwnd = FindWindow(NULL,"WINDOW_TO_FIND"); cwnd->PostMessage(WM_CLOSE,0,0); sanket patel
hi you can use create process as follows. suppose app u want to run is saved on c: and its name is app.exe then u can try this STARTUPINFO si={0}; PROCESS_INFORMATION pi={0}; if(!CreateProcess(NULL,"c:\\app.exe",NULL,NULL,FALSE,CREATE_NEW_CONSOLE,NULL, NULL,&si,&pi)) { printf("\nError in creating the process"); } else printf("\nBe happy"); sanket patel
hi you can do as follows. Right click on MyComputer. then select Properties. then select Advance tab. then click on Error Reporting. select Disable Error Reporting. that is all. sanket patel