Click here to Skip to main content
Page 1 of 13
Page Size: 10 · 25 · 50


Author filtered by: H.Brydon [x]
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().
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
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...
Answer 13 May 2013   license: CPOL
You probably want to ask google about Dijkstras Algorithm[^].Here[^] is the wikipedia link...
C++
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...
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...
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...
C++
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.
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
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
Interesting solution by H.Brydon
Forum Message 8 May 2013  
I hadn't considered this approach to async/await. Nicely done. +5 -- Harvey
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...
Forum Message 5 May 2013  
You might find the following links useful: - YACC info[^] -
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
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
Forum Message 3 May 2013  
May the fourth be with you! Big day for Bob Vader I suppose. -- Harvey
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.
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.
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[^].
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
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
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.
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
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...
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?
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
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
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
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
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
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.
C++
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. --
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.
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
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
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
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...
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...
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
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
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
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
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
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...
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...
Answer 26 Apr 2013   license: CPOL
You are reusing a variable for 2 purposes: for(int size=adjList.size(); i
C++
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
Forum Message 25 Apr 2013  
Your code is like a dose of clap. Errr no, Clap. No, CLAP! -- Harvey
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[^]...
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...
C++

Page 1 of 13
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid