Search:
Type: Posts; User: kempofighter
Search:
Search took 0.12 seconds.
-
March 18th, 2014, 10:11 PM
I applaud you for trying to use code tags, but please try to make the indenting more sensible in the future. The code within the tags is still very messy and hard to read. Also, it is a good idea...
-
October 30th, 2013, 03:22 PM
That is a good point which I had forgotten about. Sometimes I see code like this.
CString csValue(_T("TEST")); // is it necessary to wrap the ansi string?
If I had just written this,
...
-
October 30th, 2013, 03:00 PM
John, that suggestion worked for me. Thanks. That at least proves that it is possible to use some of those c-run time functions if we can figure out what the debugger can handle. I wish I could...
-
October 30th, 2013, 12:49 PM
See my subsequent reply. It still doesn't work with .c_str() added. Additionally, visual studio didn't complain about whether the expression was valid or not. Also when I tried doing this with...
-
October 30th, 2013, 12:19 PM
In hindsight, I realized that the condition above isn't quite right so I tried this one.
strcmp(str.c_str(), "stop") == 0
I'm surprised that the previous condition that I tried didn't cause...
-
October 30th, 2013, 12:00 PM
First, I read the following blog post and my expectation is that I can now do some conditional breakpoints with strings provided that I use the list of allowable functions. I could not get it to...
-
October 17th, 2013, 07:37 PM
I'm programming with VS2010, for windows 7. The user likes to use the windows classic theme, and I discovered that BS_MULTILINE style isn't working as I expect. When a button is pressed in the...
-
October 17th, 2013, 11:23 AM
I've tried to setup a feed to the following RSS feed, but LOTUS notes won't complete the operation.
http://www.codeguru.com/rss/cpp/
I've done the same for several other feeds, and it worked...
-
February 3rd, 2012, 02:45 PM
For noobs that read this and wonder what the solution was, do a search with the text "multiply defined operator c++" and lots of threads will come up. I have run into this myself and usually the...
-
February 3rd, 2012, 02:31 PM
'&' takes the address of the variable which is whatever the environment assigns. You are passing the address of the variable to the function, which will presumably modify that variable so that it is...
-
February 3rd, 2012, 02:23 PM
If it was that simple, then I wouldn't have started the thread in the first place. Being aware is great, if it is in fact true! But finding a solution is an entirely different matter. Moreover,...
-
February 3rd, 2012, 01:45 PM
I do not know the requirements of your program. Therefore it is very difficult to comment about whether something is done correctly or efficiently or whether there is a better way. I am concerned...
-
February 3rd, 2012, 01:30 PM
My biggest problem with understanding this is that I don't see how a compiler can determine whether something is read from or written to again; especially in a large scale project. I could...
-
February 2nd, 2012, 09:52 PM
Surely there must be something more elegant than using the volatile keyword and a manually written loop. Honestly, the aforementioned links don't do a very good job of explaining why the volatile...
-
February 2nd, 2012, 08:32 PM
Even if what you wrote compiled, I fail to see how that would be easier to read. I find the ternary / conditional operator to be a weird syntax for someone to read. I've recently noticed that this...
-
February 2nd, 2012, 08:12 PM
I read some code recently where someone wrote their own function called secureMemset where they used a temporary volatile pointer to the memory block and executed the write operation an extra time to...
-
November 22nd, 2011, 05:16 PM
You are trying to call a non-const function of the class via a pointer to a const object. The open function is not a const function. Do you need the database pointer to be declared as a pointer to...
-
August 17th, 2011, 05:38 PM
Please don't waste time scolding spammers. Just press the report button and move on; unless of course you want to waste your own time.
-
July 15th, 2011, 01:57 PM
-
July 12th, 2011, 04:35 PM
I'm using a visual studio 2005 makefile. I don't understand how to cause it to generate an output file with compiler/linker diagnostics info. What options do I include within the file? I was...
-
Is it? This is what the C++ standard says about it.
-
Saving memory shouldn't be your only concern. What about speed of execution? Extracting bits from bytes or bytes from words can be more time consuming than storing values using the natural type of...
-
Seriously? What do you think the "...." means? :rolleyes:
-
Sure you can! That's what the "other" option is for.
-
Hopefully you are still alive and realized that you should just eliminate the union and have two class attributes employeeName and id. You want the person to have both of those attributes, not one...
|
Click Here to Expand Forum to Full Width
|