Type: Posts; User: TubularX
Search took 0.01 seconds.
July 28th, 2016, 06:08 AM
Nevertheless, since VS 2005, there have been some changes in how deployment works. You might find these links interesting:
July 28th, 2016, 03:52 AM
It's only safe if you can guarantee that the lifetime of the original object outlasts all references to it.
When the T object is finally destroyed, there must be no invalid pointers or references...
July 28th, 2016, 02:13 AM
What is m_components? A vector with unique_ptrs?
You must learn how to use smart pointers correctly!
AddCompenent will move a unique component into that vector, but that's not reflected by the...
July 26th, 2016, 12:30 PM
You can specify the name of the lib in "Linker -> Advanced -> Import Library".
July 26th, 2016, 06:42 AM
OK, then there's probably some orientation metadata in your original jpg file.
Check this out:...
July 26th, 2016, 06:37 AM
Paint also shows it as 600 x 338...
July 26th, 2016, 06:29 AM
I tried with the file "WP_20160403_15_42_25_Pro.jpg" that you shared.
The result is as expected:
However, the width is not less than the height in the image you enclosed!
July 26th, 2016, 04:57 AM
Are you sure that your image is not corrupt or incomplete? Can you share it?
July 26th, 2016, 04:47 AM
Yes, you can have a different target name for each configuration. You find this setting in "General" in "Project Properties".
I think %(LinkOutputFile) refers to the setting "Output file" in...
July 24th, 2016, 06:05 PM
More difficult than what?
For example, here's a solution using a scope guard instead of your Provider:
Graphics* graphics = nullptr;
July 22nd, 2016, 02:57 AM
You can call WaitForSingleObject unless you have a thread that creates windows.
To wait until the other process has finished:
DWORD result = WaitForSingleObject( info.hProcess, INFINITE );...
July 21st, 2016, 04:22 PM
No, the "pointclouds.org" site is unrelated. It's a completely different library.
Everything you need seems to be available in the QuickHull2D github.
July 21st, 2016, 04:13 PM
I looked at the github link, and the definition is inside the file QHull.cpp:
July 21st, 2016, 03:33 PM
Well, I'm not convinced with the idea of "global and scoped access". Isn't it just global state in disguise? What's the benefits compared to using a global pointer with a scope guard? The performance...
July 21st, 2016, 10:20 AM
static Provider *s_pInstance;
Looks static to me.
Don't you need the graphics renderer during the whole lifetime of the application? Then with your solution the "scoped" object is practically...
July 20th, 2016, 09:19 AM
The __VA_ARGS__ identifier is supported in VS2005, according to MSDN:
#define PRINT_MSG(fmt, ...) printf(fmt, ##__VA_ARGS__)
It should work if the file "account.h" is added to your project (possibly you need to specify a relative path).
If it's not supposed to be, you may need to add the path to the configuration...
Do you have any virtual method?
It's missing in your posted code, but dynamic_cast requires that the base class has a virtual method.
The problem is that you call delete too early. The CPersona object is destroyed, and then the pointer that was added to m_arr points to a destroyed object.
You should only call delete when the...
I'm not sure what you mean in the third case "accessed by a 3D vector".
But if you need to access by a specific index, then it means that the order of the elements matters to you?
A hash key on...
June 23rd, 2016, 07:57 AM
You can consider using std::function.
June 22nd, 2016, 05:04 PM
Here's one way:
std::vector<QuadNode>& walkables = GetLevel2Walkables();
for( size_t i = 0; i < walkables.size(); ++i )
June 16th, 2016, 01:59 AM
If you're new to macros, note that they are considered evil. For example, they are not type safe and can surprise you with incorrect conversions.
There are better alternatives in C++. In your...
June 15th, 2016, 02:25 AM
Before you use shared_ptr you should understand its purpose and when it's appropiate to use it.
It's typically used to manage the lifetime of a dynamically allocated object. By default it will...
June 11th, 2016, 03:11 PM
The DEBUG_NEW macro is often used in MFC applications to detect and track memory leaks. Then you need to include <afx.h> in the beginning of every cpp file. It's not related to shared_ptr, but any...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!