Search:

Type: Posts; User: misterowakka

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    708

    MessageBox problem

    I built a win32 application. In the program I use MessageBox on several locations. For some reason some messege boxes cause crashes to the program. I even tried checking the returned value, but the...
  2. Replies
    6
    Views
    921

    I run a clear method, right after it I call the...

    I run a clear method, right after it I call the method to return the vector and compare it to another. Then I check if the second vector is empty too.


    I figured out that the problem is something...
  3. Replies
    6
    Views
    921

    Just checked; No, it is not empty. I guess that...

    Just checked; No, it is not empty. I guess that the problem is the output of this method


    const vector<int>& Robot::GetSamplesReadUsingRobot() const
    {
    return samplesRobotToKalmanFilter;
    }
    ...
  4. Replies
    6
    Views
    921

    Problem passing vector element

    I have three classes.
    Trial
    Robot
    WriteToFile

    Trial is holding a pointer to a WriteToFile object and for a Robot object.

    Trial is calling Robot method to return a string and passes it to his...
  5. Replies
    3
    Views
    968

    Thank you

    Thank you
  6. Replies
    3
    Views
    968

    Initialization of class members

    When generating a new instance of a class, do the constructors of all private members are called automatically? And what about the case I want to call a non default constructor?


    class Something...
  7. Thread: Beep

    by misterowakka
    Replies
    3
    Views
    1,701

    Beep

    I'm trying to make my computer play sounds. I know there are old DOS functions called sound(); delay(); nosound(); that don't work on visual c++.

    I tried using Beep(). This one doesn't play sounds...
  8. Replies
    2
    Views
    928

    Found it. Should add an astrix char...

    Found it. Should add an astrix


    char tempchar=*notes_iterator->begin();
  9. Replies
    2
    Views
    928

    Extract char

    I have a vector of strings

    vector<string> notes;

    Each string is built from a collection of chars.

    I want to extract the first char:


    vector<string>::iterator notes_iterator;
  10. Replies
    1
    Views
    1,380

    Global pointer

    I have a program with several cpp and header. I want a common instance of one of the classes for all places needed.
    What I did was to place (class Trials * currenttrial) inside another header file,...
  11. Replies
    42
    Views
    2,798

    Correct! Thanks!

    Correct! Thanks!
  12. Replies
    42
    Views
    2,798

    You little... :-))) Oh man...you're the best....

    You little... :-)))
    Oh man...you're the best. It's 1:20Am here, I hardly see, almost lost hope and you did it. You've got no idea how much I thank you.
  13. Replies
    42
    Views
    2,798

    Yep. Still, the same problem. While performing...

    Yep. Still, the same problem. While performing throw it says

    Unhandled exception at 0x00435768 in HW0.exe: 0xC0000005: Access violation reading location 0xccccccc0.

    and shows me dbgdel.cpp,...
  14. Replies
    42
    Views
    2,798

    I already tried changing it. (#27) and it didn't...

    I already tried changing it. (#27) and it didn't work...
  15. Replies
    42
    Views
    2,798

    You're right , but not thoroughly. I use new only...

    You're right , but not thoroughly. I use new only after those two first throws, and the error happens on the first throw, before using new...
  16. Replies
    42
    Views
    2,798

    The problem is caused while performing the...

    The problem is caused while performing the throws...I can't check otherwise because I have no other way to control errors rather than try-catch...

    About the other issues, thank you, and yes these...
  17. Replies
    42
    Views
    2,798

    Really good idea, which I was sure will solve the...

    Really good idea, which I was sure will solve the problem...But most unfortunatly it didn't...Bummer...



    void ReadFile(const string& filename) throw(ERRORS);
    void FileHandling::ReadFile(const...
  18. Replies
    42
    Views
    2,798

    I can't believe it. Damn. A few moments ago...

    I can't believe it. Damn. A few moments ago everything worked just fine. I made some changes and now when it is supposed to throw an exeption I get some memory leak and dbgdel.cpp is showing up!!!...
  19. Replies
    42
    Views
    2,798

    So how do I verify if the user inserted an int...

    So how do I verify if the user inserted an int when I ask him to instead of a char for instance?
    I thought the way is

    int num;
    cout<<"insert a num";
    cin>>num;
    if(!num)
    cout<<"you moron,...
  20. Replies
    42
    Views
    2,798

    Solved. You're the man! Thank you all!

    Solved.
    You're the man! Thank you all!
  21. Replies
    42
    Views
    2,798

    1) I ran it using the debugger and the throw...

    1) I ran it using the debugger and the throw NoSuchFile is called but not handled.
    2) I did if(!numberOfRows) to examine whether there is something different rather than a number in the first line...
  22. Replies
    42
    Views
    2,798

    You are absolutely right. I fixed what you said....

    You are absolutely right. I fixed what you said. Even though, the catch still doesn't work...
  23. Replies
    42
    Views
    2,798

    try-throw-catch

    For some reason my throws are not handled. Would appreciate your help.

    main()

    int main()
    {
    displayinfo();
    try
    {
    FileHandling operations;
  24. Replies
    26
    Views
    2,024

    Kalman Filter

    For whoever might need it. I had to create this matrix class for dealing with kalman filter. Since you helped me so much in this forum I soppuse that the final working code belongs to everyone.
    ...
  25. Replies
    26
    Views
    2,024

    If you have two 2D vectors, one is a(2X1) the...

    If you have two 2D vectors, one is a(2X1) the other b(1X2).

    axb=matrix(2x2)
    bxa=number...


    My problem is as follows. Consider the following situation

    b x matrix x a
Results 1 to 25 of 50
Page 1 of 2 1 2