Hi,
I'm trying to set up some basic communication between two programs via the registry.
For this I would like to use the functions
and
which read/write to the application's registry.
Is there some way of making two different programs use the same application registry?
I realize there's probably more conventional methods for communication, but I'm just looking for something really basic here.
Thank you in advance.
I'm trying to set up some basic communication between two programs via the registry.
For this I would like to use the functions
Code:
int value=10;
CString strSection="Data";
CWinApp* pApp = AfxGetApp();
pApp->WriteProfileInt(strSection,ValueName,value);
Code:
CString strSection="Data";
CWinApp* pApp = AfxGetApp();
int value=pApp->GetProfileInt(strSection,ValueName,0);
Is there some way of making two different programs use the same application registry?
I realize there's probably more conventional methods for communication, but I'm just looking for something really basic here.
Thank you in advance.