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

Search:

Type: Posts; User: greve

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Is it possible to switch from release- to debug-mode ...

    ... during execution of a program? Background: A thermodynamical simulation which yields unexpected results after less than 1min in release mode. If I start that program in debug-mode it takes more...
  2. Re: Vector subscript out of range- error whilst debugging

    Besides the initialization-error in your code (see #4) there is also a major design-mistake: If you use nested vectors, you'll loose most of the efficiency a vector provides. You may have a look to...
  3. Re: Vector subscript out of range- error whilst debugging

    As far as I understood your code you forgot to set the size of the DEPTH-dimension properly:

    Instead of:


    int main() {
    vector<vector<vector<double> > > array3D;

    // Set up sizes. (HEIGHT x...
  4. Re: How can I reference a static variable in another file?

    Is g_navMesh defined inside (1) or outside (2) of any function within the file?

    (1) No chance
    (2) As it is defined static the scope of g_navMesh is limited from the definition to the end of that...
  5. Replies
    4
    Views
    1,611

    Re: Loop Trouble with For Loop

    Currently your for-loop only iterates over the statement cout << "Judge Please select a number between 0-9:" << Judge << endl; I guess you would like to control everything beyond the for by that...
  6. Replies
    2
    Views
    5,617

    Re: Error Linking VOCE library in Qt

    See this post: http://www.qtcentre.org/threads/39144-How-to-add-a-lib-to-a-qt-project

    By the way: Your question might be handled faster by a forum handling especially qt-stuff, like:...
  7. Replies
    6
    Views
    1,681

    Re: Find unequal elements in array

    The problem you are trying to solve is quite universal. You might find a solution in almost every textbook on c++, e.g.: TC++PL, 4th edition Section 32.5.2., p.937
  8. Re: Looking for C++ books or tutorials, for experienced C programmers

    The accu runs a database with reviews of IT-related books: http://accu.org/index.php?module=bookreviews&func=search. Scanning for c++ results in far more than 200 reviews.
  9. Thread: returning struct

    by greve
    Replies
    2
    Views
    573

    Re: returning struct

    #include <iostream>
    #include <cstdlib>
    using namespace std;

    struct name
    {
    int first;
    int second;
    };
  10. Termination of namespaces with a closing brace only ...

    ... and not with a brace followed by a semicolon like in class-definitions - does anyone know the reason for that?
  11. Replies
    6
    Views
    3,257

    Re: parabolic shot program BORLAND C

    Hi,

    where do clrscr() and gotoxy() come from (the .h-files you included don't contain declarations of them)?

    Cheers,
    Thomas

    BTW: Your code would be easier to comprehend if you would use a...
  12. Replies
    8
    Views
    1,434

    Re: Nested class accessing it's parent...

    What about making Y a friend of X?



    struct X
    {
    struct Y
    {
    /*
    ...
  13. Replies
    9
    Views
    1,033

    Re: opening files were name contains '

    The quote in N,N'-dimethylethylenediamine.mol needs to be set as escape sequence as N,N\'-dimethylethylenediamine.mol

    Regards,
    Thomas
  14. Re: stringstream

    setprecision() may help. Consider to include <iomanip>.
  15. Replies
    2
    Views
    542

    Re: Bitfiields in C how to?

    You may use bitwise filtering plus bitshift to isolate the requested information, probably like:



    struct TClimate
    {
    int m_Temperature;
    int m_Humidity;
    int m_LevelOfRain;
    ...
  16. Accessing MFC-Objects from other threads than the primary

    I'm using a graphics library within an application. Functions of the library were accessed from a different than the application's primary thread. There were crashes which could be traced back to the...
  17. Replies
    7
    Views
    1,245

    Re: List out all the files in a folder

    The CFileFind-class (of MFC) might be aqppropriate.
  18. Replies
    3
    Views
    730

    Re: Overloading the = Operator for a Class

    You should bare in mind that

    CLASS& CLASS::operator=(const CLASS& rOther)
    will be generated for CLASS by the compiler if you don't. The default way functionality is memberwise copy, so you have...
  19. Replies
    8
    Views
    1,682

    Detecting a container's end

    I'm used to scan through a container in a fashion like this:


    vector<int> Data;
    ...
    for (
    vector<int>::iterator Val= Data.begin();
    Val != Data.end();
    ++Val
    )
  20. Replies
    5
    Views
    2,234

    Re: Setting cursor in a dialog's edit-ctrl

    @vcdebugger: As said in the previous post:
  21. Replies
    5
    Views
    2,234

    Re: Setting cursor in a dialog's edit-ctrl

    After having done more detailed debugging I've to commit that the posted problem was described correctly in terms of the phenomenon (cursor not set correctly) but my first attempt to solve it was...
  22. Replies
    5
    Views
    2,234

    Setting cursor in a dialog's edit-ctrl

    I want to set the cursor into an edit-ctrl preferably to a specific position. As far as I understood I have to set the focus to this ctrl and then doing a selection in that box. As SetFocus() is said...
  23. Replies
    8
    Views
    4,055

    Re: Problems with VC6 and Win7

    @Paul: Sorry for being not more precise. I hoped that generating a console-project would be self-explanatory. What I did:
    - Selected File/New
    - Selected the project-tab in the New-dialog and...
  24. Replies
    8
    Views
    4,055

    Problems with VC6 and Win7

    I tried to install VC6 on Win7 and got a warning that there are known incompatibilities. The installation nevertheless succeeded - there were no further warnings. It was also possible to start VC...
  25. Replies
    3
    Views
    2,145

    Re: VK_F12 and Windows XP

    I 've now got the same problem as nafnaf 8 years ago. Probably today there's somebody who has an explanation for this? Many thanks for any hints in advance.
    Thomas
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured