Hi All,
A function that returns a local object is considered undefined. But why does it seem that returning a shared_ptr is ok? Even the boost examples have this:
shared_ptr<X> createX()
{
shared_ptr<X> px(new X_impl);
return px;
}
I have never run into a case where this does not work...
Hi All,
I have a tool that uses PostMessage to automatically click buttons to cancel certain dialogs that pop up on the desktop.
So the tool runs in a loop looking for windows with a certain window text and then clicks a certain button.
It works fine on all dialogs that I have "registered" with...
Hi All,
Does anyone know the proper way to install a Perl module on Linux that loads several shared libraries? For standard libs that comes with Perl, the .so files are in the ${PERL_HOME}/i386-linux-thread-multi/auto directory. Is this where my libs should go also? I do not want to depend on...
Hi All,
Is there any way to catch the exit code from someone calling exit(status) and check the value before the program terminates?
Just for an idea, the code I'm thinking of is something like this:
void exithandler()
{
DWORD exitCode = 0...
Hi All,
Has anyone ever set a global hook with SetWindowsHookEx and tried to "listen" for windows getting focus with any success? I have installed the following callback function for the WH_CBT function type. The hook is installed fine with no errors, but the only code I am getting inside the...
What I found out is that you have to have certain "capabilities" set ( or permissions ) and those cannot be set in the live phase. They must be set in the load phase. So basically you have to start your agent with the target VM, you can't just connect to it get all of the JVMTI features. It's a...
It depends on what you are interested in. If you go with what is popular, web technologies ( J2EE ) is probably the hottest thing right now. But if you want to stick with something you are interested in and become a specialist it that area, you can do it, but it may take longer to find a job...
Hi All,
Using JVMTI, is there any way to get access to an object instance, see it's properties, call it's methods, etc. It looks like all the iterate callback functions just give information like, tags, object size, etc., but there seems to be no way to gain access to the object instance...
Well, this leads me back to my original question. What IS the proper way to initialize/populate a static member in C++? There are no static blocks in C++ like in Java, right? I don't want this data to get re-populated on every object instantiation. If someone could post a real compilable example...
Hmmm... Not sure what either of you mean. Which Foo:: do I not need? I removed each one and it made no difference.
Why should I declare Foo::ilist again outside the class. Wouldn't that make 2 definitions, one as a class member and the other not??
Anyway... the linker error I get is...
Hi All,
Can someone kindly tell me what is the proper way to initialize a static member list in C++? I have the following code:
#include <iostream>
#include <vector>
using namespace std;
class Foo
{
public:
Foo();
virtual ~Foo();
static vector<int> ilist;
static void...
Hi All,
I have a .dll that has been built with VS 2003 that has been running for some time now. We have upgraded to 2005 and now all of a sudden there seems to be this dependency on the MFC localization libraries. Where does this dependency come from and how do I get rid of it? The code and...
[.lib file] is a dependency of -> [.dll file]
[.dll file] is used by -> [test application]"
That is correct.
"Is the .lib file used anywhere else?"
yes, I use the dlls that belong to this .lib file.
"Are there more DLLs or exe's in the picture?"
yes, but not relevant.
"What do you mean it...
Thanks for your replies! Can you tell me what is the exact reason that my dll must be re-compiled? Obviously if I run it against the changed dependent library it will fail at runtime. But what is the reason? Is there some library signature, version number, or something that my dll knows about...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.