Type: Posts; User: Codeplug
Search took 0.07 seconds.
October 15th, 2014, 10:00 AM
Correct again. I've been relying on RAII objects just "doing the right thing" for too long :)
October 14th, 2014, 04:11 PM
>> ... and MSVCR120.dll in the Cinema 4D folder
That should be handled by the appropriate VS runtime redistributable. (eg. http://www.microsoft.com/en-us/download/details.aspx?id=30679)
October 14th, 2014, 03:53 PM
Didn't see your last post...
Well, you wouldn't want to link statically to GPL source (without purchasing a license to do so). And some may even require a license to be used in a commercial...
October 14th, 2014, 03:45 PM
What protocols are used when accessing your server? Is it plain HTTP? Through TCPIP or TLS (SSL)?
What libraries did you use to achieve this access on MacOS?
October 14th, 2014, 03:18 PM
>> ... documentation on Get says it takes care of that ...
You are correct. My mistake.
>> One nice thing about using _com_ptr_t, _variant_t, and _bstr_t ...
One unfortunate thing is that there...
October 14th, 2014, 12:08 PM
A call to VariantInit() is missing (though the variant's initial values are not used in this case).
The VariantClear() call could be moved up 2 if blocks.
The call to...
October 13th, 2014, 06:25 PM
October 13th, 2014, 06:22 PM
One of your problems is the you are using an uninitialized variant and safearray. You'll want to use ATL's wrappers for these objects - CComVariant etc.
October 11th, 2014, 12:29 PM
>> Think WinAPI if the task is about WinAPI!
Are you saying that we should just be calling ::SetTimer in order to accomplish the task? Or that we should re-do everything in MFC in order to use its...
October 10th, 2014, 11:48 AM
>> Make Simple Tasks Simple!
I couldn't agree more.
The "task" in this case - and the reason for my participation in this thread - is to have ::SetTimer() callbacks into a C++ object instance...
October 9th, 2014, 09:58 AM
I'll choose a solid C++ interface over a C interface any day. I won't let a few lines of code stop me from creating one either.
If you have object instances that need their methods called on a...
October 8th, 2014, 12:52 PM
#include "WinTimerDispatch.h" // post #19
October 6th, 2014, 07:33 AM
This is what I use:
September 26th, 2014, 07:42 AM
>> ... to make the CP1251 -> UTF8 conversion.
Oops - I meant 1252. But 28591 would be best :)
September 25th, 2014, 06:01 PM
If you only have to determine one or the other, then while checking for UTF-8 validity you could check for bytes [00-1F] and [7f-9F] - if you find any then you know it isn't 8859-1. But you might as...
September 25th, 2014, 03:33 PM
If you want to compare strings, you need to make the left-hand-side a string as well. And don't use /a when not performing a arithmetic assignment. You should also remove the spaces around "=" in...
August 27th, 2014, 09:51 AM
I would try re-defining it to do nothing: #define _DEBUG_POINTER(x)
August 26th, 2014, 07:16 PM
You could use #pragma push_macro to temporarily re-define _DEBUG_POINTER.
August 21st, 2014, 08:40 PM
Yes, it will work.
The OpenSSL DLL's will use the VS2008 CRT internally. So your app installer will need to provide both the 2008 and 2013 redistributables. So you'll need the 2008 redistributable...
August 21st, 2014, 12:31 PM
If you don't want to compile OpenSSL yourself (which is needed to create the "sdk" tree structure), then you can try compiling against a pre-built version of OpenSSL:...
August 15th, 2014, 01:38 PM
Looks like a fix is in the works: https://codereview.chromium.org/477173002/
August 14th, 2014, 10:06 AM
>> template <typename U>
>> node(const node<U>& other)
>> :object_memory_(operator new(sizeof(T)))
Should that be sizeof(U)?
August 13th, 2014, 10:04 PM
Even though you are using the MS implementation of volatile, there are still plenty of data races that may be present depending your you how your threads access the object.
The conclusion that I...
August 12th, 2014, 02:23 PM
You should read this: http://www.gotw.ca/gotw/028.htm
And what is up with those volatile qualifiers? I hope it has nothing to do with threading....
I would also recommend this to avoid dynamic...
August 5th, 2014, 11:16 AM
>> However, it's still "proper" to explicitely close the handle when you no longer have a need for it.
This is what MFC does by default. You have to take extra steps if you want the thread handle to...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.