|
I'm starting a petition against your petition. Microsoft finally made up its mind on the names and are sticking to them. I'm happy they're finally solid on it and will not stand for your attempt to disrupt that.
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
Be my guest.
I see nothing solid about the decision, nor do I see what deciding on a new name has to do with sticking to it. If you're going to petition you'd best have a good reason for it, not just retaliation ![Smile | :)](https://www.codeproject.com/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
|
I have being trying to use the degree character or ring above "°C" to format Celsius, but the result is not what I want.
The following produces the degree sign, but there is a space or gap between the
degree sign and the "C" symbol.
String.Format("{0:N}\u00b0C", 20)
Currently, I have the other degree-like character "˚C", which does not produce a space between it and the "C" symbol, but the result is a bit poor on the screen:
String.Format("{0:N}\u02daC", value)
Anyone knows why this is happens? (Wow, even the result is the same in the browser)
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I seem to be have found the source of the problem, even though I do not know how to correct it. It is because I use a Japanese found "MS Gothic". Western fonts such as Arial, Tahoma produces the desired result.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
If you want to correct it, you will have to edit the font file, as it's there the error is. The 00B0 character is the correct one to use to represent degrees.
---
b { font-weight: normal; }
|
|
|
|
|
I am writing software for a company that produces a box that collects data (data and purpose are unimportant). My software is an application for users to communicate with the box (upload configuration, download data...). I am trying to design the software such that I can account for changes to the box's embedded code by adding standalone components, but not changing my core application. I merely wish to deploy components that match the new embedded code and have them automatically recognized by my software.
An example of a component is a UserControl that gathers configuration data specific for that embedded version.
Does anyone have any hints on making this easy to do? How should I package my components? How do I create them programatically? I can certainly define a common place to look for all these components, but is there a better/slicker way to store and retrieve them? Any other hints on deployment of my components?
Dave
|
|
|
|
|
Hi,
I really think that this lib is a good base for an app framework. The only problem I personally see is that you have to provide exception policiy and logging category names by string literals.
One maybe tend to use string constants, better than nothing. But .net offers reflection, so there should be a way to get all those defined policiy and logging category names at the end of the day out of an assembly, right? This makes it type safe for coding and easy to config for admins as well. Possible scenario could be to generate app.config file with each policiy and loggin category name included for a default config.
Did somebody write some attribute based code to use the Microsoft Enterprise Library features?
myMsg.BehindDaKeys = "Chris Richner";
|
|
|
|
|
|
Hi Mark,
The goal should be to retrieve all those defined names from a compiled assembly. Nobody can remember all defined names after the assembly is released, right? Imagine the defined config file get lost. In this case one have to watch in the code (MyClass.Getxx()) to make sure all defined names are configured well again. Not really handy if one is out there by a customer trying to setup the whole thing again.
That's the reason way I like this attribute based solution, one could write a small tool that uses reflection to fetch all names out of the assemblies. To generate a config file containing all defined names is just a nice to have thing, of course.
Thanks for your answer.
myMsg.BehindDaKeys = "Chris Richner";
|
|
|
|
|
Chris Richner wrote: Imagine the defined config file get lost.
Source Control
Chris Richner wrote: Not really handy if one is out there by a customer trying to setup the whole thing again.
Sorry but I wouldn't show up at the client site without all the tools and code necessary to recreat/redeploy the application
only two letters away from being an asset
|
|
|
|
|
of course it should just serve as an example... any way.. would be a handy thing to be able to get all cat names out of the compiled assembly... forget about the customer scenario
myMsg.BehindDaKeys = "Chris Richner";
|
|
|
|
|
Hi. I made windows hook to detect windows event in VC++.NET. And I get all mouse and key events using that. Now when we click on office word menu like FILE it create a menu window. I want to detect this menu window create event using windows hook. Pls help me to find solution. Thanks
Priyank
-- modified at 16:24 Wednesday 9th August, 2006
Priyank
|
|
|
|
|
hi there,
can I use the 2.0 framework with my Visual Studio 2003 Professional? if so, what are the problems I might encounter? any good readings about this?
thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
|
hi,
i assume that was the answer to the question if I can use the .net 2.0 with my copy of vs. essential. thanks.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
No ( as someone said ) BUT the express editions of VS2005 are free, you can use those to get a leg in on .NET 2.0, at least.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
SetupDiGetDeviceInterfaceDetail(hDevInfo, &devInterfaceData, devInterfaceDetailData, dSize, &requiredSize,&devInfoData);
devInterfaceDetailData->devicePath returns a unicode USB flash drive directory. How can I read files one by one stored in that directory.
The returned devicePath looked like this:
\\?\usbstor#disk&ven_lexar&prod_jumpdrive_sport&rev_3000#106a11161813070406&#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
thanks ahead
|
|
|
|
|
Hi,
I'm facing a weird issue on one of my applications on a customers machine. I cannot reproduce it on my machine but I'm trying to understand what might have happened according to the log.
Basically the following code is executed:
public override bool Modify(LabelProperties properties, object[] values)
{
try
{
if(values[0] == null)
return false;
int sourceIndex = Convert.ToInt32(((Key)values[0]).Value);
}
catch (Exception exc)
{
_log.Error("Modify - " + exc.Message, exc);
try
{
_log.Info("Key Value: " + ((Key)values[0]).Value);
}
catch {}
return false;
}
return false;
}
The following information gets logged:
10:58:07 | Error | HiddenCategoryFeaturesLabelModifier::Modify - Die Eingabezeichenfolge hat das falsche Format.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at DE.IVU.FilialInfo.Map.ThematicMaps.Modifiers.HiddenCategoryFeaturesLabelModifier.Modify(LabelProperties properties, Object[] values)
Two things seem weird to me:
1. Although I'm using Convert.ToInt32 only System.Number.ParseInt32 is logged with the call stack.
2. The log call in the exception handler isn't done, which is weird because the first exception occurs in the number conversion routine. Thus I assume the cast and the property getter Value are working fine. But why aren't they within the handler?
Basically my question is if this behavior can be explained with the optimizations happening in the optimized release build. Does optimization really replace higher level calls with lower level calls?
(Just as a note: _log is a log4net.ILog instance and I assume it is working correctly. At least I didn't have any issues with it till now).
|
|
|
|
|
Hi,
1. Although I'm using Convert.ToInt32 only System.Number.ParseInt32 is logged with the call stack.
As far as I know, Convert.ToInt32 does a check for null parameters and then passes the parameter to lower level methods. However, I still would have expected to see Convert.ToInt32 in the stack trace.
2. The log call in the exception handler isn't done, which is weird because the first exception occurs in the number conversion routine. Thus I assume the cast and the property getter Value are working fine. But why aren't they within the handler?
The _log.Error call is done, therefore I assume the _log.Info call is done, too. What filters do you have applied to the log? I typically set the log4net filter level to WARN or ERROR in release versions.
Regards,
Tim
|
|
|
|
|
I'm logging all levels. To be sure I just made a quick check and saw many other log entries of type Info (even coming from the same logger instance) but this one is missing.
|
|
|
|
|
The Convert.ToInt32(string) method just checks for a null value, then calls Int32.Parse. It's quite possible that this code is inlined by the compiler.
The inlined code would in that case resemble:
string temp = ((Key)values[0]).Value;
int sourceIndex = (temp == null) ? 0 : Int32.Parse(temp, NumberStyles.Integer, NumberFormatInfo.CurrentInfo);
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Can any one suggest me how Visual Studio 2005 runs with out IIS??? I have uninstalled the IIS in my machine and try to run ASP.NET, it's working....
Exelio
|
|
|
|
|
Visual Studio 2005 includes a stand-alone web server - a derivative of the Cassini sample[^] - which can host ASP.NET applications when debugging. This is very helpful if you're not a local administrator.
|
|
|
|
|
Hi
I would like to realize an application with .NET Remoting. the object that I want to remote is a windows form. So can you tell me if it is possible to do that? and how to do it? thank you in advance.
hello
|
|
|
|