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

Search:

Type: Posts; User: Codeplug

Page 1 of 75 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    339

    Re: Compiling on an x86 CPU

    Totally different. Normal 64bit is what that site calls "AMD64".

    https://en.wikipedia.org/wiki/Itanium

    gg
  2. Replies
    6
    Views
    339

    Re: Compiling on an x86 CPU

    https://sourceforge.net/p/predef/wiki/Architectures/

    gg
  3. Re: InterlockedExchangeRelease doesn't exist?

    >> those are supported in Windows when running on the Itanium processor.
    I wonder if they are there for ARM... I'm too lazy to look in the SDK.

    gg
  4. Replies
    3
    Views
    256

    Re: How to access and configure PCI.

    You don't use the WinAPI. You use the NI-DAQ SDK to control the boards: http://digital.ni.com/manuals.nsf/websearch/47300C3471742AD0862570AE005E0AD1

    gg
  5. Replies
    3
    Views
    256

    Re: How to access and configure PCI.

    What PCI device are you trying to configure? Explain exactly what you are trying to do - the goal that you want to accomplish.

    gg
  6. Replies
    10
    Views
    604

    Re: UTF-8 Conversion

    Well, we need to understand the "destination" better.

    >> But the other program is expecting a char array, and will try to convert/decode it to wstring using...
  7. Replies
    10
    Views
    604

    Re: UTF-8 Conversion

    You have to_bytes() and from_bytes() to perform UTF16->UTF8 and UTF8->UTF16. Simply know how the source is encoded, and the encoding that the destination expects. If they aren't the same, use the...
  8. Replies
    10
    Views
    604

    Re: UTF-8 Conversion

    >>CString(utf8_converter.to_bytes(path).c_str())
    to_bytes() performs UTF16->UTF8. That is then converted via ACP->UTF16 by the CString constructor - but it's not ACP encoded...

    gg
  9. Re: How to make a blocking fetch call on std:queue?

    Depending on the usage patter, you may be able to reduce contention by adding a "deque_all" to consume the entire Q in one call - then loop through everything consumed out side the lock: ...
  10. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    >> Quick question: don't you get an error:
    MSDN CWnd::PostMessage
    I'm guessing they added a const-correct version of PostMessage somewhere in their own hierarchy of classes.

    gg
  11. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    >> Isn't there a memory leak?
    >>> std::auto_ptr

    I'd say this is a case where reinterpret_cast is used correctly.
    auto_ptr is deprecated, could switch to unique_ptr.

    gg
  12. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Couldn't you just do "new PostedFunction_type(func)"?

    gg
  13. Re: I am trying to write a console app in c for shutdown pause.

    Ah, we have a cross-poster.

    Here's a solution that worked on XP with no service required: http://cboard.cprogramming.com/c-programming/165817-cpu-power-button-event.html#post1223706

    gg
  14. Replies
    8
    Views
    651

    Re: Unicode characters in VC++

    Read this to lean several concepts you should know: http://cboard.cprogramming.com/cplusplus-programming/145590-non-english-characters-cout-2.html#post1086757

    gg
  15. Replies
    3
    Views
    431

    Re: Reading an NFC DEVICE

    Yep.

    gg
  16. Re: Java "volatile" alternative in C++ under Windows?

    >> And for C++11 the manual very clearly states volatile is for hardware access only (interrupts on the same thread) and not to be used for multithreading, you should use the <atomic> stuff for...
  17. Re: Java "volatile" alternative in C++ under Windows?

    >> No they don't. or rather, the sync primitives don't do this in and by themselves.
    "Pull over, pull over - semantics police!"
    So they don't solve 1 and 2 in and by themselves, but by them being...
  18. Re: Java "volatile" alternative in C++ under Windows?

    Critical sections, and all Win32 synchronization primitives, solve 1 and 2.

    gg
  19. Replies
    12
    Views
    1,222

    Re: Reduction of the flash footprint

    Some things that come to mind:
    Have a common base object with a virtual destructor that does nothing - then remove all other destructors. This should route all destrutor calls to the virtual base...
  20. Replies
    7
    Views
    474

    Re: strand vs multithreads

    It seems to me that 2 "strands" would be defined as 2 independent tasks that have no shared resources between them (or if they do, synchronization is involved).

    If so, then replacing threads with...
  21. Replies
    26
    Views
    2,371

    Re: A question regarding double-checked locking

    >> For c++11 rather than use a mutex, I use atomic compare_exchange for multi threaded singletons
    In my own Windows implementation, I use an interlocked add for the fast-path and a critical-section...
  22. Re: static class member in multithreaded environment

    >> Simultaneous read/write access to global resources from multiple threads needs a more careful planned approach than just willy nilly making stuf atomic.
    +1 :thumb:

    >> you should prefer atomic...
  23. Re: How to determine cross platform type during file save?

    I would detect the line ending style when opening an exist files and preserve it. When saving a new file, you could have an option settings for the default ending style to use or just ask the user...
  24. Replies
    8
    Views
    569

    Re: Hash table efficiency

    I've implemented a couple of dynamic hash tables for different applications in the past. They needed O(x) guarantees and so they were implemented by hand and there was no rehashing. In other words,...
  25. Replies
    3
    Views
    418

    Re: Showing console Windows in a Win 32 DLL

    Have the user provide a handle for where the DLL should send its output. Then the user can provide a console handle, file, pipe, etc..

    gg
Results 1 to 25 of 1854
Page 1 of 75 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center