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

Search:

Type: Posts; User: AvDav

Page 1 of 30 1 2 3 4

Search: Search took 0.40 seconds.

  1. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    This portion of the project I have worked on during my intention of starting career in local branch U.S. based company, Heuristic Physics Laboratory.
    They've rejected my candidacy, stating that the...
  2. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    As I already mentioned in the code above, the crash occurs when accessing vector's element with i iterator, which is pointing to a NULL memory at the run-time.
    I just replaced the following...
  3. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    The bug has been successfully eliminated using VS 6 environment.
    Thanks for supporting me. :)
  4. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    I have the same conclusion, but making that correction leads to another unsolvable crash, that's why the best way to overcome is to leave it under 6-th Studio, and start learning the new C++...
  5. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    In fact, I decided not to use the project with this obsolete code, as lots of things have been changed during the years of existence of development environments, it's better to compile them in a...
  6. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    void FParser::MakeExpression(Token* begin, Token* end, BracketExpArray& bracks) {
    Operation op;
    BracketExp tmp;
    BracketExpArray::iterator i;

    tmp.Nat = false;
    tmp.iOpBrack = begin->index;...
  7. Replies
    13
    Views
    3,708

    Re: Eliminating an odd bug

    I have already checked that the underlying memory of iterator at the crash point is NULL, using debugger, now I'm trying to overcome this issue, asking a solution how can I check that the iterator...
  8. Replies
    13
    Views
    3,708

    Eliminating an odd bug

    Hello gurus,
    I'm trying to build a project I have written a couple of decades ago under Visual Studio 6 environment, and currently trying to adopt it for a new dev. env., and I'm having crash...
  9. Re: can i convert a string into a math expression?

    I have written math expressions' parser and evaluator in C++. It's a C++ wrapper class.
    Works with 1, 2 variable, and thus can handle customized functions from 1,2 arguments for 2d and 3d...
  10. Re: binary digit matrix implementation by using 2D vector

    The Boost library has dynamic_bitset templated class, you can use it along with std::vector in order to achieve the necessary functionality.
  11. Replies
    20
    Views
    24,492

    Re: Database creation

    No, there are lots of samples available in the internet.
  12. Replies
    20
    Views
    24,492

    Re: Database creation

    This could be accomplished using file mapping or with just filling file's content into memory then dump modified data into output file.
    The same thing is proposed in another thread, but it does...
  13. Replies
    12
    Views
    2,425

    Re: Structured binding as initialisation

    As far as I'm concerned, modern C++ doesn't allow to define multiple types in a for loop, so your solution with the tuple would flawlessly work out in this case. Probably, this issue would be...
  14. Replies
    12
    Views
    2,425

    Re: Structured binding as initialisation

    I used to meet such a question on interviews, my point was "as soon as the variable doesn't redefine another variable the traditional way of doing this is the way to go.". The issue needs to be...
  15. Replies
    22
    Views
    15,382

    Re: File name change

    The problem with incompatibility of .csv and .xlsx files could happen, as .csv files are plain textual files while excel files have their own format, so even blank excel document has its own...
  16. Replies
    11
    Views
    3,314

    Re: Print files

    This topic probably needs to be placed in Visual C++ section, as MFC library have the device context related to printing and thus the answer can be given.
  17. Re: Skip lines when write to a file using streams

    Another good idea, is the following:
    When we met the second line it is necessary to set the file pointer to the exact position and write whole string from the beginning of the file.
    This would...
  18. Re: Skip lines when write to a file using streams

    The provided code would be a duplicate of initial file except for the line which need to be substituted, regardless what kind of data is written there.
    The program reads the file line by line and if...
  19. Re: Skip lines when write to a file using streams

    Why not to keep another .csv file and write the whole stuff into it? Here is the code:


    #include <string>
    #include <iostream>
    #include <fstream>
    #include <conio.h>
    using namespace std;

    int...
  20. Replies
    9
    Views
    2,526

    Re: Use goto crossing other function?

    https://stackoverflow.com/questions/17357199/using-goto-function-across-different-functions
  21. Replies
    2
    Views
    886

    Re: Default values for a user-defined types

    Another way is to instantiate the class's object and pass it to the function parameter.


    #include <iostream>
    #include <string>

    class myvals
    {
    public:
    myvals() : x(5), y(12.4) {}
  22. Replies
    17
    Views
    4,180

    Re: convert a int to char array

    Ugh, yeah, that sort of hack would certainly work out for an integer type. :)
  23. Replies
    17
    Views
    4,180

    Re: convert a int to char array

    Another option is to use standard ways of doing this.


    #include <iostream>
    #include <string>

    int main()
    {
    std::cout << std::to_string(0xffffffff);
    }
  24. Re: How to implement the count function of algorithm ourselves

    I guess, it should be of an integer value or either an iterator. :)
  25. Re: non ISO utf8 characters are not displayed properly from static library on Linux

    I have no idea. However, during programming for a Windows systems there is a _T() or TEXT() marcos available during dealing with both ANSI-string and Unicode characters. I'm assured, there must some...
Results 1 to 25 of 741
Page 1 of 30 1 2 3 4





Click Here to Expand Forum to Full Width

Featured