Click here to Skip to main content
15,888,401 members
Everything / Programming Languages / C++/CLI

C++/CLI

C++/CLI

Great Reads

by Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
by Stoyan Damov
Internet File System from scratch - making web services and peer-to-peer technology work together to build a virtual file system
by Nish Nishant
Demonstrates the usage of splitters, treeviews, listviews, panels, toolbars
by Alexey
The ALXGrid Control Library is a set of classes for management of data as a table.

Latest Articles

by Mark Birbeck
Easily and quickly build web services clients using XForm
by Shao Voon Wong
Consuming Your C# Library in MFC/C++ Project via C++/CLI
by Mehul Donga
Handle managed (C#) event in managed (C++/CLI)
by Abhineet Ayan Verma
Major calling conventions for Win32 and best suited functions

All Articles

Sort by Title

C++/CLI 

21 Jun 2015 by saudi-knight
So this is the error I get on Eclipse:## A fatal error has been detected by the Java Runtime Environment:## Internal Error (0xe0434352), pid=7696, tid=8632## JRE version: Java(TM) SE Runtime Environment (8.0_45-b15) (build 1.8.0_45-b15)# Java VM: Java HotSpot(TM) Client VM...
25 Sep 2013 by sorawit amorn
how do I force as_friend on my using statement ? Or Are there any other way to solve problem without modifying the original #using ?
26 May 2015 by Member 3612029
I have installed Borland 5.5 C++ in my machine.I have installed it in C:It's path is like this. C:\BorlandAlso I have set this path information in the System PATH variable as like this. C:\Borland\BCC55\BinAfter setting this path I am able to call bcc32.exe from the command prompt and...
27 May 2015 by Jochen Arndt
The error shows:Quote:'brcc' is not recognized as an internal or external commandSo it seems you are using 'brcc' instead of 'brcc32' somewhere in your make file.
27 May 2015 by Member 3612029
Hi All,I have a make file, where it generates .Obj files and .res files successfully. After generating these files, there is command called as "@sscheck abc.dll".I am using Borland 5.5 compiler and have installed it in C:\. I have checked the Bin folder, but there is no such command as...
27 May 2015 by CPallini
This page might interest you: "What is the output of SSCheck.Value in VB6?"[^].
20 Feb 2006 by creativesri
This article briefs you about sending mail using SMTP in HTML Format, which takes the default SMTP settings from web.config file
5 Apr 2010 by Chris Meech
Just something else to look at. I've had similar issues where the space character being embedded in one of the folder names caused problems. Generally the highlighted files end up being tokenized by a space character and so an embedded one causes one filename to be split across two arguments.
18 Aug 2012 by Ronni2013
hi, I was wondering how to make this program that i downloaded...an injector.exe(GUI) that will attach to a specified process then after attaching itself it can send input to that process.It's like an injector and a dll in one.Please can you give me idea how to make this?...
18 Aug 2012 by Mihai Vrinceanu
You need the source code of injector.exe.You have to compile it with relocations.You have to modify the entry point function and add code to detect if you are loaded with LoadLibrary or launched using CreateProcess.You could also study PE-COFF file format from Microsoft, create tools...
20 Dec 2005 by Johann Anhofer
9 Dec 2002 by Stoyan Damov
A Draft Implementation of an Idea for .NET Dynamic Software Load Balancing
8 Nov 2012 by AthosXtreme
How to build a .NET wrapper to send MaxL commands to Essbase.
14 May 2008 by Daniel Pistelli
An article about .NET internals and code injection
6 Sep 2010 by tuolesi
I use serialport->write(myCharArray,offset,count) to send my data.I convert::tochar 0x3E and 0x02 to a unsign char array and send them,and i use serialPort->read(myAnotherCharArray,offset,count)to read back the feedback but fail,it always contain 0.I can use hyper terminal to communicate...
6 Sep 2010 by Richard MacCutchan
The value x02 is a byte value, although it has no visual representation in the ASCII character set (if memory serves it is the STX character). If you wish to send this byte to your remote device then just send it, do not try and convert it to something else.
13 Aug 2002 by Bill Ferreira
File encryption object using Managed Extensions for C++
27 Apr 2011 by Mattias Högström
Develop Windbg extensions in Visual Studio and call .NET libraries
14 Jul 2003 by leppie
27 Jul 2009 by Mohammad Shafieenia
Optimum algorithm for calculating factorial of large number
8 Feb 2010 by Ozgur Ozcitak
An article explaning how to create a user control for 2D shape drawing with OpenGL
19 Oct 2007 by Chesnokov Yuriy
This article demonstrates the use of 2D Fast wavelet transform for image processing
20 May 2008 by Chesnokov Yuriy
The article demonstrates a 2D vector wrapper, optimized with SSE intrinsics, for math operations with floating point precision.
20 May 2010 by Gaurav Kishore, Prateek Vaishnav
A 3D chess game that can be played between a computer and a human
17 Feb 2009 by MikeTheDwarf
Helper class to display 3D data
27 May 2010 by Mohammad Elsheimy
in C#, C++/CLI, and ISO/ANSI C++
9 Dec 2016 by SuperMiQi
Hello Everyone,I have the following questions to ask:How to cast/marshal a LPDISPATCH to System::Object^ ?LPDISPATCH pSetup)System::Object^ cSetup = nullptr;cSetup = (casting / marshalling) pSetup;Do I have to use the namespace System::Runtime::InteropServices ?Does...
9 Dec 2016 by Midi_Mick
In C#, I use the System.:Runtime::InteropServices::Marshal class to do this, and it works well. I would imagine in C++, it would be something likecSetup = Marshal::GetObjectFromIUnknown(IntPtr(pSetup));This will properly marshal the pointer into the .NET interop, and set the refcount...
9 Dec 2016 by KarstenK
At first you better use dynamic_cast for type checking.But I think casting a COM object interface to a GC object is not correct. You should handle the original (COM) object as LPDISPATCH and dont cast around. ;-)
17 Sep 2010 by Sandeep Mewara
D tell us, If this question is any different then the earlier one [^]that you asked! :doh: Why posting same thing multiple times? Further, we left a comment to you about your question not clear. Someone even answered you assuming you want to know about 'CodeProject' Article. Here is...
17 May 2011 by Nintynuts
Hi, I'm trying to keep a form active but hidden rather than closing it. I think maybe I need to intercept the close message and change it, then call Hide() instead. The main (parent) form should dispose the child forms on exit. I think I understand the principles, but I don't know how to put it...
17 May 2011 by Sergey Alexandrovich Kryukov
Here is how to do it: override System::Windows::Forms::Form.OnFormClosing method:virtual void OnFormClosing(System::Object ^sender, System::Windows::Forms::FormClosingEventArgs ^e) { if (e->CloseReason == System::Windows::Forms::CloseReason::UserClosing) { Hide(); ...
24 Dec 2011 by SVPro
Hi all,I want to hide my application when it started, and I add: this->Hide(); into OnLoad event, but it cannot be hidden. I can add this->Hide(); into Activate event, but I don't want add this code into Activate event. So, Do you know how to add this->Hide(); into Load event?Thank you
23 Dec 2011 by LanFanNinja
You could put it into the "Shown" event handler
24 Dec 2011 by Mohibur Rashid
If its a plain win32 application (non mfc) then just dont use the window style WS_VISIBLE in your CreateWindow function. if it is an MFC application then follow the link[^]
13 Mar 2008 by Jarrad Winter
Vista introduced a new synchronization primitive called the CONDITION_VARIABLE. In this article, I will provide a .NET wrapper (written in C++/CLI) for this primitive and explain how it works.
29 Jul 2009 by logicchild
This is an article directed at those beginners who might benefit from understanding pointers
17 Aug 2011 by Ger Hayden
This is a working example of a BLOB column on a DataGridView for a Windows Form using C++/CLI where data is drawn from an XML document.
16 May 2008 by freejack
An STL based C++ utility class to parse structured config files.
29 May 2010 by Software_Developer
A Cessna Skyhawk Skeleton for further development in OpenGL (GLUT) using a Win32 Console
24 Jun 2008 by Darren Sessions
This class overcomes the asymmetry issue associated with round rectangles created in GDI+.
18 Aug 2004 by Sprotty
An introduction to XML Data Binding, and a review of a number of leading products.
30 Apr 2006 by abcdefrgtt
A class for manipulating dynamic matrices.
16 Feb 2003 by Marc Clifton
Use this class when high precision is required in basic numerical operations.
1 Jul 2013 by Mark F.
I'm attempting to create a custom ListView class to resolve flicker and custom draw stuff.Is it possible to derive a new class from ListView base class? The class wizard seems to object: "The class cannot be derived from a managed class.". This was a no-brainer in C#.The IDE is VS 2012...
1 Jul 2013 by Sergey Alexandrovich Kryukov
Pretty bad question — please see my comment to it.However, before you clarify it: I suspect you are trying to derive non-managed class from this .NET FCL class. You should use a managed "ref" class as a derived class. You probably was confused by the possibility to write "mixed-mode"...
4 Jan 2009 by Simon.W
Inject a File Switch Tabbar to Source Insight, which like uEdit or Visual Studio
27 Apr 2004 by Nish Nishant
A brief look at the new C++/CLI syntax and how it improves over the old MC++ syntax
19 Nov 2010 by wuban
Hello to everybody!I have to write a function that rotates a video, captured by a telecamera.In SDK Windows I found a capture sample: playcap.Now I think to have 2 ways:1. Or I look for a sample that rotates a video/image.2. Or I write my filter, but I no idea how to do it and...
28 Mar 2008 by maskisland
A generic tracing library implementation.
13 Jun 2011 by paladin_t
Introduction to a generic FSM with visual editor.
13 Feb 2008 by pradeep shivadasan
24 Jun 2002 by sultan_of_6string
The .NET ArrayList class provides "dynamic arrays" which, to a C++ programmer should seem really innane. Here's a linked list collection class that can be used in any .NET language.
26 Feb 2008 by liuxiao
This control provides hyperlink function for the list control with exact positioning for the cursor.
8 Mar 2008 by Nish Nishant
The performance of STL/CLR sequence containers are compared with that of corresponding BCL generic collection classes
20 Apr 2008 by Gene OK
This is an example custom button control, written entirely in Managed C++.
3 Jan 2003 by Paul Ingles
An ASP.NET Validator Control implemented in Managed C++ that can be used to verify email addresses by connecting to SMTP servers listed as Mail eXchangers for a domain, includes example of Win32 API Interoperability with C++ .NET. The validation is not RegEx based.
27 Aug 2003 by Don Kackman
Using the XP Theme API safely on any OS from C#
24 Apr 2008 by Gene OK
This is an update to Don Kackman's UxTheme component originally written for Visual Studio 2003
22 Apr 2012 by Mattias Högström
A native stackwalk funtion like Stackwalk64 cannot handle mixed-mode stacks, since managed code does not use the stack in the same way as native code does. There is an API called IDebugClient, that does walk a mixed-mode stack correctly, which we will explore.
23 Feb 2006 by Nish Nishant
DimmerDialog is a .NET class that shows a modal dialog which grays out the rest of the background, just like the Windows XP Shutdown dialog. This can be used when your application needs to show a very important message box or form that requires immediate user attention.
24 Mar 2008 by Derek Bartram
An article presenting a library for producing communication based application utilising the MSN Messenger services and protocols.
23 Jan 2009 by Rachel Mant
This is what happened when I needed a file extension comparison algorithm, this should save you quite some time thinking one up.
21 Jun 2004 by gamitech
A not so simple firewall if I can call it so. This application will ask you if you want a certain program to start.
30 Aug 2003 by JoeSox
Unique Jungian and MBTI approach to develop Human Artificial Intelligence
19 Apr 2010 by xw3278
A procedure is the independent master routine, it may load the .exe procedure which other may move independently, is also is equal to this A procedure subroutine, these subroutines may move independently, can also in loads in a procedure contact surface also be able through the operation to open...
19 Apr 2010 by Sandeep Mewara
Okay... looks like we got some sort of *definition* for a procedure by you... now what?Do we need to get what the 'definition' states and give you an implementation code accordingly? If so, sorry thats not possible!Now you please help! :doh:
19 Apr 2010 by Dalek Dave
Yes. Correct.But do you have a question?
19 Apr 2010 by CPallini
I hardly believe there is a context in which your sentences are true. Anyway, what is your question? :)
16 Apr 2012 by cmg_2012
I want to Real a Function that When the Edit control get the focus then auto set the cursor to the starting location of the string.I need help,Thank you !
16 Apr 2012 by Sergey Alexandrovich Kryukov
In most cases (please see my comment to the question; you did not specify what are you using; so the answers may vary), you need to set SelectionStart and SelectionLength to zero; with WPF, set CaretIndex to zero; handle the focusing event of your edit control.—SA
4 Jun 2009 by KarstenK
Connecting and disconnecting network drives
27 Jul 2005 by Nish Nishant
Why the author thinks that C++/CLI has its own unique role to play as a first-class .NET programming language
17 Jan 2010 by Aric Wang
This is a class derived from CWinThread class. It is used to record and play sound in the specific thread.
29 Jan 2009 by logicchild
An article to help explain how C/C++ use pointers.
25 Feb 2004 by Alberto Bar-Noy
A simple reminder tool to remind you of your overdue tasks in ToDoList throughout the day
2 Aug 2004 by GenLang
A white paper discussing the benefits of declarative programming for rich-thin clients.
5 May 2006 by Milton Karimbekallil
An article on a security neutral mutex class that can be used on any managed platform.
27 Sep 2009 by Carlos Jiménez de Parga
An introduction to the Visual C++ CORBA development
30 Nov 2008 by WajihUllahBaig
How to read audio input devices in DirectX.
6 Nov 2008 by auralius manurung
An article on how to build a simple HTTP proxy server
7 Feb 2008 by erjan123
2D basic OpenGL Primitives Lines, Points, Triangles, Quads and Polygons
5 Feb 2008 by erjan123
A Simple OpenGL Stipple Polygon Example using Glut.h
19 Jun 2008 by erjan123
A Simple OpenGL Window using GLUT with Win32 Console Application
29 May 2010 by Software_Developer
A Simulation of a Canadian F-86 fighter jet in Windows Forms using Visual C++ 2005
23 Jan 2008 by Daniel Cohen Gindi
Implementing server/client architecture for the great SQLite!
8 Aug 2002 by Rama Krishna Vavilala, Nish Nishant
This article compares and contrasts the relative performances of various languages like native C++, Visual Basic 6, C#, VB.NET, Managed C++, MC++ and native code mix, ngen'd assemblies etc. using a prime number generation function as a generic benchmark
25 Jan 2008 by mi-chi
Tokenize and access string contents using a format mask
22 May 2006 by Jun Du
This article presents a Unix-type shutdown tool for Microsoft Windows.
16 Jul 2008 by Darren Sessions
With this class, you can add a PNG image to your button and automatically get a highlighted and grayscale version.
30 Jun 2003 by Wesner Moise
Provides a class library containing Win32 API function calls, constants, and structures.
10 May 2010 by Software_Developer
A Windows Forms C++ Mandelbrot Explorer/Zoom with Julia walkabout
2 Sep 2010 by Ketan D Kulkarni
Can any one tell me difference between Win 32 handles used in MFC programming and Handles used in Managed C++ (C++/CLI)?
2 Sep 2010 by Christian Graus
You should buy a good book, especially if you want to learn Managed C++. A handle in C++/CLI is probably the handle that's used to identify a managed object, which can move in memory. A Win32 handle is similar, in that it's an id used to identify an object, but Win32 is never going to move...
14 Feb 2013 by Agustin Recoba
Hi again.. and sorry for bothering you... well, im working on a project... and I don't know if you know about a software called TempTracker, its free, and the thing that I want to do, its so save the coords... i mean, the software it's for the calibration of a pair of glasses, but when you hint...
13 Dec 2013 by Member 10453083
Hi All,1-Since we have used MS flex grid control in Visual studio 6.0 using VC++, but we have upgraded to visual studio 2010, so here we are not able to get ActiveX control of MS Flex grid control in tool box, so could we get any other alternative, or the same MS Flex grid control in...
14 Dec 2013 by KarstenK
It is issue Microsoft fixed with some updates of the IE. -> http://support.microsoft.com/kb/970486[^]Good luck ;-)
3 Jun 2008 by praba_tuty
CSQL Cache is an open-source high performance, bi-directional updateable data-caching infrastructure that sits between the clustered application process and back-end data sources to provide unprecedented high throughput to your application
4 Oct 2012 by Ritesh_Singh
C++ code to connect/access DB2 database using DB2 call level interface(CLI)