About 1,420,000 results
Open links in new tab
  1. What are the rules for casting pointers in C? - Stack Overflow

    Jul 20, 2015 · Casting pointers is usually invalid in C. There are several reasons: Alignment. It's possible that, due to alignment considerations, the destination pointer type is not able to …

  2. sql - datetime Cast or Convert? - Stack Overflow

    Jul 2, 2013 · What to choose: Cast or Convert for datetimes (Microsoft SQL Server)? I have had a look at the MSDN Specifications. At the first glance it seems there is no difference, except for …

  3. c# - Direct casting vs 'as' operator? - Stack Overflow

    Sep 25, 2008 · Custom implicit/explicit casting: Usually a new object is created. Value Type Implicit: Copy without losing information. Value Type Explicit: Copy and information might be …

  4. c++ - Proper way of casting pointer types - Stack Overflow

    I used to think that reinterpret_cast is OK for e.g. casting pointers to and from integer types (like e.g. DWORD_PTR), but to cast from a void* to a BYTE*, isn't static_cast OK? Are there any …

  5. casting - Explanation of ClassCastException in Java - Stack Overflow

    May 25, 2009 · Java allows us to cast variables of one type to another as long as the casting happens between compatible data types. For example you can cast a String as an Object and …

  6. c++ - When should static_cast, dynamic_cast, const_cast, and ...

    It is unnecessary when casting upwards (towards a base class), but when casting downwards it can be used as long as it doesn't cast through virtual inheritance. It does not do checking, …

  7. Casting to TV has no sound. - Microsoft Community

    Jan 27, 2023 · Hello.I've recently installed Windows 11 and now whenever I cast to my TV (as a wireless monitor), Windows only casts picture, but not sound. The sound still goes through my …

  8. What is the difference between static_cast<> and C style casting?

    See A comparison of the C++ casting operators. However, using the same syntax for a variety of different casting operations can make the intent of the programmer unclear. Furthermore, it …

  9. Choppy and pixelated picture when casting from Windows to TV …

    Aug 9, 2023 · I am trying to cast (Windows + K) my laptop screen on my TV screen, and the picture is choppy and pixelated whenever there's motion on screen. My laptop is an LG Gram …

  10. Casting variables in Java - Stack Overflow

    Mar 13, 2011 · Casting in Java isn't magic, it's you telling the compiler that an Object of type A is actually of more specific type B, and thus gaining access to all the methods on B that you …