Hi,
I am very new to windows programming so bare with me.
I have a custom explorer bar (a band object) that hosts a webbrowser control. I can initialize the WebBrowser control properly and have it display web pages.
However, I've noticed that when I resize the explorer bar, the webbrowser control doesn't resize appropriately to the si...
Can I continue to use an multimap iterator even after a call to multimap::erase()? For example:
Blah::iterator iter;
for ( iter = mm.begin();
iter != mm.end();
iter ++ )
{
if ( iter->second == something )
{
mm.erase( iter );
}
}
Should this be expected to run correctly, or is the iterator invalidated f...
Hi,
I have created this program:
//Includes....
int main()
{
ifstream readfile("File.txt");
string str;
while(1)
{
getline(readfile,str);
system("cls");
Sleep(10000);
}
}
It's just a program that reads every 10 seconds a line from the file "File.txt"
I want to make it work on background,how can I do ...
I just read about the FastFormat C++ i/o formatting library, and it seems too good to be true: Faster even than printf, typesafe, and with what I consider a pleasing interface:
// prints: "This formats the remaining arguments based on their order - in this case we put 1 before zero, followed by 1 again"
fastformat::fmt(std::cout, "T...
I need a binary search algorithm that is compatible with the C++ standard containers, something like std::binary_search in the standard library's <algorithm> header, but unlike std::binary_search, I need it to return the iterator that points at the result, not a simple boolean telling me if the element exists
(On a side note, what the ...
Does any one know a good way to do remote procedure calls in windows (non .net) environmental?
I cant find much information on how to do it and the msdn only has the .net version.
.
Edit:
Thanks for the answers so far. What i need it for is to communicate with a service on the same computer which will send progress reports back to th...
Hi,
I am now debugging a program that utilizes many different threads.
there is an exception that is thrown from time to time. the problem is that there is no way to know what thread caused the problem...
does anyone know an easy way to get the stack trace after the exception is thrown? I thought about simply writing a debug message...
Hi,
I would like to create a C# project and implement the existing native (C++) code. Does anyone know about any good tutorial about it?
Thanks!
...
I am trying to compare the performance of boost::multi_array to native dynamically allocated arrays, with the following test program:
#include <windows.h>
#define _SCL_SECURE_NO_WARNINGS
#define BOOST_DISABLE_ASSERTS
#include <boost/multi_array.hpp>
int main(int argc, char* argv[])
{
const int X_SIZE = 200;
const int Y_SIZE = ...
Hi,
Here is my situation:
I have an application that use a configuration file. The configuration file applies to all users of the system and all users can make change to the configuration.
I decided to put the configuration file in "All Users\Application Data" folder.
The problem is that the file is writable only by the user who cr...
Does anybody know of a convenient means of determining if a string value "qualifies" as a floating-point number.
BOOL IsFloat( string MyString )
{
... etc ...
return ... // TRUE if float; FALSE otherwise
}
Thanks in anticipation.
...
Context : programming a c/c++ win32-mfc library
How to know whether we are in a console or a windowed app?
...
Today, I have seen some legacy code. In the destructor there is a statement like "delete this". I think, this call will be recursive. Why it is working?
I made some quick search on Y!, I found that if there is a need to restrict the user to create the stack object, we can make destructor private and provide an interface to delete the in...
I need to check a double value for infinity in a C++ app on Linux. On most platforms this works by comparing with std::numeric_limits<double>::infinity(). However, on some old platforms (RedHat 9 for example, with gcc 3.2.2) this is not available, and std::numeric_limits<double>::has_infinity is false there.
What workaround would you re...
i was learning about c++ pointers... so the "->" operator seemed strange to me... instead of
ptr->hello();
one could write
(*ptr).hello();
because it also seems to work, so i thought the former is just a more convenient way
is that the case or is there any difference?
...
Does anyone know how to query at runtime a list of display languages that a Symbian (S60, specifically) device has installed? I've been able to query for the language set, but I haven't found anyway of getting what languages make up that set at runtime.
This needs to be the actual language code (i.e, ELangEnglish for UK English, ELangA...
I would like to programatically change the data associated with a dataset in an HDF5 file. I can't seem to find a way to either delete a dataset by name (allowing me to add it again with the modified data) or update a dataset by name. I'm using the C API for HDF5 1.6.x but pointers towards any HDF5 API would be useful.
...
I'm using the Dialog editor in Visual Studio 2005 to create a Dialog box with a static text control. I'd like the background of the static text control to be transparent since I'm using an static image control underneath it and the grey text background looks hideous. In the editor, I set the "Transparent" attribute to True and it cause...
I have an application that allows users to write their own code in a language of our own making that's somewhat like C++. We're getting problems, however, where sometimes our users will accidentally write an infinite loop into their script. Once the script gets into the infinite loop, the only way they can get out is to shut the applicat...
When implementing a singleton in C++, is it better for GetInstance() to return a pointer to the singleton object, or a reference? Does it really matter?
...