9,869,444 members (27,731 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*
605 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 13
Page Size:
10
·
25
·
50
Author filtered by: H.Brydon
[x]
Help to findout Week number of year?
by
H.Brydon
Answer
13 May 2013
license:
CPOL
The week number comes from the %W spec. For example: CString sDir = COleDateTime::GetCurrentTime().Format( "\\%Y\\%W" ); [without looking] I think you will get further information if you look at the help for strftime().
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
VC++
MFC/C++
Re: Bug steak, anyone?
by
H.Brydon
Forum Message
13 May 2013
If you eat chocolate, you are already eating a large number of insects. Also (technically) lobster, shrimp/prawns, crawfish/crayfish/crawdads/mudbugs, crab... I've also involuntarily eaten the o
General Discussions
»
The Lounge
Dialog Box creation in windows
by
H.Brydon
Answer
13 May 2013
license:
CPOL
These type of symbols are typically defined in a file called resource.h. You can rename the file or use another file but if you haven't done that, it is the place to look first. The resource.h file and app.rc file are maintained by the IDE and can sometimes get out of sync. If this has...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Windows
Routing algorithm for Vehicular adhoc network
by
H.Brydon
Answer
13 May 2013
license:
CPOL
You probably want to ask google about Dijkstras Algorithm[^].Here[^] is the wikipedia link...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Encrypting a binary file.
by
H.Brydon
Answer
13 May 2013
license:
CPOL
The simple answer is "yes". You can encrypt any type of file, and a .exe/.dll is just another type of file. You have to beware of obvious things like file access and ownership but it can be done without significant trouble. You typically won't be able to write to system files or files that are...
General Programming
»
Uncategorised Quick Answers
»
General
C++
cryptography
Bind content files with setup
by
H.Brydon
Answer
13 May 2013
license:
CPOL
I think you are saying that the file is in the same directory as the .exe file (ie. Debug directory) when you are developing (which works fine) but does not work when deployed. This is not a good practice. The file should be set up to be used in a writable directory relevant to the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Visual-Studio
VB
VB.NET
How to add variables in different linked list
by
H.Brydon
Answer
13 May 2013
license:
CPOL
Your question is not really that clear (nor is it a question) but if you are building a new linked list each time, then just recalculate the total items in the list. If you are building a list of linked lists, then in the head node of each list perhaps include something that will provide the...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Re: Comparing Today to the Lifespan of the Universe
by
H.Brydon
Forum Message
13 May 2013
Dalek Dave wrote:I would argue that Mammals predate reptiles... I do wish people would have a better understanding of their ancestors.
General Discussions
»
The Lounge
Re: This week's survey: What is your favourite phase of software development?
by
H.Brydon
Forum Message
13 May 2013
grralph1 wrote:Documentation means that you have finished the product... Ha ha - one of the few counterexamples where life does not imitate
General Discussions
»
The Lounge
Re: Confusing blog (about Windows "slowness")
by
H.Brydon
Forum Message
12 May 2013
Super Lloyd wrote:...Now I am confused, in my many episodic forays across the years into the Linux world I have NEVER been blow away by "any superior spee
General Discussions
»
The Lounge
Interesting solution
by
H.Brydon
Forum Message
8 May 2013
I hadn't considered this approach to async/await. Nicely done. +5 -- Harvey
General Discussions
»
Article "Implementing A Finite-State Machine Using Async/Await"
How to compile a piece of code without compile the whole code
by
H.Brydon
Answer
5 May 2013
license:
CPOL
Microsoft has provided a mechanism you can use for this called "COM". Using this (obsolete) technology, you define a set of interfaces, write an original COM object that implements all of the interfaces, and the client code that uses this object. You can later update your object or write a...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
OpenGL
Re: how to develop my own language
by
H.Brydon
Forum Message
5 May 2013
You might find the following links useful: - YACC info[^] -
General Programming
»
C / C++ / Mfc
Re: Hardware advice
by
H.Brydon
Forum Message
5 May 2013
Jörgen Andersson wrote:Don't disable the pagefile! There's a lot of uneducated nonsense going on about the pagefile on the interwebs... I'd
General Discussions
»
The Lounge
Re: I'm wearing my Bobba Fett t-shirt!!
by
H.Brydon
Forum Message
5 May 2013
Mike Hankey wrote:Additionally today has been cancelled due to lack of interest...been raining steadily for 3 days. Just wond
General Discussions
»
The Lounge
Let me be the first to say...
by
H.Brydon
Forum Message
3 May 2013
May the fourth be with you! Big day for Bob Vader I suppose. -- Harvey
General Discussions
»
The Lounge
How to refresh the system tray
by
H.Brydon
Answer
3 May 2013
license:
CPOL
Rather than kill the process externally, set it up so that you can send it a message, and send a "please terminate" message so that it can clean things up and terminate itself gracefully.
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
read the extension of file using binary mode
by
H.Brydon
Answer
2 May 2013
license:
CPOL
It can't be done. The only way to do this kind of thing is to record the filename before it is renamed and look at the cached value.
General Programming
»
Uncategorised Quick Answers
»
General
C++
VisualStudio2012
MFC/C++
using C++ program how to send an email
by
H.Brydon
Answer
1 May 2013
license:
CPOL
You didn't say what either your operating system, programming environment or email environment were.For Outlook express, see here[^].For unmanaged code, see here[^].For managed code, see here[^].
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
Re: Extending the C using preprocessor and other goodies - how do they interact?
by
H.Brydon
Forum Message
1 May 2013
Vaclav_Sal wrote:I think I got the basics, but would like to know how compiler applies stuff like “dependencies” , settings – preprocessor “additional inc
General Programming
»
C / C++ / Mfc
Re: Todays program was brought to you by the letter.....
by
H.Brydon
Forum Message
1 May 2013
loctrice wrote:a) It's a thing that schools used to do (not so common these days). This is why the american stereotype of a jock is wearing a school jacke
General Discussions
»
The Lounge
Re: Web hosting with unlimited bandwith and unlimited space?
by
H.Brydon
Forum Message
1 May 2013
I think it was Steve Jobs who said "if your not paying for it, you are the product". Hosting companies will bombard their free users with upgrade commercials and what most of us would consider spam.
General Discussions
»
The Lounge
Re: Recent departure
by
H.Brydon
Forum Message
1 May 2013
Agreed, also I have been in the company of large organizations for most of my career. Standard practice is to require a year or more of employment to pay for moving expenses etc. Signing bonus is av
General Discussions
»
The Lounge
Re: for(int i=0; i
by
H.Brydon
Forum Message
1 May 2013
WPerkins wrote:If not otherwise defined FORTRAN would default to integer variables whose names started with "I" through "l" (ell) I believe...
General Discussions
»
The Weird And The Wonderful
Re: Workers Day
by
H.Brydon
Forum Message
30 Apr 2013
Brady Kelly wrote:...I shall soon be leaving for The Farm... Is that the place where you get a white jacket with no arms?
General Discussions
»
The Lounge
Re: My Vote of 1
by
H.Brydon
Forum Message
30 Apr 2013
A couple of weeks ago, I got this nasty rash on my mouse clicking finger. I posted a question to a medical site but nobody answered. I figured that since I was writing a C++ program when it started
General Programming
»
C / C++ / Mfc
Re: No more DSP but DSW and SLN in VC6.0
by
H.Brydon
Forum Message
30 Apr 2013
In the C++ world, VS6 used different project and workspace files from subsequent VS versions. Here is a summary: Project Workspace/Solution File
General Programming
»
C / C++ / Mfc
Re: for(int i=0; i
by
H.Brydon
Forum Message
30 Apr 2013
Look at any mathematics text that is older than computers. You will find i, j, k, m, n rampant as indexes for just about any formula you can find. Also, x, y, z are common variables and A, B, C are
General Discussions
»
The Weird And The Wonderful
Re: Starting to sell on E-Bay
by
H.Brydon
Forum Message
30 Apr 2013
Yeah, you beat me to it. There is a Goodwill presence just about everywhere I have ever lived and there is a Goodwill Computer store near where I live now. I have purchased a USB card, graphics card
General Discussions
»
The Lounge
Re: I use C++ all the time!!
by
H.Brydon
Forum Message
30 Apr 2013
BCantor wrote:You do realize I posted a joke, yes?! Actually no - I've seen far worse code produced by serious developers. In fact, I wou
General Discussions
»
The Lounge
Need help converting decimal fractions to fractions from other bases (2-16
by
H.Brydon
Answer
30 Apr 2013
license:
CPOL
Homework I see... what you want to do is get the fractional portion (to the right of the ".") and keep multiplying by 2 and looking at the integer result.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Re: Avoid Schwab Bank; incompetant password policies.
by
H.Brydon
Forum Message
30 Apr 2013
Marc Clifton wrote:Undoubtedly a COBOL back-end with a fixed length password field ... and a 2 digit year field. --
General Discussions
»
The Lounge
Re: My darling Chlamydia.
by
H.Brydon
Forum Message
30 Apr 2013
When one of my kids was born, there was a ruckus in a neighboring recovery room. A lady wanted to name her newborn "Latrine" and the nurse wouldn't let her. I don't know the outcome.
General Discussions
»
The Lounge
Re: ANSWER
by
H.Brydon
Forum Message
29 Apr 2013
Le Gauchiste wrote:At the time I got mine, it was a Canadian-only thing. That is doubtful, unless you are in your 70s or older. I think i
General Discussions
»
The Soapbox
Re: I use C++ all the time!!
by
H.Brydon
Forum Message
29 Apr 2013
A few notes: - The code that typically shows up in this context usually has a break following the MyDoSomething() call - The context is vague but did they ask for some specific functionality? This
General Discussions
»
The Lounge
Re: Avoid Schwab Bank; incompetant password policies.
by
H.Brydon
Forum Message
29 Apr 2013
Dan Neely wrote:Can anyone recommend a bank with a free checking account that refunds random 3rd party ATM fees? I'm actually surprised tha
General Discussions
»
The Lounge
Vehicle detection Using VS 2010 and Open CV2.4.3 problem
by
H.Brydon
Answer
29 Apr 2013
license:
CPOL
A few things that I can identify without looking too hard:- The precompiled header choice is not set correctly in the project (which gives the missing PCH spec messages)- The stdafx.h include should be the first one in the list of includes.- This won't compile. A #include with nothing to...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Windows
arrays with constructors
by
H.Brydon
Answer
29 Apr 2013
license:
CPOL
I'm puzzled by your code too. It won't compile. The method declarations and definitions don't match. The parameter lists "(int, int)" and "(int array[], int)" need to be the same. You haven't used very good names for the methods. Yes, you should include a destructor which deletes the memory...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Re: Unbelievable
by
H.Brydon
Forum Message
29 Apr 2013
The last job I was in, we had some complicated device management software, but no proper test devices and no good way to test it completely during development/maintenance. The "almost" only way to te
General Discussions
»
The Lounge
Re: Unbelievable
by
H.Brydon
Forum Message
29 Apr 2013
jeron1 wrote:I wonder what tomorrow will bring? Ergonomic Ass Wiping Techniques? I am a single parent (male). While waiting in doctor offic
General Discussions
»
The Lounge
Re: Spamming
by
H.Brydon
Forum Message
28 Apr 2013
Marco Bertschi wrote:But watch out, there are some overly grumpy/arsey old ones out there... I am a grumpy/arsey old fart but I agree with A
General Discussions
»
The Soapbox
Re: WTSOTC - OTD
by
H.Brydon
Forum Message
28 Apr 2013
We ate a lot of the brown snow where I used to work. [emphasis on "used to"...] -- Harvey
General Discussions
»
The Soapbox
Re: Anyone still know how CRT TV works?
by
H.Brydon
Forum Message
28 Apr 2013
Find yourself a small screwdriver. On the back should be several potentiometers ("pots") that will adjust aspect ratio, linearity, horiz, vert, color etc. Don't touch the color adjustments, but if y
General Discussions
»
The Lounge
create a .Dll with the functions and headers in a specific C-Console application
by
H.Brydon
Answer
27 Apr 2013
license:
CPOL
You didn't say what platform or IDE you are using, which is important for this type of question.The quick and easy answer is to create 2 dummy projects: an executable (console) app and a dll app of the type you want to convert to. Look at the details of the .dsp/.dsw/.sln/.vcproj/.vcxproj...
General Programming
»
Uncategorised Quick Answers
»
General
C
DLL
API
static pointer data member
by
H.Brydon
Answer
26 Apr 2013
license:
CPOL
I think the error is that you need to provide an implementation at global scope for the static pointers in question:// [in .cpp file]Least_Recently_Used *Least_Recently_Used::head = NULL;Least_Recently_Used *Least_Recently_Used::tail = NULL;(or of course you can use nullptr instead...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Ubuntu
C++ vector subscript out of range
by
H.Brydon
Answer
26 Apr 2013
license:
CPOL
You are reusing a variable for 2 purposes: for(int size=adjList.size(); i
General Programming
»
Uncategorised Quick Answers
»
General
C++
Re: Please provide user feedback
by
H.Brydon
Forum Message
26 Apr 2013
... but this doesn't fix the problem of duplicates. I have had much the same experience as Chris. My experience is that iTunes is all-too eager to create duplicates of songs you already have, and
General Discussions
»
The Lounge
Re: Not 'Clap' but 'CLAP', dammit.
by
H.Brydon
Forum Message
25 Apr 2013
Your code is like a dose of clap. Errr no, Clap. No, CLAP! -- Harvey
General Discussions
»
The Weird And The Wonderful
code for download option in java
by
H.Brydon
Answer
25 Apr 2013
license:
CPOL
If you want to do this in java, I think what you want is an ftp client. Google will help you out with this.Some example code in java for an ftp client can be found here[^]...
General Programming
»
Uncategorised Quick Answers
»
General
Java
Visual Studio 2010 and its MFC Application Wizard
by
H.Brydon
Answer
25 Apr 2013
license:
CPOL
MFC follows a 3 tier model consisting of the application, view and data. The related classes are CApplication, CView (several choices), and CDocument. From an access point of view, you are allowed to put handlers for any UI events in any of these classes, but from an architectural point of...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Page 1 of 13
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