Advertisement
Advertisement
| 03.27.2008 at 01:59PM PDT, ID: 23275637 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: |
//Generates error C4312: 'type cast' : conversion from 'DWORD' to 'LPTSTR' of greater size pOptParam->pData = (LPTSTR) *pTemplateInfo++; // pointer to the data //Generates error C4312: 'type cast' : conversion from 'DWORD' to 'BYTE *' of greater size pb = (BYTE*)(((DWORD)pb + 3) & ~3); // DWORD align //Generates error C4312: 'type cast' : conversion from 'int' to 'HBRUSH' of greater size FillRect( lpDIS->hDC, & lpDIS->rcItem, (HBRUSH)(nIndex +1) ); |
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 03.27.2008 at 08:07PM PDT, ID: 21227716 |
| 03.28.2008 at 12:57AM PDT, ID: 21228581 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: |
#include "windows.h"
int main()
{
DWORD dw = 0;
// Disable warning C4312
#ifdef _WIN64
#pragma warning( push )
#pragma warning( disable : 4312 )
#endif
// This line normally generates warning C4312
LPTSTR s = (LPTSTR) dw;
// Reenable warning C4312
#ifdef WIN64
#pragma warning( pop )
#endif
return 0;
}
|
| 03.29.2008 at 04:41AM PDT, ID: 21236196 |
| 03.29.2008 at 07:07AM PDT, ID: 21236583 |
| 03.29.2008 at 07:23AM PDT, ID: 21236637 |
| 03.29.2008 at 07:56AM PDT, ID: 21236776 |
| 03.29.2008 at 08:09AM PDT, ID: 21236817 |
| 03.29.2008 at 09:03AM PDT, ID: 21237012 |
1: 2: 3: 4: 5: 6: 7: 8: 9: |
#include "windows.h"
#include <boost/cast.hpp>
int main()
{
DWORD dw = 0;
LPTSTR s = reinterpret_cast<LPTSTR>(boost::numeric_cast<size_t>(dw));
return 0;
}
|
| 03.29.2008 at 09:12AM PDT, ID: 21237081 |
| 03.29.2008 at 09:55AM PDT, ID: 21237240 |