c++-cli Questions
7
Solved
Background: As part of a larger assignment I need to make a C# library accessible to unmanaged C++ and C code. In an attempt to answer this question myself I have been learning C++/CLI the past few...
Chaves asked 8/11, 2012 at 16:58
15
Solved
I'm trying to link against a library (libcef_wrapper_dll.lib) that was built with the /MDd flag. My application is build with /MDd and /CLR so should be compatible. The project compiles fine but wh...
Coerce asked 23/11, 2010 at 13:33
2
Solved
I'm attempting to call a method written in C++/CLI from C#. The C++/CLI code is used to update a TIMESTAMP column in an Oracle database, given a record ID and the System::DateTime object which is t...
7
Solved
I have got this regexp "^[0-9]+\.?[0-9]*$") to match a double number or an integer number in visual C++ but it doesn't seem to work. Any ideas?
This is how I am applying the code:
if (System::Te...
3
I tried reinstalling, modifying, but still no luck...
The other CLR options don't work and always give errors.
enter image description here
Carlycarlye asked 5/5, 2021 at 1:42
6
Solved
In C# and C++/CLI the keyword sealed (or NotInheritable in VB) is used to protect a class from any inheritance chance (the class will be non-inheritable). I know that one feature of object-oriented...
11
Solved
Can someone please post a simple code that would convert,
System::String^
To,
C++ std::string
I.e., I just want to assign the value of,
String^ originalString;
To,
std::string newString;
...
Angeliaangelic asked 3/6, 2009 at 19:51
5
Hi how to use foreach loop in managed code c++ using vs2003.
Yep asked 12/5, 2009 at 9:9
3
Solved
I know that the C++/CLI code
void foo(Bar^% x);
transforms into
Void foo(ref Bar x);
What is the C++/CLI code that becomes
Void foo(out Bar x);
?
Explication asked 18/8, 2010 at 16:19
5
Solved
I am attempting to create a grid based game. so far i have a hexagonal tile based grid, with a coordinate scheme as shown below:
col 0
| col 1
| | col 2
| | |
__ | __ __ __ __
/00\__/02\__/04...
Pulse asked 4/3, 2014 at 18:44
5
Our project structure is like,
native.dll :- This contains pure native code written in c\c++.
This native.dll exposes some functions using *def file.
Wrapper Library(wrapper.dll compiled with .N...
Monocular asked 25/8, 2016 at 8:14
2
I want to consume managed nuget package in c++/cli project. Is there a way to do that?
For example my scenario is almost like this:
I have created a C# project(MainProject) and added EntityFramewor...
3
Solved
I was just wondering why there are two ways to specify null pointer. I have been going through the link, but did not get clear understanding of its use.
Can someone give a good example of when to ...
2
Solved
I just installed Visual Studio 2012 express for Desktop. I can't see any place to create a GUI application with C++ ! Where is this "Windows Form Application" used to exists in Visual C++ 2010 ? Wh...
Velour asked 3/3, 2013 at 17:54
8
Solved
I need to change the functionality of an application based on the executable name. Nothing huge, just changing strings that are displayed and some internal identifiers. The application is written i...
9
Solved
I'm pretty familiar with C++, so I considered learning .NET and all its derivatives (especially C#).
Along the way I bumped into C++/CLI, and I want to know if there is any specific use for that l...
4
Solved
In C++/CLI , you can use native types in a managed class by it is not allowed to hold a member of a native class in a managed class : you need to use pointers in that case.
Here is an example :
c...
Gauzy asked 6/10, 2008 at 22:6
2
Solved
I am currently developing an application in VS 2008, in which I have a unmanaged C++ library (A) that wraps up two existing libraries (B + C) to simplify functionality. (A) has shown to work and I ...
5
Solved
I had the code:
std::string st = "SomeText";
...
std::cout << st;
and that worked fine. But now my team wants to move to wstring.
So I tried:
std::wstring st = "SomeText";
...
std::cout &...
6
Solved
I have a small to medium project that is in C++/CLI. I really hate the syntax extensions of C++/CLI and I would prefer to work in C#. Is there a tool that does a decent job of translating one to th...
3
Solved
Say I have an array
array<double>^ buffer = gcnew array<double>(100);
And I want a function that does something like:
void foo(array<double>^% buffer)
{
Array::Resize(buffer,...
Ormolu asked 17/11, 2009 at 19:56
4
Solved
Environment:
Visual Studio 10, CLR/CLI Class Library project, built with Platform Toolset v100, targeting framework version v3.5.
I am aware that this question was already asked here, but I did no...
Chloe asked 2/9, 2013 at 10:57
5
Solved
#using <mscorlib.dll>
#using <System.dll>
using namespace System;
using namespace System::Text;
using namespace System::IO;
using namespace System::Net;
using namespace System::Net::Soc...
Pamphleteer asked 11/2, 2011 at 13:6
3
Solved
I have a managed C++ assembly I'm loading dynamically in an unmanaged c++ application through a standard LoadLibrary() call. The managed C++ assembly has dependencies on several more managed (C#) a...
Effortful asked 10/8, 2011 at 19:33
6
Solved
I want to call my .NET code from unmanaged C++. My process entrypoint is .NET based, so I don't have to worry about hosting the CLR. I know it can be done using COM wrappers for .NET objects, but I...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.