|
_AnShUmAn_ wrote: This will only draw a line.
Let's say a very smooth curve!
|
|
|
|
|
:->Hmm.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
wow its a line (only)
whitesky
|
|
|
|
|
What type of curve?
Have a look at CDC::Arc() if it suits your needs.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
To draw a curve, you need three points. With two points, you can only draw a line.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
|
Hi All,
I try to read ( use ReadFile method )from pipe and always fail.
I check the Error ( by using GetLastError()) and i found that the Error is 183 ( ERROR_ALREADY_EXISTS ) i found in the MSDN that this error meed that Cannot create a file when that file already exists.
I don't know what to do ....
Please someone can help me ?
Thanks.
-- modified at 1:47 Thursday 22nd June, 2006
|
|
|
|
|
My guess is that the error you get comes from CreateFile, rather than ReadFile.
Since you wan't to read from the pipe, my guess is that some other application already has created the pipe, right?
In that case, use OPEN_EXISTING in your CreateFile call.
|
|
|
|
|
No ,
I create the pipe - when i try to read in some state ( in the startup of the application i my reading from this pipe is ok ) my read fail.
|
|
|
|
|
Are you sure you get error 183 from the ReadFile func?
According to MSDN, that's not possible.
|
|
|
|
|
yes - its 183.
but i add some more method that check if the pipe already open and if its not it will reopen it.
now i getting error code 142
142 = The system cannot perform a JOIN or SUBST at this time. ERROR_BUSY_DRIVE
|
|
|
|
|
I'm sorry, but this is getting more and more peculiar.
Can you post some source code?
|
|
|
|
|
The following problem occurs in unicode debug config:
A socket connection handler class CMclSocket has a derived class
CHttpProtoFile. A function Send() of the base class is called in the
derived class in the OnConnect handler. Untill this function is called
in the derived class the member variables of the base class r
acessible. Once this function is called, accessing the member variables
inside this function in the base class throws '0xC0000005: Access
Violation.' error while running the application. This application works
fine in debug config.
Harshapaul Pinto
|
|
|
|
|
Try compiling it without the /GZ compiler switch in debug build.
Steve
|
|
|
|
|
|
hi all,
in a VC++ application, a .dsw file is created, on click of which we are able to open our project in the state as it was before closing...i want to do the same thing for my application...where in my project.xyz(say) shud open up the last state of my application.....rite now i am able to open the initial state(by calling .exe file, that is through registry entry)...where should i store all the information of state of my application, n where and how should i use that information....hope my point is clear...plzz reply as soon as possible...thanks and regards, geetika...
|
|
|
|
|
IMHO,
if you are to show the file in the previous state,save the number of characters that were not being shown (at the time of exiting from your application) from the start and save it to the registry.The next time you have to show the file, set the text on the control on which you are showing the contents according to the count you put previously in the registry.
This could be one of the many options of doing this. You can also look for better opinions/options on this forum.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You may start with INI file where you can store the application data...and use whenever required.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I have loaded bmps to a CImageList,
ex:
//////////////////////////////////////////////
bmp->m_hObject=(HBITMAP)LoadImage
(NULL, str, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
m_imagelist1.Add(bmp, RGB(0, 0, 0));
question:
I want use this CImageList to gain an icon to Load to other place, what shall I do?
wating for answers online!
Just my interest for these common things
|
|
|
|
|
HICON ExtractIcon( int nImage );
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
could you tell me in detail?
Just my interest for these common things
|
|
|
|
|
Taken From MSDN :-
Just look for that function in MSDN.
Example<br />
<br />
extern CImageList* pmyImageList;<br />
extern CDC* pmyDC;<br />
<br />
int i, dx, cx, cy, nCount = pmyImageList->GetImageCount();<br />
HICON hIcon;<br />
<br />
::ImageList_GetIconSize(*pmyImageList, &cx, &cy);<br />
<br />
for (dx=0,i=0;i < nCount;i++)<br />
{<br />
hIcon = pmyImageList->ExtractIcon(i);<br />
<br />
pmyDC->DrawIcon(dx, 0, hIcon);<br />
dx += cx;<br />
}
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
Ok, thank you very much, I will try this way!
Just my interest for these common things
|
|
|
|
|
Can someone compile this c file for me I tired for a few days with no success
and this is really important to me .
http://www.xs4all.nl/~itsme/projects/sources/other/zippw.c[^]
many of my other mates attempted also failed they said it need unix os
I appreciate it to the max.
-- modified at 0:34 Thursday 22nd June, 2006
|
|
|
|
|
Yes it does compile (win32 console app) with a few changes to the includes and a few typedefs (the changes amount to at most 6 lines). That said this is a forum for posting programming questions and not a compiling service.
|
|
|
|