Lets say I have an old application which will try to load an external assembly.
The old application is compiled to CLR 2.
The new assembly is compiled to CLR 4.
I would like to be able to run that old application inside CLR 4. I remember there was some xml manifest magic involved.
How can I create that manifest xml file to tell that...
I'm new to Visual C++, .NET, and the Windows world of programming (coming from Objective-C/Cocoa), and I'm trying to use the CFLite (Open CoreFoundation Lite) library, which I compiled to a .lib file. It's written in pure, unmanaged C, and I'd like to use it in my managed CLR .NET app. When I try to link it and use the function CFSTR, wh...
I have an asp app that runs against SQL Server 2005 and I'd like to run processes that:
query data,
manipulate data, and
send emails containing particular data and analysis
What is the easiest way to do this in SQL Server 2005? Can I do this in an SSIS package? Should I use CLR procedures?
...
Duplicate:
Why seal a class?
I am wondering about the deeper details about why this is true.
...
I have successfully upgraded an MFC application which was compiled with an old version of Developer Studio to Visual Studio 2008. A very small number of changes were needed because of some breaking changes in MFC. Now that everything works, I'd like to take the next step and compile the solution with /clr.
To do so, I have found useful ...
I've got a c# class library that I call from an asp.net application. The assembly calculates grades for students and performs calculations using datatables and such.
How can I use this assembly in SQL Server 2005 and call it once for each record in a database table? I want to re-use functionality and avoid writing the thing in T-SQL.
...
I've got a web server and a database server, and I'd like to run a job that uses an existing C# DLL to access the database and perform some calculations.
Is the simplest method to create a console app in C# and schedule it on the web server (app server) to run against the DB server?
I see SSIS as an option, but I don't know that well, ...
Hi
i hav a main project(ex: applicationsolution explorer (10projects)) which depend on 10 other
projects. in those in one project i need to use /clr(Common Language Runtime) option.As i know
/clr doesnot compatable with /mtd(in code genration property of linker section ) i changed to
/mdd. my question is
Do i need to enable /clr ...
Hi,
Can someone please tell me whether AddB below will result in less CLR allocations than AddA? I've examined disassembly and it looks to be the case but I'd like confirmation from the Experts please. Can someone Exchange this information with me please?
Cheers,
Charlie.
namespace A
{
struct Vec2
{
public float x;
...
I'm trying to compile a managed cpp application from the command line. Suppose my cpp application references the .NET 2.5 framework's "System.dll". I can compile like this, without problems:
cl /clr /FU"System.dll" main.cpp
The application then works as expected. If, however, I try to reference the .NET 3.5 framework's "System.core...
If this has already been asked and answered, please point me to the existing Q & A and I'll delete this question. I did look and didn't see this one answered.
Are there mainly functional languages (like LISP, Scheme, Haskell and so forth) besides F# for the CLR platform? I say "mainly functional" because realize there are CLR language...
Here is My scenario. I have a project which contains 30 subprojects. In one of the projects I have used CLR (common language runtime) so I modified its runtime with /mdd (multi threaded debug DLL).
Individually all the projects are built successfully. But when I try to compile the main
project I am getting the following linker errors:
...
Can this be done? Or are all CLR UDTs in SQL Server just utilized in SQL Server?
...
I create 2 .NET applications and run them on a machine - how many CLR's and gc's will be there?
In addition: I would like to have some background information on how Windows handles COM components and CLR in particular. Hope someone could detail down to how CLR loads in memory and what it means if I get multiple CLR instances listed on r...
In the .net CLR Object is the base for all class objects, but not basic types (e.g. int, float etc). How can I use basic types like Object?
I.e. Like Boost.Variant?
E.g. like :-
object intValue( int(27) );
if (intValue is Int32)
...
object varArray[3];
varArray[0] = float(3.141593);
varArray[1] = int(-1005);
varArray[2] = string("...
I know the function of this keyword, but I would like to know how it works on a lower level.
Which one is faster? And do they always yield the same result? If they do, why are there two different ways?
// Is there an overhead? An internal try catch?
Class123 obj = someobject as Class123;
if (Class123 != null)
{
//OK
}
or
Class1...
Hi
Here is My Scenario.
I have an Existing Solution in visualstudio which contains 15 projects.
in some project i need to use managed c++ extensions. So first i have a workaround for sample solution contains 4 projects in those i have maintained dependencies b/w them.
and my solution is builded also.
I apply the same procedure to ex...
I am creating a SQL CLR assembly that needs to use a Third Party assembly inside it. The trouble is I cannot reference this assembly as only ones already deployed to SQL or other SQL project references are allowed.
Is it possible to use 3rd party assemblies in a SQL CLR assembly and if so how?
Thanks in advance.
...
I want to include the current time and date in a .net application so I can include it in the start up log to show the user what version they have. Is it possible to retrieve the current time during compilation, or would I have to get the creation/modification time of the executable?
E.g.
Welcome to ApplicationX. This was built day-...
From a design perspective, I wonder why the .NET creators chose System.Object.GetType() instead of a System.Object.Type read-only property.
Is it just a (very minor) design flaw or is there rationale behind there?
Any lights welcome.
...