|
Interesting article on the MSDN site.
Full Eiffel on the .NET Framework
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/pdc_eiffel.asp
Describes the implementation and integration of the full power of the Eiffel
language and method, including Design by Contract, multiple inheritance,
genericity, and other advanced facilities, into the Microsoft .NET Framework
Also shows screen shots of Eiffel running under Visual Studio .NET.
Kevin
|
|
|
|
|
Hi,
I have very simple form with imagelist component and there are some images
in this imagelist. If this form is not the first class in the namespace
loading image throws exception
"System.Resources.MissingManifestResourceException"
Almost all code is generated by Visual Studio. I added only one line:
class NewClass {};
before form definition and image stopped loading. Form isn't localized and
image exist in resx file and
if I comment out NewClass definition or put it after Form1 everything is OK.
Could anybody explain me why this additional line causes this exception?
Thanks,
Damian
namespace WindowsApplication3
{
class NewClass {}; // problem with this line
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.ImageList imageList1;
private System.ComponentModel.IContainer components;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing ) {.}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.Im
ageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(292, 267);
this.Name = "Form1";
this.Text = "Form1";
}
[STAThread]
static void Main() {.}
}
}
|
|
|
|
|
This is a known bug; the work around is to place your class at the bottom of the file.
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
How is the GAC different from the registry? For versioning, wouldn't publicly shared .NET assemblies run into name clashes here just the way the registry did for the same component, different versions?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
to be put in the GAC, assemblies must have a Strong Name.
The strong name includes the namespace qualified name, the version, the culture, and most importantly, the public key.
|
|
|
|
|
No. The GAC makes it nearly impossible to create a name clash with different version of an assembly. An assembly has four parts that make up its place in the GAC.
- Name
- Version
- Public Key Token
- Culture
All four of these items are used to put an assembly into a unique location in the GAC. Try going into the GAC from the command line and not internet exploder. You'll notice that not all of the assmeblies are present at the GAC level as it appears when viewed from internet explorer. All assemblies are stored in the following way in the GAC
c:\WINNT\assembly\GAC\assemblyname\version_publickey\assemblyfile
The culture also goes in there somehwere but i can't remember where exactly. However with the way that public keys are generated it would be extremly unlikely that a product would match all 4 criteria.
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
Hi, I am looking to get some more experience developing with the new .NET framework, however I am running into a security issue on the Win 2K platform as my sample C# app tries to open my registry - which my system won't allow. I have looked at the .NET framework configuration program under Administrative tools but to no avail.
In short I need a crash course in .NET security. Are there any good resources that can really help me understand it?
Thanks,
|
|
|
|
|
|
I run the program as either myself or the administrator and still receive the same error. I do have permission, and can edit the registry successfully. The program is a sample which I obtained from Microsoft's web site. when I run the application, when I run the program in the browser I get the following error:
Description:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Security Exception:
System.Security.SecurityException: Requested registry access is not allowed:
Source Error:
Line x: mEventLog.WriteEntry(Message, EventLogEntryType.Error ........
|
|
|
|
|
Go into your ControlPanel->Administrative Tool->.NET Framework Configuration. I haven't played around with this a lot but from there you can change the access rights of assemblies. One of those options should allow you to access the Registry.
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
Hi All,
I am very new to the asp.net and the .net technology. I have requirement where I need to pass parameters to a crystal report using c#. Some how I am able to connect to crystal report and generate the report. Can any one help me in this regard. I have searched all the tech sites but of no use all deal with vb.net. So any help in this regard is very helpful asap.
|
|
|
|
|
Hi,
How can I use DirectX objects in a .Net Application
(vb or C#).
Thanks,
Firoz
|
|
|
|
|
|
I strongly recommend you don't even try. COM Marshalling is really slow. You're best off creating a Managed C++ class library that contains native DirectX code. Still, there are some features such as Direct3D FVFs that are impossible to implement as managed code.
|
|
|
|
|
for right now, you'll have to use Interop to talk to DX8.
however, DX9 will come with a full managed api as well as the old com interface.
so if you can afford the time... i'd suggest you wait on the dx9 release.
|
|
|
|
|
When oh when oh when will it come out?
I also am waiting on DX9 to begin my game development.
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Did a brain transplant on my Laptop with XP pro.
Then to install Visual Studio .NET. Well it tell me I can't until I install the missing windows components. "would I like to?" it asks. Of course I would. So it does.
Now at last I can install Visual Studio !!! At least that's what I thought. Now it tells me that I can't until I remove the Visual Studio component that is already there.
Hang on!!! Wasn't I just advised to install it? Ok so I remove it.
Restart the install program and guess what?? I can't install until I add the component I just removed.
To paraphrase a TV ad that is running in Australia "NOT HAPPY!! BILL"
Happy programming!!
|
|
|
|
|
I am just starting out with .NET
I find it's great the ease it lets you create n-Tier applications.
I just put up an SQL Server Db, I made an XML Web Service, and for the client side I already have a Web Application in C# or a Windows Forms in C#.
You just learn to use the Add Web Reference:
Smooth as silk!
I was wondering now how the philosophy of Microsoft comes to play now.
I mean, what if I want to create a client on JAVA2ME? or for the Symbian OS? Or for the Palm OS? or on the Pocket PC? or on the Smartphone? or on Linux?
Technically it should be easy:
you add a Web Reference, call the method "GetDataFromDb();" on the Web Service, retrive the XML file, process it, update!
But what practically?
Are there tools now?
Is XML supported?
Are web references supported?
Oh I hope sombody thought about it!
"Nelle cose del mondo non e' il sapere ma il volere che puo'."
|
|
|
|
|
Check this article out: http://www.fawcette.com/vsm/2002_08/magazine/departments/guestop/
It talks about possibly porting VBA to .NET. If they can do that, it seems feasible that the same could be done for VB6. Not having to learn a new language before switching to the .NET platform could probably greatly ease the transition for many people. While VB.NET isn't THAT different, it was somewhat annoying for me to get used to the language and the .NET platform at the same time. Companies that program in VB6 would probably switch to .NET a lot quicker if they didn't have to retrain a bunch of employees.
Anyone else have any thoughts?
|
|
|
|
|
If they can port VBA to .NET then they wouldn't have needed to change VB6 to VB .NET.
Kevin
|
|
|
|
|
I have a pretty good grasp of C++ but very little success in GUI applications with MFC from MS Visual C++. I am interested in windows based applications (to be used mainly by myself) in engineering problem solving.
Where should I begin?
Should I concentrate on learning MFC from VC++ 6.0 or switch to .NET framework now?
What books or training would you recommend?
When you come to a fork in the road, take it! Y. Berra
|
|
|
|
|
Go to .NET, you won't regret it. It's a great technology. However, you're going to need to get your hands on some version of Visual Studio .NET, which is rather expensive
In general I find the Wrox Press Beginning ___ (in this case Beginning C#) very good introductions, but since your a programmer already I've heard good things about Inside C# 2.
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Actually, Amazon has the Professional UPGRADE for $165 after $300 rebate.
So do recommend C#.NET over C++.NET? Why is that?
When you come to a fork in the road, take it! Y. Berra
|
|
|
|
|
Donald Blachly wrote:
So do recommend C#.NET over C++.NET? Why is that?
I do; because I think its much easier to learn how to use the class library without the language syntax getting in the way. To me, the C# syntax is intuitive to the use of the .NET classes.
My opinion anyway
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
This is purely my opinion but if you're going to use C++.NET then you should either use C# or C++. C++ wasn't designed to be run in .NET and as such there are some places where working with C++.NET is funny to say the least(boxing for instance).
C# was designed to run in .NET. Essentially, anything you can do in C++.NET can be done in C#. C# has a much more intuitive syntax and once again IMHO is easier to work with sometimes.
However this is purely an opinion thing
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|