16,004,564 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 Keanu L (Top 21 by date)
Keanu L
19-Apr-13 4:04am
View
Of Course i do as you say , i allocate the memory in calling function and free it in calling function .The Debug Version works fine ,and when i debug the Release Version ,it has no exception but when running the release version ,it throws the exception.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Keanu L
18-Apr-13 11:16am
View
I'm sorry that the code belongs to a project ,so i need to keep secret......
Keanu L
18-Apr-13 11:12am
View
i had a dll which creates Thread using CreateThread and in this thread, there is class var declared in calling function( using operator new ) passed by point will allocate memory ( using malloc ) in this thread , after exit the thread, the calling function will clean up this class var including the memory allocated in thread , so i want to know is this operaton thread-safe.In some book <<Windows via C/C++>> said the C++/C Runtime librray does not allow two threads allocate the memory using malloc at the same time. i think in all my threads, the class var will allocate the memory but will not clean up and all the clean up operation is done by the calling function which breaks the heap and leads to my problem.
Keanu L
27-Mar-13 8:52am
View
Thank you for your explanation. I have underundered the problem.You are right , from the view of compiler i should consider the program logic.
Keanu L
27-Mar-13 8:16am
View
In gcc, the int and the emun are allocated the same memory size 4 bytes, so it should be safe.
Keanu L
6-Feb-13 19:08pm
View
I just want the hook dll passed the hook event data to the spy process(not the sending message process) using WM_COPYDATA.
Now i have solved it. the cbData in the COPYDATASTRUCT must be set the size of the data the lpData point to.
Thank you very much~:-)
Keanu L
6-Feb-13 18:41pm
View
..indeed. my spy process has installed a global hook,so the another process sending message will load the dll.
Keanu L
6-Feb-13 18:37pm
View
i have checked FindWindow() and it got the correct handle.i compared the handle value with the value got in Visual Studio tool Spy++.The key point is that if i replace the message with WM_CLOSE,the spy process got the message but the WM_COPYDATA.
Keanu L
6-Feb-13 10:40am
View
I want another process whose thread is installed hook to send data to the spy process using WM_COPYDATA, but the spy process coudnt receive the message....
Keanu L
10-Dec-12 2:49am
View
Thanks.The hInstance passed to the dll is the value of GetModuleHandle(NULL),it did not work.I have solved the problem.The first argument of createDialog is to tell the function where to access the resource template.The Dialog Resource built in the dll but the main app space,so the instance passed to the function should owns the dialog template resource.i got the instance which there is a resource in and passed it to the function ,then it worked!The Dialog in the dll showed up!!
Keanu L
10-Dec-12 2:48am
View
Deleted
Thanks.The hInstance passed to the dll is the value of GetModuleHandle(NULL),it did not work.I have solved the problem.The first argument of createDialog is to tell the function where to access the resource template.The Dialog Resource built in the dll but the main app space,so the instance passed to the function should owns the dialog template resource.i got the instance which there is a resource in and passed it to the function ,then it worked!The Dialog in the dll showed up!!
Keanu L
17-Oct-12 22:43pm
View
Thanks for your link.I have learned from it.
Keanu L
17-Oct-12 22:41pm
View
Thanks for your advice,i will work further on it and get back.
Keanu L
17-Oct-12 22:38pm
View
Right~
Keanu L
17-Oct-12 22:38pm
View
:-)
Keanu L
17-Oct-12 2:08am
View
Thanks.I learned the SetCapture function from your submit.But i have tried , when i pressed down the lbutton ,and moved it,the dialog window vacillate to the left and to the right.It does not move smootly.
Keanu L
17-Oct-12 1:56am
View
Thanks for your solution.I have tried ,but My Dialog does not contain a title bar, the WM_NCHITTEST did not work.
Keanu L
18-Jan-12 9:27am
View
ha~~
Keanu L
17-Jan-12 22:59pm
View
..............
Keanu L
17-Jan-12 22:58pm
View
In fact,what i want to do is to insert a fixed sized picture control into the dialog,but the picture control is scrollable to display the real image by using the scrollbar.
en,i cant fing the way,so i insert a picture control in to the CFormView(scrollable),and then insert the view to the dialog.This my thought~~
Thanks~~
Keanu L
17-Jan-12 22:53pm
View
I just want to insert a square scrollable view in the center of the dialog~~but not the scrollable child dialog~~~
Thanks~~
Show More