|
I was just wondering if the Framework includes the compiler in some set of wrappers. I'm writing a utility that needs to be able to compile solutions written in VB.NET and C# for use at the office and would like to have a custom class to do compilations. I was just wondering whether it's there or not. Of course I can always write a class wrapper that handles the existing compiler and possible command lines (which is what I'm going to do for the short term) but I was just wondering... I'm always finding something in there I didn't expect.
|
|
|
|
|
You will find the C# compiler at path
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CSC.exe
"v1.0.3705" may vary depending on the version of .NET Framework installed.
|
|
|
|
|
I'm writing a simple little c# class to simply function as an alarm - you pass it a System.DateTime with the constructor, and when that time is reached, it fires an "Alarm" event. Simple enough. However, what's the most efficient way of doing this? Currently, I have thought of two ways. The first has a timer within the class that raises it's event every second or so, and each time it checks to see whether the time now is the same as the target time (accurate to the minute essentially, which is all that's neccesary).
The second is to work out how many milliseconds is between the time the control is enabled, and the target time, and set the interval to that. With repeat turned off, this means that in theory the timer will fire when the alarm is due, which is maybe more efficient than regular comparison checking?
Are these both crazy? Which is more sensible? Is the System.Timers.Timer accurate enough to do the second option anyway?
Am i missing a very easy way of doing this that is nothing like the above? Thank you very much in advance for any comments.
|
|
|
|
|
There doesn't appear to be any clear "best" way of dealing with this kind of thing. I have a couple of Windows Services that have to do various things at "scheduled" times. At the time I needed to write them, I chose the services route. Who knows now whether another method would have worked better... but from my experience it doesn't matter much. I run a timer as you suggested. Since my timing is accurate to the minute (not second) then I fire the timer every 60 seconds. Start the timer when the application starts and let it go with that. Don't use the Forms Timer. Use one of others. They're much better (like the System.Timers or the System.Threading.Timers).
Another option (which I could have taken) is to use the .NET framework wrappers for the Windows Scheduler service. There's an article on here all about that. Then you can write an application that runs when it's scheduled to and that's it. Simple as you please as long as the user is letting this service run.
|
|
|
|
|
This isn't really a framework related question and besides you have already posted the same question to the C# forum.
|
|
|
|
|
Many apologies for any annoyance caused by a double post - I couldn't decide whether this was more of a general framework question or not. I happen to implement in c#, so posted there first, but thought that then it might be more appropriate as a general question of technique. Again, apologies for offence caused!
|
|
|
|
|
Software must be delivered faster than ever before, without sacrificing the time taken to design and implement architecture. Research bears that less than 70 percent of development projects are actually completed, and more than half come in late and over budget.
TierDeveloper is a time saving OR mapping and code generation tool that helps Software engineers do better, more creative, and useful work by reducing redundant hand coding. TierDeveloper greatly reduces the costs of software production and reduces manual errors. In this world of increasingly code-intensive frameworks, the value of replacing laborious hand coding with code generation is acute and, this is one of the reason why TierDeveloper popularity is increasing day by day.
For a free evaluation please visit: http://www.alachisoft.com/download.htm
Time Savings in the Implementation Phase
TierDeveloper quickly designs, generates and deploys the middle-Tier data objects in hours or days at most. This is the biggest area of saving in a software project when you use TierDeveloper.TierDeveloper also generates a fully functional web application to test and verify data object behavior. One not only learns from this web-application but can also copy/paste code from this web-application to another web-application. This will save a great deal of time.
Time Savings in Testing Phase
Any code that TierDeveloper generates is based on code-templates that have been tested for functionality and performance. This means that one has to do much less testing of the application since TierDeveloper generated code is at least 50% of the middle-tier objects. Similarly, any code that one will copy/paste from generate web application is also pre-tested and reduces the testing of the web application as well.
SOFTWARE DEVELOPMENT WITHOUT TIERDEVELOPER 6 MONTHS:
REQUIREMENT ANALYSIS AND DESIGN
Jan/Feb -Requirements Capture
Jan/Feb -Black and White Web Layout
Jan/Feb -DB design and App Architecture
Jan/Feb -Branding and Artwork
IMPLEMENTATION
Feb/June -Develop Middle Tier Data Objects
Feb/June -Develop Web Pages
Feb/June -Develop Business Logic Objects
Feb/June -Develop Web Services
TESTING
June/July -Functional Testing
June/July -Stress Testing
SOFTWARE DEVELOPMENT WITH TIERDEVELOPER 4 MONTHS
REQUIREMENT ANALYSIS AND DESIGN
Jan/Feb -Requirements Capture
Jan/Feb -Black and White Web Layout
Jan/Feb -DB design and App Architecture
Jan/Feb -Branding and Artwork
IMPLEMENTATION
Feb/April ++Generate Middle Tier Data Objects with TierDeveloper++
Feb/April ++Develop (Cut/Copy/Paste) Web Pages with TierDeveloper++
Feb/April -Develop Business Logic Objects
Feb/April -Develop Web Services
TESTING WITH TIERDEVELOPER GENERATED APPLICATION
**LESS FUNCTIONAL TESTING**
**LESS STRESS TESTING**
If you want to gain greater productivity, quality, and consistency, while cutting costs at the same time then implement TierDeveloper, it is developed to reduce the time intensive phases of project development and software testing with a significant cost reduction.
For TierDeveloper time saving analysis please visit http://www.alachisoft.com/time_savings.htm
For free evaluation download please visit
http://www.alachisoft.com/download.htm
Visit our website
http://www.alachisoft.com
|
|
|
|
|
Hello,
Since I couldn't find the right component to do what I
want, I'm planning to write a recursive search and replace
in files component. This will accept a table of links,
search them in html files and replace with a new link.
I am planning to use the System.IO namespace and load
files into memory (using stream objects?). Is this the
right way to go about this or am I missing something big
here??
Any help appreciated,
Thanks.
|
|
|
|
|
Hello,
Does anyone know how to implement any of the unique GUI features found in Microsoft's Project 2000? The basic framework of this app looks a lot like something I want to build myself.
Some of the features are:
(1) a vertical toolbar at the left of the MDI parent window, showing icons (and texts below the icons). The icons seem to be buttons (doing a mouseover will show the button border), but the button border is absent otherwise; only the icon shows. The ordinary Windows App button does not support this display mode out of the box.
(2) the main client area of the application can have one or more MDI child windows for projects. But each window will contain whatever type of chart is selected in that vertical toolbar described above, and whenever a particular chart is selected, it occupies the entire client area of the MDI child window.
#1 can be implemented the hard way with a panel and ordinary buttons, tolerating not having the button borders go away when no mouseover. Or, just use PictureBoxes and load in icons with and without a "button border" depending on mouseover state.
#2 is similar to trying to build a wizard with the TabControl and trying to get rid of the tabs themselves, something no longer available in .NET. Otherwise this approach could work by just having all the different flavors of charts available in a big TabControl and just bringing up the desired one.
But all this seems rather roundabout. Are there freeware/shareware solutions out there that can specifically implement the Microsoft's Project 2000-style interface? As interfaces go, I think this one is rather good for certain kinds of applications, and so I'd ruthlessly want to mimic it.
Thanks
Mike
|
|
|
|
|
Is there a book or an online reference that discusses, preferably step-by-step, what the industry standard (as defined by MS) for designing, laying-out, developing, and implementing Windows Forms Applications?
I appreciate any information!
|
|
|
|
|
Jeffrey,
To my knowledge, there isn't an industry standard for designing Windows Forms Applications. I believe the standard is .NET itself, and the implementation is up to the developer. I've read several of the Microsoft Press books for Windows Apps, along w/ books by Apress, Oreilly, etc. and they all have varying approaches.
I think one of the best books out there is User Interfaces in C#: Windows Forms and Custom Controls by Matthew McDonald (APress).
Another great place to start is w/ the Microsoft QuickStart Tutorials: http://samples.gotdotnet.com/quickstart/winforms/
http://www.windowsforms.net is also a great resource.
Lastly, probably the best resource for Microsoft recommended development, is going through their MCAD/MCSD course for Windows Forms. They have a great book for self-paced study:
http://www.amazon.com/exec/obidos/tg/detail/-/0735619263/qid=1070458423/br=1-18/ref=br_lf_b_18//103-6026681-2227824?v=glance&s=books&n=764452
Good luck!
Sean McCormack
|
|
|
|
|
|
Are you talking about like... What fonts, colours, icons and stuff to use?
/\ |_ E X E GG
|
|
|
|
|
is it possible? i know for the 2003 version you just use the compact frame work (or something along those lines)... is there perhaps a plugin that would allow you to do the same with vs.net 2002?
|
|
|
|
|
Sure, .NET 2002 simply doesn't include the SDK automatically. .NET 2003 does. Just download the SDK from Microsoft.
|
|
|
|
|
Is there a way of accessing a wellknown, singleton, remote object from the application that created the service?
I'm designing a system where a PC (host) has a hardware resource whose interface is to be shared on the LAN. In other words, client applications will be able to configure and access the hardware resource through the server application on the host PC. I also need to be able to access the hardware resource from the host PC. Since I want to maintain uniform access to this hardware resource, I want the server to access the same remote object as the clients. I have't been able to do that from the application that registers the service (wellknown, singleton). If there's no way to do that, is there another way to do this using remoting. If not, I could always revert back to using tcp communications but remoting sounds so sophisticated that I don't want to give up on it, yet.
Preemptively, thank you for you help.
Greg
|
|
|
|
|
I wanna use the TcpChannel class, but the VS.NET IDE tell me that the System.Runtime.Remoting.Channels.Tcp namespace isn't exist.
Why?
MY IDE: .NET 2002, Framework 1.0
|
|
|
|
|
hi,
how a directoryentry-constructor hast to look like, if
the distinguished name (ldap-string) contains reserved characters.
i.g:
Dim deEntry as New DirectoryEntry("LDAP://CN=Thilo1\, Test,OU=users,DC=microsoft,dc=com")
i got an exception if the bindung string contains a reserved character (",").
what's the correct syntax?
thanks for your help an regards,
thilo.
|
|
|
|
|
After creating a merge module using VS.Net 2003 and adding it to a setup, again created with VS.NET 2003, i got this error when running the setup."InstallUtilLib.dll: Unknown error in CorBindToRuntimeHost" on a Windows 2000 adv server machine with both frameworks 1.0 and 1.1 installed.
My project uses the installer classes to perform various CAs during install
(i.e. install a service)
Anybody have an idea whats wrong?
I've linked to a demo solution[^] which demonstrates the exact problem.
Is this a bug in Visual Studio 2003?
|
|
|
|
|
Hello all,
I am programming a application in Managed C++ that simules a client of a web commerce site.
Some of pages of this site are SSL secures, and I don´t know what I have to do until to call HttpWebRequest. Have I to configured something on the computer or simply I have to programming something else?
I saw example of "How to do Synchronous and Asynchronous web downloads"
By Nishant S, but it doesn´t work with https, also.
I am very lost . any idea? any example code?
Thanks,
Cris
Sorry and Excuse my poor English writting!!!
|
|
|
|
|
From what I've read in books on .NET 1.0, ByRef passes the argument twice: creating the local copy in the called function and then passing it back to the caller.
Then I saw some unsubstantiated comments about this behaviour being adjusted in 1.1, is this true, can anyone confirm?
|
|
|
|
|
I'm guessing that ByRef is the VB.NET equivalent to the C# ref keyword. If this is true, then:
Okay. First - Nothing gets copied. What happens is that a pointer to the object is passed in to the method. The method can then manipulate the object (through the reference/pointer). This means that when the method returns the caller's object that was passed into the method is now changed.
Sorry, but my example is in C#
static void Main()
{
Int32 i = 10;
Console.WriteLine(i);
Method(ref i);
Console.WriteLine(i);
}
static void Method(ref j)
{
j += 10;
}
The output would be:
10
20
If the parameter was passed normally (with out the ref ) the result would be:
10
10
I hope this help.
If you want a good book that covers this then I recommend "Applied Microsoft .NET Framework Programming" by Jeffrey Richter.
Regards,
Colin.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
Okay. First - Nothing gets copied. What happens is that a pointer to the object is passed in to the method.
Yes, I understand how it works, (how it's supposed to work!) but the actual process, as explained in "VB.NET professional" by wrox publishing, involves a double copy for whatever reason MS decided to do it this way (in 1.0 at least)
Now, this is transparent to the VB user, except takes twice as long as passing ByVal. I do not know what happens in other languages.
So, my question is, whether the VB.NET behaviour with 1.1 is more like you (and I) would expect, or is it still really just creating ridiculous inefficiency?
|
|
|
|
|
I find this hard to believe, this contradicts everything I have read.
are you talking about value or reference types?
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
For all types, my source is Professional VB.NET, 2nd Edition[^] by wrox, page 99 I believe... They say it's accurate on framework 1.0, like I mentioned.
This contradicts everything I believe, too. In fact, this behaviour contradicts the words "by reference" themselves, and if true, is very disempowering for VB(or .NET)
|
|
|
|
|