|
through this i want to check client TCP/IP connection
|
|
|
|
|
mirtu wrote: ...i want to check client TCP/IP connection
Which is extremely vague. Please explain.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi Friends...
Run-Time Check Failur#0- The value of ESP was not properly saved across as a function call. This is usually a result
of calling a function declared with one calling convention with a function pointer with a different calling
convention.
Thanks 'N' Advance
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Thank you for the information.
|
|
|
|
|
you r welcome ....but how to solve it
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
rowdy_vc++ wrote: how to solve it
this was not there in your original post.
actually the error message is very clear. calling convention used in exe and dll are different for the same function. possibly you declared the function as __stdcall in exe and _cdecl in dll. refer calling convention in msdn.
post the declaration of the functions used in exe and dll to get answer.
modified on Thursday, March 13, 2008 3:09 AM
|
|
|
|
|
You're such a badass, Raj.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: You're such a badass, Raj.
using cursing word in public forum is crime dude !
"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
|
|
|
|
|
So what's the question? If you are wanting to know how to fix the error message, see here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have some rectangular blocks or figures drawn in my window or view and i need to search the whole window and locate a particular block even if the particular view or window is closed. e.g. having a GoTo box where i will write that block name and then the chart or the required window gets opened with the focus on the block. Please advise how to go about it.
|
|
|
|
|
If you are relying on a internal data structure to store the rectangle, then you don't want to depend on the window, whether it is closed or not. Use data structure which stores reactangle, chart identifier, block name, so that when the goto box is used to search a block nail down the data structure object and create the corresponding chart, and draw highlighted to indicate the focus.
|
|
|
|
|
In documentation it is said, log10() is using complex type argument. Can we use this function with int or float types?
How to check the return value is infinitive?
Best Regards,
Suman
|
|
|
|
|
There are four overrides for this function of types COMPLX, double, long double and float.
I want to check if the return value is infinitive.
Best Regards,
Suman
|
|
|
|
|
compare with -HUGE_VAL
HUGE_VAL is a defined value of 1.#INF000000000.. which is return as error for INFINITE.
modified on Thursday, March 13, 2008 9:42 AM
|
|
|
|
|
You can also check the argument.
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
|
|
|
|
|
Yes that is also good idea!!
Best Regards,
Suman
|
|
|
|
|
Hi All,
I have some controls that gets all the details regarding a mail. I need to add a Email Preview option.
How to start?? Or any ideas regarding how to implement that?
Tried to google but in vain.
Any ideas will really be big help. Thankyou.
Priya Sundar
|
|
|
|
|
what about giving the mail message body to webbrowser control.
|
|
|
|
|
hi thanks a lot.
It really worked!
I didnt know really about those things(webbrowser control!!).. in fact many things..
Thanks.
Priya Sundar
modified on Thursday, March 13, 2008 4:19 AM
|
|
|
|
|
Hi,
I'm about to rotate an image for display and I used RotateTransform() thanks to Mark Salsbery but now I'm having difficulty using it.
When I draw Image without RotateTransform,
g.DrawImage(&img,100,100,img.GetWidth(),img.GetHeight());
there's no problem. But when i added RotateTransform.
g.RotateTransform(330); // 30o elevation
g.DrawImage(&img,100,100,img.GetWidth(),img.GetHeight());
the image is displayed not in point (100,100) as expected rather in (137,37).
Is there something wrong in my code?
Do I have to add additional code for RotateTransform to work?
How will I display a rotated image in a fixed point?
Please help me.
Thanks.
|
|
|
|
|
You could use Graphics::TranslateTransform() to shift the image vertically and/or horizontally.
Note that the order you set transforms with matrixes is important...
Here's some reference material: Transformations (GDI+)[^]
FWIW, Here's an example (I've posted here before) which rotates an image around its center point, like a propeller...
Gdiplus::Bitmap SrcBitmap(L"C:\\test.tif", FALSE);
Graphics DstGraphics(*this);
REAL angle = 0.0f;
for (int i = 0; i < 1440; ++i)
{
DstGraphics.ResetTransform();
DstGraphics.RotateTransform(angle);
DstGraphics.TranslateTransform(SrcBitmap.GetWidth() / 2.0f, SrcBitmap.GetHeight() / 2.0f, MatrixOrderAppend);
DstGraphics.DrawImage(&SrcBitmap, -((INT)SrcBitmap.GetWidth() / 2), -((INT)SrcBitmap.GetHeight() / 2), SrcBitmap.GetWidth(), SrcBitmap.GetHeight());
angle += 0.5f;
}
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks a lot.
Now I will try it.
|
|
|
|
|
Is there a way where I can position the image at the
upper left corner of the image to any point?
Like for example position the image corner at point (100,100).
(100,100)
....._____
..../ / / /
.../ / / /
..------
|
|
|
|
|
TooShy2Talk wrote: Like for example position the image corner at point (100,100).
Matrix matrix;
matrix.Translate(100.0f, 100.0f);
matrix.RotateAt(30.0f , PointF(100.0f, 100.0f), MatrixOrderAppend);
graphics.SetTransform(&matrix);
graphics.DrawImage(&img, PointF(0, 0));
graphics.ResetTransform();
|
|
|
|
|
Thank you for the reply.
I will try this.
|
|
|
|