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

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.06 seconds; generated 27 minute(s) ago.

  1. Replies
    1
    Views
    159

    Re: vb6 activex.exe commandline Application

    May I suggest you post this on this sites sister-site

    https://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier
  2. Re: use of algorithms in function cause ERROR: no instance of overloaded function

    I don't understand what you're trying to do in bool_element_option_03() above. You seem to be trying to access a 2-d array as a 1-d array??

    If yes, then something like:



    void...
  3. Re: use of algorithms in function cause ERROR: no instance of overloaded function

    You can access each element simply like this:



    for (size_t rw {}; rw < ELEMENTS; ++rw)
    for (size_t co {}; co < SLOTS; ++co)
    std::cout << arr_elements[rw][co] << ' ';

    std::cout...
  4. Re: use of algorithms in function cause ERROR: no instance of overloaded function

    Do you mean something like:



    #include <iostream>
    #include <algorithm>

    constexpr size_t ELEMENTS { 8 };
    constexpr size_t SLOTS { 32 };
  5. Re: use of algorithms in function cause ERROR: no instance of overloaded function

    std:;array, like c-style arrays, have their size set at compile time. std::vectors can have their size dynamically changed at run-time - by adding or removing elements.
  6. Replies
    7
    Views
    917

    Re: Convert C++ Code to Java

    It's not even a 'correct' conversion. I used unsigned to remove the need to check for a value < 0 - but Java has gone back to using int so the checks for < 0 need to be re-instated.
  7. Re: use of algorithms in function cause ERROR: no instance of overloaded function

    As a first baby step, move from c-array to std::array and then to std::vector:

    with std:;array:



    #include <iostream>
    #include <algorithm>
    #include <array>
  8. Replies
    7
    Views
    917

    Re: Convert C++ Code to Java

    It's not even that good C++ code... Perhaps 'better' C++:



    #include <iostream>
    #include <iomanip>
    #include <string>

    struct StudentGrade {
    unsigned quiz1 {};
  9. Replies
    7
    Views
    917

    Re: Convert C++ Code to Java

    As you have the original exercise requirements, I'd suggest you forget the C++ code and code your own version direct in Java. You'll learn more.
  10. Replies
    7
    Views
    762

    Re: how pass a class pointer to a object class?

    [I think the OP is referring to this thread https://cplusplus.com/forum/general/285034/ ]
  11. Replies
    7
    Views
    762

    Re: how pass a class pointer to a object class?

    What multi-thread - this isn't mentioned in the original post??
  12. Re: use of algorithms in function cause ERROR: no instance of overloaded function

    std::begin(), std::end() and std::size() requires that the size of the array to be known. When passing an array as function parameter this size is unknown as the array is 'decayed' to a pointer. The...
  13. Replies
    7
    Views
    762

    Re: how pass a class pointer to a object class?

    What are you trying to achieve?
  14. Replies
    7
    Views
    917

    Re: Convert C++ Code to Java

    What part of the C++ code don't you understand?
  15. Replies
    1
    Views
    276

    Re: Array of multiple types

    [asked and answered here https://cplusplus.com/forum/general/285066/ ]
  16. Replies
    6
    Views
    1,018

    Re: Do not understand conditional in for loop

    You need to consider precedence. . has the highest level and then & (as address). and * (as de-reference). So to have .second you need (*I).

    You could have:



    if (&i->second == this)

    ...
  17. Re: Opening .xlsx file in Excel programmatically

    and where is the password going to be stored required to open the Excel file? If it's hard-coded into the program, then anyone can examine the file and obtain it. And what about password changes?
  18. Re: Filter a txt file based on status TRUE FALSE of specific Excel cells

    The others didn't involve updating spreadsheet cells!

    If you can express the cells used in the condition (AI48, AI103, AI160, AI217, AI272, BL6, BL9, BL12, BL15) using just the cells A2:F2 (and...
  19. Re: Filter a txt file based on status TRUE FALSE of specific Excel cells

    Try this:



    #pragma warning (disable : 4471)

    #import "c:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE14\\mso.dll" \
    rename( "RGB", "MSORGB" ) \
    rename(...
  20. Re: Filter a txt file based on status TRUE FALSE of specific Excel cells

    The macro is basically one conditional statement which if true copies an input file line to the output file.

    The conditional statement is an AND of the bool values of these cells:
    AI48 - set...
  21. Re: creation of simple tree like structure using stl vector c++, need help : )

    That's the OP question - which has been answered above. What further info are you after?
  22. Thread: postmessage

    by 2kaud
    Replies
    8
    Views
    854

    Re: postmessage

    This was answered by Victor above.
  23. Replies
    3
    Views
    933

    Re: how use multithread with a loop?

    The point that sticks out to me is why is the if statement within the loop as Speed doesn't change within the loop.



    if(Speed >1000) Speed=1;

    for (int X = 100, H = imgTexture.ImageHeight; X...
  24. Thread: corrupted string

    by 2kaud
    Replies
    3
    Views
    750

    Re: corrupted string

    Depending upon what function() does and the size of s that is passed, this may have undefined behaviour. You may need to resize s first? What does function() do? As I mentioned above, if function()...
  25. Thread: C++23

    by 2kaud
    Replies
    2
    Views
    2,240

    Sticky: Re: C++23

    For C++23 compiler support see https://en.cppreference.com/w/cpp/compiler_support
Results 1 to 25 of 1987
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured