16,015,900 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
GoonerGator
25-Oct-10 14:48pm
View
Hi Nishant, thanks for the reply. That was my first guess too.. But it turns out that its not a UAC related issue since I am having all the rights and still able to reproduce it.
GoonerGator
26-Aug-10 14:12pm
View
thanks.. it helped.. the number that appears there is not actually the "format value" but instead the value returned by RegisterClipBoardFormat.. makes sense too since we can have custom defined formats.. only, if msdn could explain this before.. would have saved me 3-4 hours..
Show More