whitewaterdj's Q&A profile
.NET Development XML Searlization of a text file
I have a text file that I wanted to convert to XML based on a class that I create. It contains 21 string fields, all of various lenghts. Do I need to overwrite the Read and Write methods of the serializer interface, or is there a way to specify the lenght of the fields without having to do that Actually, the text documents contain 2 different field types, header and details. The header has 21 string fields, the details contains 14 fields. What I was thinking about doing was reading the files, using a stream reader object, then pass the line that is read to either a xmlserializer for headers or details, based on the line count. I have the line couter and the stream reader working, just needing the parser put together. Thanks in adva ...Show All
Smart Device Development Architecture question
I have a mobile field service app written to run on WM5 CF2 and would like some advice on architecture. For this type of app, the runtime performance is crucial in relation to startup time. I have a Data Access Layer (DAL) with various classes that provide the abstraction between business objects and the persistence layer e.g. SqlCe. One class per business object. On top of that is the Business Logic Layer (BLL) that uses the DAL layer. This is impemented by normal classes. And on top of that the Presentation layer implemented as a number of Forms that use the BLL layer methods only. I have also created a 'MyApplication' class with the singleton pattern. When the class instantiates, it creates all the BLL classes, the database connection ...Show All
Visual Studio Programmatically Access Property of Domain Relationship
I want to access the Domain Properties of my Domain Relationship from within the store. I can access the Source and Target, but this will get me the related object. I need an instance of the relationship itself, to access my relationship properties. How do I get the intance of my relationship ...Show All
Visual Studio F5 does not work ! : Need to use "Start new instance"
Hello, I am trying to debug an application with my Visual Express 2005 c++. It compiles nicely a "hello world". However, to debug, if i use F5, it doesn't do anything.. I have to right click on the project and use the debug->start new instance or debug->step into new instance. And sometimes the debugger becomes unstable. I "think" that when the debugger starts, it goes to __tmainCRTStartup and hence I need to force the debugger to jump to my "main" .. Is this normal I would like my debugger starts in my main. Can anybody help me please thank you So to be clear - initial pressing of F5 - or going to the debug menu and saying "start debugging" fails completel ...Show All
Visual Studio Team System Error: No Pending Changes - But there are changes!
Hello, Sometimes we're experiencing the following annoying behaviour with our TeamFoundation Server (RTM) and the TeamExplorer: A file was checked out and changed, and if I try to check in the changes ("Check in pending changes..."), TeamExplorer says "Error: No Pending Changes" and does nothing. This is not safely reproducible though. But it still gives our team a really bad feeling about migrating to TeamSystem (we're at it right now, and we're running into several small glitches). Whatever, right-clicking the directory and selecting "Refresh" solves the problem. Has anybody else experienced this problem and knows why or when it appears Best regards, Martin DonMartin wr ...Show All
SharePoint Products and Technologies sometimes i can break through code in vs2005 to debug a site
I build my debug version, install it in GAC, then I reset iisreset .When i place a breakpoint I get the message: breakpoint will not currently be hit. no symbols have been loaded for this document Have u had this before. I have written a script to do that. read about it in my blog post (full link: http://spstips.blogspot.com/2006/10/gac-access-denied-solution-free-post.html ) basically its just adding a script to the post-build event. Ishai Sagi www.spstips.blogspot.com ...Show All
Smart Device Development Problem with hooking into TaskBar and getting location of Smart Minimize button...
Hi Guys! I try to add a "close-on-minimize" feature to one of my applications and ran into a little problem. I was following the example on http://www.pocketpcdn.com/articles/close_app.html and basically this is working well. Only two little problems a) The hook does not work when i do a debug build. For a release build it's fine. Why is that Any way to fix that b) The example above obviously was created in the "no device orientation" "no high dpi device" days, as the position of the close button which is tracked is hard-coded. Is there an easier way to get the rectangle of the smart minimize button I mean if we would know the id of the button we could get the rectangle pretty easy.. Don't know if ...Show All
SQL Server R/W access problem with var in script task
Hi there I have a a global variable for the package. Now in script task of data flow I am trying to assign some value to it. I have also defined same variable in Read/Write property of script task. But at run time it gives me following error: "The collection of variables locked for read and write access is not available outside of PostExecute." How do we resolve this Thanks and Regards Rahul Kumar You can find lots of examples by just typing in msnsearch "using variable in script component" like for example: http://msdn2.microsoft.com/en-us/library/aa337079.aspx -Tom ...Show All
Visual Basic Build error (The type or namespace name could not be found
I am using VS.Net 2003. I have a solution that contains 4 projects. The first project contains the definitions of interfaces. The third project is using the interfaces defined in the first project. For the third project, I added a reference to the first project. But I'm still getting a build error: c:\inetpub\wwwroot\Remoting2Project3\WebForm1.aspx.cs(28): The type or namespace name 'IAuthenticateUserService' could not be found (are you missing a using directive or an assembly reference ). Thanks in advance, Elizabeth Bradley ------------------------------------------------------------------- Interfaces.cs (in the first project named remoting2project1) using System; namespace Remoting2Project1 { /// &l ...Show All
Visual Studio 2008 (Pre-release) Introducing: ADO.NET Entity Framework Services
Greetings, Just wanted to let people know about a little project I've put some time into, that has served as both a primer course for EF and Web Services (since I really didn't know either of both when I started!). I call it ADO.NET Entity Framework Services, and it's meant to assist with applications developed with web service boundaries. You can find this project here: http://codeplex.com/entityservices This project helps developers to: 1) Create a "fascade assembly" based on a current EF-empowered assembly. 2) Load up an entity fascade based on Load Plans defined in configuration. This fascade can then be sent over the wire to a remote destination. 3) Hydrate an entity object from an incoming fascad ...Show All
.NET Development event handler problem with array
hello Everybody I wanted to know one thing about event handler There is an event handler like the child class using the handler class(Form1) Connected main_Connected Disconnected main_Disconnected What if i am having an array of child class and i want to know which of the object raised the specific event how can i know say class main { child child[40]; private void child_Connected(object sender, System.EventArgs e) { //do something on the specific child } } child[2] has raised the event handler Plz solve this problem Interesting problem. I don't knowt that there is a way to know what object fired the event without marking the child object with some identifier. For instance, say you define "chil ...Show All
Visual Basic difference between vb2003 and vb2005
Hi i was developing a project in Vb.net 2003 and for some reasons i have to switch to vb.net 2005. and while converting x project into 2005 i am facing some problems. 1) i have built a form template and all the forms for data input are being inherited by that form it is workin very well in vs 2003 but in 2005 the child forms does not opens in design view and states the following error The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form1 --- The base class 'TestApp.TMForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built. and when i build the solution visual studio is shutdo ...Show All
SQL Server Error Handling with Execute Package Task
I have a main package that calls several other packages using Execute Package Tasks. I also have OnPreExecute, OnPostExecute, and OnError event handlers at the package level to audit the beginning and completion of each package. I want to prevent each task from bubbling up to the package event handlers as well as prevent each task from bubbling up to the main package event handlers. I've tried setting the Propagate variable for each of the event handlers to False and setting the DisableEventHandlers property of each task to True but neither solution seems to work. Is there a way to do this that I'm missing Is there an easy way to identify which "System::Propogate" variable goes with what contain ...Show All
Visual Basic passing a function's name to another function (or sub)
Dear all when programming in FORTRAN I was used to pass the name of a function to another sub or function. With VB.NET I have some problem. Suppose I have several functions, named F1,F2, F3,.., and that I have to perform some common task on these functions (for instance numerical integration). Well, I wish to manage things in such a way to have a library function or subroutine (to do integration) and to call it passing various parameters 'and' a function name ( e.g. F3 ) to perform the integration of F3 . In other words I wish something similar to this fragment of code to work (declarations and initialization omitted): module main integ1= integration(a,b,step,F1) integ2= integration(a,b,step,F2) end module m ...Show All
Game Technologies: DirectX, XNA, XACT, etc. UI composition
I figured out a way to use DWM to alpha blend WPF UI on top of XNA visual, but it's really a "duct tape proof of concept", not something I'd actually be able to use. The nice thing about this duct tape is that as the WPF UI runs in different process, it can be handled so that the XNA rendering thread uses another core... So how about some official support for this I don't mind if it's Vista only thing like the hack I described. Gamers will buy Vista because of DX10 so that point is moot. You will have to wait for GSE to final release before the team has time to look at Vista type features. In addition remember that running on an xbox is a high priority for the XNA team so spending tim ...Show All
