Type: Posts; User: Igor Vartanov
Search took 0.10 seconds.
Those errors give you the answer. The answer is: you are not able to set unicode text via that class method, because conversion to std::string implicitly occurs, and std::string is able to deal with...
Then you should start wanting to create an exe able to run service mode. Regular exe is not able to do that. :)
You start here with understanding Windows Service basics: About Services
This is not how unicode symbol is put down to string literal. Unicode literal must be L"<here your text goes>".
January 26th, 2015, 09:25 AM
What way (or tool with) did you get that string? Byte representation typically looks like 0xFF 0xD8 0xFF 0xE0...
That is, most probably, because something differs in the ways you read (or...
January 26th, 2015, 09:13 AM
Any image is just a number of bytes from database standpoint. So, to store images, your database column must be of some binary type, the size enough to store any possible image size.
January 23rd, 2015, 08:18 AM
As already been said, the question was about understanding the best way to help you. Now, consider this your question:
There is no such a thing like "CWnd* type handle". And dialog window handle...
January 17th, 2015, 01:28 PM
Confused about what? Clicking menu item results in sending WM_COMMAND with the item ID. Same to clicking button or toolbar button. This is the most elementary basics of Windows programming.
January 17th, 2015, 01:13 PM
You should revise your approach and stop thinking about executing some code after message pump loop. Instead, you should focus on other possibilities. GUI programming really differs from what you...
January 16th, 2015, 12:55 AM
Unlike to modal dialog, modeless dialog will be shown only in case your dialog template includes WS_VISIBLE style, or otherwise the dialog was forced to show up with ShowWindow()
January 16th, 2015, 12:47 AM
Nope. Windows design allows sending messages across threads alright. You have to do that with caution of course, but you can SendMessage from a thread other than the one the window was created in....
January 11th, 2015, 03:38 AM
Just be accustomed to deal directly with MSDN. :)
Typically, at the article's bottom you find some reference links letting you go deeper into the case:
January 10th, 2015, 02:36 PM
Win32 API inherits to Win16, and therfore includes certain Win16 function prototypes. I.e. natively supports prototypes, but not implementation. That was made to ease porting Win16 apps back in...
January 6th, 2015, 09:19 AM
It definitely depends on the app you fumble with. What looks to you like titlebar may be a self-painted region which appearance is controlled by the app itself but not window style. :) As others...
December 30th, 2014, 02:29 AM
You definitely need to gain some skills in debugging. Get some reading on the techniques. Go through documentation, your IDE or third party debugger.
The oldest known approach is logging values...
December 28th, 2014, 11:09 AM
DDX_Control does nothing special except subclassing dialog's control inside WM_INITDIALOG message handler.
December 23rd, 2014, 06:38 AM
Creating a Child Process with Redirected Input and Output
December 16th, 2014, 06:45 AM
Both times it results in window procedure direct calling. The difference is that when calling from worker thread, the caller thread gets blocked, the context is switched to UI thread, the window...
December 15th, 2014, 02:47 AM
Your understanding is correct. POSIX layer really exists in Windows, and the reason for introducing it was the intention of providing POSIX API for the sake of compatibility and easy porting from...
December 15th, 2014, 02:19 AM
You must be cautious when doing with SendMessage having possible deadlocks in mind (not in the case you showed), but in case you are, there would be no problem except one point: your GUI logic is...
December 13th, 2014, 04:54 PM
... which is MS Visual Studio 1.x (1.5 was the last from the family, a.f.a.i.r).
December 10th, 2014, 07:44 AM
The method still remains to be a class member, so compiler reasonably complains there's no global :: DefaultConsoleHandler exists.
December 10th, 2014, 12:23 AM
Your service application may create the proper pipe with explicit all-access security descriptor.
PSECURITY_DESCRIPTOR psd = NULL;
December 8th, 2014, 04:29 PM
Did it ever occur to you how much vague and ambiguous this sounds? Do you mean there should be some third process spawning the other two? Should those processes be running different executables or...
December 5th, 2014, 09:41 AM
If so, this would mean somebody fail to read or understand MSDN article, as the article is 100% clear about this particular situation. Not 99% or something, but 100%. :)
December 5th, 2014, 04:43 AM
Unfortunately with all this you remain were you were: no confidence in MSDN, and no real technical information from experts regarding supposed failures, like Windows version, resource type, module...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.