Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
Posts: #Cpp

Posts: # Cpp

Jan 27 2012
Wade not in unknown waters. Part one
Andrey Karpov
We decided to write several small posts on how C/C++ programmers play with fire without knowing it. The first post will be devoted to an attempt to explicitly call a...
...
Jan 23 2012
Confusion of WPARAM with UINT, and LPARAM with LONG
Andrey Karpov
A great deal of compilation errors occurring when trying to recompile a 32-bit Windows application for 64-bit systems is related to inccorect function arguments. You may often see that in user...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
* By clicking this button you agree to our Privacy Policy statement
Jan 23 2012
Warning C4267 in the expression unsigned n = str.find(substr)
Andrey Karpov
When porting 32-bit code on a 64-bit system, Visual C++ compiler may generate a lot of warnings C4267 for the code where the result of the function std::string::find() is saved into a variable of...
...
Jan 23 2012
Are the types size_t and uintptr_t equivalent?
Andrey Karpov
The question if these types are equivalent and which of them and when should be used is discussed very much. But in practice you may consider them equivalent and use them as you...
...
Jan 23 2012
Is there a way to make the type size_t 32-bit in a 64-bit program?
Andrey Karpov
While porting code from a 32-bit system to a 64-bit one, you may want to make the types size_t/ptrdiff_t 32-bit again to reduce the number of errors and warnings generated by the compiler. This...
...
Jan 23 2012
How can I know if the DWORD_PTR type is defined using ifdef?
Andrey Karpov
Memsize-types DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR and ULONG_PTR are intended to support 64-bit code and can safely store a pointer regardless of the platform capacity. But these types might...
...
Jan 17 2012
Overwriting memory - why?
Andrey Karpov
We decided to publish this article in our knowledge base to show programmers how easily private data can get out of the program handling them. There is the V597 diagnostic rule in PVS-Studio...
...
Dec 15 2011
How to make fewer errors at the stage of code writing. Part N4
Andrey Karpov
This is the fourth post in which I want to share with you some useful observations on error patterns and the ways of fighting them. This time I will touch upon the subject of handling rare...
...
Nov 25 2011
PVS-Studio: analyzing Doom 3 code
Andrey Karpov
The id Software company possesses a PVS-Studio license. However, we decided to test the source codes of Doom 3 that have been recently laid out on the Internet. The result is the following...
...
Oct 25 2011
PVS-Studio advertisement - static analysis of C/C++ code
Andrey Karpov, Evgenii Ryzhkov
This document advertises the PVS-Studio static analyzer. It describes how using PVS-Studio reduces the number of errors in code of C/C++/C++11 projects and costs on code testing, debugging...
...
View more Pagination arrow previous
Showing: - of 588
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam