|
hi there,
I build an application with Visual Studio .NET (C#) and after I build this project as Release application and after I move the .exe file on other machine don't runs
I try to build an setup project with dependencies but don't works
what can I do?
thank you
|
|
|
|
|
hi
Of course, it doesn't work! Any Visual Studio .NET programm requires CLR and JIT (common language runtime and just-in-time compiler). This is an environment which manages objects running in such programmes. You must install this environment on given machine. I am not sure, but try to execute Setup.EXE from update directory of .NET Studio installation disk.
best regards,
Petr Valach
|
|
|
|
|
The other computer requires the .NET runtime[^]!
"We will thrive in the new environment, leaping across space and time, everywhere and nowhere, like air or radiation, redundant, self-replicating, and always evolving." -unspecified individual
|
|
|
|
|
Please someone explain me about:
1. ActiveX dll's get registered in the registry. How about c# dll's?
2. Is it possible to invoke a object from a dll sitting on another machine...
something like we use in VB
ex. set obj = Createobject(progid, machinename)
I am sorry, if I my questions are meaningless. Please be patient and explain me so that I can understand.
THanks in advance.
|
|
|
|
|
All CLR Asseblies are self-contained, meaning that all information is stored within the Assembly itself. COM objects store information in the registry as well as in the objects type library. C# and all other .Net languages store information in the Metabase which is stored in the dll itself. This is why we can't do late binding with .Net languages.
If you do need your DLL registered as a COM object so that you can use it in other languages such as VB6 or Delphi; there is a utility that ships with Visual Studio.Net that will create a type library for your objects and register them in the registry.
You can find more information on this process in the Visual Studio help files.
Hope this helps you.
-V-
|
|
|
|
|
I notice in a lot of C# code that "this.SomeVar" is used when the "SomeVar" could be called directly.
I removed the "this." from a WebApplication and it seemed to work OK
What is it doing and why is it here? Is it the same as the C++ "this->"?
Thanks
Note I only used C# for a day so if this is a stupid question I am sorry.
|
|
|
|
|
My code looks like this (before cleaning, anyway) because I usually manage to forget the names of member variables. Typing "this." brings up a list of member variables, letting me search for my member variable's name without having to change my place in the code. So, short answer - laziness - at least in my case
--
Russell Morris
Georgia Institute of Technology
"Lisa, just because I don't care doesn't mean I'm not listening..." - Homer
|
|
|
|
|
Hi!
The [this] keyword is used so that you can refer to a member variable instance without accidently calling another variable by the same name. Take this example:
class MyExample
{
private string value = "";
public string Text
{
get
{
return this.value;
}
set
{
this.value = value;
}
}
}
Now personally I would not have written code like this, but there could be a time when something similar occurs. In this example, value is the variable name sent in though the Text Property and can't be renamed. Since I have an internat member called value, the only way that I can communicate with it is with the [this] call, which tells the compiler you were talking about the global instance and not the system local instance.
Using the [this] statement is not required by any means, but can help tell other developers that you are:
A. Using a member property and
B. There can not be a conflict in local naming.
I hope this helps.
-V-
|
|
|
|
|
I have an a final Assignment due for a CS140 course and I really need some help. My professor puts the assignments on the web and the URL for the one I'm having trouble with is: http://www.hello-world.com/MC/CS140/Assignments/A8_sort.htm. It involves having to sort 8 names. I can't get my program to print out an array at all. I'm getting a variety of errors too. If anyone could help me, I would really appreciate it. I'll email you the work I've done so far. I'm kind of desperate here since the assignment is due BY December 18, 2000 so can someone PLEASE help me. Thanks!
|
|
|
|
|
Okay i have not looked into this, but i figured maybe
someone else has. Will we able to embed C# directly into
ASP pages, like we can embed java into jsp. If so
will ASP have a servlet analog like jsp does.
I am learning jsp now and find it pretty easy, so i figure
if C# is able to do the same thing as java does for JSP
then it will make asp easier. I dont mean raw asp, i mean
have a strongly typed language for asp.
thanks
|
|
|
|
|
Actually any language that is supported under .NET will work within ASP+ pages. This includes both Microsoft's C#, VB (no more VBScript, you get the whole thing instead), and Javascript. Also many other third parties are working on other .NET compatible versions of their languages (such as Cobal, pascal, Fortran, etc.).
|
|
|
|
|
And to note another part to his question...
As required by the CLR Specification, all DotNet languages are strongly typed, so ASP.Net will act like your JSP.
-V-
|
|
|
|
|
Can I create custom user interface in C#, for instance like MS Office2000, similarly as in Visual C++.
Mike
|
|
|
|
|
Mike,
C# is a language, so it really doesn't define what you can and can't do as far as interface design. Microsoft with the .Net runtime has made all programming languages equally powerful, so anything you can accomplish in one language, you can reasonably expect to accomplish in any other .Net compatible language.
Microsoft is pretty hard-core about C#, so to answer your question, yes, you can make sophisticated UIs like you find in Office in C#. You can also make those UIs in VB, in Cobol, in Eiffel, etc.
|
|
|
|
|
Hi Mike,
If you are talking about writing a Windows Program than you just need to look up examples on System.WinForms. Since Microsoft is only documenting DotNet in C# you should be able to find lots of information on this.
-V-
|
|
|
|
|
I am dying to get my hands on the C#. My question is whether the latest or up coming installments of MSDN Universal Subscription will have beta version of C#.
|
|
|
|
|
The material is already available for download, I'm sure that it will be included in the next round of MSDN Universal distributions too. For more information on this, check out this thread on CodeProject.com
|
|
|
|
|
|
I am not sure if it has been said that C# has been submitted to ECMA or will be submitted to ECMA but I did a quick search of the internet and I get the impression that C# has not (yet) been submitted. Something that I found interesting is that Sun has submitted Java to ECMA and Microsoft has submitted JScript. I do not find anything in the ECMA web site about Java though. If, however, Netscape has submitted Java then it makes sense to me that Microsoft will submit C#.
ECMAScript is evidently a standardized JavaScript/JScript.
See: http://www.ecma.ch/
|
|
|
|
|
I guess it has been submitted (or atleast in the process)and they are reviewing it. But I dont know on what stage it is, but atleast EMCA are doing some work on c#. Not only C#, but also CLI. I guess one day or other both C# and CLI(Common Language Infrastructure, I guess it is same CLR) will be a standard. May be I'm too optimistic!
Refer to their website!
http://www.ecma.ch/ecma1/news/news.htm
*note if that link doesnt work, search "C Sharp" (not C#)
on their site.
regards
Ravi
|
|
|
|
|
Hi Ravi,
Yes C# has been sent and accepted as a Standard with Microsoft and IBM on the board for the committe. Also to note that JScript is also a full programming language now as well with JScript.Net
-V-
|
|
|
|
|
|
|
I guess no one can realy decide before he has a compiler at hand.
MS gave those at PDC, so how come they are not giving it away to everyone?
|
|
|
|
|
Depends whether you are asking "Is C# the mythical 'Cool' that we all heard rumours about last year", or "Is C# a good language".
According to the recent poll (http://www.codeproject.com/script/poll/detail.asp?topic=71) most people felt C# was definitely uncool - but it is really hard to judge until you've used the new IDE, written some apps and compared the functionality. Personally I feel it will be kinda nice to drop back to C# to write a COM client, then maybe do a little VB to whip up a neat UI, and then roll up the sleaves to get some hard core C++ going - all working together in the same environment. I think everything simply needs to be put into perspective.
As to whether C# is the Cool project, I was talking to the MS guys and got a definite 'sort of but not quite'. Cool was the name for an entire new technology on which .NET was based. C# is a major part of this, and so in a way C# was part Cool, but Cool was more than C#. At least that was my understanding...
|
|
|
|