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

Search:

Type: Posts; User: wolle

Page 1 of 25 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Do header files with implementation work in a precompiled header?

    You could write your own interface to the big header-only libraries with the implementation part of the interface on one or a few .cpp files. If you don't change the interface then the .cpp files...
  2. Thread: Search Engine

    by wolle
    Replies
    5
    Views
    402

    Re: Search Engine

    I wouldn't say Java is totally different from C++ but there are substantial differences. Java has a much stronger object oriented (OO) feel to it, there's a garbage collector, all objects are...
  3. Thread: Search Engine

    by wolle
    Replies
    5
    Views
    402

    Re: Search Engine

    So your main problem is that you lack basic Java programming skills right, and now want someone to do the job for you? :)

    Still my advice stands - keep it simple! Base your database on an...
  4. Thread: Search Engine

    by wolle
    Replies
    5
    Views
    402

    Re: Search Engine

    Regarding b (Built-in Binary Search): Note that a binary search works on random access arrays with items in sorted order. It means the ArrayList must be sorted, and the LinkedList will not work at...
  5. Re: Casting references VS Casting the mem address of that reference?

    Assigning a derived type to a base type is typesafe meaning the correctness can be checked at compile-time already. Because of that, explicit upcasting is never necessary (although allowed).

    An...
  6. Replies
    4
    Views
    587

    Re: Java NetBeans Related Project

    You could have a version with reverse roles where the user thinks of a number and the computer guesses. When the computer comes up with a number the user enters whether the guess is higher or lower. ...
  7. Replies
    10
    Views
    790

    Re: Time calculation in the main game loop.

    Well, not in this particular OP case but I suppose Sys_Milliseconds is originally designed for general use to behave as expected of a system timer (as I describe in #7). Anyway, that's the only...
  8. Replies
    10
    Views
    790

    Re: Time calculation in the main game loop.

    Are you sure? I'd say it's the other way around because almost always the arrow of time is represented by increasing clocks. It means newtime will always be equal to or larger than oldtime.

    What...
  9. Replies
    10
    Views
    790

    Re: Time calculation in the main game loop.

    I interpret this comment,

    // let base retain 16 bits of effectively random data

    to mean that it's not the randomness of base that is retained, it's the randomness of Sys_Milliseconds that base...
  10. Replies
    10
    Views
    790

    Re: Time calculation in the main game loop.

    I wondered that too and found the file where the OP code is from. It's halfway down here,

    https://unix.superglobalmegacorp.com/quake2/newsrc/321/win32/q_shwin.c.html

    The base variable is static...
  11. Replies
    34
    Views
    3,158

    Re: switch case or if else ?

    Are you sure? As I argued in #30, the straight code alternative I suggested may actually be more efficient.

    1. First, say it stands between using the if statement or the switch statement. Since...
  12. Replies
    34
    Views
    3,158

    Re: switch case or if else ?

    You usually prefer a switch statement when you have several cases with roughly equal probability of being selected. With just two cases I would pick the if statement.

    But do you really have two...
  13. Replies
    9
    Views
    1,046

    Re: passing string as default argument (reference)

    You could return an std:: pair (or std::tuple). The function signature would be,


    std::pair<double, std::string> GetEffAzimuth(const MultiTechCell* pCell)


    Return statements would look like...
  14. Replies
    2,363
    Views
    734,884

    Re: The Boring Thread

    Sorry for that, I'll try another topic. Hopefully the one I have in mind will be a better fit. It should because one of its most influential figures goes by the name of Mr. Bohr.

    I'm talking...
  15. Re: Critical section begin end() changing the auto value

    Also note that concurrency is supported by the C++ language itself so explicit calls to the OS can often be avoided.
  16. Replies
    10
    Views
    1,516

    Re: WSL (Windows Subsystem for Linux)

    Yes but WSL 2 is very new and because of that a quite risky proposition.

    If the major reason for considering WSL is familiarity with the Microsoft development tools there's another strategy...
  17. Replies
    10
    Views
    1,516

    Re: WSL (Windows Subsystem for Linux)

    I found this info,

    https://www.theverge.com/2020/5/19/21263377/microsoft-windows-10-linux-gui-apps-gpu-acceleration-wsl-features

    so it seems possible to get a Linux GUI working on Windows with...
  18. Replies
    10
    Views
    1,516

    Re: WSL (Windows Subsystem for Linux)

    I haven't but it's interesting. Is Windows becoming a Linux distribution? According to this info,

    https://docs.microsoft.com/en-us/windows/wsl/compare-versions

    version 2 of WSL has a full Linux...
  19. Replies
    2,363
    Views
    734,884

    Re: The Boring Thread

    I'll keep my reply as boring as possible. :)

    The symbol grounding problem is new to me. I came across it while checking out the issue of consciousness in Artificial Intelligence. It is argued that...
  20. Replies
    2
    Views
    1,578

    Re: Develop IPad C++ app

    Visual Studio offers some support for cross-platform C++ mobile development. Maybe this can be a starting point,

    https://docs.microsoft.com/en-us/cpp/cross-platform/?view=vs-2019

    Ideally you...
  21. Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code

    The acronym ORM is new to me so I'm not quite sure in which direction I'm pointing, if any,

    https://www.codesynthesis.com/products/odb/
  22. Replies
    2,363
    Views
    734,884

    Re: The Boring Thread

    This thread illustrates the so called symbol grounding problem very well. It does not have to define boring because it is self-explanatory boring.
  23. Thread: Rust

    by wolle
    Replies
    9
    Views
    2,524

    Re: Rust

    After having further investigated Rust I've decided it is too immature at this point. It's not as much the language itself as it is the lack of mature third party libraries. I need stable subsystems...
  24. Replies
    15
    Views
    1,659

    Re: debug in release mode

    Tracing means you temporarily modify the source code. Make sure you're permitted to do so.

    Tag all traces you put in with comments so they can be easily located later and removed/commented out...
  25. Replies
    15
    Views
    1,659

    Re: debug in release mode

    I seems you've disregarded my advice (in #6) completely. That's a mistake. Ask a college familiar with the application for the most likely bug location. With a little bit of luck a few narrowing...
Results 1 to 25 of 610
Page 1 of 25 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)