|
it is a key at the location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppPaths\AcroRd32.exe
AcroRd32.exe is a folder and contains two vlaues default and Path.
|
|
|
|
|
iLL eFFect wrote: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppPaths\AcroRd32.exe
Try CRegKey
CRegKey myKey;
myKey.Open(HKEY_LOCAL_MACHINE,"\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppPaths\\AcroRd32.exe")==ERROR_SUCCESS)
{
CRegKey::QueryValue function!
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I am looking for the header file (can be parallel.h ?) containing the definitions of the constants IOCTL_XXXXXX allowing to control the parallel port using the method DeviceIoControl() in Visual C++ under Windows XP.
Yves LEDUC
Industrial Computing Teacher
LPPO de la SALLE
FRANCE
|
|
|
|
|
The file you're looking for is indeed parallel.h and it ships with the DDK (Driver Development Kit).
--
Roger
It's supposed to be hard, otherwise anybody could do it!
Regarding CodeProject: "resistance is pointless; you will be assimilated"
|
|
|
|
|
My problem is not to create a pilot with the DDK, but to use the pilot parport.sys provided with Windows in Visual C++ with the functions:
sPort.Format(_T("\\\\.\\LPT%d"), nPort);
m_hPort = CreateFile(sPort, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
DeviceIoControl(m_hPort....);
The latter uses preset constants in parallel.h to indicate under functions of the pilot which are called.
Yves
Yves LEDUC
Industrial Computing Teacher
LPPO de la SALLE
FRANCE
|
|
|
|
|
LEDUC yves wrote: My problem is not to create a pilot with the DDK, but to use the pilot parport.sys provided with Windows in Visual C++ with the functions
In you previous post you were uncertain where to find those control codes. I confirmed it to be in Parallel.h and told you were to get it.
You will also need more files from the DDK that are included in Parallel.h.
So you should get the DDK from MS. It's free, you only pay a relatively small administration/shipment fee. A few years back you could download the DDK, but now you have to order it.
Or if you have a MSDN subscription you might have got it through the subscription.
--
Roger
It's supposed to be hard, otherwise anybody could do it!
Regarding CodeProject: "resistance is pointless; you will be assimilated"
|
|
|
|
|
Thanks
I found and download free HCT 12.1.01, ddk iso image in Microsoft's Website.
Yves LEDUC
Industrial Computing Teacher
LPPO de la SALLE
FRANCE
|
|
|
|
|
Yves, HCT and DDK are not the same.
HCT is used for testing your driver and creating protocols with the testing tools that are to be sent to Microsoft WHQL for obtaining the "Designed for Windows" logo.
I haven't used the Hardware Compatibility Test package. Does it really include the header files from the DDK?
I should of course have provided you with a link earlier for ordering the DDK, you'll find the site here[^].
--
Roger
It's supposed to be hard, otherwise anybody could do it!
Regarding CodeProject: "resistance is pointless; you will be assimilated"
|
|
|
|
|
Yes, a part of my text disappeared
I ordered the CDROM for the DDK, not really free, it is necessary to pay transport.
Yves LEDUC
Industrial Computing Teacher
LPPO de la SALLE
FRANCE
|
|
|
|
|
kindly explain me the following;
1. I want to read some text from file or even textbox from Wrapper application which is in Vc++.Net
2. I want send that content as Bytes or stream to the ActiveX control which is also in MFC VC++.Net
3. In MFC VC++.Net i need to get my origional content and display in some text box.
Please provide me some example since i am very new to this VC++.Net world...
|
|
|
|
|
Hi experts,
I'm writing an ActiveX control. I would like to create a property list based on all the entries in the combobox of the property page.
I've tried using CBIndex in the property / data exchange. I've also tried an enum. But come to a loss.
What I want to do is have a list of the legal states listed of my properties. Thus they get listed in "All" property page of VC++ or the property pane of VB ect.
Can anyone tell how this done.
Thanks
Alton
|
|
|
|
|
I am working on an MFC project. I added some COM capabilities, built the Debug version. All worked well. When i tryed to switch to the Release build i got this error(first from list ... there were several others derived from it)
error C2065: '_AtlModule' : undeclared identifier
I think is a configuration derived error, but I'm not sure. Does anyone has any ideea about how to solve it ?
|
|
|
|
|
Radu Sorin wrote: error C2065: '_AtlModule' : undeclared identifierI think is a configuration derived error, but I'm not sure. Does anyone has any ideea about how to solve it ?
I have answered this question on ATL/COM forum, havn't you recevied Notification of same?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Hi all,
I have implemented Context Menu Extension on my namespace icon by implementing IContextMenu inteface. I have added 5 custom menus. This works fine for Win2k but I only see the first of this menus if I test it on Win XP. Can anyone tell me what is going wrong here?
Thanks and Regards,
Anil
|
|
|
|
|
Anil_vvs wrote: This works fine for Win2k but I only see the first of this menus if I test it on Win XP. Can anyone tell me what is going wrong here?
Buddy, that impossible to tell witout seeing you source code!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
What I am doing is fairly straightforward.. inside the QueryContextMenu function of my implementation of IContextMenu interface I am passed the menu handle of the context menu thats displayed....I am calling InsertMenuItem with the passed menu handle and each of my menu Items....
I was wondering if there is a registry entry or something of that sort that has to be changed so that we get to see all the menus...
|
|
|
|
|
|
STDMETHODIMP MxSNEShellFolder::QueryContextMenu(HMENU hMenu, UINT uiIndexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
m_hMenu = hMenu;
m_idCmdFirst = uiIndexMenu;
m_id = idCmdFirst;
if (CMF_DEFAULTONLY & uFlags)
return MAKE_HRESULT(SEVERITY_SUCCESS,FACILITY_NULL,0);
int i = uiIndexMenu;
MxSNECmdMgr cmdMgr;
try
{
if(!cmdMgr.IsConnectedFromShell())
{
MENUITEMINFO mii = { 0 };
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE;
mii.wID = idCmdFirst + ID_CONNECT;
mii.fType = MFT_STRING;
mii.dwTypeData = _T("Menu1");
mii.fState = MFS_ENABLED;
InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii);
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE;
mii.wID = idCmdFirst + ID_SEARCH;
mii.fType = MFT_STRING;
mii.dwTypeData = _T("Menu2");
mii.fState = MFS_DISABLED;
InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii);
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE;
mii.wID = idCmdFirst + ID_CREATEUSINGTEMPLATE;
mii.fType = MFT_STRING;
mii.dwTypeData = _T("Menu3");
mii.fState = MFS_DISABLED;
InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii);
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE;
mii.wID = idCmdFirst + ID_DISCONNECT;
mii.fType = MFT_STRING;
mii.dwTypeData = _T("Menu4");
mii.fState = MFS_DISABLED;
InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii);
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_ID | MIIM_TYPE | MIIM_STATE;
mii.wID = idCmdFirst + ID_ABOUT;
mii.fType = MFT_STRING;
mii.dwTypeData = _T("Menu5");
mii.fState = MFS_ENABLED;
InsertMenuItem(hMenu, uiIndexMenu++, TRUE, &mii);
}
catch(...)
{
}
return MAKE_HRESULT(SEVERITY_SUCCESS, 0, USHORT(i-uiIndexMenu));
}
|
|
|
|
|
what is shared memory ??
Thanks in advance.
Regards,
Prashanth.v
|
|
|
|
|
The area that is shared between two or more processes is called Shared Memory.This helps in the interprocess communication where you want to allow changes made in all the instances of a single application .
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Normally each process has its own memory and data in processes A's memory can't be accessed in the memory of process B and vice versa. Shared memory is when the same physical memory is mapped into multiple processes. In our example this means that process A and B share some memory and thus the data in it is shared. Normally only a small amount of memory will be shared.
Steve
|
|
|
|
|
Hi Prashanth V,
Hw are u ??
Shared Memory is an efficeint means of passing data between programs. One program will create a memory portion which other processes (if permitted) can access.
|
|
|
|
|
ya, i'm fine.
how abt u vinay??
|
|
|
|
|
ya prashanth, if u fine i am also fine ....
take care bye ..happy coding..........
|
|
|
|