I'm learning my way around visual studio at the moment. If I've turned set /Wall -- I'll be greeted with a seemingly unhealthy amount of warning messages although my application will compile just fine.
Is this normal? Changing the error level will stop the messages. It looks as if they are all related to the C++ STL or its header files ...
NoobQuestion:
I heard that filling a char array can be terminated early with the null char. How is this done?
I've searched every single google result out there but still have come up empty handed.
...
I am newbie in WinCE Programming, i want to Create Custom File Dialog for our application, which has totally diffrent look and feel than the default windows file dialog....
I looked into many Flag value bt they won't worth it ...
Any pointers will be helpful
Thnks...
Mukesh
...
I'm trying to convert C++ API to VB.Net, but this function is too hard and i don't know how make it work.
Here is the API doc for this function:
void RemoteDllSetReceiver(void *inst, on_received_buffer_t received_buf_cb);
Sets a callback function to receive notifications from the DLL. The prototype of the callback is:
typedef bool...
As far as I can tell, inplace_merge does the exact same thing as sort, except it only works in certain circumstances (When the container is already in two sorted parts).
In other words, is there an difference between these two:
int first[] = {1,3,5,7};
int second[] = {2,4,6,8};
vector<int> v(8);
vector<int>::iterator it;
copy(first,fir...
Hi
Given that I am on a workstation, that is inside a Windows Server domain.
In my data, I have the login name of the operator who has created the data.
When I print a presentation of this data, I want to display the first and last name
of this operator, which may be logged on another workstation of the domain... or even could even not...
Hello,
I just got stuck with the following C++ compiler error:
no matching function for call "EPTDerivedException::HandleClass( BaseClass& )"
candidates are: void EPTDerivedException::HandleClass( DerivedClass )
I cannot explain this, because there should be a function HandleClass( BaseClass ). This is the calling code:
BaseClass oB...
Hello,
I want to convert a floating point value to its integer representation. As this will be used in comparisons, the default rounding mode (round_to_nearest) is not appropriate for me. As far as I know I can't specify the rounding mode to the FPU in a C++ standard compliant way (not even in C++0x). What are the other ways to accompli...
I have a large application written in C++, For various reasons I am going to rewrite it in C#, I have done plenty of Delphi to C#, VB to C# but C++ to C# I have never done, although I am competent in C++ I want this to be as smooth a conversion as possible.
Mainly what I am asking is what pitfalls await me in this conversion is there an...
In C++ what is the best way to return a function local std::string variable from the function?
std::string MyFunc()
{
std::string mystring("test");
return mystring;
}
std::string ret = MyFunc(); // ret has no value because mystring has already gone out of scope...???
...
Hello all!
I'm migrating a multi threaded application from HP-UX to Solaris and so far, everything is OK except for one thing! The application has a thread that is handling the signals and, when some of them are received, it runs some cleaning (logging, kill child processes and so on).
I've reduced the code as much as it was possible t...
Hello,
I am developing an application in C++ to check the users email accounts. This application uses the vmime library to do the processing related to POP3/IMAP/SMTP protocols.
I designed the application to work continuously. So, it has to be stable enough!
Sometimes, the application suddenly stops giving this strange error:
ath.c:1...
I compiled my boost libaries according to the guide found here and tried to use the boost filesystem libary.
When I add #include <boost\filesystem\operations.hpp> I get the following errors:
error LNK2028: unresolved token (0A00009A) "class boost::system::error_code __clrcall boost::filesystem2::detail::dir_itr_close(void * &)" (?dir...
How can I get current system IP using c under window XP.
...
I have the following problem.
I got a class PluginLoader which oversees loading of plugins. It divides sub-stages of work to other classes like Plugin. Plugin calls functions of PluginLoader in its processing. Let's call that function AddData. Here, PluginLoader has to check if the data it receives is duplicate. For that, it uses a Conf...
Hi all,
I tried to compile a sample from the Boost.Preprocessor library which is:
#include <boost/preprocessor/seq/insert.hpp>
#define SEQ (a)(b)(d)
BOOST_PP_SEQ_INSERT(SEQ, 2, c) // expands to (a)(b)(c)(d)
on Visual Studio 2008 and I get the error error C2065: 'b' : undeclared identifier
Is there a problem with the sample or am I m...
I've got 3 classes:
class Super
{
virtual int getType() { return 1; }
}
class Special : public class Super
{
virtual int getType() { return 2; }
}
class SpecialSpecial : public class Special
{
virtual int getType() { return 3; }
}
And I've got a function which takes an std::vector<Super*> as argument:
void handleClasses...
I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios and have installed the CDT plugin. But after that I can still not create a C++ project from File > New > Project, there is still only Java Project available there.
How to solve this? and do I have to install anything more for C++ de...
I am trying to create a bit-vector class in C++ to model some hardware. In most HDLs (hardware description langauges) that I know, specific bits are referenced like this:
my_vector[bit_position]
and sub-vectors are referenced like this:
my_vector[msb:lsb]
or
my_vector[msb,lsb]
I want to be able to do something similar with my b...
I have a class which allocates memory on the heap and then the destructor frees it. My copy constructor is never being called for some reason and I do not understand why. Here is my implementation:
AguiBitmap::AguiBitmap( const AguiBitmap &bmp )
{
this->nativeBitmapPtr = al_clone_bitmap(bmp.nativeBitmapPtr);
}
Agu...