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.13 seconds; generated 50 minute(s) ago.

  1. Replies
    1
    Views
    16

    Re: header files online database

    I quick internet search for the first one shows it is available from codeforge

    headers such as general.h, other.h are likely to be specific to a particular program. I doubt these are available...
  2. Replies
    5
    Views
    162

    Re: Looking for SSE instruction

    If you're using VS, have at look at https://docs.microsoft.com/en-us/cpp/intrinsics/alphabetical-listing-of-intrinsic-functions?view=vs-2019 and the links to manufacture specific ones.

    There might...
  3. Replies
    5
    Views
    162

    Re: Looking for SSE instruction

    Is performance an issue here? You'd need to measure, but you might get better performance from having 4 loops - one for each of A, B, C, D But for 16 items, you'd not notice/easily measure any...
  4. Re: initialise derived class with the base class instance

    You can't use the debugger much in release mode - that's what the debug mode is for! However if you can't, you can't.

    Then you have to fall back to what was used before interactive debuggers were...
  5. Re: initialise derived class with the base class instance

    When a program compiles OK (no errors and understood and accepted any warnings) but doesn't execute as expected, then you debug the program. You trace through the code, set breakpoints, step though...
  6. Re: initialise derived class with the base class instance

    and debugging has indicated that this is because......
  7. Replies
    5
    Views
    122

    Re: optionally enable the params

    As in defined or not? - sorry, can't be done at run-time. You can do it at compile time but then every instance of the class will either have or not have.

    As Victor points out, this is usually...
  8. Replies
    2
    Views
    80

    Re: reading multiple lines into arrays

    vec.emplace_back(std::istream_iterator<int>{ iss }, std::istream_iterator<int>{});


    try:



    vec.assign(std::istream_iterator<int>{ iss }, std::istream_iterator<int>{});
  9. Replies
    2
    Views
    167

    Re: split string function

    string_split is splitting a string at ' ' into a vector. The marked code removes duplicate spaces (makes multiple ones into just 1). It uses the std:: duplicate() function with a lambda. The result...
  10. Replies
    6
    Views
    1,281

    Re: Capture mouse position

    ScreenToClient() see https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-screentoclient
  11. Re: Obtaining LogonDomain for logged on Windows Active Directory user

    Possibly - but it's a bit a long shot. Use Sysinternals Process Monitor to monitor the registry activity for Sysinternals BGInfo. You might find where BGInfo is getting its info.

    Mark knows more...
  12. Re: Do header files with implementation work in a precompiled header?

    Have you got the headers that you want to be pre-compiled included in the right header file set up for pre-compilation? What option for pre-compilation are you using - create or use? Don't put these...
  13. Re: Obtaining LogonDomain for logged on Windows Active Directory user

    This is a c# replacement for BGInfo - but there is source available so you might discover how its done.

    See https://github.com/zodiacon/BgInfo
  14. Re: Obtaining LogonDomain for logged on Windows Active Directory user

    See https://stackoverflow.com/questions/2825385/wtsquerysessioninformation-returning-empty-strings
  15. Re: Where is the list for MRU projects in VS2019 ?

    Ah so..... See https://social.msdn.microsoft.com/Forums/en-US/f636ee47-1eb7-45ed-ae2a-674cbabb8b2c/clear-mru-list-in-visual-studio-2017

    Since VS2017, it uses a private hive. Doh! So you have to...
  16. Re: Where is the list for MRU projects in VS2019 ?

    No - but just do a full registry search for the name required. Use regedit then edit/find then findnext
  17. Re: Do header files with implementation work in a precompiled header?

    Pre-compiled headers are for header files that don't change very much. If you are still making changes to pre-compiled header files, don't include them for compiled headers - just use them as normal....
  18. Re: Obtaining LogonDomain for logged on Windows Active Directory user

    Have you tried the ASCII version (WTSQuerySessionInformationA)
  19. Re: Obtaining LogonDomain for logged on Windows Active Directory user

    Are you compiling as ASCII or Unicode? If as Unicode then LogonUserName is a wide which would display as blank using ASCII.
  20. Re: [RESOLVED] Filter a txt file based on an Excel data sheet

    :wave: :thumb:
  21. Re: Code abstraction using the preprocessor vs interfaces?

    I've done very little x-platform coding, but where I have I've used include file(s) for each specific platform code and then used #ifdefs. eg



    #ifdef Windows
    #include winclass.cpp
    #endif
    ...
  22. Replies
    2
    Views
    463

    Re: template deduction

    SetIllegalValue<unsigned char>(pRaster, 0);
    ...
    template<typename RastType> void PredictionRaster::SetIllegalValue(AIBaseRaster *pRaster, RastType illegalValue)


    When SetIllegalValue is used,...
  23. Re: Filter a txt file based on an Excel data sheet

    Is the original provided vba code working as expected? If yes, please attach the original .xlsm vba code that I used for the conversion, and the converted C++ code and I'll have a look. If the...
  24. Re: Casting references VS Casting the mem address of that reference?

    read the documentation at the given link.
  25. Re: Casting references VS Casting the mem address of that reference?

    Neither should be used. In C++ you would use a dynamic_cast for a downcast - not a 'c' style cast.



    Subclass &myref = dynamic_cast<Subclass&>(base_class_object_ref);


    For an upcast, you...
Results 1 to 25 of 1990
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)