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

Search:

Type: Posts; User: mitz89

Page 1 of 6 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: Memory Leak in a dynamic multidimensional array

    ei, thanks.. It works great.. :)
  2. Replies
    2
    Views
    754

    Re: Retrieving color of a pixel

    Thnx for the reply. It is because I don't want to show the image at first because First I want to change the size of the bitmap and then display it.
    In this situation I used BITMAPINFO to retrieve...
  3. Memory Leak in a dynamic multidimensional array

    I've created a dynamic multi-dimensional array.
    However, when I close the program memory leak occurs.
    I already placed a delete function at the end but memory leak still appears.



    int **Arry...
  4. Replies
    2
    Views
    754

    Retrieving color of a pixel

    Is it possible to retrieve the color of the pixel with given the x and y coordinates of the pixel without using a CDC?
    I'm thinking like saving the bitmap into a memory then retrieve the color of...
  5. Re: What's wrong with this code? Collision detection.

    I was able to debug the program and it seems that the manual testing that I performed was right. It does have an error in the program. It return after the second loop of polygonA.
  6. Re: What's wrong with this code? Collision detection.

    I tried creating a program however I get an access violation here:


    int h;

    POLYGON *g;
    POLYGON *t;

    g = new POLYGON();
    t = new POLYGON();
  7. Re: What's wrong with this code? Collision detection.

    Manually. Graph the two polygons assign their respective coordinates and just follow the flow of the program. That's why I'm quite not sure with the output because from the result of my tests it...
  8. Re: What's wrong with this code? Collision detection.

    Actually it doesn't have a project yet. I just saw the code in a site and just tried testing it manually if the algorithm is correct.
  9. Re: What's wrong with this code? Collision detection.

    So you have already tried running the program?
    So what happened?
    I tried testing it twice but then on the condition part it enters the return 0 command.
  10. Re: What's wrong with this code? Collision detection.

    for (side = 0; side < a->NumSides; side++)
    {
    .....some codes
    /* test if lines intersect, if not, return false */
    if (maxA < minB || minA > maxB)
    return...
  11. Re: What's wrong with this code? Collision detection.

    What do you mean? Is the program working? because I haven't tried running it I just tested it manually however in testing it seems that the next loop in testing polygonA it already return 0 even if...
  12. Re: What's wrong with this code? Collision detection.

    Really need help.. thanks..
  13. What's wrong with this code? Collision detection.

    I'm trying to detect if two polygons have intersected.
    The Center point of PolygonA is -1,2.5 with points[a1(-4,4),b1(2,4),c1(-4,1),and d1(2,1)] and PolygonB is 2.5,2.5 with...
  14. Re: Problem with ADO sql statement.. Unknown error 0x800A0BB9

    oops.. my mistake.
    Actually I was just giving an example like if the sql you are trying to pass have multiple conditions you could use the Filter function instead of the Find function of...
  15. Re: Problem with ADO sql statement.. Unknown error 0x800A0BB9

    ei, solved the problem. I used the function Filter.
    ex.


    CString strWhere;
    //set connection to database and recordset.

    //Find a recordset

    strWhere = "field1='value1' AND field2='value2'...
  16. Re: Problem with ADO sql statement.. Unknown error 0x800A0BB9

    Does anyone has any idea on what function to use which I can be able to pass two or more conditions into the SQL statement? It's because the current function that I'm using which is the find method...
  17. Re: Problem with ADO sql statement.. Unknown error 0x800A0BB9

    ei salman108, I tried using what you suggested however in the part where I would use the putcollect function, it creates an error. It seems that it has affected the pRecord.



    _variant_t vField,...
  18. Re: Problem with ADO sql statement.. Unknown error 0x800A0BB9

    Then it will be able to execute same operation just like using the pRecordset.Find? Then how can I pass the value to the pRecordset?
  19. Re: Problem with ADO sql statement.. Unknown error 0x800A0BB9

    Also tried using it but still doesn't work.
    I think the function the I used is the problem.
    I think it can only handle single conditions. Any ideas what other function
    I can use to which can...
  20. Problem with ADO sql statement.. Find Method.

    Im using a ADO connection an actually the program is running quite smoothly. However when I tried placing multiple conditions into the Find statement, it seems that it creates an error. I tried using...
  21. Re: Access Violation in using ADO Addnew and Update..

    Yes.. thanks again..
    The problem actually was in inserting data into the database.
    I was so focus in coding that I forgot that there are also required
    fields in the table which needed some input...
  22. Re: Access Violation in using ADO Addnew and Update..

    Ei, your code works.. I quite don't know where is the problem in my code..
    Have to double check my connections I think.. Thanks..
  23. Re: Access Violation in using ADO Addnew and Update..

    Ei PadexArt,

    It seems that the error still appears.. When you run the program you created, did the error appeared?


    Yes, I'm havig a doubt in the part where I open the recordset if correct...
  24. Re: Access Violation in using ADO Addnew and Update..

    I tried using it but still error appears..
    Are there any other ways to insert a record into the database?
    I also tried using Addnew("field","Value") But still error occurs.
    Do you have any...
  25. Re: Access Violation in using ADO Addnew and Update..

    I think i can be able to replicate it into a small project however the database is quite big to be uploaded.
Results 1 to 25 of 130
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured