|
I am new to vc++.I want to build a simple project.Can anyone help me to this.
plz Give project abstract.
Is Any website for this.
|
|
|
|
|
Please refer this[^]
Regards,
Paresh.
|
|
|
|
|
|
Beexpert wrote: am new to vc++.I want to build a simple project.Can anyone help me to this.
which book do u refered
|
|
|
|
|
|
C++ doesn't know anything of MFC...
|
|
|
|
|
I guess he wants to learning c++
|
|
|
|
|
WhiteSky wrote: I guess he wants to learning c++
That's a third possibility. The two that he explicitly mentioned were MFC and VC++.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I think usually these are global questions and sender wants general answer (Maybe)
|
|
|
|
|
How to Close the process /.exe started by ShellExecuteEx() function ?
->The SHELLEXECUTEINFO structure contains information used by the ShellExecuteEx function.
->hProcess Member of SHELLEXECUTEINFO structure : Handle to the newly started application. This member is set on return. Any help would be greatly appreciated!
thanks in advance
Cyber G india Pvt ltd.
priyank
|
|
|
|
|
This example should help you,
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = ;
ShExecInfo.lpParameters = NULL;
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_MAXIMIZE;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
ASSERT(ShExecInfo.hProcess);
CloseHandle(ShExecInfo.hProcess );
|
|
|
|
|
thanks for your help.But Prasad, i want to exit from process also means its Window should Close.My Application is launching other application,all i want is , when i press on Exit Button of my main application, then launched application's Window Should also shut down.
priyank
|
|
|
|
|
pri_skit wrote: when i press on Exit Button of my main application, then launched application's Window Should also shut down.
. That you need to handle in your applicatin.
|
|
|
|
|
Again thanks for your help.
priyank
|
|
|
|
|
pri_skit wrote: Again thanks for your help.
TerminateProcess
|
|
|
|
|
pri_skit wrote: thanks for your help.But Prasad, i want to exit from process also means its Window should Close.My Application is launching other application,all i want is , when i press on Exit Button of my main application, then launched application's Window Should also shut down.
Enumerate processes[ ^] and kill the process before exiting from application .
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
i want to convert float and (/or) double data type into pixel. what would be the code for it.
nill
|
|
|
|
|
Usually a pixel is identified by the triple {X,Y, Color} each of the triple member can usually be represented using an int value.
So, in principle, you cannot directly convert a double into a pixel. What do you really intend to do?
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.
|
|
|
|
|
basically i want to draw x and y cordinates from an access database , i m using double data type, i may have float, but to draw i want to have pixels. so i need that conversion logic.
nill
|
|
|
|
|
So you are having X,Y points as double/float and those values are stored in a DB.
Whts the problem now, typecast the values to 'int' and plot the detail.
But i don't know, hw you get the Color value for the cooridinate as our pal mentioned in the previous post.
Do your Duty and Don't expect the Result
|
|
|
|
|
there's nothing logical in having floating point data types to store integers (moreover, such data types may loose the integers precision)...
please explain clearly what you have, because it seems that no one here understand your need exactly.
|
|
|
|
|
simple yet im drawing a picture by using double the x and y cordinates.but i need definite integers to draw. and wish to draw in pixels , the image is having million of x and y.
so suggest what should i do to draw in pixels.
nill
|
|
|
|
|
kindd wrote: so suggest what should i do to draw in pixels.
Using This[^] ?
|
|
|
|
|
simple yet im drawing a picture by using double the x and y cordinates.but i need definite integers to draw. and wish to draw in pixels , the image is having million of x and y.
so suggest what should i do to draw in pixels.
nill
|
|
|
|
|
please delete this post, i already saw your answer and replied to you
|
|
|
|