Sorry, I already did that. There is a mistake in my text above.
>
> if ( profile != NULL )
:> delete [] profile;
>
>The following does not work, either.
> if ( profile != NULL )
> delete profile;
8-)
Sorry, I already did that. There is a mistake in my text above.
>
> if ( profile != NULL )
:> delete [] profile;
>
>The following does not work, either.
> if ( profile != NULL )
> delete profile;
8-)
Hi @ all!
I have problems deallocating space.
MfContour2D* profile = new MfContour2D [20];
When I try to deallocate space, I get an ‘error’(Debug Assertion Failed!) und das Programm wird abgebrochen.
if ( profile != NULL )
delete profile;
The following does not work, either.
if (...
Hi @ all!
I have problems deallocating space.
MfContour2D* profile = new MfContour2D [20];
When I try to deallocate space, I get an ‘error’(Debug Assertion Failed!) und das Programm wird abgebrochen.
if ( profile != NULL )
delete profile;
The following does not work, either.
if (...
Thanks for your help, I lately found my problem.
I had to delete some code that I already excluded with /* */.
Like,
//{{AFX_MSG(CMyMainWindow)
// NOTE: the ClassWizard will add member functions here
afx_msg int OnCreate(LPCREATESTRUCT lpCS);
afx_msg void OnLoadImage();
afx_msg void...
Well, I am pretty bad in MFC, but I wanted to use the ClassWizard in my project, that I already started before. But I got the following error:
A duplicate insert block exists for class "CMyMainWindow" in the source files (..\main.h, ..\main.cpp)
The content of the main files are the...
The parameters are resulting from a searching procedure. Although the parameters are allright, the circle does not fit onto the shape (circle) that I have searched for. As you already mentioned Ellipse takes integers for parameters. I suppose this is the reason that the circle drawn above the...
Thanks Dave,
I already tried this, but the circle I can draw is a little bit shifted. Seems to be that the coordinates are converted to int. I already tried to convert to long, but could not manage yet.
pParameters[0] : x0
pParameters[1] : y0
pParameters[2] : radius
RECT rect;
rect.left =...
Hi All!
I have following problem with my Win32 Application:
I want to draw a circle into my window and I have the parameters for it (x, y, radius).
I have found DrawCircle in MSDN like:
Syntax
object.DrawCircle x, y, radius, [color, aspect]
When I tried it I got an error ('DrawCircle' ...
I have set breakpoints into both functions. I think, MFC should call OnPaint itself, if it finds the line InvalidateRect( NULL );
But it does not. I cannot understand why this does not happen.
I think I need a lot of time for leraning MFC and C++.8-)
Hello everybody!
Do you know why this does not work? My problem is, that I cannot see any output on my window.
x is a public member variable of the class CMyMainWindow.
void CMyMainWindow::OnPaint()
{
CPaintDC dc(this);
RECT rect;
GetClientRect(&rect);
char text[128];
text[0] = 0;
if( -1...
Hi again @ all!
Today I had to recognize that I was writing out of the borders of the arrays at some places.
Anyway, thanks alot for your help!
With kind regards, ... 8-)
Hi @ all!
I get an Application error when I start my program. It says: The instruction at "0x77.." referenced memory at "0x40.." and that it could not be "written".
I think my program needs too much space for allocation.
Sorry, I'm pretty bad in programming C...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.