15,885,953 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 Python 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 Stephen Hewitt (Top 34 by date)
Stephen Hewitt
7-Aug-11 2:34am
View
@Sumit K Sharm: How about adding this extra information to the question (using the "Improve question" link)? My answer was a valid answer to the question as stated. If you want a helpful answer post a more specific question!
Stephen Hewitt
14-Mar-11 5:21am
View
Not really. Microsoft have provided COM-based scipting engines for VBScript and JScript for some time.
Stephen Hewitt
10-Mar-11 0:39am
View
The first thing to do is attempt to reproduce the problem in a debug build. Actually, this looks like a debug build looking at the machine code. Why isn't there any source?
Stephen Hewitt
18-Feb-11 8:57am
View
Try running your application with the page heap enabled (just for the process in question).
Stephen Hewitt
17-Feb-11 10:07am
View
Can you post a stack trace? This is almost always expected when asking a question like yours.
Stephen Hewitt
17-Feb-11 1:25am
View
Your question is a little vague. Can you be more specific?
Stephen Hewitt
15-Feb-11 23:31pm
View
If you include the headers I did and make sure you've got the "using namespace std;" it should work.
Stephen Hewitt
15-Feb-11 11:06am
View
To me a hook seems like overkill. I'd go with the subclassing approach as mentioned above if I could.
Stephen Hewitt
15-Feb-11 9:52am
View
No, they don't handle the key combination. They handle the "device lost" event. This can occur for many reasons, only one of which is CTRL-ALT-DELETE, and even then it's only a by-product of the process.
Stephen Hewitt
15-Feb-11 8:32am
View
Yeah, you did say rarely. I was wondering if you were going to point that out;)
Stephen Hewitt
15-Feb-11 8:25am
View
I can think of reasons you may want to do it. For example, to make it harder to misuse some sort of scope guard class.
Stephen Hewitt
14-Feb-11 9:32am
View
That's true. The OP didn't mention who creates who and such. I prefer not to use named objects if I can.
Stephen Hewitt
14-Feb-11 8:59am
View
Cross-process notification is the whole point of the question. From OP:
'but I want to be able to "wake up" a console Win32 Console Application each time another application has updated variables in shared memory.'
Stephen Hewitt
14-Feb-11 8:55am
View
There certainly are people like that, but not all people are.
Stephen Hewitt
14-Feb-11 8:52am
View
The two copies of the DLL are distinct. The fact that the same DLL is loaded into both process does not enable cross-process callbacks.
Stephen Hewitt
14-Feb-11 8:48am
View
Or you can use handle inheritence.
Stephen Hewitt
14-Feb-11 8:47am
View
I don't vote posts down to punish the poster but as a guide to the person who asked the question, and others who are interested in a solution. In short, helpful answers should be easily identified - people come here for help after all.
Stephen Hewitt
14-Feb-11 8:43am
View
Deleted
The DLL would be loaded by both processes but the address spaces of the two are still separate (apart from the shared segment). There's no guarantee that the DLL is even mapped at the same address in both processes. Function calls are not possible in this situation.
Stephen Hewitt
14-Feb-11 8:25am
View
The client and server are in different processes. A simple callback isn't possible in this scenario.
Stephen Hewitt
11-Feb-11 9:44am
View
What is the crash? What type of exception is generated?
Stephen Hewitt
9-Feb-11 11:04am
View
Perhaps we need a "flame war" tag...
Stephen Hewitt
3-Feb-11 1:10am
View
To me invoking the command interpreter to clear the console seems inefficient and inelegant. I will admit it seems to be the easiest way. There's an article <a href="http://support.microsoft.com/kb/99261">here</a> that describes how it can be done using your method and one more to my liking.
Stephen Hewitt
31-Jan-11 11:39am
View
One thing which may be applicable is to derive the new interface from the old one and simply add some extra methods. I don;t know your exact sutuation however.
Stephen Hewitt
22-Jan-11 6:35am
View
The standard states that map's (and multimaps, for that matter) should behave as per the text I quoted. Only the iterators of erased elements are invalidated.
Stephen Hewitt
22-Jan-11 2:24am
View
http://www.sgi.com/tech/stl/Multimap.html
"Multimap has the important property that inserting a new element into a multimap does not invalidate iterators that point to existing elements. Erasing an element from a multimap also does not invalidate any iterators, except, of course, for iterators that actually point to the element that is being erased."
Stephen Hewitt
20-Nov-10 23:05pm
View
One of the advantages to using exceptions oftern cited by advocates is that it makes it hard to ignore errors: you can ignore an error code by see what happens if you don't handle an excpetion. Handling all exceptions in you thread function negates this benifit to a degree.
Stephen Hewitt
4-Jul-10 20:54pm
View
Perhaps if you explained in more detail.
Stephen Hewitt
21-Jun-10 20:31pm
View
If you know that you're not supposed to throw exceptions from COM methods what's the problem? btw. Exceptions thrown with RaiseException are included (you're not meant to thow them).
Stephen Hewitt
11-Jun-10 10:25am
View
Explain some details:
What programming language?
What libraries, if any are you using? OpenGL, DirectX, nothing?
How are you representing the polygons?
Give us something to work with!
Stephen Hewitt
10-Jun-10 23:24pm
View
Reason for my vote of 1
COM is far from dead. It's not the right tool for every job and for some things where in the past you'd have used may be better implemented using newer technologies, but that doesn't mean there aren't jobs where it's useful. Also note that COM is essentially a packing technology: it describes what servers look like on the outside, but they can be implemented in many languages including C#.
Stephen Hewitt
10-Jun-10 22:24pm
View
Reason for my vote of 1
What's the question? Some specifics would help!
Stephen Hewitt
9-Jun-10 23:55pm
View
Reason for my vote of 2
Clearly both behaviours have their uses and there are also cases which could force your hand.
Single instance:
GOOD: Since only a single process is used it may be more efficient.
BAD: A fault in one server object could crash the process and will effect all clients.
Multiple instance:
GOOD: Faults in one server object that causes a crash only effects one client.
BAD: Multiple processes mean more system resources are used.
Things that could force your hand:
- If you're using a library that has global (per process) settings and you want each instance of the object to be able to use different settings. In this case you're forced to the use separate instances model.
Stephen Hewitt
28-May-10 11:26am
View
I mean the file itself.
Stephen Hewitt
18-May-10 22:57pm
View
Reason for my vote of 1
What the hell is he on about?
Show More