Friday, 14 March 2008
|
| David Paul/SYSTEMS/MARMAXX/TJXCOS is out of the office. David Paul 23:02:40 |
| | I will be out of the office starting 08/15/2005 and will not return until 08/22/2005.
I will respond to your message when I return.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 4 answer | Add comment |
Tuesday, 11 March 2008
|
| Why properties cannot be used as ref or out arguments Dean Cleaver 10:23:37 |
| | I can understand ref arguments, because they might not be set on passing, but I can't figure out why they can't be used as out arguments?
Any thoughts?
Dino
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 19 answers | Add comment |
Saturday, 8 March 2008
|
| Funny Comparison with Float Brady Kelly 06:56:09 |
| | My colleague has just noticed a funny in comparing a float to a literal value. Where 'version' is a 'float', the expression "version == 1.1" evaluates to false, where the comparison "version == 1.1F" does. Last week's thread on floating point maths prompted me to raise the issue here to find out from the experts just what happens here.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 15 answers | Add comment |
Tuesday, 4 March 2008
|
| Website Project vs. Web Application Project in Visual Studio.net 2005 Eron Armour 05:56:01 |
| | Website Project vs. Web Application Project in Visual Studio.net 2005
What are the main benefits of using a Web App project over a Website project or vice-versa?
Web App Project: You have to jump through hoops to use edit and continue with a Web App where in a website it just works. I've figured this out with the help of ScottGu. Thanks! http://weblogs.asp.net/scottgu/archive/2006/05/08/VS-2005-Web-Applicatio n-Project-V1.0-Released.aspx
Web App Project: what are the *.aspx.designer.cs files for?
Website Project: how do you set up the project to use a bin directory and compile and place the .dll within?
Thanks for any input.
-E
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 7 answers | Add comment |
Sunday, 2 March 2008
|
| MSMQ - Cannot find a formatter capable of reading this message Silky 01:25:29 |
| | Hi guys,
I've just received this error message in my app, after using MSMQ's for quite some time in it. The error happened when moving the system live [kind of].
The exact stack-trace: System.InvalidOperationException: Cannot find a formatter capable of reading this message. at System.Messaging.Message.get_Body() at [place where I call .Receive()]
So the point is; this works on my dev machine, and has previously worked on the live machine, but only just started going wrong. I'm thinking maybe it's a service pack, or perhaps the name of my queue? At first I had a name in the form of "aaa_bbb - mmm" but I thought perhaps it didn't like that (even though it created them fine). Now they are simple of the form "aaa_bbb_mmm".
Anyway; just wondering if someone can shed some light. Searching hasn't lead me anywhere yet.
-- http://lets.coozi.com.au/
A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
Thursday, 28 February 2008
|
| SV: [DOTNET-WINFORMS] SerialPort.WriteTimout Benny Skjold Tordrup 15:07:40 |
| | Does the physical port settings match the settings that you apply in code?
Med venlig hilsen / Best regards
Benny Tordrup System Developer
Microsoft Certified Technology Specialist
-----Oprindelig meddelelse----- Fra: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] P vegne af Peter Osucha Sendt: 9. januar 2008 04:28 Til: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Emne: Re: [DOTNET-WINFORMS] SerialPort.WriteTimout
Thanks, Don. I have a very small test c# (2.0) app that opens a serial port, sets the baud rate and a few other items, and then writes a stream of 50 chars. Doesn't seem to present a problem. I have a much larger, more complicated c# app that also writes to a serial port with similar port settings and less characters and I keep getting a write timeout error. So it doesn't seem to be the hardware. I am looking for other places I might have screwed up (and yes, I do know the port is open! .
Peter
-----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] On Behalf Of Don Clark Sent: Tuesday, January 08, 2008 5:31 PM To: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Subject: Re: [DOTNET-WINFORMS] SerialPort.WriteTimout
It's not always just the length of the data and the baud rate. I've seen write timeouts happen when using virtual serial port controls even though given the baud rate and the length of the data there was ample time to complete the operation. The most recent drivers for the siLabs 210x USB to Serial chips seem to be especially slow. With a write timeout of 400ms I was sometimes unable to write 2 characters to my device at 38400 baud.
If the write operation isn't completed during the timeout period a timeoutexception will be thrown.
Don
-----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] On Behalf Of Peter Osucha Sent: Tuesday, January 08, 2008 1:58 PM To: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Subject: [DOTNET-WINFORMS] SerialPort.WriteTimout
I have been searching for info on what actually will cause a WriteTimeout error to happen on a serialport object in net 2.0. There are lots of articles that talk about a Write operation not being able to complete in the time allotted. However, besides having a series of bytes to be written that when taking into the account the baud rate cannot complete in the allotted time, I can't think of another reason for this error to occur - nor can I find reference to when it will occur.
Any ideas or places you could point me, please?
Sincerely, Peter
|
| | 2 answer | Add comment |
Tuesday, 26 February 2008
|
| Trouble Modifying dsiplay style Brady Kelly 23:58:27 |
| | I'm trying to get a DIV to display at will, as a sort of dialog, but I'm stuck on setting the display as follows. Please could someone suggest why this isn't working:
function showSearchAndReplace()
{
var dSr = document.getElementById("divSR");
dSr.style.display="inline";
debugger;
return true;
}
My DIV is marked up as:
div id="divSR" style="display: none;"
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 4 answer | Add comment |
|
| Simple data binding in ASP.NET chris Burgess 20:01:33 |
| | I have a 'Person' object with 2 properties (name, age).
I want to bind these properties to textboxes on an ASP.NET page (NameTB, AgeTB). Is there a way to do this that is similar to the simple data binding methods used in a Winform (using the Binding object)?
So far, I've only been able to setup INotifyPropertyChanged, and handle this through event calls.
Thanks!
Chris
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
|
| More integer magic. Brady Kelly 17:55:38 |
| | Using PropertyInfo.SetValue(), one can attempt to assign null to an integer without an exception. The integer is assigned a value of zero.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 6 answers | Add comment |
|
| Calling fire and forget methods. Davy J 16:56:48 |
| | Hi all. I've got a Binary tree implementation that I need a little help with. my problem is the recursive lhs.Add(item) and rhs.Add(item) call, is there any way I could refactor this to remove the stack dependancy?
the application is written in Net.2.0 , so no fancy linq replys please
Cheers
Dave.
the psudeo code for the Add function. (written in gmail's c# editor)
public void Add(T item) { if (this.item == null) { this.item = item; return; } if (item < this.item) { if (lhs == null) { lhs = new TreeNode<T>(); } lhs.Add(item); } else { if (rhs == null) { rhs = new TreeNode<T>(); } rhs.Add(item); } }
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 5 answers | Add comment |
|
| Web Service returning untyped DataSets only; how to get typed data access? Per Bolmstedt 15:25:04 |
| | (I posted this to a newsgroup[1] this morning, but since I hold the discuss.develop.com lists in high regard, I thought I'd try here as well. I've search the list archives and found similar topics come up a few times, but nothing that helped me.)
I am consuming an ASP.NET Web Service which returns only DataSets for all operations. The format/schema of the data returned by each method is known and doesn't change. Untyped DataSets are inelegant to use on the client when the data format is known, so I want typed data access to each response type. Using a typed DataSet would be fine, but anything that programmatically lets me access data is fine.
What is the "Visual Studio" (2005, 2008, doesn't matter) solution to this? I have attempted to create typed DataSets from the Web Service using every VS method I could think of, but I haven't gotten it to work. Things I've tried include
1. xsd.exe /d using actual response XML: the generated .xsd file is not usable as a typed DataSet as far as I can see.
2. xsd.exe /d using an XSD generated with WriteXmlSchema on the DataSet returned by the Web Method: same as above.
3. "Create schema" in Visual Studio using actual response XML: I've found no way to go from here to a typed DataSet.
My current solution is very old-school and relies on XmlSerializer to deserialize the DataSet/DiffGram XML embedded in the DataSet returned by the Web Method. This seems to me like a very un-Visual Studio approach. The only working alternative I have so far is manually creating typed DataSets, using the Visual Studio designer, to match the response DataSets. Obviously, this too feels like a suboptimal approach.
There are numerous references to "Generate DataSet" in the documentation, but that command is always disabled, regardless of how I create an XML schema. I'm assuming strict requirements are made on the XML schema for this to work, but I can't find any information in the documentation. Maybe it doesn't work the way I imagine it does. I've also found many references to the drawbacks of using DataSets as response types in Web Services, but there's nothing I can do about that.
Any thoughts? All I want is early-bound, typed, programmatic access to data in the DataSet.
For example, the SOAP response can look like this:
<DataSet> <xs:schema id="NewDataSet"> (Actual schema here.) </xs:schema> <diffgr:diffgram> <NewDataSet> <MyItem diffgr:id="MyItem1" msdata:rowOrder="0"> <MyProperty>1</MyProperty> </MyItem> </NewDataSet> </diffgr:diffgram> </DataSet>
(Currently, I am invoking all Web Methods, running the included schemas through xsd.exe /c, and ultimately deserializing to the generated classes on the client.)
1: http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet.webservices/browse_thread/thread/f5dfb0d5bdd79ff6
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
|
| AW: [DOTNET-CLR] Divide by Zero Dimitrios Toulakis 14:06:09 |
| | lol
________________________________
Von: Discussion of development on the .NET platform using any managed language im Auftrag von Per Bolmstedt Gesendet: Di 26.02.2008 11:51 An: DOTNET-CLR@DISCUSS.DEVELOP.COM Betreff: Re: [DOTNET-CLR] Divide by Zero
On Tue, 26 Feb 2008 10:41:04 +0000, Jon Skeet <skeet@POBOX.COM> wrote:
As for why it doesn't happen for integer values - which current integer values would you (i.e. anyone) want to lose in order to give room for infinity? I've always hated 0x80004005. Let's make that negative infinity. That should teach it!
=================================== This list is hosted by DevelopMentor® http://www.develop.com <http://www.develop.com/>
View archives and manage your subscription(s) at http://discuss.develop.com <http://discuss.develop.com/>
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
|
| Update page from client JaveScript Paul ten Brink 10:57:34 |
| | Hi,
Asynchronous callbacks are great for responsiveness. But sometimes in such a callback I find that the entire Page has to be refreshed, just like in a normal postback.
Normally I would use Response.Redirect() or Server.Transfer() but both are not allowed in an asynchronous callback...
So I'm stuck with updating the Page from client JavaScript, but the only way I know how to do this (window.location.reload) results in a dialog box "Are you sure you want..." and the Page does not really update.
Is there another way to issue a normal postback of a Page in client JavaScript?
Thanks for your time and help. Paul ten Brink paul.ten.brink@philips.com
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 3 answer | Add comment |
Monday, 25 February 2008
|
| Structures not behaving as value types Richard Kucia 22:05:09 |
| | I have a VB.Net declaration of a structure strFieldMask. The intended purpose is to store a bunch of bits, like a bit vector. The structure also has operator declarations for =, <>, And, Or, Not and <<, plus some other methods for bit manipulation.
The problem is that variables of type strFieldMask seem to behave as though there was a singleton strFieldMask and all instances shared it.
Consider this:
Dim Mask1 as strFieldMask Dim Mask2 as strFieldMask
Mask1 = (formula for computing the next unused mask value) Debug.WriteLine(Mask1.ToString)) Mask2 = (same formula) Debug.WriteLine(Mask1.ToString)) ' Yes, Mask1, not Mask2
The result from the first WriteLine might be "0x10" and the result from the second WriteLine might be "0x20".
I've successfully used structures before, but this is the first time I've tried overloading the operators. Has that caused the behavior I'm seeing?
Thanks.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 10 answers | Add comment |
|
| How to determine read/write status of a property chris Burgess 19:17:54 |
| | How do I discover if a property is read only or read/write at runtime (other than trying to write to it)?
e.g. If: Public ReadOnly Property Name() As String Get Return _name End Get End Property
then I want the textbox on the form to be read only.
If: Private _name As String Public Property Name() As String Get Return _name End Get Set(ByVal value As String) _name = value End Set End Property
then I want the textbox to be read/write.
Thanks,
Chris
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
Sunday, 24 February 2008
|
| Merge MDI child toolstrip button(s) into parent toolstrip Holly Styles 22:40:27 |
| | Hi All,
I have the need to append/replace toolbar buttons in the MDI parent window of my application. For example my child form has a toolstrip object, on that toolstrip is a save icon. When the child form is shown/active I need that save icon to be appended to the parent's main toolstrip, or added as a toolstrip into a main ToolStripPane in the parent. I have been researching this for a couple of days and there are many references to using ToolStripManager and it's Merge and Revert methods etc. during Child Activated event handling. I have read this technique can lead to hideous screen flicker however.
Can anyone recommend a best practice for this type of MDI Application scenario? Or where the best tutes can be found? I am drawing a bit of a blank with this one. I'm fairly new to Windows Forms as most of my experience is ASP.NET so I havn't touched Menu's and Toolbars since my VB6 days.
Any pointers much appreciated.
Thanks and regards.
-Holly.
|
| | 5 answers | Add comment |
Saturday, 23 February 2008
|
| Button image is lost (???) Gyorgy Bozoki 08:25:11 |
| | Hi all,
I have a DLL project in C# that has a dialog with a few controls, one of which is a button. The dialog has its own custom icon (stored in the dialog's resx file.) This shows up fine.
I'm trying to assign a gif file to the Image property of the button using the form designer - select the Image property, click the ellipsis (...) button, select Local resources in the "Select Resource" dialog and then click the Import... button to select the image file. When I hit Ok on the dialog, the selected image appears on the button and when I save it, the image gets saved into the resx file. Yet, when I close and reopen the dialog in the designer, the image is gone. (It's still in the resx file.)
Am I missing something here or is this a bug?
Thanks a lot, Gyorgy Bozoki
|
| | Add comment |
Wednesday, 20 February 2008
|
| [OT] - post rejected Silky 01:23:11 |
| | Sorry for the OT, but is anyone else getting a whole bunch of these? I'm getting a few claiming that my post was already distributed [various replies to the post-increment thread]. Of course I did not actually send those messages twice. Just wondering if there is some list bug, or strange occurrence in gmail servers that it did, under the hood, send my replies twice ...
-- http://lets.coozi.com.au/
A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
Tuesday, 19 February 2008
|
| Funny loop with post-increment. Brady Kelly 19:56:35 |
| | Why does this loop not exit? On the first iteration, one would expect i == 0, and that 0 to be assigned to i, and then i incremented. Then, on the second iteration, i should be 1 before the assignment operation, as well as after the assignment operation, but i should be two after the post-increment, before the next assignment.
int i = 0;
while (i < 10)
{
i = i++;
}
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 47 answers | Add comment |
|
| [OT] ? FontFamily and PostScript font names... Gary Harpin 15:46:33 |
| | Hello All,
I am working on some code to process an SVG file. I have hit a problem with some of the test files that I am using (the problem files seem to be ones generated from Adobe illustrator). From what I have found so far It would seem that Illustrator saves the font information using a Postscript Font name (see table below). The problem I am having is that I can not find out how to get from the postscript font name to a font name that I can use. Can anyone point me in the right direction?
Font used in Illustrator Resulting font attribute in SVG file ======================== ==================================== Arial Black (Regular) font-family="'Arial-Black'" Arial MT (Bold) font-family="'Arial-BoldMT'" Square721 BT (Bold) font-family="'Square721BT-Bold'" Swiss921 BT (Regular) font-family="'Swiss921BT-RegularA'"
Regards, Gary Harpin
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.." Bill Bryson
[No Disclaimer]
|
| | Add comment |
|
| PIA - Interop Assemblies - Excel Gabriel 01:22:05 |
| | Hello,
In an application, I'd like the some features of Excel 2007. To do that, I installed this : http://www.microsoft.com/downloads/details.aspx?FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&DisplayLang=en
I see Microsoft.Office.Interop.Excel, Microsoft.Office.Interop.Outlook in the assembly.
But I have two problems : 1. The assemblies not appear in VS2005 (SP1) 2. I'd like use the DLL but I don't find them. If you have, could you send me ?
Thanks,
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 5 answers | Add comment |
Monday, 18 February 2008
|
| OT: Java List Suggestions Brady Kelly 23:13:37 |
| | Can anyone recommend a Java centric list of almost the same calibre as this one?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
Sunday, 17 February 2008
|
| Problem with Parent Child Data Binding Brady Kelly 13:37:11 |
| | I have a parent child relationship, on DocumentID, between an invoice and invoice lines. A form displays invoice fields and has a grid for invoice lines. The grids BindingSource points to the Invoice Binding Source, and it's DataMember to the relation, so I think this is correct.
Now, if I leave the relation type to Only Relation, the DocumentID in my new Invoice is -1, and the DocumentID in my Invoice Lines grid is also -1, but the Line record remains -1 after being written to the database. So, I think maybe I should make the relation a constrain as well and add a cascade update, but then I get an error that -1 doesn't exist in the parent table, even though the Invoice datatable DocumentID is -1.
|
| | Add comment |
Saturday, 16 February 2008
|
| StringBuilder Extension: IsQuotedBy Brady Kelly 12:28:32 |
| | I was playing around with avoiding, at all costs, creating surplus strings, and came up with the following method to see if a StringBuilder, that I use for each of a collection of string fields, is surrounded by a certain string, e.g. double quotes. I was just wondering if this is an efficiant way of doing it:
public static bool IsQuotedBy(this StringBuilder sb, string quoteString)
{
// Check if the first characters match the quote string.
for (int i = 0; i < quoteString.Length; i++)
{
if (sb[i] != quoteString[i])
{
return false;
}
}
// Check if the last characters match the quote string.
for (int i = sb.Length - quoteString.Length; i < sb.Length; i++ )
{
int qsIndex = 0;
if (sb[i] != quoteString[qsIndex++])
{
return false;
}
}
return true;
}
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 51 answer | Add comment |
Thursday, 14 February 2008
|
| Calling Webservice Thru an Interface Mark Potter 13:57:12 |
| | Hello,
I have a web service that implements an interface as follows:
[XmlInclude(typeof(AdvancedDTO))] public class AdvancedWebService : System.Web.Services.WebService, IAdvanced { #region IAdvanced Members
[WebMethod] public AdvancedInterface.AdvancedDTO makeMessage (AdvancedInterface.AdvancedDTO aDTO) { BusAdvanced ba = new BusAdvanced(); return ba.makeMessage(aDTO); }
[WebMethod] public AdvancedInterface.AdvancedDTO[] listMessage (AdvancedInterface.AdvancedDTO aDTO) { BusAdvanced ba = new BusAdvanced(); return ba.listMessage(aDTO); }
#endregion }
On the client side when I register the web serivce the proxy generated does not have the Interface implemented. I have to go in a touch up the Reference.cs to implement the Interface.
public partial class AdvancedWebService : System.Web.Services.Protocols.SoapHttpClientProtocol, AdvancedInterface.IAdvanced {
Are there any tools out there that will generate the web service proxy with the Interface.
Thanks in advance.
Mark Potter
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
|