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 73 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    233

    Re: ISO-8859-1 or UTF-8 encoded string

    >> ... to make the CP1251 -> UTF8 conversion.
    Oops - I meant 1252. But 28591 would be best :)

    gg
  2. Replies
    4
    Views
    233

    Re: ISO-8859-1 or UTF-8 encoded string

    If you only have to determine one or the other, then while checking for UTF-8 validity you could check for bytes [00-1F] and [7f-9F] - if you find any then you know it isn't 8859-1. But you might as...
  3. Replies
    2
    Views
    199

    Re: Help With Batch Code

    If you want to compare strings, you need to make the left-hand-side a string as well. And don't use /a when not performing a arithmetic assignment. You should also remove the spaces around "=" in...
  4. Re: Regarding the null destination pointer exception

    I would try re-defining it to do nothing: #define _DEBUG_POINTER(x)

    gg
  5. Re: Regarding the null destination pointer exception

    You could use #pragma push_macro to temporarily re-define _DEBUG_POINTER.

    gg
  6. Re: VS2013 Compiling with header redirection IDE complains. "Open SSL"

    Yes, it will work.
    The OpenSSL DLL's will use the VS2008 CRT internally. So your app installer will need to provide both the 2008 and 2013 redistributables. So you'll need the 2008 redistributable...
  7. Re: VS2013 Compiling with header redirection IDE complains. "Open SSL"

    If you don't want to compile OpenSSL yourself (which is needed to create the "sdk" tree structure), then you can try compiling against a pre-built version of OpenSSL:...
  8. Re: Problem with RegisterPowerSettingNotification and USER32.dll.

    Looks like a fix is in the works: https://codereview.chromium.org/477173002/

    gg
  9. Re: Can you think of anything wrong with this code.

    >> template <typename U>
    >> node(const node<U>& other)
    >> :object_memory_(operator new(sizeof(T)))
    Should that be sizeof(U)?

    gg
  10. Re: Can you think of anything wrong with this code.

    Even though you are using the MS implementation of volatile, there are still plenty of data races that may be present depending your you how your threads access the object.

    The conclusion that I...
  11. Re: Can you think of anything wrong with this code.

    You should read this: http://www.gotw.ca/gotw/028.htm

    And what is up with those volatile qualifiers? I hope it has nothing to do with threading....

    I would also recommend this to avoid dynamic...
  12. Replies
    9
    Views
    367

    Re: Worker Thread handle leak

    >> However, it's still "proper" to explicitely close the handle when you no longer have a need for it.
    This is what MFC does by default. You have to take extra steps if you want the thread handle to...
  13. Replies
    9
    Views
    367

    Re: Worker Thread handle leak

    In the "Lower Pane View" of Process Explorer, what was is the "Type" of the handles that are being leaked?

    gg
  14. Replies
    14
    Views
    566

    Re: Which ASCII character to send

    You could base64 encode the file contents, then use a NAK (21) (or whatever) in your protocol.

    gg
  15. Re: Get libstdc++ version from the preprocessor?

    http://sourceforge.net/p/predef/wiki/Libraries/

    gg
  16. Re: Anyone written an OpenSSL Client Application? I really need PROPER documentation

    I started off just like you - very disappointed in the documentation. Since then, I've primarily used the command line app that comes with the OpenSSL source as a reference. The one thing I had to do...
  17. Re: Anyone written an OpenSSL Client Application? I really need PROPER documentation

    The easiest thing to do is to look at the "reference implementation", which in this case would be something like:


    openssl.exe s_client -connect abc.net -CAfile cacert.pem -showcerts -crl_check
    ...
  18. Re: Template specialization does not work for user-defined object.

    std::string get_symbol() const {return symbol;}

    void assert_equals<std::string, QuoteClass, QuoteClass>(const std::string &str, const QuoteClass &p1, const QuoteClass &p2)

    Or you could remove...
  19. Replies
    2
    Views
    356

    Re: Computer has 2 ip address

    >> The first one is the right one, ...

    >> for (int i = 0; phe->h_addr_list[i] != 0; ++i)
    Why not just remove the loop and use h_addr_list[0] only?

    gg
  20. Replies
    1
    Views
    1,229

    Re: reading and writing xml with Chinese C/C++

    >> I'm converting that char to wchar_t using the API mcstowcs() for display
    No.

    You want to convert UTF-8 to UTF-16. mcstowcs() does not do this. Here is a function that does:...
  21. Replies
    11
    Views
    816

    Re: namespace expert needed :-(

    Why doesn't header_B.h include header_A.h since it depends on it? (forgive me for not compiling it myself...)
    What VC++ version is this?

    gg
  22. Replies
    9
    Views
    556

    Re: Number of hardware processors (cores)

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms683194(v=vs.85).aspx

    There is sample code there that seems to extract that info.

    gg
  23. Re: Some inconveniences when using OutputDebugString

    I don't think debug view works while a debugger is attached. Forgot about that.

    gg
  24. Re: TiXmlElement (tinyxml), looking for ways to get "Next" Child?

    Or a->FirstChild("c") if the schema is that rigid.

    I prefer tinyxml2 myself.

    gg
  25. Re: Some inconveniences when using OutputDebugString

    The alternative that I know of (and use) is to use DebugView with a specific filter applied.

    gg
Results 1 to 25 of 1814
Page 1 of 73 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