avenueofdesign's Q&A profile
.NET Development Xml Serialization of Custom Collections deriving from CollectionBase.
Hi, I have seen several posts on the net on the following issue of xml serialization of custom collection classes deriving from CollectionBase. "you must implement a default accessor on AccountCollection because it inherits from ICollection”. System.InvalidOperationException: You must implement a default accessor on MyNamespace.MyClassList because it inherits from ICollection http://www.dotnet247.com/247reference/msgs/5/27024.aspx http://www.topxml.com/ASPNET-Webservices/rn-245057_ICollection-default-accessor.aspx And the obivous answer for all these problems is implementing the "default accessor" for your custom class. But no where I could find details on, why does the xmlserializer need a defa ...Show All
SQL Server Bulk Insert vs. Data Flow Task (different row results using flat file source)
I'm importing a large csv file two different ways - one with Bulk Import Task and the other way with the Data Flow Task (flat file source -> OLE DB destination). With the Bulk Import Task I'm putting all the csv rows in one column. With the Data Flow Task I'm mapping each csv value to it's own column in the SQL table. I used two different flat file sources and got the following: Flat file 1: Bulk Import Task = 12,649,499 rows; Data Flow Task = 4,215,817 rows Flat file 2: Bulk Import Task = 3,403,254 rows; Data Flow Task = 1,134,359 rows Anyone have any guess as to why this is happening Yeah, thanks for the reply. I've checked the preview and it looks fine. I've also tracked down some of the skipped ...Show All
.NET Development TCPListener/TCPClient and STX/ETX
I am writing a new set of .NET controls that wrap TCP communications using TCPListener and TCPClient components. Traditionally we have wrapped our messages using STX/ETX to signify the start and end of the message being sent. We then loop until we see the ETX and then raise the event to the application that a message has arrived. My question is this; I have never had to use the STX/ETX approach when writing TCP communications before. My understanding is the TCP will take each packet sent from the client (may be 1 packet or may be many depending of the size of the message being sent) and will re-frame the message back together before the TCPListener will notify me of data arriving. More specifically why would I need to use STX/ETX ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Starting work on my GUI system
Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All
Visual C++ System::String^
I am developing an application in visual c++ using VS 2005. I am reading data in via the serialPort dataRecieved class. This returns a system string, and I am assuming that the string is an array of unsigned characters. The trouble is I am unsure how to access individual data bits within the string. I can perform an if statement to check the contents against a set value. if(myString->Text == "hello world") But......I want to perform something like a switch statement so I can test the 3rd character against a set value, say... "x" or something similar. Can I do this When I have attempted it, I receive errors stating that a switch cannot be performed on a system string - IT IS ILLEGAL - apparent ...Show All
Visual Studio Team System The DB name of the build file doesn't reflect the current name of the deploymnet DB
The DB name of the build file doesn't reflect the current name of the deployment DB, i setup up the name of the DB in the Build properties and build the name is correctly reflected in the name of the build file : file:///F:/Databases/Millena/Brylane02/Brylane02/sql/Brylane02.SQLDEV.Brylane02.sql if i change the database to QADEV and save the configuration and reissue the build the name remains the same. This is important since we relay on this to tell us wich server to deploy this build. Rafet Not only that the database name doesn't reflect the name of the deployment db but the build script is being built against the wrong (old db). So lets say that I build a script for QA when I change the buil ...Show All
Visual Studio Express Editions Resizing any control heigth issue/question
Hi, I want to resize the heigth of a control like a button, or textbox but vb wont let me, it just defaults back to "20". I changed the maximum heigth and width to 50 but the heigth always defaults back to 20 pixels. The width can be resized just fine though, also when I set a control and select it, I only see the resize width markers and no heigth markers to drag and resize. Is there some setting some where to fix this Ok, thanks for the help, it seems that checkboxes and labels cant be resixed either unless the Autosize = false is selected but the textbox doesnt have an autosize option the closest thing is to select the multiline option. But the textbox will work fine instead, thanks ...Show All
Visual Studio Express Editions autos pane
Where can we find the autos pane in VB express, I use VB.net at school and just got VB express for my house. I've tried to get it the way i remeber doing it in school, but its not there. Is it VB.NET Express you are using at school or a copy of Visual Studio 2005 I ask because the Express editions leave out a good number of tools and options so as to create a more streamlined experience for its users. ...Show All
Smart Device Development Configuration Service Providers & CM_PPPEntries: how to specify extra parameters
Hello, I'm working on an extension of an existing order entry application running on Windows Mobile. The extension allows the automatic configuration of email and internet connection - and I've done them using the Configuration Service Providers CM_PPPEntries and EMAIL2, and the DMProcessConfigXML API. Now the customer asked me if it's possible to configure in CM_PPPEntries parameters such as the baud rate, the "Wait for dial tone before dialing" flag and the extra dial-string modem commands (as defined in the advanced settings using the connection wizard applet). Is this possible Thanks Antonio These are set using RAS API or TAPI. The CM_PPPEntries provider can also set them via DevSp ...Show All
Visual Basic How to stop Regional number-formatting?
I have a form with 2 textboxes on it. The user enters his Latitude and Longitude position into them, in the format: 10.24 or 123.78 All works well for US/UK users but for a Danish user, the numbers were being changed by his "Regional and Language Options" in Control Panel. The result was that the decimal points were being lost, which as you might expect upset other calculations !! I don't want to change anyone's settings, but in the Danish case, where they use '.' as the thousands-separator, 10.24 was converted to 1024 which totally alters the value. Obviously, around the world there are many different ways a number can be entered. I don't want to have to check for each type, and then convert it, as the standard for decima ...Show All
Visual Studio Express Editions Regular experssion in VB
Hi, I want to build a regular experssion in VB, format like {db code}-{command},{num},{status} where db code is a single character which should be 'D' or "N" Command - string should be - "DELETE" or "INSERT" num - integer status - string it should be formatted in the same way like -(hyphen) and comma seprated between command, num and status. please help me to solve this. not in .net. i want it in VB. Thank you With a reference to "Microsoft VBScript Regular Expressions 5.5" Dim re As VBScript_RegExp_55.RegExp Dim mc As VBScript_RegExp_55.MatchCollection Dim m As VBScript_RegExp_55.Match Dim sm As ...Show All
Windows Live Developer Forums Mega Cluster logic
Dr Neil first mentioned this on the via virtual earth site recently and now I need to use them. Just though I would put my ideas out here and see what you all think and can add. To be clear this is a concept and I’m looking for ideas / help before I build it. Basically the issue is you have X number of points to put on the map where X is very large. 1. If you go and add them all it is going to slow down to a crawl. 2. If you have points at a close proximity at certain zoom levels they are going to sit on top of each other and be unhoverable. The solution is to have a mega cluster that provides information about the points it represents. Firstly we need to look at how we calculate what po ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Primary Buffer Capture
Hi, I', currently working on a VoIP conferencing application that captures audio by the default capture device (in this case the microphone), and sends the audio via rtp to all other conference members. Similarly each member recieves rtp streams from all the other participants, which are assigned to secondary buffers, ready for playback. I can record each stream to a WAV file, prior to delivering the audio to the secondary buffer, but I really need to capture and record the output of the primary buffer (to record exactly what the participant hears, the mix of all streams), as it seems you can only select one recording device at a time and it has to be the microphone. I don't want to lose the secondary buffers which modifying the device to ...Show All
Visual C++ Multiple C++ Projects in the Same Directory?
Is there any way to have Visual Studio support having multiple C++ projects in the same directory I'm porting a C++ project to visual studio in which the code in a single directory typically produces several output objects, e.g. multiple DLLs and executables. Each of those objects corresponds to a separate project in VS, and VS seems to insist that I put each project in its own directory. Is there anyway round this Cheers, Simon Well, Visual Studio doesn't require you to have projects in different directories, except on the New Project wizards - since the project directoy is taken from the project name you supply - although I think you can override it too. Also, I've got some solutio ...Show All
Visual Basic modal dialog active...
Any news on the "Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again." I have had this happen several times and its a pain in the butt! Excuse me, I was talking about VS200 3 so the fixes for .NET 2.0 are irrelevant. Your comment about phone support is rational. But my company owns volume licensing for VS2003; thus I'd have to start the routine procedure for contacting product vendors anyway. Also, if this is a hotfix for a product bug - why it's not in open access With all my respect, it sounds a little bit odd to me... ...Show All
