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...
...std::cout << exitCode << std::endl;
// prints 259, NOT 55
}
int _tmain(int argc, _TCHAR* argv[])
{
atexit(exithandler);
exit(55);
return 0;
}
This is for Windows, but I am looking for a solution for UNIX/Linux. BTW... this solution does NOT work because the process has not yet...
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...
...gives a linker error.
}
inline Foo::~Foo()
{
}
inline void Foo::init_list()
{
Foo::ilist.push_back(100);
}
int main(int argc, char* argv)
{
Foo foo;
}
In the ctor I call the static method init_list, but that gives me a linker error. I am really not sure why. Can...
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...
Yeah that makes sense. This may be a different topic, but is a .lib file considered to be changed if that .lib file depends on another one that WAS changed or does this matter at all?
Thanks again for the reply!
Well... in case 1, suppose you don't have control over this library. So maybe you know if something has changed and maybe not. The point is there is a new version of the library. Is a recompile of my .dll required and if so, why? In case 3, the point of recompiling is upgrading to a new version...
Hi All,
I have a question regarding creating a dll and static linking against a dependent .LIB. In what cases does the dll need to be compiled and re-linked for it to function correctly during runtime?
1) If the .LIB has been re-compiled and NOTHING has been changed?
2) If the .LIB has been...
Hi All,
Is it possible to create an XPath expression that can return ALL nodes within a document that has an attribute X with a value of Y?
thanks,
Barry
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.