Unmanaged refers to Windows code that is independent of the Common Language Runtime(CLR). COM components, ActiveX components, and Win32 API functions are examples of unmanaged code.
Questions tagged [unmanaged]
1488 questions
0
votes
1 answer
How to Use VC++ dll into a c# application
I have replicated the exact procedure which the link shows:
http://www.codeproject.com/Articles/9826/How-to-create-a-DLL-library-in-C-and-then-use-it-w
I have developed and build a vc++ dll project and build and succeeded as well. Now my question is…

BharathNadadur
- 557
- 1
- 6
- 13
0
votes
1 answer
Unable to compile mixed-mode C++/CLR library in VS2010 that compiles in VS2008 and compiles using MSBuild
Here's an odd one that I came across this afternoon ... I have a mixed-mode library that I made a while back that builds just fine with VS2008. I am in the process of converting over to VS2010, and went to try and build this library using the VS2010…

Will
- 3,500
- 4
- 30
- 38
0
votes
1 answer
Showing a form in a COM visible DLL
From unmanaged VC++ 6.0 I'm calling a COM visible .NET DLL.
From this DLL, I want to show a dialog.
I can get the DLL to register properly and work if the methods don't call Form.show(). However, if the methods DO call form show, I cannot…

Mr. Awesome
- 575
- 1
- 6
- 19
0
votes
1 answer
Linqpad Query Needs Unmanaged Deployment Item
How do I include an unmanaged assembly with the running of a Linqpad query?
I am running the latest beta (v4.42.06). I have added a reference to a working managed assembly via the f4 Query properties. I put in code to access classes and methods from…

ΩmegaMan
- 29,542
- 12
- 100
- 122
0
votes
1 answer
how to find out where a property is called from unmanaged code
I have an MS ReportViewer report that is bound to a datasource, that is requesting a property that it shouldnt. I have checked all of the fields on the report and I cant find anywhere its used.
Putting a break point on the property shows its…

WraithNath
- 17,658
- 10
- 55
- 82
0
votes
3 answers
Replace [StructLayout] with something that doesn't use System.Runtime.InteropServices?
I have no experience with low level programing and I need this piece of code to not use [StructLayout(LayoutKind.Explicit)]. My site runs on a shared host and in medium trust.
So it won't run if this code is in there.
Update:
I'm using this inside a…

Donny V.
- 22,248
- 13
- 65
- 79
0
votes
1 answer
NUL characters from Marshal.Copy in C#
I have the following method defined:
internal string GetInformation(string recordInformation)
{
int bufferSize = GetBufferSize(recordInformation);
string outputRecord;
IntPtr output = Marshal.AllocHGlobal(bufferSize);
try
{
…

JamesEggers
- 12,885
- 14
- 59
- 86
0
votes
2 answers
DllImport ERROR_MORE_DATA UNMANAGED Call C++ in C# PBYTE
DWORD OREnumValue(
__in ORHKEY Handle,
__in DWORD dwIndex,
__out PWSTR lpValueName,
__inout PDWORD lpcValueName,
__out_opt PDWORD lpType,
__out_opt PBYTE lpData,
__inout_opt PDWORD lpcbData
);
My…

John
- 864
- 1
- 11
- 26
0
votes
1 answer
DllImport ERROR_MORE_DATA UNMANAGED Call C++ in C#
DWORD OREnumKey(
__in ORHKEY Handle,
__in DWORD dwIndex,
__out PWSTR lpName,
__inout PDWORD lpcName,
__out_opt PWSTR lpClass,
__inout_opt PDWORD lpcClass,
__out_opt …

John
- 864
- 1
- 11
- 26
0
votes
1 answer
Send HTML formatted mail with MAPI Mail
I am using this link to send mails using Mapi. But I would like to compose the message in HTML format.
Reading this and other websites I came across a "constant" called: MAPI_NATIVE_BODY_TYPE_HTML. That gave me the "hope" that things are possible.…

Youp Bernoulli
- 5,303
- 5
- 39
- 59
0
votes
1 answer
How to call VB6 COM from C++/CLI
I have situation where i have to call the VB6 COM from the C++/CLI. This thing can be achieved using the C# by adding the reference of VB6 dll in the Project because the Interop dll is automatically gets generated there.
But, my situation is bit…
user243174
0
votes
2 answers
Convert C++ pointers code to delphi
This is one function in the C++ header file I want to call from Delphi:
* @param hConnection Handle to the connection to FM.
* @param pOperation See description of ABS_OPERATION.
* @param dwTemplateCount Count of templates in the pTemplateArray.
…

Ezi
- 2,212
- 8
- 33
- 60
0
votes
1 answer
Import unmanaged code import to delphi from C#
I have a c# class that connects to the dll that works good.
Now I need the same functions in Delphi. what is the best way to do it? I don't want to write all the imports again in Delphi. is there a way to import the c# class in delphi or any other…

Ezi
- 2,212
- 8
- 33
- 60
0
votes
2 answers
How to determine the amount of memory used by unmanaged code
I'm working against a large COM library (ArcObjects) and I'm trying to pinpont a memory leak.
What is the most reliable way to determine the amount of memory used by unmanaged code/objects.
What performance counters can be used?
Peter
0
votes
2 answers
calling managed c# component from unmanaged c++ code, how do i define config
I want to call a C# component from an unmanaged c++ service. I need to set config items expected by the C# component. What name should be config be and where should it be located.
eg.
parentfolder\cplusplusservice.exe
anotherfolder\csharp.dll
i…

James Bond
- 35
- 5