Search Results

Showing results 1 to 31 of 31
Search took 0.02 seconds.
Search: Posts Made By: jencas
Forum: C++ Sep 23rd, 2009
Replies: 8
Views: 274
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: 487
Posted By jencas
This is Windows code, not Linux.
Forum: C++ Jul 21st, 2009
Replies: 4
Views: 401
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: 766
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: 766
Posted By jencas
Your OnSim should look like:


void YourFirstDialog::OnSim()
{
CSimConFig dlg;
dlg.DoModal();
}
Forum: C++ Jul 9th, 2009
Replies: 4
Views: 326
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: 709
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: 256
Posted By jencas
3. use a meaningful title
Forum: C++ Jun 25th, 2009
Replies: 2
Views: 289
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,708
Posted By jencas
Some people use to eat their soup with a fork.......
Forum: C++ Jun 22nd, 2009
Replies: 2
Views: 382
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: 618
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: 701
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: 518
Posted By jencas
Reread the article of the TO carefully.
Forum: C++ Apr 23rd, 2009
Replies: 7
Views: 540
Posted By jencas
std::transform(msg.begin(), msg.end(), msg.begin(), std::tolower);
Forum: C++ Apr 6th, 2009
Replies: 10
Views: 584
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: 372
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,446
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: 765
Posted By jencas
You are not filling names[] from dataIn
Forum: C++ Feb 17th, 2009
Replies: 1
Views: 379
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: 311
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: 321
Posted By jencas
Try http://software.ellerton.net/tinyxml.html
Forum: C++ Feb 9th, 2009
Replies: 4
Views: 687
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: 220
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: 432
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: 333
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: 401
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: 412
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: 744
Posted By jencas
a small enhancement:

If (YouHaveMoney)
{
UseVisualStudio
}
else
{
UseVisualStudioExpress;
}
Forum: C++ Sep 19th, 2008
Replies: 6
Views: 2,232
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,358
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