What compiler tools and supporting libraries are available that would help in implementing a compiler targeting .NET and the CLR? Preferably open source. I am especially interested in frameworks that implement a high-level IR and support for common high-level and middle-level optimizations.
...
Can someone help me find a solution to the following error:
"fatal error C1190: managed targeted code requires a '/clr' option"
My configuration is ..
Visual studio 2008
Windows 7
Here is the code (i got by using net resources)
#using <mscorlib.dll>
using namespace System;
using namespace System::IO;
int main() {
// C...
1) What is int? Is it any different from the struct System.Int32? I understand that the former is a C# alias (typedef or #define equivalant) for the CLR type System.Int32. Is this understanding correct?
2) When we say:
IComparable x = 10;
Is that like saying:
IComparable x = new System.Int32();
But we can't new a struct, right?
o...
I've got a winforms application that is set up in the following manner: 2 buttons, a textbox, an class object MX with a collection K as its member, function X and another function, Y.
Function X parses a large database and enumerates some of its data in collection K.
Button 1 calls function X.
Function Y walks through the above collect...
Help me understand. I've read that
"The time and order of execution of finalizers cannot be predicted or pre-determined"
Correct?
However looking at RavenDB source code TransactionStorage.cs I see this
~TransactionalStorage()
{
try
{
Trace.WriteLine(
"Disposing esent resources from finalizer! You should call TransactionalStorage....
From Jon Skeet's blog:
What does the following comment mean?
// The line below only works when linked rather than
// referenced, as otherwise you need a cast.
// The compiler treats it as if it both takes and
// returns a dynamic value.
string value = com.MakeMeDynamic(10);
I understand what referencing an assemb...
I have a SQL CLR dll I want to deploy, but have found you can embed the byte stream/varbinary_literal/ varbinary_expression/assembly bits into a text file to get around the messy hassle of packaging a DLL and making sure it's accessible for the CREATE ASSEMBLY command.
But what I have yet to find is how to get that byte stream/varbinary...
Hi!
I'm writing an interface that will be implemented by a lot of classes, and I'm writing a class that will hold a collection of instances of these implementations. Every class will have a default constructor.
So, is there a simple way (e.g. using some kind of reflection) to put an instance of each of these implementing classes to the...
Hi awesome!
We know that MarshalByRef allow us to create an object in a different AppDomain and use a Proxy object to access it. And the behavior of that object is in a different context of the AppDomain where it actually lives in. Well this sounds fairly reseaonable in the regard of isolation and safety.
But why is there still Marshal...
I've found a lot information in internet about this, but I can't answer for myself; will .net 4.0 application work slower if I add .net 3.5/2.0 assembly, and should I recompile them in 4.0 if I can?
...
I understand visual programming languages to be those languages that allow the programmer to to manipulate graphical--rather than textual--objects onscreen to build functionality.
The closest thing I see in C#, VB, etc. is RAD controls, but that is just composing UI and the very simplest functionality -- it has nothing to do with the la...
When I'm trying to create a clr fucntion with nullable paramete (any kind), the function does not created in the DB.
Does anyone know how can I do it?
thanks.
...
I am trying to use .NET TimeZoneInfo class from a SQL CLR function, as described in stackoverflow questions here and here. While researching possible solutions, I found this post that suggests using SafeHandle to safely handle the resources accessed by TimeZoneInfo.
How do I use SafeHandle in this situation?
...
I found something similar discussed, but it was while .NET 4.0 RC.
As for current moment does someone tries to do some performance comparison and can share with as.It is very interesting as besides other changes such core modules like CLR and GC are updated. Does that gives any performance advantage.
...
So I have a regex expression to parse certain parts of a file name. I'm trying to store each part in its own vector until I use it later, but it won't let me. One error I get when I try making a vector of System::String^ is that error C3698: 'System::String ^' : cannot use this type as argument of 'new' Then, when I try just making a vec...
I want to convert a C# style generic type string, like
"System.Dictionary<System.String, System.String>"
to it's CLR equivalent:
"System.Dictionary`1[System.String, System.String]"
and back. Is there an easy way to do this, or do I have to resort to string manipulation?
EDIT: I only have the string representation in C#/VB/etc styl...
Introduction
After watching this video from LIDNUG, about .NET code protection http://secureteam.net/lidnug_recording/Untitled.swf (especially from 46:30 to 57:30), I would to locate the call to a MessageBox.Show in an EXE I created.
The only logic in my "TrialApp.exe" is:
public partial class Form1 : Form
{
public Form1()
{
...
Hello guYz plz help me out in making it possible to open the files by the adress provided in an array of strings.........
a way to open file is as given below...
ifstream infile;
infile.open("d:\aslam.txt");
but how can i open file providing an array of string as an adress of file.....
like this
infile.open(arr[i]); (but its not worki...
I'm starting to read in-depth on the .NET framework, and its Common Language Runtime. I'm reading a .NET overview by Microsoft and I'm not sure what is meant by this statement.
Code that targets the runtime is known
as managed code, while code that does
not target the runtime is known as
unmanaged code.
How do you target the...
Why is my delimiter not appearing in the final output? It's initialized to be a comma, but I only get ~5 white spaces between each attribute using:
SELECT [article_id]
, dbo.GROUP_CONCAT(0, t.tag_name, ',') AS col
FROM [AdventureWorks].[dbo].[ARTICLE_TAG_XREF] atx
JOIN [AdventureWorks].[dbo].[TAGS] t ON t.tag_id = at...