15,742,400 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 Javascript questions
View C++ questions
View Python questions
View Java 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 megaadam (Top 15 by date)
megaadam
9-Sep-19 3:36am
View
I think, you should not PASS the logger. The child process should create its own logger, I think this was mentioned in the link. Good luck.
megaadam
27-Aug-19 10:35am
View
Ah I missed your reply. Now it is twice as easy to resolve.
megaadam
28-Jun-19 8:20am
View
Next question: Does C++ have goto?
megaadam
25-Jun-19 4:23am
View
What can possibly go wrong as long as you use <wincrypt.h> to encrypt the ICBM launch codez?
megaadam
10-May-19 11:03am
View
Well i would think that IF your data is recursive (i.e. if the "ambig" items contain new lists of "L -> R" expressions) then the code might need to be recursive, or at at least the parser needs to build a recursive data structure.
megaadam
10-May-19 10:30am
View
The above assumes that data is "ordered" like the data you provided.
If it is unordered eg:
lines = [
"test -> expr",
"expr -> ambig1 ambig2 ambig3",
"test -> ambig1 ambig2 ambig4",
Then it is better to make a dictionary [Python] or map [C++] where the keys are "matcher" and values are "lines". So instead of making a list of lists it will be a dictionary of lists
megaadam
8-Feb-19 6:16am
View
Looping twice sure is cheaper than sorting! But you can also do it in a single loop with two locals, as seen above by KarstenK.
megaadam
8-Feb-19 6:15am
View
Deleted
Looping twice sure is cheaper than sorting! But you can also do it in a single loop with two locals, as seen above by KarstenK.
megaadam
5-Jul-18 9:50am
View
or...
just do this at the end of your original solution.
hex = std::reverse(hex);
You also need
#include <algorithm>
megaadam
5-Jul-18 9:45am
View
hex = char(temp + 55) + hex;
megaadam
5-Jun-18 10:19am
View
Then you must come up with 54 clever names.
megaadam
5-Jun-18 5:17am
View
He can always try posting that at stackoverflow :p
megaadam
11-Jan-17 4:50am
View
Thanks, even if it wasn't conclusive it was giving some insight.
The down-vote prolly came from someone with a "stackoverflowish mindset".
megaadam
10-Jan-17 8:45am
View
Wow that was quick. Thanks! I will wait a day, before accepting, to see if more clever people have insights to share. :)
megaadam
18-Apr-11 6:04am
View
Yes I have tried
CompositingModeSourceCopy
, and it looks look much worse :) It produces a transparent rectangle around each character, except the mid-size characters which still are transparent, but without the rectangle. But thanks anyway for taking a look at my problem.
And I am afraid that the MSDN-link you posted does not help me. This phenomenon does not occur when drawing thin lines. It only happens with typography.
Show More