Search Results

Showing results 1 to 31 of 31
Search took 0.01 seconds.
Search: Posts Made By: jencas ; Forum: C++ and child forums
Forum: C++ Sep 23rd, 2009
Replies: 8
Views: 258
Posted By jencas
Or maybe you have a const method and you try to decrement a member variable in this method.
Forum: C++ Sep 2nd, 2009
Replies: 3
Views: 475
Posted By jencas
This is Windows code, not Linux.
Forum: C++ Jul 21st, 2009
Replies: 4
Views: 399
Posted By jencas
Translation for beginners ;)

search Google for: CTreeCtrl background image
select the second topic found (@codeguru.com)
Forum: C++ Jul 15th, 2009
Replies: 15
Views: 757
Posted By jencas
The source code for VS2005/8 can be found at http://msdn.microsoft.com/en-us/library/f35t8fts(VS.80).aspx
Forum: C++ Jul 14th, 2009
Replies: 15
Views: 757
Posted By jencas
Your OnSim should look like:


void YourFirstDialog::OnSim()
{
CSimConFig dlg;
dlg.DoModal();
}
Forum: C++ Jul 9th, 2009
Replies: 4
Views: 319
Posted By jencas
urgently required: a meaningful title for your posting(s)
urgently required: the source code you have done so far
urgently required: moderators who close irregular postings
urgently required: new...
Forum: C++ Jul 8th, 2009
Replies: 3
Views: 675
Posted By jencas
Use two buffers or even better two std::strings:


ifstream os; // variable name misleading!
string prev, curr;
while(getline(os, curr))
{
...
prev = curr;
}
Forum: C++ Jul 6th, 2009
Replies: 2
Views: 251
Posted By jencas
3. use a meaningful title
Forum: C++ Jun 25th, 2009
Replies: 2
Views: 284
Posted By jencas
I prefer


void A::getSomeStuff(vector<int> & vec)
{
...
}


to avoid a possible copy on return.
Forum: C++ Jun 22nd, 2009
Replies: 5
Views: 1,575
Posted By jencas
Some people use to eat their soup with a fork.......
Forum: C++ Jun 22nd, 2009
Replies: 2
Views: 353
Posted By jencas
wchar_t means wide character. You can't convert a wchar_t to a char by "brute force casting" it. You have to call an appropriate function to convert it. Take a look at wcstombs_s(), additionally...
Forum: C++ Jun 19th, 2009
Replies: 7
Views: 587
Posted By jencas
http://lmgtfy.com/?q=omniORB


If I remember correctly I wrote: "omniORB contains a tool..."
The name of this command line tool is omniidl.exe and translates your .idl to .cpp (if provided with...
Forum: C++ Jun 19th, 2009
Replies: 9
Views: 686
Posted By jencas
And why 49 and 57 instead of '0' and '9'??? Are you training for an obfuscation contest?
Forum: C++ May 29th, 2009
Replies: 9
Views: 495
Posted By jencas
Reread the article of the TO carefully.
Forum: C++ Apr 23rd, 2009
Replies: 7
Views: 515
Posted By jencas
std::transform(msg.begin(), msg.end(), msg.begin(), std::tolower);
Forum: C++ Apr 6th, 2009
Replies: 10
Views: 578
Posted By jencas
You are right. The only difference between op= and copy ctor is that you have to dump the old data in op=.

In such a case I nearly always use this sort of "pattern" for my classes:


class A
...
Forum: C++ Mar 26th, 2009
Replies: 4
Views: 370
Posted By jencas
Have you ever stepped thru commentLine() in the debugger?? I think this crap does not do what you want! And by the way, what about passing your string by reference to commentLine() and then use...
Forum: C++ Mar 6th, 2009
Replies: 4
Views: 1,394
Posted By jencas
erase() invalidates the iterator passed, but it returns a valid iterator. Just change the code to:


i = v.erase(i);
Forum: C++ Mar 6th, 2009
Replies: 8
Views: 746
Posted By jencas
You are not filling names[] from dataIn
Forum: C++ Feb 17th, 2009
Replies: 1
Views: 378
Posted By jencas
Visual C++ is an Integrated Development Environment which includes a (ANSI-) C++ Compiler.
Forum: C++ Feb 17th, 2009
Replies: 4
Solved: Simple Program
Views: 305
Posted By jencas
If is_prime() is entered with parameter 1 then y/2 evaluates to 0, because a is of type int. So the for loop is not executed and true is returned.
One more tipp: it is sufficient to iterate up to...
Forum: C++ Feb 11th, 2009
Replies: 3
Views: 303
Posted By jencas
Try http://software.ellerton.net/tinyxml.html
Forum: C++ Feb 9th, 2009
Replies: 4
Views: 662
Posted By jencas
May be this is helpful for you: http://www.fredosaurus.com/notes-cpp/oop-condestructors/copyconstructors.html
Forum: C++ Feb 9th, 2009
Replies: 1
Views: 217
Posted By jencas
Why should they? If you need iterators for stacks or queues perhaps you are using the wrong type of container. Stacks and queues have limited access by design, this should not be circumvented by...
Forum: C++ Jan 19th, 2009
Replies: 5
Views: 429
Posted By jencas
No, it is a type declaration of a function pointer:
TEntryFunction is a pointer to a function taking no argunemts and returning a IGameFramework pointer.
Forum: C++ Jan 19th, 2009
Replies: 2
Views: 329
Posted By jencas
Try to disable precompiled headers in the properties of the file causing the error message. You can find it in section "C/C++" and then "precompiled headers"
Forum: C++ Dec 5th, 2008
Replies: 2
Views: 399
Posted By jencas
...and familiarize yourself with code tags. That will increase your chance to get an answer enormously.
Forum: C++ Oct 23rd, 2008
Replies: 2
Views: 408
Posted By jencas
What about using STL algorithms and avoiding the temporary copy of the vector????
Considering this should result in code like (recite from memory, not tested!!!):


CPlotter &...
Forum: C++ Oct 16th, 2008
Replies: 12
Views: 740
Posted By jencas
a small enhancement:

If (YouHaveMoney)
{
UseVisualStudio
}
else
{
UseVisualStudioExpress;
}
Forum: C++ Sep 19th, 2008
Replies: 6
Views: 2,215
Posted By jencas
Suppose you have (for explanation unnecessary features stripped!):


class Animal
{
virtual void output() = 0;
};

class Dog : public Animal
{
Forum: C++ Jun 27th, 2008
Replies: 1
Views: 1,327
Posted By jencas
Try http://www.microsoft.com/learning/vstudio/2008/default.mspx
Showing results 1 to 31 of 31

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC