|
Thanks
|
|
|
|
|
what is your need exactly ?
you already have an exe built, and you want an additional .lib file ? what that for ?
|
|
|
|
|
ksrameshkanth wrote: my exe is single when i distribute to customer, So i don't want to use dll. How do i convert my dll into lib.
you need source code of dll for that!
|
|
|
|
|
This really belongs on the Urgent board as others have mentioned.
I have to ask why it's such a problem to include a dll with an exe?
If you plan on statically linking the code that's in the DLL with your application then you need
to rebuild the DLL as a static link library.
Good luck!
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
What application type and can you be mre specific about your program
|
|
|
|
|
How can I get a list of all window handles from parent window handle, like Spy++
|
|
|
|
|
Use EnumChildProc .
EnumChildWindows(hwndParent, EnumChildProc,
0);
BOOL CALLBACK EnumChildProc(HWND hwndChild, LPARAM lParam)
{
}
|
|
|
|
|
Toubou wrote: How can I get a list of all window handles from parent window handle, like Spy++
FindWindowEx
|
|
|
|
|
See MSDN for EnumChildWindows it has a good example
|
|
|
|
|
WhiteSky wrote: See MSDN for EnumChildWindows it has a good example
i usually prefer FindWindowEx over EnumChildWindows.. my personal favourite what do you say@
|
|
|
|
|
can u tell me how to plot a sin graph in vc++ with y=sin(x).
here where x is from 1 to 100
is the following correct
for(int i=0;i<100;i++)
double y= sin(i);
dc.LineTo(i,y);
using this i am not getting curve
please tell me
|
|
|
|
|
l_d wrote: for(int i=0;i<100;i++)
double y= sin(i);
dc.LineTo(i,y);
To get a curce you have to make the x-axis visible.
Before startting the for loop move the starting drawing point visible.
dc.MoveTo(0, nVerticalCenteroftheWindow);
Do your Duty and Don't expect the Result
|
|
|
|
|
with addition to my above reply...
we know that sin(90) is 1.
for all the i value less than 90 we will get y < 1 or y < 0.
So you have to map the small values to some high value, that is, the value of 1 will be some 50 or 100. So that the y values should be converted to the new high value and plot the line.
Do your Duty and Don't expect the Result
|
|
|
|
|
sin(x) gives sine of x where x is in radians. Your plot would be sampling sin(x) about 3 times per cycle so you would be getting a very spikey graph. If you want to plot sin(x) with x in degrees, use
y = sin(pi*x/180);
Alternatively plot y = sin(x) with x going from 0 to 2*pi in say 100 steps - should give you a nice plot.
Peter
|
|
|
|
|
cp9876 wrote: use
y = sin(pi*x/180);
We can't use the 'y' value as such. It will draw a straight line, because for the x value from 0 - 90 the y value will be from 0 to 1. That is you will draw lines with varing x but the y vakue will be 0 untill 90. you can get 1, while x = 90.
So to plot, we have to map the y value to some larger value...
Do your Duty and Don't expect the Result
|
|
|
|
|
You're right - guess we have given enough hints for the homework
Peter
|
|
|
|
|
|
|
|
how to close parent dialog from child dialog
|
|
|
|
|
CDialog* pTest=(CMyParent*)GetParent();
pTest->EndDialog(0);
will close the parent dialog from the child dialog
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: CDialog* pTest=(CMyParent*)GetParent();
pTest->EndDialog(0);
will close the parent dialog from the child dialog
but before it have to close itself.. if child dialog is modal
|
|
|
|
|
No the parent dialog closes anyways.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
before trying to do this, i'd lie to know why you would want such a thing ?
a modal child dialog cannot be orphaned...
|
|
|
|