Click here to Skip to main content
16,015,900 members

Comments by GoonerGator (Top 7 by date)

GoonerGator 11-Jan-11 16:35pm View    
Thanks for the reply Espen.

True, Registry is one way of doing it. How-ever for better maintenance of the code and possible issues with platform changes, I would prefer steering clear of registries.
GoonerGator 10-Jan-11 13:17pm View    
Sorry, I am not too conversant with the internals. Is it not the OS which detects the device arrival and sends generic message to all the windows[mfc] and specific messages for the windows[mfc] which have registered for the specific device [using GUID] ?

Thanks,
Shishir
GoonerGator 10-Jan-11 11:46am View    
Hi Espen,

Thanks for the reply.

There is a driver already installed for driving the device. This code works at a layer above the driver. I got the UUID for the device from the driver inf itself. Please let me know if I am missing something.

Thanks,
Shishir
GoonerGator 29-Oct-10 17:34pm View    
Thanks for the reply Nishant.. that was quite helpful..
GoonerGator 25-Oct-10 15:36pm View    
Hi Richard,

Sorry, I had been staring at this code for entire day and missed indicating what m_viewList is. It is basically a CPtrList type; a member of CDocument class.

I don't have Windows-7 installed in the same machine where my code base is present. I am relying on logs for analysis. This is what I have been able to put together :

I have overloaded function : CMyDocument::Serialize(CArchieve ar)
In Windows-XP, all I required to do was call SerializeRaw this way : ((CEditView*)m_viewList.GetHead())->SerializeRaw(ar); // ar is the CArchieve mfc class which is an argument to serialize.

In Windows-7, it is failing. On further inspection, I observed that the following line which should be retrieving the data is failing :
LPCTSTR lpszText = ((CEditView*)m_viewList.GetHead())->LockBuffer(); // misnomer !!
It internally calls GetWindowText() and GetWindowSize(). I tried to GetWindowText Manually and was half successful. For some reason, CArchieve would end up having some garbage data at the beginning.

Please indicate if you have any-thing that you might want me to try. Right now, I am completely stuck..

Thanks,
Shishir