Update your VC6 with SP5, and it will like std:: very much also. :)
Type: Posts; User: Hotman_x
Update your VC6 with SP5, and it will like std:: very much also. :)
The code seems good. What compiler are you using?
!#$*^*(^*&(^^$%
Nothing weird... :)
Move your declaration of your BITMAP_FILE_TAG to bitmapfunct.h
string str = string("Hello, ") + "World!" + " Some other words.";
I use boost date_time library in my program. And I fall in trouble.
I can not build my program, there occurs some link errors.
I'v ran bjam in boost_1_29_0/libs/date_time/build/ , and get a lib...
I think COMMON MULTIPLE is what you need. Not COMMON FACTOR.
9 is max common factor of 36 and 45;
180 is min common multiple of 36 and 45.
Imov is right. That is.
SQL(Structurized Query Language) will help you.
Supplement:
convert everything to string with Boost Template Library(www.boost.org):
int my_int = 100;
char my_char = '$';
char *my_str = "I want ";
string str = lexical_cast<string>my_str...
convert everything to string...
with MFC:
int my_int = 100;
char my_char = '$';
char* my_str = "I want ";
CString str;
str.Format("Do %s%c%d?", my_str, my_char, my_int); // just like...
It's quite challenging...
Thinking...
The only imageable method I can accept is : pack two EXE file as custom resource, and , unpack them to disk(or ramdisk) and run them when you need them.
...
Yes, it should show the same time. Because your computer is so cool to do 500 times loop as a piece of cake.
>>for(long x=0; x <=500; x++)
for(long x=0; x<500; x++)
>>if(x > 500)
if(x >= 500)
Use array like this:
#include <vector>
using namespace std;
typedef vector<SFont> vec_font;
vec_font rFont(nSize);
...
// use rFont just like an array
There is pointers in your struct, realloc sometimes copy your struct bitwisely, this can make your program crash.
Do not use realloc/malloc/free in C++, you should use new/delete.
In this case, you...
Change this line:
cptr = strchr(bytebuffy + a, searchnum);
to
cptr = strchr(bytebuffy + a + 1, searchnum);
It is an array of char, not a string. It need not NULL char to make end. And, maybe one of it's bytes is NULL.
Thank you, Barjor. Let me see...
probably you did not declare your Report() funtion as virtual?
Perhaps ...
Let's know your header file is the key.(Is there any grammar error with this sentence? )
I wanna know too.
Keep working hard, guys.
A Chinese idiom says: Sharping you ax will not delay your cutting woods.
Add a line as your FIRST line:
#include "stdafx.h"
NOTE: this line must be first valid line for precompile header files to work.
hmm...
then, RTTI can help you. But it is slow and complex.
Example:
if(typeid(B) == typeid(*p))
delete dynamic_cast<B*>p;
else
declare ~A and ~B as virtual function.
Remember : if any derive is needed, declare the destructor as virtual function.