|
Hi,
Download Boost Spirit[^] and see the mini-c sample in <Boost>\boost_1_44_0\libs\spirit\example\qi\mini_c.
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
my CHtmlView program uses window.external to communicate with between
js and c++.
then,
by window.external, c++ function code can be called from the
javascript in CHtmlView.
i thought, it would be better to define window.ui.flashwindow,
window.ui.util.parse,... etc like java package.
can it be possible to define them, and to connect my LPDISPATCH in C++
like a window.external?
|
|
|
|
|
Hi all,
i want to disable alt + space in my program. How can i do it?
Thanks in advance.
|
|
|
|
|
Add a handler for that key combination and do nothing there.
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
Handle the WM_SYSKEYDOWN message and simply return 0 for wParam==VK_SPACE . WM_SYSKEYDOWN is received instead of WM_KEYDOWN always when the alt is held down, (or when the F10 is pressed). If the alt+Space handling is in your accelerator table then you have to put special handling code to your message loop that drops this WM_SYSKEYDOWN msg before calling TranslateMessage() or DispatchMessage() or something else.
|
|
|
|
|
Is the problem just alt-space or does it relate to the entire system menu (even when accessed by the mouse?)
In the first case, just discard the WM_SYSKYDOWN for "space", (but the sysmenu can be invocate by other keywords or by the mouse)
In the second case, make your window without the WS_SYSMENU style.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
If you just want to disable the system menu by pressing keys (but you want to allow it by mouse clicks) then the best solution is to return zero from WM_SYSCOMMAND when wParam==SC_KEYMENU. This disables the system menu for ALT+SPACE, ALT+ALT_RELEASE+DOWN, F10+F10_RELEASE+DOWN, and should disable for all other combinations too.
|
|
|
|
|
It might actually be useful to the OP if you respond to him instead of everyone replying to him.
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
What OP stands for? I replied to the previous message because my reply was in relation with that.
|
|
|
|
|
OP = Original Poster.
Your answer adds information to my answer respect to what the OP wanted, but it is not itself a response to me since it is not me having the problem.
But -if you answer to me- the system will notify myself, and the OP (that wants to know the solution) will never know until he will visit this page randomly later (may even be never, if he already solved somehow the problem).
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
I want to add option(Check box) that user can choose whether the program run with windows start up or not.
Please give me some idea for do this.
Thanks
|
|
|
|
|
|
|
Max++ wrote: Please give me some idea for do this.
You want to know how to add a checkbox to your UI, or modify the registry?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I am developing MFC application using OpenCV ( VC 6.0).
I would like to be able to see the progress / debug messages from standard printf function used by OpenCV.
I found this MS article
"
How to spawn console processes with redirected standard handles
This article was previously published under Q190351"
Besides beeing somewhat complicated I am wondering if anybody actually used this MS approach with success.
Or better yet - in KISS tradition - is there a simpler way to accomplish this?
Thanks for reading.
Cheers
Vaclav
|
|
|
|
|
Vaclav_Sal wrote: ...I am wondering if anybody actually used this MS approach with success.
Yes, coupled with this one.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thanks,
it still looks like major surgery to me, but I'll give it a try.
Vaclav
|
|
|
|
|
Maybe its a bit stupid solution but I usually put this to the beginning of my main in gui programs when I want printf() for stupid debugging:
AllocConsole();<br />
freopen("CONIN$", "r", stdin);<br />
freopen("CONOUT$", "w", stdout);<br />
freopen("CONOUT$", "w", stdout);<br />
Note that this probably works only on windows, take a look at the msdn description of the CreateFile() if you want to know why the "CONIN$" and "CONOUT$" are working.
|
|
|
|
|
i have developed for gray scale image i dont know to change it to colour.As per the algorithm each color has to encrpted individually .Can u help??
|
|
|
|
|
maheshwari.vetri wrote: Can u help??
Try here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
what does that reply means
|
|
|
|
|
See #1 here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
It means that you're asking a C# question on a C++ forum.
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
How can I get the follwoings:
Application name ( from version info) -
Application version ( from version info) -
OS Name -
OS Version -
Servive Pack version -
Processor Version -
|
|
|
|
|
You can get the OS name, version and service pack info with the GetVersionEx[^] function.
The GetSystemInfo[^] function will give you details about the processor.
modified 13-Sep-18 21:01pm.
|
|
|
|