December 30th, 2015, 05:22 PM
it is another possibilty, but very risky in creating a memory leak
December 30th, 2015, 04:47 PM
this starts to get funny, because in your link:
And was exactly my consideration too.
December 30th, 2015, 03:32 PM
I don't think there is another way. these strings are messages received with serial connection (Arduino).
I used ::SendMessage wfor the same reason stated in the link from VictorN. Looks like you...
December 24th, 2015, 09:05 PM
Who said that moving to Win10 is an upgrade in the first place?
December 21st, 2015, 04:32 PM
I would like send a string to a window from a worker thread. i e to display it on it.
I got no better idea than sending the pointer and using ::SendMessage, to make sure the pointer wouldn't rot...
December 21st, 2015, 04:18 PM
You all gussed wrong.:)
What really happened I stepped on the same rake as in the thread http://forums.codeguru.com/showthread.php?553775-Linker-error-with-pure-virtual-function:rolleyes:
this...
December 21st, 2015, 04:14 PM
It turns out I celebrated too early, now I made my own expierence with it. The pitfall is that it works f you use it inside a data structure like
struct MyStruct
{
CString cstr;
}
...
November 17th, 2015, 04:16 PM
I am making a static library. when I try to use it in an application
I get following errors in MVS 2013:
error LNK2001: unresolved external symbol "private: virtual void __thiscall...
November 17th, 2015, 04:03 PM
Thank you. Not sure if the solution with lamda suits my need. The idea is to provied unified interface of the base class for all derived classes
also I decided that making base class abstract suits...
November 16th, 2015, 04:44 PM
after looking here and kind of 10 times reading through here
this code produced desired result:
#include <thread>
#include <iostream>
using std::thread;
using std::cout;
class Base
{
November 16th, 2015, 02:01 PM
I would like to launch a thread of with derived functor with base functor pointer to be able to override defalt behaviour
first I tried most obvious thing:
#include <thread>
#include...
November 13th, 2015, 12:00 PM
I've had the same problem, I searched for it and found this thread.
Now I write in this old thread because I feel I found an excellent solution, I want to share in case someone else will google for...