Omgili - forum search, search forums  
  

Discussions about get intptr object

Displaying 1 - 10 out of 1,111 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hello, I'm looking for a way to perform pointer operations in C# or .NET in particular. I want to do something very simple Having a pointer IntPtr I want to get IntPtr object which points to 2 bytes ahead. I read some post that the foolowing snippet will...
Started by on , 5 posts by 5 people.  
IntPtr ptr = new IntPtr(oldptr.ToInt64() + 2); This add static IntPtrExtensions { public static IntPtr Add( this IntPtr ptr, int offSet ) { IntPtr ret = new IntPtr....
Problem on 64 bits version of the .NET framework.
I'm currently working on some code which reflects over structures that are marshaled back from calls into a native dll. Some of the structs contain IntPtr* fields that point to null-terminated arrays of pointers. These fields require special processing...
Started by on , 3 posts by 3 people.  
Var ptr1 = (IntPtr)(fi.....
So you can get to the first pointer and then cast it back.
Remember, IntPtr* is just a pointer pointer.
While you may not be able to cast from Object to IntPtr*, you can cast to IntPtr.
I am trying to convert an array of the RECT structure (given below) into an IntPtr, so I can send the pointer using PostMessage to another application. [StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left; public int Top; public ...
Started by on , 4 posts by 4 people.  
You could try the following: RECT[] rects = new RECT[ 4 ]; IntPtr[] pointers = new IntPtr[4]; IntPtr result = Marshal.AllocHGlobal(IntPtr.Size * rects.Length); for (int i = 0; i < rects.Length struct object, and foo is not....
Ask your Facebook Friends
In c#, I have a handle to a window ( an IntPtr ), I want to change the background color of that window. How can I do this? I can get the GDI graphics object for that handle like so: Graphics graphics = Graphics.FromHwnd(theHandle); So I should somehow...
Started by on , 4 posts by 4 people.  
(); } private void Form1_Load(object sender, EventArgs e) { IntPtr hWnd = this.Handle; Graphics System.Runtime.InteropServices; public class NativeWIN32 { [DllImport("gdi32")] public static extern int SetBkColor(IntPtr windowGraphics....
Probably a noob question but interop isn't one of my strong points yet. Aside from limiting the number of overloads is there any reason I should declare my DllImports like: [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int...
Started by on , 6 posts by 6 people.  
IntPtr defined item] ." If null (or IntPtr.Zero for IntPtr parameters) really is an invalid parameter an overload that takes IntPtr [DllImport....
By-ref is often enough for simple type and simple structure .
I don't see any drawbacks.
I would really appreciate any suggestions, no matter how simple or complex, to help me get this issue isolated and resolved. I have a bit of code that generates small report files. For each file in the collection, a stored proc is executed to get the ...
Started by on , 4 posts by 4 people.  
At System.Threading.Monitor.Enter(Object obj) at System.Data.SqlClient.TdsParser.get_Errors.
Aborted.
I'm trying to create a memory cache between a Windows service and an IIS application. The service code writes a serialized class to unmanaged memory fine: IntPtr cachePtr = new IntPtr(); BinaryFormatter binformatter = new BinaryFormatter(); MemoryStream...
Started by on , 4 posts by 1 people.  
The revised code looks like this: IntPtr cachePtr....
Is taking the Int value of the IntPtr and trying to get the data from that location from another to get it from memory, but the structure has all null values on the read side.
We have a COM object implemented with C++/ATL that includes a method which will return a DIB. We are also writing a .NET application that will use this COM object. Since we are writing both, we have the liberty of deciding how best to return this DIB ...
Started by on , 3 posts by 3 people.  
This....
You can get it to build one to the calling program.
COM provides an implementation of these interfaces for you.
COM/OLE has a standard IPictureDisp ).
The idea is that the DIB is represented using a IntPtr.
From a DIB to a Bitmap.
Is there any way to get a BITMAPV5HEADER out of a Bitmap object in C#? Or just get the values that are in their? I need to get some ColorSpace information out of a bitmap and can't see a way to do this in C#.
Started by on , 3 posts by 3 people.  
BV5ClrImportant; uint bV5RedMask; uint bV5GreenMask; uint bV5BlueMask; uint bV5AlphaMask; uint bV5CSType; IntPtr.
I have various classes that wrap an IntPtr . They don't store their own data (other than the pointer), but instead use properties and methods to expose the data at the pointer using an unmanaged library. It works well, but I've gotten to the point where...
Started by on , 4 posts by 4 people.  
To by the pointer? Reusing the same object is not necessarily a threading issue, although if you are responsible.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Common Language Runtime
Related Searches
get intptr of object   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost