|
which activex are u using?
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Hi,
I am using NTGraphs NTGraph3DCC.dll ActiveX control which is freely available.
But the same ActiveX in 2D version has an API for 2D Printing. There is no 3D Printing Function provided.
Now, How to do it.
|
|
|
|
|
hi friends...
now i have doing one internal project in MFC
How to calculate system(PC) ON and OFF times in MFC?
Please if u have any ideas ..replay me
Regards
Nisha.S
|
|
|
|
|
nisha00000 wrote: ...system(PC) ON and OFF times...
Unless you are talking about GetTickCount() , you'll need to explain what you mean by this.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
When I needed to do this I used the Event Logging Functions API to read the system eventlog.
I created an eventlog class to wrap the Event Logging Functions.
You will need to look for the following events in the system eventlog from which you can determine the startup and shutdown times.
Start 6005
Shutdown 6006
|
|
|
|
|
Hi all,
I wanna make my prog's forms use the window theme, how could i do that under MFC 6.0??
thank you
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
is it imposs or what ?
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
You've only waited 26 minutes... That'd be good service if you were PAYING for the answer...
I presume you're talking about vista prettiness? If so, you need to include a manifest with your software - which is just a resource with certain parameters.
Try googling for MFC, 6, vista and manifest.
Iain.
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
first of all, Thnks for the answer.
And about the theme, i'm not looking for the vista its self but when i change the theme of the window i wanna that my progs forms layout chage too like the theme (Sorry if my english is not too clear )
I'll try to google
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Blood_HaZaRd wrote: ...when i change the theme of the window i wanna that my progs forms layout chage too...
Are you wanting to be notified of such a change? If so, check out the WM_SETTINGCHANGE message.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Ok it works.
May be i'm too noisy, but let's say thay i love the theme of my wind and i wanna make my prog always looks like that theme, what should i do, which files shoulf i save in the exec folder??
what are the procedures to do it?
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Manifest can help.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
how can i convert string like
char s[]="1234";
to integer like 1234
in c language.
plz help me
yogesh
|
|
|
|
|
See the atoi function in MSDN.
EDIT: BTW, this is the 59567 time (approximately) that this question has been asked. It doesn't hurt to do a bit of searching before asking the question.
|
|
|
|
|
didn't Christian write an article about how to google things ?!
|
|
|
|
|
Yes.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Cedric Moonen wrote: this is the 59567 time (approximately)
You had several integer overflows, it seems.
I must have been many more than MAX_INT times...
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
jhwurmbach wrote: You had several integer overflows, it seems.
Yeah, I knew I should have used an unsigned __int64
|
|
|
|
|
Cedric Moonen wrote: this is the 59567 time (approximately) that this question has been asked
And exactly?
|
|
|
|
|
Hamid. wrote: And exactly?
60000
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Use the atoi function:
like
<br />
char s[]="1234";<br />
int x= atoi(s);<br />
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Depends on how long the string is, and as a consequence, how large the number will be.
Look at the documentation for atoi, atol, atoll, etc.
[EDIT: oops! too slow]
The easiest way to make the world a better place is to refuse to help those that wreck it....
|
|
|
|
|
A example in MSDN
--------------------------------
Example
/* ATOF.C: This program shows how numbers stored
* as strings can be converted to numeric values
* using the atof, atoi, and atol functions.
*/
#include <stdlib.h>
#include <stdio.h>
void main( void )
{
char *s; double x; int i; long l;
s = " -2309.12E-15"; /* Test of atof */
x = atof( s );
printf( "atof test: ASCII string: %s\tfloat: %e\n", s, x );
s = "7.8912654773d210"; /* Test of atof */
x = atof( s );
printf( "atof test: ASCII string: %s\tfloat: %e\n", s, x );
s = " -9885 pigs"; /* Test of atoi */
i = atoi( s );
printf( "atoi test: ASCII string: %s\t\tinteger: %d\n", s, i );
s = "98854 dollars"; /* Test of atol */
l = atol( s );
printf( "atol test: ASCII string: %s\t\tlong: %ld\n", s, l );
}
Output
atof test: ASCII string: -2309.12E-15 float: -2.309120e-012
atof test: ASCII string: 7.8912654773d210 float: 7.891265e+210
atoi test: ASCII string: -9885 pigs integer: -9885
atol test: ASCII string: 98854 dollars long: 98854
|
|
|
|
|
yogesh_softworld123 wrote: char s[]="1234";
to integer like 1234
_ttoi
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
when I loading the dll and callling its function then I get the
following error how can I solve it.
DebugError
-----------
Program :\Project\Test.exe
Module:
File:i386\chkespc.c
Line:42
The value of ESP was not properly saved across a function call.This is usually a result
of calling a function declared with no calling convention with a function pointer declared
with a different calling convention.
Trioum
|
|
|
|