|
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.
|
|
|
|
|
Thanks,
But there is nothing to get OS service pack. How can I get it?
|
|
|
|
|
The GetVersionEx function returns the service pack info in the szCSDVersion member of the OSVERSIONINFO struct.
If you use OSVERSIONINFOEX, there's members wServicePackMajor and wServicePackMinor to have it as numbers rather than text.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
How to get:
Application name ( from version info) from resource file -
Application version ( from version info) from resource file-
|
|
|
|
|
Try with GetFileVersionInfo[^]
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
>Nothing is free in the universe.<
|
|
|
|
|
See here and here for starters.
"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
|
|
|
|
|
Under what circumstances will this function not work?
I mean using it to change the width of the window.
I find it kinda weird that this function sometimes works but sometimes not.
Anyone could help?
Many thx!
|
|
|
|
|
// I find it kinda weird that this function sometimes(yes) works but sometimes(no) not.
Probably it could be calculated as following :
needs_to_work = sometimes(yes) - sometimes(no);
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
If the window is created on a class that doesn't have the CS_HREDRAW and CS_VREDRAW styles, you've also to invalidate the window, since it is not done automatically.
Use SetWindowPos to have more control on the possible options.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
It's possible your target windows prevents resizing or changes the behaviour.
For example if it answers to the WM_GETMINMAXINFO message like so:
case WM_GETMINMAXINFO:
((MINMAXINFO*)lParam)->ptMinTrackSize.x = 200;
((MINMAXINFO*)lParam)->ptMinTrackSize.y = 150;
break;
The window will not allow itself to be resized to anything smaller than 200x150 pixels.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
Krauze wrote: I find it kinda weird that this function sometimes works but sometimes not.
And in those instances where it does not, are you calling GetLastError() to find out why?
"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
|
|
|
|
|
How to save the webpage on WebBrowser Control to file?
A lot of function for WebBrowser control such as GoBack,GoForward,GoHome,Navigate,etc... but no function for save it.
Please give me some idea for implement this function.
Thanks
|
|
|
|
|
Here is an article on how it can be done - Retrieving the HTML source code[^]
Since you're using a browser control you will need to call its get_Document method instead of GetHTMLDocument .
I also recommend that you use the ATL smart pointer classes like CComPtr and CComQIPtr .
Look at the Comments and Discussions section at the end of the article on other ways to do this.
|
|
|
|
|
|
Hi!
I've 8 jpeg images. I've to position it at 200 different places. For positioning I've a function called setPosition(vector3df). I don't want to copy the images to 200 times. How to place the same eight images at 200 different positions? Can anybody help with piece of code?
|
|
|
|
|
for(int i=0;i<200;i++)
{
for(int j=0;j<8;j++)
{
myImagesVect.at(j).setPosition(getRandomPosition());
}
}
Push Framework - now released !
http://www.pushframework.com
|
|
|
|
|
I have a MFC based dialog compiled with _UNICODE and all works well. Now I want to add a CEdit control and have it support Ansi text instead of unicode. That is, I want the CEdit control to accept ascii test and retrieve ascii text instead of unicode. Can this be done and if so, how?
|
|
|
|