System::String is a Managed C++ string, while std::string is an STL string. You need a way of getting the contents of the first in a format that the STL string operator(s) can understand. You'd do better asking in the Managed C++ forum, I think.
I'm adopting the code that could redirect a console output into the MFC Edit box.
My problem is, i want to have a live redirection from the console output to the edit box because i have a console application that will run about 5-10 mins and produces lots of information (output) in between those time in the command line.
My recent code will just wait the application to finish up before it could redirect the output from the command line to the Edit box.
Please help!.... thank you very much..
i need to learn more... i want to be like you guys... i'm just a begginer
I have a project which loads couple dlls. By Default, it loads from Windows/System32. I was trying to debug the problem with it's crash. And I would like to build a debug version with all the dll files that could run from the same directory as my main executable. However, some dll were loaded from the debug directory only which means if I delete the dlls from the debug directory of my project then it won't run. Even if I put the dlls in the same directory as the main exe or the windows/system32.
What kind of setting in my project could lead the loading of a dll from debug directory?
Or how could I set the dll loading always look for current directory and then windows/system32?
im trying to create a thread to listen on a port for incomming data but i keep getting errors
HANDLE Handle_Of_listener = 0;
Handle_Of_listener = CreateThread( NULL, 0, listener, &s, 0, NULL);
when i try to compile that it returns:
.\main.cpp(34) : error C3867: 'Messenger::listener': function call missing argument list; use '&Messenger::listener' to create a pointer to member
soo i do what it says and create a pointer to my listener() function
i am now getting this error when i declared it as
static DWORD WINAPI listener(SOCKET s)
.\main.cpp(34) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'DWORD (__clrcall *)(SOCKET)' to 'LPTHREAD_START_ROUTINE'
.\main.cpp(26) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
.\main.cpp(63) : warning C4441: calling convention of '__stdcall ' ignored; '__clrcall ' used instead
.\main.cpp(63) : error C2686: cannot overload static and non-static member functions with the same parameter types
.\main.cpp(26): could be 'DWORD Messenger::listener(LPVOID)'
.\main.cpp(62): or 'DWORD Messenger::listener(LPVOID)'
.\main.cpp(38) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'DWORD (__clrcall *)(LPVOID)' to 'LPTHREAD_START_ROUTINE'
None of the functions with this name in scope match the target type
I have a Image on my dialog this picture is on the WM_ERASEBKGND and its work fine but I have a problem
when I move my program or if I move a program on my program then Mem Usage of my program increase How can I solve this problem. And I have another question
if I use of a code like this on WM_PAINT It increase PF Usage and Mem Usage of my program or no