|
To be honest I cannot remember what happens is you run outside IDE but something has definitely changed as an "Hello World" program run from within IDE runs and immediately closes. So either I have inadvertently set some switch within IDE or there has been a change in the operating system.
Alan Johnstone
|
|
|
|
|
add this in your code to pause temporarily your running program :
add this header :
<font color=#0000FF>#include</font> <conio.h>
and this where you want to stop :
getch();
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Mr. John R. Shaw.... Please provide information on the working of the menu... whenever i attach a menu with two tabs standard and scientific then i attach a function to the standard tab.. what should be the body of this function....and yeah why should i do the coding in the dialog's application initinstance function , can't be the coding done in the above mentioned function....and yeah sir,, please provide detail and mention the meaning of CMydiakog dlg(nResponse)
thanx and sorry for the trouble
haseeb
|
|
|
|
|
I have a problem in print previewing in dialog based application. The "prev page" button in toolbar is not getting enabled. Can anyone help me out. URGENT!
Thanks in Advance!
Jega Renga Kumari
|
|
|
|
|
I am implementing a feature - autoprint. Its purpose is to print an html file from my VC++ application after every
transaction is made. I tried with ShellExecute and ShellExecuteEx. But the print dialog opens which i dont want. Can
anyone tell me how to suppress the print dialog when i print an html file! Can anyone help me! URGENT!
Thanks in advance!
Jega Renga Kumari
|
|
|
|
|
How are you calling ShellExecute() ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi David,
Thanks for showing interest.
I am invoking this function when a dialog-print button gets clicked.
ShellExecute("Print", "ABC.htm", NULL..);
I get the html page printed , but before printing, its opening up the print dialog. Do you know how to suppress!
renkumari
|
|
|
|
|
jega renga kumari wrote:
ShellExecute("Print", "ABC.htm", NULL..);
This produces the same result as if you had right-clicked the file in Windows Explorer and selected Print. I do not know of a way to circumvent the Print dialog box.
My first guess would be an SDI application that used a CHtmlView . You could then programmatically print whatever was in the view.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i use serial communication both two class.
first,i open com port from one class for receiving data and displaying data in the dialog.
and i receive data from com.
this is fine work..
samelly,i open com port from another class in my application for displaying another format in another dialog.
in case, i have problems.
it doesn't work.
i have not receive data from com port.
i want to know
can i open same com port(eg:com1) in both two class within one application?
|
|
|
|
|
No, you can only open a COM port once. So, you'll need to share the handle of the port to be able to read/write data from another class
|
|
|
|
|
Hi
I´m quite new to VC++ .NET, and I´m building an application that is going to display graphically the readings from a sensor.
What kind of container (if container is the right word) should I use for displaing the graph?
Appreciate any suggestions,
doneiriik
|
|
|
|
|
We found that NTGraph controls (below) were fantastic on my last project. Very easy to use, easy to control and lots of functionality. If all else fails you could always save out as comma delimited files and use excel or excel automation as an alternative.
2D NTGraph
3D NTGraph
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
I have a CToolbarCtrl with an CEditControl and a CComboBox in it.
In order to have a tooltip for those controls I added ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipText)
to the toolbar. This solution worked fine until I added Manifest to the application.
With manifest I don't get the wanted tooltip. OnToolTipText doesn't get called.
Does anyone how to solve this problem?
|
|
|
|
|
How to make my dialog box always display on top?
On Visual C++ 6.0, how to I identify a user who is having what kind of privileges? (i.e admin privilege, etc)
|
|
|
|
|
|
if u want it to be on top alwayz....then u can find that option in the dialog properties(check the modal option).....
if u want it to be dynamic(that is made on top when the user clicks that option).....
try using this command.....
this->SetWindowPos(&CWnd::wndTopMost ,rect1.left,rect1.top,rect1.right-rect1.left,rect1.bottom-rect1.top, SWP_SHOWWINDOW);
well i hope that helpz.....
happy programmin.....
cheerz.....
|
|
|
|
|
max_gundam15 wrote:
How to make my dialog box always display on top?
On top of what, all other windows in your application (this is a modal dialog), or all windows in general (this is a system model and is used only in extreme cases)?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi everybody,
i've been having a strange behavior of the sscanf() function, which i replaced then by atof() (that works fine now).
i would like to repport this here to see if anyone has already encountered this before, and if any explaination was posted...
here is a sample of the code :
CString strVersion = <font color=#808080>"2.05"</font>;
<font color=#0000FF>double</font> dVersion = 0;
<font color=#008000>
sscanf(strVersion, <font color=#808080>"%f"</font>, &dVersion); <font color=#008000>
dVersion = atof(strVersion); <font color=#008000>
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
As indicated by the "%f", dVersion should be declared as a float and not as a double .
|
|
|
|
|
false.
%f is for both floats ans doubles
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You can either change dVersion to a float (not recommended), or change the format specifier to use "%lf" instead. In either case, the third parameter being passed to sscanf() must be a pointer to dVersion .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
DavidCrow wrote:
In either case, the third parameter being passed to sscanf() must be a pointer to dVersion.
yes, sorry, i forgot it while writing my post...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
Wouldn't that be akin to driving a brad with a sledge hammer?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Why? lexical_cast is intended exactly for such scenarios. All he needs to do is to include a header file and then to use it like:
double dVersion = lexical_cast<double>("2.5");
Much easier than sscanf and atof, isn't it? Not to mention that it throws in case of error, unlike atof which returns 0
|
|
|
|