How can I skip common classes in VS 2008 debugger when stepping in?
For example, I do not want debugger to step into any of the std:: classes.
How can I achieve that?
I've found ways of doing this in VS 2005 and earlier, but not 2008
...
Hi! Another newbie question:
Is there any way to check if a iterator (whether it is from a vector, a list, a deque...) is (still) dereferencable, i.e has not been invalidated ? If so, which is the best way, in your opinion? (I was 'trying' and 'catching' :/)
Thanks again!
Edit: An example (which doesn't work)
list<int>l;
for (i=1; i<...
Having my own Java code I'm using C# to call some unmanaged code that call (via JNI) the java code. I'm using JNI since I need to ensure:
the ability that the Java code will run over real JVM and not over some .NET VM
the ability to attach to the VM for debugging (IKVM does'nt support it)
I need free solution
The current free solutions...
The boost::asio package contains classes for doing asynchronous file io in Windows using IO completion ports. To my understanding, there is no support for asynchronous file io for other platforms included in the asio package.
I am wondering what would need to be done in order to extend asio with asynchronous file io support for at least...
Why does this code not parallelize std::for_each() when it works perfectly fine with std::sort()?
How do I fix it?
g++ -fopenmp -D_GLIBCXX_PARALLEL=1 -o p p.cc && time ./p sort
GCC 4.3 on Linux.
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cstring>
void delay()
{
for(int c = 0; c < 1000000; c++) {
...
Hi,
I want to do a g_signal_connect to capture a
mouse click in a gtk_entry widget.
Something like this:
entry = gtk_entry_new ( );
gtk_box_pack_end ( GTK_BOX ( hBox ), entry, TRUE, TRUE, 1 );
gtk_widget_show ( entry );
// This is the one I'm not sure about
g_signal_connect ( GTK_OBJECT ( entry ), "????????????",
GTK_SIGNAL_FUNC ( E...
I have an API for a game, which calls methods in a C++ dll, you can write bots for the game by modifying the DLL and calling certain methods. This is fine, except I'm not a big fan of C++, so I decided to use named pipes so I can send game events down the pipe to a client program, and send commands back - then the C++ side is just a simp...
I have a WTL application that uses an extended combobox control (the Win32 class ComboBoxEx32) with the CBS_DROPDOWNLIST style. It works well (I can have images against each item in the box) but the keyboard behaviour is different to a normal combobox - pressing a key will not jump to the first item in the combo that starts with that le...
I have a simulation in C++ which generates huge amount of data. Right now I am using MATLAB libraries to save the results as a .mat file, but eventually I will be needing an open source binary format. I don't want to implement my own binary format and ASCII is not an option. I heard that VTK provides .vtk binary file format for saving 3d...
Hi,
Could anyone point me out to an article, where pragma directives, available in Qt enviroment would be discussed?
Thank you.
...
C++ win32 application (not MFC), whose GUI comprises just one dialog box from the resource file [WinMain() calls DialogBox()]. This works fine.
However, adding any "common controls" (listview, tab control, etc) to the dialog and they don't appear when the program is run. Normal controls (textbox, button, radiobox etc) are displayed, j...
I'm writing a bit for a game, which has a C++ API interface (ie. methods in a Cpp dll get called by the game when events occur, the dll can call back methods in the game to trigger actions).
I don't really want to write my bot in C++, I'm a fairly experience C# programmer but I have no C++ experience at all. So, the obvious solution is ...
I am looking for tips on how to aid my debugging by adding code to my application. An example so that it becomes more clear what I'm after: in order to detect dangling objects held by shared_ptrs I have created a tracker class that allows me to keep track of how many objects are alive and where they where originally created, which is the...
I need to acccess memcache from my C++ application. In oerder to avoid reinventing the engine, I have been searching for existing libraries. Suprisingly, there are very few of them around (for the most part, interfacing is done in C not C++).
However, I have found two - both of which have very early version numbers, and appear to be "de...
In java the compiler complains about uncatched exceptions.
I use exceptions in C++ and I miss that feature.
Is there a tool out there capable of doing it? maybe a compiler option (but I doubt it)
...
Why is this boost::lambda expression not working?
boost::function<bool (boost::uint64_t, boost::uint64_t&, unsigned int, float)> myFunct = boost::lambda::_3 < 1;
I get theses compilation errors, that won't probably help, because they are really cryptic.
|| In file included from /usr/include/boost/function/detail/maybe_include.hpp:33,...
What's the best way to implement an exception stack trace?
I found some kind of a solution using uncaught_exception() but it requires to add some code to every function.
I need something working on gcc under linux and windows
...
In C++, I'm wondering why the bool type is 8 bits long (on my system), where only one bit is enough to hold the boolean value ?
I used to believe it was for performance reasons, but then on a 32 bits or 64 bits machine, where registers are 32 or 64 bits wide, what's the performance advantage ?
Or is it just one of these 'historical' re...
Please suggest some website or some book that deals with these topics in really good detail.
I need to have a better understanding of these concepts (in reference to C++):
stack and heaps
symbol tables
implementation of scope rules
implementation of function calls
...
I am looking for an HTTP library for C/C++, that handles only the protocol logic, instead of the actual transport mechanism. Libraries I've came across tend to incoperate the entire communication process, which is not what I need.
However, I'm looking for something that's more than merely an HTTP parser. Ideally it would also take care ...