Display: Cloud | List
Most Popular Tags
Results (6 total) All > pointers (x)
Pointers in VB.NET? (StringBuilder.CopyTo Method (System.Text))
This is just because I am curious about everything.I was looking at a VB disassembly of the StringBuilder.CopyTo method using .NET Reflector 6, and a portion of it (its last part, actually) showed this:If (count <> 0) Then DimchRefAsChar* FixedchRef=AddressOf destination(destinationIndex) Dimstr2AsChar* Fixedstr2=DirectCast(threadSafeString, Char*)
Last modified by DavidRossG on 7/18/2010 3:13:36 PM
Pointers In C++ (C++ Language Reference (C++))
Pointers Published by Muhammed Zakeer.m.s(zakeer.ms@live.com) We have already seen how variables are seen as memory cells that can be accessed using their identifiers. This way we did not have to care about the physical location of our data within memory, we simply used its identifier whenever we wanted to refer to our
Last modified by Muhammed Zakeer on 11/18/2009 9:46:52 AM
Tags:  c++  contentbug  pointers
its message parameters can include pointers (PostMessage function (Windows))
You can include pointers as parameters. Cast them as an integer and do not dispose or free them on the thread or function that fires the PostMessage, but dispose or free them on the receiving thread or function.Just make sure that when using a pointer, that you only use one pointer type for one message, don't mix pointer to different objects with the same message.
Last modified by kris.daniels on 10/23/2009 6:59:09 PM
Tags:  pointers  postmessage
Marshaling, Blittable and unsafe pointers. (Blittable and Non-Blittable Types)
It should be stressed that if an object (usually a struct) is composed WHOLLY of blittable types, then Marshal.StructureToPtr will simply copy "as-is" the source object's memory to the target address. Thus for a blittable struct, it is possible and valid to refer to the copied memory directly using an unsafe managed C# struct pointer. But if the type is NOT blittable, it is not valid to refer to t
Last modified by Jaya Shrivastava on 9/8/2008 10:27:14 PM
Rules for Using PointersPorting your code to compile for both 32- and 64-bit Microsoft Windows is straightforward. You need only follow a few simple rules about casting pointers, and use the new data types in your code. The rules for pointer manipulation are as follows.Do not cast pointers to int, long, ULONG, or DWORD. If you must cast a pointer to test some bits, set or clear bits, or othe
Last modified by Microsoft on 11/9/2007 1:59:03 AM
Tags:  pointers
Just a tiny note on vector<...> and clear() (vector::clear (Standard C++ Library))
Above ain't suitable if you store pointers in a vector. In this case you have to de-allocate each stored element explicitly (delete...). You can test with the following: #include <iostream>#include <vector>using namespace std; static int k; class A{public:A() { cout << "A's " << (id=k++) << " constructor" << endl; };~A() { cout << "A's " << (id)
Last modified by ElectroZap on 9/14/2007 11:11:12 AM
Tags:  clear  delete  pointers  vector
Page view tracker