Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ebuBekir

    Simple problem with memo allocation

    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-)
  2. ebuBekir

    Simple problem with allocation

    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-)
  3. ebuBekir

    Simple problem with memo allocation

    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 (...
  4. ebuBekir

    Simple problem with allocation

    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 (...
  5. ebuBekir

    ClassWizard usage

    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...
  6. ebuBekir

    ClassWizard usage

    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...
  7. ebuBekir

    To draw a circle

    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...
  8. ebuBekir

    To draw a circle

    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 =...
  9. ebuBekir

    To draw a circle

    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' ...
  10. ebuBekir

    Problems with OnPaint()

    Well, I had to decide, to check that problem later on. Although not very well, I will keep the code as it is. Thanks alot.
  11. ebuBekir

    Problems with OnPaint()

    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-)
  12. ebuBekir

    Problems with OnPaint()

    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...
  13. ebuBekir

    Hi @ all! I get an Application err

    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-)
  14. ebuBekir

    Basics of Memory allocation!

    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! 8-)
  15. ebuBekir

    Hi @ all! I get an Application err

    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...
  16. ebuBekir

    Basics of Memory allocation!

    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...
  17. ebuBekir

    Islam and memory allocation!

    Hi @ All ! My deepest sympathy to all those in the USA! Please, do not think wrong about Moslems. No terrorist can be a Moslem! In the Islam any person, who kills an innocent person, is as guilty as killing all the mankind! So, how could a terrorist be a Moslem? By the way, I have still...
  18. ebuBekir

    allocate memory!!!

    I think, for allocating space this is enough. int n = 2; COleDateTime* pointer = new COleDateTime [n]; to return the pointer, ... return (pointer); It may not be correct, try it please! 8-)
  19. ebuBekir

    Back to basics!

    Thanks Ion! It works the way you wrote it! ebuBekir 8-)
  20. ebuBekir

    Structures and Pointers

    I have big problems with structures! typedef struct {WORD pixel; int i; int j; int iStart; int iMax_i; int iMin_i; double dAngle; double dDistance...

Part and Inventory Search

Back
Top