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

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    403

    Re: Help! free() invalid pointer error

    >> ... "%s", buffer);
    You are assuming that buffer is a NULL terminated string. But recv() could fill the whole thing up w/o a terminator.

    gg
  2. Re: [RESOLVED] how make a multithread synchronization correctly?

    No test is needed. When two or more threads access the same memory location, and at least one of those threads is writing then proper synchronization is needed - otherwise you have unsynchronized...
  3. Re: [RESOLVED] how make a multithread synchronization correctly?

    Unsynchronized Access/Race Condition on lines:
    54,56,58,60
    68,70,72,74
    104,115,116
    123,134,135

    >> i use a delay(sleep()) for garantie ...
    That is far from any type of garantie.

    You are...
  4. Replies
    14
    Views
    539

    Re: Passing a struct to and from a DLL

    Think of it like this: When classes are passed across module boundaries and their methods are called, where does the code of that method reside? In which module do the classes data members reside -...
  5. Replies
    14
    Views
    539

    Re: Passing a struct to and from a DLL

    As long as both sides of the DLL boundary use the same CRT/C++ DLL (not static), and the same compiler settings - then it should work.

    gg
  6. Re: Troubles with opening CG forums started Oct 26 2015

    Same here. Good fix :)

    gg
  7. Replies
    3
    Views
    532

    Re: How can I use proxy in OpenSSL?

    Look at the openssl(.exe) code and see what it does with the -proxy option.

    gg
  8. Replies
    2
    Views
    380

    Re: Prevent screen saver from activating

    You may want to use SetThreadExecutionState in addition to the above - to prevent sleeping.

    gg
  9. Replies
    3
    Views
    532

    Re: How can I use proxy in OpenSSL?

    https://www.openssl.org/docs/manmaster/apps/s_client.html

    Look at the openssl(.exe) code and see what it does with the -proxy option.

    gg
  10. Re: Troubles with opening CG forums started Oct 26 2015

    So far so good. Seems a bit snappier too (even with all the stuff I don't GET).

    gg
  11. Re: Troubles with opening CG forums started Oct 26 2015

    My Chrome doesn't load ads (sorry). While inspecting the "Network" in Chrome, the 4th GET request is where I get the 500:

    34037

    (2nd request was intentionally blocked)

    gg
  12. Re: Troubles with opening CG forums started Oct 26 2015

    Occurred while checking this thread.
    F5 - occurred again.
    One more was good - and this reply.

    gg
  13. Re: Troubles with opening CG forums started Oct 26 2015

    I couldn't repro it yesterday - but just now I repro'd it 3 times in a row.


    ...
  14. Re: Troubles with opening CG forums started Oct 26 2015

    +1

    gg
  15. Re: Troubles with opening CG forums started Oct 26 2015

    Just got a 500. Still seems rare.


    GET...
  16. Re: Troubles with opening CG forums started Oct 26 2015

    Arjay's screenshot is consistent with the 500 from post +20. It's happened one other time since, so it doesn't occur nearly as often as before.

    gg
  17. Re: Troubles with opening CG forums started Oct 26 2015

    I'm still getting a css issue occasionally - so I left the Inspect Element window open on CG until it repro'd again...here it is:


    GET...
  18. Re: Troubles with opening CG forums started Oct 26 2015

    I just reproduced it in Chrome while "inspect element" was active:


    GET...
  19. Thread: Issue in c

    by Codeplug
    Replies
    4
    Views
    442

    Re: Issue in c

    listOfPolicyRuleInfo itPolicyRule = ...
    itPolicyRule is the wrong type.

    gg
  20. Thread: Issue in c

    by Codeplug
    Replies
    4
    Views
    442

    Re: Issue in c

    map<>::find() returns a map<>::iterator http://en.cppreference.com/w/cpp/container/map/find

    so something like:


    listOfPolicyRuleInfo::iterator it =...
  21. Re: Anti dll Injection with API Hooking "Access Violation writing location 0x00000000

    >> (LPCWSTR)"ntdll.DLL"
    That is not a wide string. Casting it to one does not change that fact.

    You have zero error checking.

    gg
  22. Re: Are there any Unix Compatible API libraries available for windows 7 x64?

    The thing to search for is "Posix compatibility layer". The only 2 that I know of that support 64 bit are Cygwin and MSYS2 - both of which only support their native compilers.

    That smartbody site...
  23. Re: Calculating the real lfWidth value of LOGFONT when lfWidth = 0

    >> Its knowing what size to ask for.
    It seems to me that you have to start with a particular point/pel size (1/72') and use that as 100% of the height, and the resulting width at that height is the...
  24. Re: Calculating the real lfWidth value of LOGFONT when lfWidth = 0

    Other info in case it helps:
    https://msdn.microsoft.com/en-us/library/bb431779.aspx

    Could the "MulDiv" formula be used for the X dimension as well? Then just scale the resulting width/height...
  25. Re: Calculating the real lfWidth value of LOGFONT when lfWidth = 0

    >> so that why my user says they want text at 138% width and 74% height, I know what values to plug into the LOGFONT.
    I see. My first thought would be to scale via point size and normal GDI[+]...
Results 1 to 25 of 1911
Page 1 of 77 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center