9,869,444 members (25,937 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
2,337 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 47
Page Size:
10
·
25
·
50
Author filtered by: Blake Miller
[x]
My vote of 5
by
Blake Miller
Forum Message
5 Apr 2013
WIX is becoming more and more popular and it is good to see some articles on it. Nice to have compared why to use DLL versus EXE.
General Discussions
»
Article "Devmsi: An Example C++ Msi/Wix Deferred Custom Action Dll"
Re: Confused
by
Blake Miller
Forum Message
19 Feb 2013
Cale Dunlap wrote:That way the proper amount of memory is returned to the operating system explicitly by the implementation instead of risking heap corr
General Discussions
»
Article "Factory Pattern In C++"
Windows 8 Modified Windows API List...
by
Blake Miller
Forum Message
15 Feb 2013
I am trying to find a list of ‘affected’ API in Windows 8. Microsoft used to release a file called Win32Api.Csv that would summarize every function call changed in a new version of the OS. I am
General Programming
»
C / C++ / Mfc
Anyone heard of an Anonymous Statistics / User Experience API or Toolkit
by
Blake Miller
Forum Message
29 Jan 2013
I am wondering if someone has used an API or Toolkit to incorporate Anonymous Usage or User Experience into their product. For exmaple, when you install Visual Studio, it asks if you want to partic
General Programming
»
C / C++ / Mfc
removing the default child icon of mfc child window.
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
Then you must override the drawing of the non-client area yourself, and perhaps even handle the mous clicking and window dragging as well. That area above the client area where the title bar is drawn is called the non-client area, and some legacy articles here or on CodeGuru might explain how...
General Programming
»
Uncategorised Quick Answers
»
General
VC6
VC7
VC7.1
VC8.0
C++
MFC
C++
VC10.0
VisualStudio
Microsoft
, +
WinDBG tool not able to respond to my vc++ application crash
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
And if you REALLY want to debug your application, insert a DebugBreak() function call into it somewhere convenient - based on a button, or user action, or even close to its startup.
General Programming
»
Uncategorised Quick Answers
»
General
VC8.0
C++
C++
Windbg
DLL initialization failed
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
If this code is where your DLL is loading, you probably get that error because the MSXML.DLL cannot load into your process at the same time as another DLL (in this case your own DLL) is loading.This happens a lot with new developers - everything ends up at 'dll load time' and then they...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Rational Purity(Memory Leak detector) on MFC application
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
Sorry I can't exactly answer your question, but here is what we did:We had mixed results over the years with MFC applications and Rational Purify.Now we use Memory Validator - no problems.
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
How to write in to registry when logged in as Standard User
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
Unless you provided credentials or are actually logged in as an adminsitrator, then the account does not have permission to write those registry keys.You can in your own program indicate that you need to write to a restricted area, ask the user for some credentials, login from your...
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
Converting a Win32 project to a Win32 console application
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
You still need to include "windows.h" for the windows application even if it is a 'console' application because you want to use calls like LoadLibrary and such, which are perfectly valid to call.You obviously need to remove the message boxes and other calls that bring up windows, if you...
General Programming
»
Uncategorised Quick Answers
»
General
VC6
Linux
C++
Console
Logon user is not working for others domain in c
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
The 'B' domain users must each have "Log On Locally" permissions granted on the second machine. Or else the second machine must also be joined to 'B' domain.
General Programming
»
Uncategorised Quick Answers
»
General
C
Form resize according to screen size
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
Once the form is up, you need to calculate screen size, and then adjust the form size. If all the internal controls already resize themselves, they will after the main form is repositioned. There is usually nothing to autmaticlaly make the form fit the screen unless it is 'maximized', so you...
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
WinForm
Inserting a line in a .txt in C++
by
Blake Miller
Answer
20 Dec 2012
license:
CPOL
Assuming you must use 'streaming', I would have done this a bit differently.Read the new first line and write to a file.Append the old file to this new first file, not necessarily trying to read entire file into memory, either.Delete the old source file.Rename the new file as the old...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Re: Always drives, never memory
by
Blake Miller
Forum Message
4 Dec 2012
I am with you there - unless you have SOOO much memory you don't use any virtual. If you are routinely generating page faults in the millions, then add more RAM or get the SSD and see your performa
General Discussions
»
Survey "Do You Customise Or Upgrade Your Computer(S)?" (03 Dec 2012)
Re: Assuming you don't max the memory on purchase
by
Blake Miller
Forum Message
4 Dec 2012
A revolving red light with a klaxon would be even more amusing! I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
General Discussions
»
Survey "Do You Customise Or Upgrade Your Computer(S)?" (03 Dec 2012)
Re: Racing stripes
by
Blake Miller
Forum Message
4 Dec 2012
They missed out on 'duct' tape. I broke open my old HP Server last night because the damn release was not working, now the 'clamshell-easy-open' case is held together with duct tape.
General Discussions
»
Survey "Do You Customise Or Upgrade Your Computer(S)?" (03 Dec 2012)
Sleep( X )
by
Blake Miller
Forum Message
30 Nov 2012
Your program could be more responisve, perhaps even to logoff, if you used WaitForSingleObjectEx function instead of the Sleep. The controller could then set an event to indicate the thread should ex
General Discussions
»
Article "Network Activity Indicator For Windows 7"
Re: case insensitive string comparison - relative speed
by
Blake Miller
Forum Message
2 Nov 2012
Confirms my 'gut feeling' and we all know how much we like to depend upon those :) I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
General Programming
»
C#
Re: case insensitive string comparison - relative speed
by
Blake Miller
Forum Message
2 Nov 2012
Awesome! Thanks for the link. :thumbsup: I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
General Programming
»
C#
Re: case insensitive string comparison - relative speed
by
Blake Miller
Forum Message
2 Nov 2012
Thank you for your answers. Would you have a link to a tech note, language guide or MSDN about this part "Microsoft 'advises' to use uppercase constants." It does matter. I am looking into this
General Programming
»
C#
case insensitive string comparison - relative speed
by
Blake Miller
Forum Message
2 Nov 2012
Suppose two strings, String S1, S2; Which is faster: if( S1.ToLower() == S2.ToLower() ) Or: if( String.Compare(S1, S2, true) ==
General Programming
»
C#
Re: An historical observation
by
Blake Miller
Forum Message
12 Oct 2012
Just quickly .... SSD ... I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
General Discussions
»
The Lounge
Re: A Highly Uninformed Defence of Lance Armstrong
by
Blake Miller
Forum Message
12 Oct 2012
Targets? I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
General Discussions
»
The Lounge
Re: A Highly Uninformed Defence of Lance Armstrong
by
Blake Miller
Forum Message
12 Oct 2012
I think DodgeBall can hold up, because not only did he refer to his cycling career, but also to surviving his TC, as I recall, so there :wtf: I need a 32 bit unsigned value just
General Discussions
»
The Lounge
ITaskScheduler access denied error
by
Blake Miller
Answer
10 Oct 2012
license:
CPOL
Do you impersonate the user prior to the COM calls?COM call could be executing in different thread, for which your impersonation is not set.
General Programming
»
Uncategorised Quick Answers
»
General
C++
ASP
COM
Scheduler
Impersonation
Task
Get signal to visual studio 2008 c programe when moving optical mouse
by
Blake Miller
Answer
10 Oct 2012
license:
CPOL
Install a low level mouse windows hook.Watch for mouse messages. Reset a timer for each message observed.If timer goes off, you have not seen mouse message in that time.See SetWindowsHookEx function using WH_MOUSE_LL
General Programming
»
Uncategorised Quick Answers
»
General
C
Unhandled exception access voilation reading location error while implementing linked list in c++
by
Blake Miller
Answer
10 Oct 2012
license:
CPOL
I am suspicous of the function dequeue_the_packet.You do this...old_temp_head1 = temp_head; while (old_temp_head1->new_packet != NULL)and later..if (temp_head == NULL) return temp_head;Now you should already have had an access violation if temp_head == NULL when you...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Re: Familiarity : Trimming leading and trailing spaces from a string...
by
Blake Miller
Forum Message
28 Sep 2012
This is great. I was just posting the orginal code because of the three reasons I listed. 1. Should be a function - REGARDLESS. 2 - It's inefficient on multiple levels. 3. MS already has the 'tried
General Discussions
»
The Weird And The Wonderful
Re: Familiarity : Trimming leading and trailing spaces from a string...
by
Blake Miller
Forum Message
28 Sep 2012
1. This code was COPIED to 3 different places - they didn't bother to make a function out of all of it. That is probably the worst error, because now if this 'new' code has bugs, you have to modify t
General Discussions
»
The Weird And The Wonderful
Familiarity : Trimming leading and trailing spaces from a string...
by
Blake Miller
Forum Message
26 Sep 2012
We can strip leading and trailing spaces from a string…. int len = strlen((LPSTR)wName); while( *((LPSTR)wName + len - 1) == ' ') {
General Discussions
»
The Weird And The Wonderful
Re: Profanity in code
by
Blake Miller
Forum Message
27 Aug 2012
Well, maybe not profane, but likely hilarious. After the third or fourth time fighting the build system, I submitted this labeling comment: "This is as much fun as eating a poopy flavored lollipop.
General Discussions
»
The Weird And The Wonderful
Create a timer and notification
by
Blake Miller
Answer
24 Jul 2012
license:
CPOL
Can't speak for Linux, but on Windows you can look into _gmtime_s and time and difftime Look in MSDN under the topic "Time Management".
General Programming
»
Uncategorised Quick Answers
»
General
C++
time
Re: Dot matrix printers.
by
Blake Miller
Forum Message
16 Jul 2012
I have a wide-carriage Okidata Microline 395C 24-pin printer here in my office. In the automation industry, real-time records are printed to the line printer, one line at a time (try doing that wit
General Discussions
»
The Lounge
Re: Dot matrix printers.
by
Blake Miller
Forum Message
16 Jul 2012
Speaking of CRT monitors, on the relaly cheap ones, I can hear the flyback transformer buzzing - sounds like a mosquitoe flying right next to my ear. I need a 32 bit unsigned va
General Discussions
»
The Lounge
Defined and Data types
by
Blake Miller
Answer
12 Jul 2012
license:
CPOL
Besides, with the different return types, your cast cannot work as the stack could get messed up.See this link for similar problem and solution.http://social.msdn.microsoft.com/Forums/eu/vcmfcatl/thread/208499e4-0c09-4835-ad80-313121eb75d5[^]
General Programming
»
Uncategorised Quick Answers
»
General
C++
An application using _beginthreadex crashes
by
Blake Miller
Answer
10 Jul 2012
license:
CPOL
CMyClass::thre...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
VC++
How to read Audit Account Logon Events in xp using c++
by
Blake Miller
Answer
15 Jun 2012
license:
CPOL
Below is some code to read the event records from the "Security" event log.At the bottom is a link to an MS article describing how to 'decode' the Logon/Logoff event log records, which is even more complicated than reading the records. Since you made no mention of even obtaining the records,...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C# and EnumProcessModules... Examples anywhere?
by
Blake Miller
Answer
2 May 2012
license:
CPOL
From: Wes Aday : Would Process.GetProcesses() not do the same thing?Yes it would. Thanks for the tip.Collect array of processes:// Get all processes running on the local computer.Process [] localAll = Process.GetProcesses();For each process get the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
EnumProcessModules
C# and EnumProcessModules... Examples anywhere?
by
Blake Miller
Question
1 May 2012
license:
CPOL
Has anyone seen code to call EnumProcessModules and EnumProcesses from C# lately?Got a setup shim pogram all written in C# and need to determine if any process has a DLL loaded prior to copying files.Thanks.
General Programming
»
Uncategorised Quick Answers
»
General
C#
EnumProcessModules
Re: Unable to see all images
by
Blake Miller
Forum Message
26 Mar 2012
Seriously, I am not installing 3 or 4 different browsers on my machine to view articles here. Try to fix it for IE. I don't typically have trouble viewing the images. I need a
General Discussions
»
Article "Know Program Database File (Pdb)"
Re: Philosophy Major bad Programmer
by
Blake Miller
Forum Message
19 Oct 2011
Wow, I had not seen OPS5 in print anywhere in a long time.... Used to do that on a DEC MicroVAX II. I need a 32 bit unsigned value just to hold the number of coding WTF I see in
General Discussions
»
The Weird And The Wonderful
CWinThread "UI Thread", CAsyncSocket, and message pumps
by
Blake Miller
Answer
15 Sep 2011
license:
CPOL
1. I always start threads with beginthreadex in case the C runtime library gets called from code within the thread.2. Did you ever call PeekMessage() when the thread starts to make sure that a message queue is created for the thread?
General Programming
»
Uncategorised Quick Answers
»
General
VC8.0
VS2005
C++
MFC
C++
Visual-Studio
Detecting LogOff event in Activex Project
by
Blake Miller
Answer
15 Sep 2011
license:
CPOL
If you have a window you can register for Terminal Services notifications using WTSRegisterSessionNotification. Then watch for WM_WTSSESSION_CHANGE and specifically for WTS_SESSION_LOGOFF.
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC10.0
Re: Map PDB GUID with associated EXE GUID
by
Blake Miller
Forum Message
9 Sep 2011
I was reading a Microsoft article on the format of the PE Header and I could not find mention of this PDB-related GUID. Can you please point me to documentation on its whereabouts in the PE image? I
General Discussions
»
Article "How To Inspect The Content Of A Program Database (Pdb) File."
My vote of 5
by
Blake Miller
Forum Message
9 Sep 2011
Well-written introduction to this SDK!
General Discussions
»
Article "How To Inspect The Content Of A Program Database (Pdb) File."
SetWindowsHookEx fails inside MFC DLL code.
by
Blake Miller
Answer
3 Aug 2011
license:
CPOL
Thanks Roger Allen.I used this:HookImportFunctionByName v1.0[^]and the trick was to set the module not to the EXE but to the module handle for MFC42?.DLL (obtained with GetModuleHandle() call) and to hook the function "SetWindowsHookExA" since I am building ANSI.I can see the calls...
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
Obtaining a Process Virtual Memory Map from a DMP File
by
Blake Miller
Answer
3 Aug 2011
license:
CPOL
Thanks for the links Kythen.I think I will have the custom dump file generator collect the information and add that to a user stream in the DMP file.
General Programming
»
Uncategorised Quick Answers
»
General
Process
Re: [My vote of 2] Reproduction?
by
Blake Miller
Forum Message
1 Aug 2011
Yes, I might have hoped to see F1 help, tooltips or something else being added here beyond the mere basics.
General Discussions
»
Article "A Dialog Based Win32 C Program"
Re: How to build this Project as DLL?
by
Blake Miller
Forum Message
29 Jul 2011
You cannot start a thread and expect it to be RUNNING from within the DllMain function. Your thread created within context of DllMain will be created, but suspended until the DllMain returns. That i
General Discussions
»
Detecting Windows Nt/2K Process Execution
Possible ReleaseMutex error...
by
Blake Miller
Forum Message
29 Jul 2011
DWORD dw = ::WaitForSingleObject(m_mtxMonitor, INFINITE); bResult = (WAIT_OBJECT_0 == dw); if (bResult) { // Add it to the STL queue m_Queue.push_back(element);
General Discussions
»
Detecting Windows Nt/2K Process Execution
Page 1 of 47
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid