|
The original message is here[^].
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
CICCIOLO69 wrote: num = 1.222225
Console.WriteLine(Math.Round(num, 5, MidpointRounding.AwayFromZero))
Um, use your brain just a little bit.
num = 1.222225
Console.WriteLine(num)
What answer did you get when you tried this?
Gary
|
|
|
|
|
Hi,
I am working on a windows service that monitor a path and does some upload based on the FileWatcher class. As per microsoft, it say that "More than one user Service may run within the same process". Therefore, i created two services (component classes) in my windows service project and added an instance of each to the service to run as shown below:
static void Main()
{
ServiceUtility initUtl = new ServiceUtility(Constants System.ServiceProcess.ServiceBase[] ServicesToRun;
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new exchangeRateFileWatcher(), new KYCFileWatcher() };
System.ServiceProcess.ServiceBase.Run(ServicesToRun); }
However, i read that the second service will run only if the first one fails. Can you please tell me whether it is possible (and how) to run the two services within the same process (i.e exe)?
Thank you for your kind help
Carpe diem,
Krg
|
|
|
|
|
Don't cross post. It's considered rude and isn't going to help you get an answer any faster. While this is the original message, a response has already been posted to the one here[^].
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Ok scott.Sorry for that.
Carpe diem,
Krg
|
|
|
|
|
datastruct wrote: Sorry for that.
No worries, just letting you know.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Hi,
I have worked on .NET Framework 1.1.Now I want to work on .NET Framework 3.5. Can I migrate from 1.1 to 3.5 or firstly I have to go through .NET Framework 2.0/3.0?
Thanks in advance.
G Singh
|
|
|
|
|
Hi,
you can have multiple version of .NET FrameWork next to each other.
There is some dependency between Visual Studio and .NET versions.
2003 = 1.1,
2005 = 2.0,
2008 = 2.0/3.0/3.5
There is no need to upgrade one step at a time, you can go from 1.x to 3.5 directly,
all it takes is the Framework itself and an updated development tool such as Studio.
BTW: 3.0 and 3.5 really are extensions to 2.0, so the kernel of .NET is still at 2.0
|
|
|
|
|
|
Hi!
i want an article about .net exe files.
i want inject my code in this files (.net). how do i do?
i can inject my code in win32 PE files, but for .net exe file ???
please help me
Zo.Naderi-Iran
|
|
|
|
|
You cant inject code (well you can, but you will need to implement your own .NET profiler). Loading code from within your exe is easy though. Look at the System.Reflection namespace.
|
|
|
|
|
Is it possible to target .NET 2.0 using Visual Studio 2008, or will it force .NET 3.x?
Thanks in advance.
|
|
|
|
|
Rob Caldecott wrote: Is it possible to target .NET 2.0 using Visual Studio 2008
Yes. 2.0, 3.0, or 3.5
C# projects - Project properties/Application/Target Framework
C++ projects - Project properties/Common Properties/Framework and References
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, you can target .net 2.0 with VS2008.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi to all,
can any body tell me where did u used delegate in your project or real time experience.
please help i am struggling for this question in interviews
This is haneef.............................................................
|
|
|
|
|
Try listing different skills on your resume.
|
|
|
|
|
Mostly used in event based environments. A wonderful usage scenario of delegates is in user interfaces. Its almost the same as C++ function pointers, but, they are type safe.
|
|
|
|
|
This asks where YOU used delegates. Not where I did, or Brady did. If you can't answer this question from personal experience, perhaps you should consider writing some samples.
|
|
|
|
|
I delegate all the time; life is much easier that way.
|
|
|
|
|
Here is a simple article that explains Delegates.
Article[^]
|
|
|
|
|
haneef wrote: i am struggling for this question in interviews
Maybe you ought to google it and learn about it then.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
haneef wrote: can any body tell me where did u used delegate in your project or real time experience.
please help i am struggling for this question in interviews
If they're asking you a question you don't know the answer to, try this approach - teach yourself the answer by writing code that exercises the question. That way, you'll a) be a more skilled programmer, and b) you'll know the answer in the next interview.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Good points there, John. Not sure if OP will take them. Worth a long shot.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
For any exception occurred in my Share Point application, I make the exception message entry to the event log. When I run the share point application using the administrator account application, for any error the system successfully makes the exception message entry to the Event Log. But as soon as I run the application with a different user (a normal user on the machine), I get the below error.
In the registry HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\EAA I have provided the full control permission for "EAA" custom event source to the local user with which I have signed in to the application but the below error still persists.
I am using Win 2003 Server OS on my dev box. Where do I need to make necessary permissions settings to the local users of the machine in order to encounter this issue?
Error Message
Cannot open log for source 'EAA. You may not have write access.
System.InvalidOperationException: Cannot open log for source 'EAA'. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied
--- End of inner exception stack trace ---
at System.Diagnostics.EventLog.OpenForWrite(String currentMachineName)
at System.Diagnostics.EventLog.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID)
at ExternalAccountForm.FormCode.btnSubmit_Clicked(Object sender, ClickedEventArgs e) in C:\InfoPath\Forms\Test\FormCode.cs:line 392
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.<>c__DisplayClass6.<>c__DisplayClassa.<add_Clicked>b__3()
at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.<>c__DisplayClass6.<add_Clicked>b__2(Object sender, ClickedEventArgs e)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.FireClickedEvent(Object sender, ClickedEventArgs args)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.<>c__DisplayClass2.<>c__DisplayClass5.<Click>b__1()
at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)
An entry has been added to the Windows event log of the server.
Log ID:5337
Regards,
Vipul Mehta
modified on Tuesday, July 22, 2008 2:18 AM
|
|
|
|
|
Vipul Mehta wrote: Where do I need to make necessary permissions settings to the local users of the machine in order to encounter this issue?
Ask your system administrator, he should know what to do, if not, fire him, and find someone that knows a little.
|
|
|
|