CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Lintworm

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Replies
    15
    Views
    2,084

    Re: Theoretical question: new and delete

    Hmmm I see where you are going.... I guess i was a little confused due to the stress of the VTK package seems to impose on me... Thank you all for your answers. I have fixed the problem by...
  2. Replies
    15
    Views
    2,084

    Re: Theoretical question: new and delete

    No, i did not. Maybe i should rephrase my question. How does the new statement work? I mean, does it work by allocating a chunk of memory, and fill it out the structure of the object, or does it run...
  3. Replies
    15
    Views
    2,084

    Re: Theoretical question: new and delete

    Like?

    Constructor:



    vtkMFCWindow::vtkMFCWindow(CWnd *pcWnd)
    {
    this->pvtkWin32OpenGLRW = NULL;
  4. Replies
    6
    Views
    1,112

    Re: How to do the data check

    Isn't it much easier to do it using the standard string functions? something like this: (if i understand your problem correctly that is:)



    #include <cstdlib>
    #include <iostream>
    #include...
  5. Replies
    15
    Views
    2,084

    Theoretical question: new and delete

    Hello all,

    I have a question concerning the new and the delete command. Here is the situation: I create an object by the command new:


    m_pSomePointer = new SomeClass(parameter);

    and...
  6. Replies
    9
    Views
    2,067

    Re: Windows.h already included

    ..or make sure that the first file you include is stdafx.h, in each file...
  7. Re: regarding compilation fatal errors C1083 and C1010

    How did you start your project? as an MFC-based?

    I stumbled across similar problems. I was building a WIN32 aplication, not configured for handling the MFC. But at some point I needed screen...
  8. Typecasting (float) to (float) -> strange effect....

    Hello,

    I don't exactly know where to post this, so I post it here. I've implemented a variant of the standard K-Means clustering method, and at some point I want to store the errors in a vector....
  9. Re: Debug and release buildings give different output results

    Tnx guys... It seems I've been a little lazy... Think I've got a pretty good idea of whats been going wrong

    Tnx again, I'll check it tomorrow in more detail, when I'm sober again... :)
    ...
  10. Debug and release buildings give different output results

    Hello,

    I have created a program wich can estimate the radius of a vessel on microscopy data. I've created it while building in debug mode. While I am now at the point of releasing it to my...
  11. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    Tnx, big time!!! It works now!

    BTW, I have one, probably stupid question about your code. I've noticed that you set:

    bm.pbi->bmiHeader.biSizeImage = 0;

    Is it no problem that it's set to...
  12. Replies
    7
    Views
    1,745

    Re: Good Beginner Projects to start

    I started using Qbasic and other tastes of that language, but for my study i needed a more serious language, and so I've learned myself c++. I started by looking for free books on the internet, and...
  13. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    Ow, and I have another question. The button now provokes the drawing of the image. But if I want the second time you press the button, the image to disappear, how do I have to do that?

    BTW, I used...
  14. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    Ok, I'll try to ask my question an other way. Included is a test project, in which all relevent code is added, only the image is now a self generated grayscale gradient image, stored in a float...
  15. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    I'm Sorry, I think i'm a bit messy in my language.

    This is what the program is supposed to do:
    I get data from a BIORad Two-Photon microscope. The data is stored as unsigned chars, so 8 bits....
  16. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    I know, but this is only in intialisation. I also set the data pointer to NULL, but I will set it later to the real data, just along with those parameters. Maybe I should add this function too:

    ...
  17. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    Hello all,

    It's been a while, but the problem didn't let go of me. I have totally rewritten my program from scratch, and moved the code to the OnPaint() function as sugested. However the problem...
  18. Re: Debug assertion failed: _BLOCK_TYPE_IS_VALID(phead->nBlockUse)

    I know....

    Hmmm The compiler does say that it detected a memory leak. When i follow where it points to this function:


    void Pic::SetDimensions(short newdim[3])
    {
    // Setting new...
  19. Re: Debug assertion failed: _BLOCK_TYPE_IS_VALID(phead->nBlockUse)

    Thank you for your answer. I checked it out, but I found what i already expected. If I deallocate memory I always set my pointer to NULL, and i have made it impossible to write to a NULL-pointer....
  20. Debug assertion failed: _BLOCK_TYPE_IS_VALID(phead->nBlockUse)

    Hello,

    I have a problem which i don't seem to be able te solve. I have implemented a function to convolve two images. However, when i have implemented it into Visual C++ it always seem to lock at...
  21. Re: Dummy question: how to get data from parent dialog

    It works, thank you very much!!!

    Greetingz, Han
  22. Dummy question: how to get data from parent dialog

    Hello,

    I have this project in which I have added a CTabCtrl. I have derived my own class from CTabCtrl. For each tab, I have created a seperate dialog. On these dialogs I have several functions,...
  23. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    Yeah this is really what i want. The data that is delivered to me is in BYTE format. However, if i want to modify the data, I cannot take into account the digit after the decimal sign. Therefor,...
  24. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    Thank you for your replies!

    I will upload two images, in a zip file. The way it is (picfout.bmp), and the way it should be (created using Mathematica 5.2) (Picgoed.bmp)

    I still have not fixed...
  25. Replies
    20
    Views
    4,159

    Re: Bitmap display problem: looks awful...

    I know, but this is because the data is supplied in a 8 bits format, and the displaying will mostly be concerned with overall look (in the sense of thresholded images and fitting lines on the image)...
Results 1 to 25 of 28
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured