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.19 seconds.

  1. Replies
    4
    Views
    1,835

    Re: Stupid Things Developers Do

    and then find out it's actually your code......
  2. Thread: I'm back!

    by 2kaud
    Replies
    5
    Views
    807

    Re: I'm back!

    This forum is now very quiet compared to what it was a few years ago. From 14 years ago, there's possibly only Arjay and Victor still around. I've only been around a mere 9 years...
  3. Replies
    6
    Views
    3,033

    Re: Can't get libzippp working in 64 bit

    The code that produces the .lib/.dll files needs to be re-compiled with your compiler using the same settings as for your main code. This is C++ 'name mangling'. The whole name must match exactly....
  4. Replies
    6
    Views
    3,033

    Re: Can't get libzippp working in 64 bit

    Use dumpbin /exports filename.lib to see the exported names from the .lib file
  5. Replies
    18
    Views
    1,599

    Re: Calling python from c++ in visual studio

    Note that you're not using " in the code. You're using non-ascii opening double quote and closing double quote.
  6. Replies
    18
    Views
    1,599

    Re: Calling python from c++ in visual studio

    Are you using python 3 or python 2? You say you ticked python 3 (3.7.8)- but then you refer to python 2 libs/include (2.7) ?? Shouldn't these refer to python 3 libs?

    AFAIK python 2 and python 3...
  7. Replies
    18
    Views
    1,599

    Re: Calling python from c++ in visual studio

    When you installed python, what install options did you choose? From VS Installer, what are the python installation details?
  8. Replies
    18
    Views
    1,599

    Re: Calling python from c++ in visual studio

    Sorry I can't help as I have never used python. However, doing a google search for the problem gave many items. Perhaps one of them might help?
  9. Replies
    9
    Views
    1,744

    Re: Circular include problem

    Provide a minimal test compilable program that shows the problem - one .cpp file of at most a couple of dozen lines (no .h files etc) that can be pasted here and copy/pasted easily into the compiler....
  10. Replies
    9
    Views
    1,744

    Re: Circular include problem

    How and where are you using imp_ ? Can you provide a minimal test compilable program that shows the problem.
  11. Replies
    9
    Views
    1,744

    Re: Circular include problem

    Is this a circular class reference problem - both classes referring to each other?

    If yes, then you need to forward declare one class before it is used in the other. Note that if this is the...
  12. Replies
    22
    Views
    2,879

    Re: __cplusplus number

    ssize_t as of C++20 is now a c++ type. It is a signed version of size_t. So if you are compiling as C++20 then you can't now define ssize_t as a type.

    So I guess you need something like:


    ...
  13. Replies
    1
    Views
    1,221

    Re: Something analagous to exp2f()

    exp2f() was introduced with C++11

    Re pow(). Yes and no. pow(2.0, 4) will effectively do the same job as exp2f(4), but returns a double and not a float (as 2.0 is of type double). To be pedantic on...
  14. Replies
    22
    Views
    2,879

    Re: __cplusplus number

    The c/c++ compiler/linker is cl.exe msbuild.exe is for the .net framework. clink.exe is no longer used.
  15. Replies
    22
    Views
    2,879

    Re: __cplusplus number

    auto_ptr was depreciated with C++11 and removed with C++17 as there were issues with it's implementation. Use either unique_ptr or shared_ptr as appropriate which are what replaced it.

    Any C++...
  16. Replies
    22
    Views
    2,879

    Re: __cplusplus number

    You need to use the _Zc option. See https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-160

    Note that for at least C++17 its 201703L and not 201709L
  17. Replies
    18
    Views
    7,105

    Re: A 'customised' std::list ??

    No. It's still marked as 'under investigation'. I guess they accept this as a bug, but that it's low on their priority list. When they'll get around to issuing a fix is really anyone's guess....
  18. Re: std::vector::emplace_back vs std::vector::push_back

    Consider this test class and the generated output from various uses of puish_back() and emplace_back():



    include <vector>
    #include <iostream>

    struct mytype {
    int a {};
    int b {};
  19. Re: std::vector::emplace_back vs std::vector::push_back

    emplace back enables the arguments of a class/struct constructor to be specified without the requirement to create another instance of the class.

    As a simple example, consider:



    #include...
  20. Replies
    4
    Views
    3,311

    Re: Creating a Virtual Desktop in Windows ?

    Sorry, I've never gone into virtual desktops. I just use virtual machines.

    However, Windows does support multiple Stations each with multiple Desktops. Would this be of any help? See...
  21. Re: How to use the TEA Algorithm to deal with human readable text

    As a simple example of use with a text file, consider this. It takes an input file in plain text, encrypts to an output file and then decrypts the output file to the decrypted file in plain text.

    ...
  22. Re: How to use the TEA Algorithm to deal with human readable text

    As I said in my previous post, TEA operates on 2 32-bit numbers. It takes 2 numbers as input and produces 2 numbers as output. If you want this to operate with text, then for encryption you have to...
  23. Replies
    4
    Views
    1,563

    Re: Catching OS exceptions

    You might find more info here https://docs.microsoft.com/en-us/windows/win32/debug/structured-exception-handling

    It seems there are various windows functions that can be used for dealing with...
  24. Replies
    4
    Views
    1,563

    Re: Catching OS exceptions

    I think you're referring to Microsoft SEH - which uses _try _except _finally. The options are set under Code Generation

    See...
  25. Re: How to use the TEA Algorithm to deal with human readable text

    So the contents of the input file is as given above? You are expecting the output file to be readable? What are expecting the output file to contain?

    decipher() returns 2 32-bit numbers via w...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)