I'm using Visual C++ 2008 to write and debug my project. I have a char* pointer. I want to view 4 bytes starting at my pointer as an integer in the debugger. How do I do it? (int)(*pointer) comes to mind but I'm afraid it will simply take the 1-byte value pointed to by pointer and convert it to an integer.
View integer on memory locations allocated as char in Visual C++ 2008 debugger
237 Views Asked by Miloš Rašić At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in VISUAL-STUDIO-2008
- Automatically Compile .Net UserControls
- Error code 31 returned from mt.exe when building C++ projects in Visual Studio 2013
- Issue with Referenced DLL's on compiled EXE in Visual Studio 2008
- How can I prevent picture boxes from intersecting, while they are in constant movement?
- Microsoft TFS and Visual Studio 2008 - project hierarchy changing on server
- Disable clock edit on windows 6.5
- How to static link EDK II library into application in Visual Studio 2008 tool chain
- MFC Feature Pack 2008 CPaneDialog as CDialogBar
- Can we highlight single word of from Text Property (have multiple words)of Label Control
- Getting exception while compiling in 64bit visual studio 9.0 sp1
- Error LNK2019 LNK2001
- Desktop Shortcut Icon is different than Application Icon
- Trying to reduce size of memory allocations in debug compilations for C++
- c++ wofstream issue in unicode program
- How to set parameters as optional while adding crystal reports in central management consol
Related Questions in DEBUGGING
- Eclipse find source file from library
- Debug native code in Android Studio
- Breakpoint "concurrency" in Intellij
- PhpStorm IDE. Collapse custom/debug code
- How does one debug infinite recursion in Haskell?
- Android Studio missing exception stacktrace in Logcat
- java FileNotFoundException wont locate a file in the same project
- How can I debug scala.js unit tests?
- Why Eclipse Debugger does not stop on scoped exception breakpoint (how to stop on handled exception)
- Suggestions for my Selection Sort / Java
- Fortran Debugging
- Debug Excel VSTO add-in when launched by double-clicking existing file
- Starting GDB with interpreter mi via .gdbinit file
- How to print call stack in Swift?
- Preventing threads in Xcode
Related Questions in POINTERS
- Why we can't assign value to pointer
- C++ template using pointer and non pointer arguments in a QVector
- Allocating memory for pointers inside structures in functions
- OpenLayer 3: Map pointer up event can not be triggered when the map created on overlay
- Suspicious pointer-to-pointer conversion (area too small) in C
- Why is implicit pointer of pointer to pointer conversion legal?
- using memcpy to copy arrays passed as parameters
- Smart pointer vs owning raw pointer
- Program not compiling after casting pointer
- Is it legal to compare dangling pointers?
- 2D array, sort rows by sum
- Malloc confusion
- Trying to receive a vector2f from an object pointer
- How to call a non-class member function with pointers as parameters with QtConcurrent::run?
- Reverse linked list in java
Related Questions in VISUAL-C++-2008
- Different overloading function resolution in VS 2008/2010 and VS 2013
- ShellExecuteEx : get parent PID and close it
- How to change font properties of a control (e.g. label) at runtime
- How to get __declspec(thread) working on Windows CE
- error when i give sleep(1000), to make srand() work, in visual C++
- how to see complete output in visual c++ 2008
- VC++ allows to use const types for STL containers. Why?
- in visual c++, warning comes but program doesnt runs furthers, is there any way to igonre it?
- How to fix Assertion Failure Opencv Programming - Visual C++ 2008 Express
- View integer on memory locations allocated as char in Visual C++ 2008 debugger
- Can I check which function templates have, or have not, been instantiated at least once?
- String pointer syntax, is this correct?
- How to compile visual C++ program with additional libraries
- Warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
- Migrated application crashes, if DEP is active
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You have to cast your pointer to the desired pointer type and then dereference, like so:
This works in GDB, though I imagine it's similar in other debuggers.