|
jayarajmrj wrote: In .net 2.0 when we use compiler , we have to use "csc /?" in command prompt for display all the list.
Similarly what is the command for .Net 3.0?
Note: I have install only .Net 3.0 Framework only.
As the .NET 3.0 framework is just an add on to the .NET 2.0 framework and uses the C# 2.0 compiler I'm guessing that if you just install the .NET 3.0 framework you'll still need to install the .NET 2.0 Framework to get the basics (including the C# compiler)
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
And this is the 3rd time you've asked this in as many hours! Please respond on the threads you have already created rather than create new threads.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
Colin Angus Mackay wrote: create new threads
Perhaps he is trying to manage a ThreadPool over the messageboard so that at least one thread would survive supporting and substantiating his laziness of not doing homework properly and to aide in his wierd aspiration of being spoon-fed.
|
|
|
|
|
I recommend you either start reading the advice you're being given, or stop asking questions that you're obvioulsy going to ignore the answers to.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
How do we compiler in 3.0 which the C# code written in 2.0? Give the step by step process.
|
|
|
|
|
Hard to guess what you asked, but C# 3.0 is basically an add on to 2.0. There are no breaking changes AFAIK.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello!
I have a C# Windows Form application (VS 2005) which use some COM object. In the end, after Form close, I recieve error message box :
HEADER:
.NET BradcastEventWindow.2.0.0.0.1.e6fa8e.0:MyApplication.exe - Application error
TEXT:
The exception unknown software exception (0x00000005) occured in the application at location 0x7d6210ca
Click OK to terminate program.
I. I have installed WinDbg, but debugging this application is not available.
II. I browse internet for look this error and found that it is Garbage Collector error.
III. I started VS and attached to MyApplication.exe and didn't sow that location 0x7d6210ca, of cource many modules loaded, but this address was to big. May be it is addres of virtual memory?
So, I think that some COM object don't correctly released or some callback come to released object.
May be you have some thinks or ideas?
|
|
|
|
|
Did you dispose of the COM object when you were finished with it?
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
May be not...
Looks like you are right - I call GC.Collect() before return from main() and it is help.
|
|
|
|
|
There are better ways to do this other than calling GC.Collect() . Ideally, you should wrap the COM object you are using in a wrapper class that implmenets the IDisposable interface and the Dispose pattern. This wrapper class should have the responsibility of explicitly releasing (freeing) the the COM object when it is disposed.
|
|
|
|
|
I strongly agree with the IDisposable method of disposal then the GC.Collect() as it may just about bring down the performance a bit more.
Thanks for displaying both the methods.
Regards,
Vaibhav Sharma
|
|
|
|
|
I use class wrapper with Marshal.ReleaseComObject in destructor, but error strangely unpredictable occured in the finish of application.
|
|
|
|
|
Now I am working in .Net 2.0. I want to Build my application in .Net 3.0. I downloaded 3.0.
How can I build 3.0? pls give step by step process.
|
|
|
|
|
|
plz how can i read a string from a txt file then insert it in a database table using C# in visualstudio2005 ?
|
|
|
|
|
Ok as regards your first qt.
>> Use the My.Computer.FileSystem.ReadAllText() function to read the text from the text file that you want the data to be imported from.
Dump the string returned by this into a local called importedData
>> As for the Database code, you should have specified the provider, but here is it for Access.
Dim oledbCn As New System.Data.OledbConnection(connectionString)<br />
oledbCn.Open()<br />
Dim oledbCmd As New System.Data.OledbCommand(commandString,oledbCn)<br />
If oledbCmd.ExecuteNonQuery()>0 Then<br />
MessageBox.Show("Data imported to database correctly.")<br />
Else<br />
MessageBox.Show("Data import failed.")<br />
End If
As you may be knowing, connectionString for Access will be
"Microsoft.Jet.OLEDB.4.0; Data Source=MyDatabase.mdb"
commandString would be the T-SQL statement like
"INSERT INTO TableName(colName1,colName2,...) VALUES('" & importedData & "',...)"
I guess that is fairly a very Beginners job in .NET and you should be having no problems whatsoever using the above snippets.
In case of problems always refer back and we will be there for u.
Happy Coding
Regards,
Vaibhav Sharma
|
|
|
|
|
Hy there, I must make an app that silently installs .net framework(the client must never be asked nothing). I found a method to do this..and even one to find if .net is installed, but I don't 100% trust it because it checks only the registry.
So I won't to make sure by launching an .net app wich returns, for example 1.
But if .net is not installed, the client sees the error ".. press ok to terminate the app". My program written in C++ knows that it didn't return 1,
but I wan't the client not to see the exception
If you can help me, pleaase, it's important(to me:P) Thank you.
|
|
|
|
|
|
Well, I am using C++ to write my application, so I don't want to use a JavaScript, and I have no ideea what the client has on his computer. I need to start an app written in C# and to catch the exception that it throws if .NET is not installed.
My problem is that I know that .net framework is installed, but I don't know if it works..so I have to be sure.
I tried to catch that error, but it does not throw the exception to my application, it throws it directly to windows.
Hope someone helps me. Thanks!!
|
|
|
|
|
Actually I was suggesting you the trick/concept hidden over there. The Web Browser's UserAgent shows up whether .NET Framework is installed and also carries the .NET Framework versions that have been installed on the system.
That should show some light for you at the end of the tunnel.
|
|
|
|
|
Well, I must say that I don't know nothing about Java Script.. I made my app in C++. Can you help me with some code? how can I write to test that user agent? I don't need and .NET app, 'cause it wont't run on the client's computer if he doesn't have .net. I now your solution is good, but i don't know how to implement it in C++
|
|
|
|
|
Good day
Previously in framework 1.1 one dll was compiled and all code behind pages was included into this one dll. This was a maintenance nightmare as when any pages changed testing this change had to include all the different modules as all the code was compiled to one dll.
One of the major changes in framework 2.0 is the way the project is compiled.
A detailed article explains this:
http://www.west-wind.com/presentations/AspNetCompilation/AspNetCompilation.asp[^]
We are now in the process of choosing which way will best suite our environment.
Some basic requirements when choosing an option:
1. The systems will fall into a maintenance stage and this is when I will need the option to allow changes to modules and the test effort must only be on the change and not the whole system. Ie compile a dll per module/page will cater for this.
From the article above I think the best approach will be to use the InPlace Deployment which will compile a dll per page, and therefore the test effort will be much more streamlined to the change and not the whole system.
Some of the factors to consider is
1. Security
2. Performance
Please give me your feedback on this.
Regards
Chetan
|
|
|
|
|
Ok, im trying to get an image, for now a jpg, but I want to make it so it can get all the major ones. But for now, still trying just to get the jpg image. I get data back, I get a good header, but when I put it in the file, and open it, it is completely distorted and doesn't look, well doesn't look like anything. I don't know if there is something like I need to convert it after getting it or what. The file comes out bigger when I get it then when I just straight download it. I am getting it just by taking what I see after the header, and looking for the content length and grabbing char per char. Any help would be great. Thanks!
|
|
|
|
|
I'm writing an application in C# .NET.
I'd like to add a button to the controlbox that will make the application go full screen (i.e. disable the taskbar and bar at the top of the application). This is similar to the TV mode on WinTV.
I've worked out how to make the application maximise (see MaxWinForm article), but cannot work out how to add the button to the controlbox, which normally holds maximise, minimise and close.
Anyone any ideas?
Cheers,
James
|
|
|
|