intptr
Mapping IntPtr into Struct via Marshal.PtrToStructure causing "Access Violation Exception"
I\'m trying to use a C++ DLL (3rd party library implementing EMI protocol, having source code available) in .NET. I\'ve succesfully done marshalling, calling the functions and getting everything work[详细]
2023-03-30 05:09 分类:问答Can a Window Handle in .NET change it's value?
During the lifetime of a .NET process, does the handle of a System.Windows.Forms.Form, lets say the main form used in Application.Run(form) actually change it\'s value, i.e. if using the value of the[详细]
2023-03-22 08:19 分类:问答C99: Will arrays or heap-allocated buffers ever end at UINTPTR_MAX?
Can I assume the following invariant? void foo(char *buf, size_t len) { // \"buf\" points to either an array or memory allocated with malloc().[详细]
2023-03-20 16:33 分类:问答How to get all memory address space used by a process?
I need to know all memory address space used by a process. The memory space will later be scanned to locate values within the process and identify their locations / addresses. My current process for t[详细]
2023-03-10 06:28 分类:问答Proper IntPtr use in C#
I think I understand the use of IntPtr, though I\'开发者_Python百科m really not sure. I copied the IDisposable pattern from MSDN just to see what I could get from it, and while I understand it for t[详细]
2023-03-07 13:13 分类:问答C# Change Properties of another running applications window
If I have a IntPtr of a running program, is there any way to change properties about that wind开发者_StackOverflowow--- for instance properties like: FormBorderStyle, ShowInTaskbar and maybe even Back[详细]
2023-02-28 03:20 分类:问答Why can't we do IntPtr and UIntPtr arithmetic in C#?
It\'s a simple-looking ques开发者_运维百科tion: Given that native-sized integers are the best for arithmetic, why doesn\'t C# (or any other .NET language) support arithmetic with the native-sized Int[详细]
2023-02-23 13:55 分类:问答IntPtr causing memory leak?
This function is in a loop. When I run the program, the line with IntPtr is giving me memory problems, I\'ve put delete[], but it still doesn\'t solve the memory problem, can anyone help please? thank[详细]
2023-02-23 01:20 分类:问答pointer to 3d array
i have a 3D array and i want to get IntPtr to point on it so here what i did ..can anyone tell me if it\'s right or not...[详细]
2023-02-17 02:36 分类:问答How to get byte[] from IntPtr in C#
I want to pass a IntPtr to 开发者_C百科a method takes a byte[] Parameter in c#. Is that possible and if it is possible how can I do that?[详细]
2023-02-16 13:22 分类:问答