TA123's Q&A profile
Windows Live Developer Forums licensing question for hundreds of tiny separate webservers
Hello everyone, I've been reading the VE TOS but I can't seem to figure out if the following use would be allowed under it. We are developing an AVL (Automatic Vehicle Localization) service. We install GPS receivers in cars and track them over a cellular network. What I would like to do is give my users the option to see the position of their car on the map. The GPS positioning devices in the cars also host their own webservers, so all HTTP requests go directly to the device in the car (we don't host any of the information for privacy reasons). VE seems to have pretty good maps (Navteq 2006) of the area I'm interested in (Romania) so I would like to use that. In my case there will be hundreds of little webservers (the tracking device ...Show All
Smart Device Development Download File from the Internet
Hi, I've got my program to succesfully connect to a website and then read the contents of that page with HINTERNET. But now I would also like to be able download a file off the internet and store it locally on the machine. I could, in theory, just go to the file online, read what is spat out, and write that contents to a file. But these files might be 100kb, which is too much to store in an INTERNET_BUFFER. Can I simply get the whole file and place it on the machine in one go Cheers, Dan. Ultimately someone has to do this; why don't you iterate over read and file write till you read the complete internet file In case you don't want to do this, you shall need to find+use a ...Show All
Software Development for Windows Vista Why graph fails to open after disconnecting pins
Hi, i'm new in dShow, building a graph to capture video. I build graph with no problem but i want all filters to disconnect when i want. Before disconnecting all i save graph file (as connected.grf) then watch it, it has no problem; and after disconnecting filters save again(as disconnected.grf) when i try to open, it fails and it is surprising that connected.grf is 14 KB and disconnected.grf is only 2 KB. Also i can not reconnect filters again. HRESULT DisconnectAll() { HRESULT hr; DisconnectFilter(pFilter, PINDIR_OUTPUT); if(hr != S_OK) return; DisconnectFilter(pFilter, PINDIR_OUTPUT); DisconnectFilter(pFilter, PINDIR_OUTPUT); //And so on } HRESULT DisconnectFilter(IBaseFilter *pFilter, PIN_DIRECTION pinD ...Show All
Visual C# Limit Textbox to numerical input only
I have been looking for a solution to this for more time then I care to admit to. Anyway nice and simple: private void yourTextBox_KeyPress( object sender, KeyPressEventArgs e) { if (! char .IsNumber(e.KeyChar)) { e.Handled = true ; } } Hope this helps someone else ! Have a look at: http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx id=384014 ...Show All
Visual Studio 2008 (Pre-release) load xaml dynamically in to a parent object
let me explain my scenario. 1) i will have an xbap with Grid as child. What i need to do is pick up xaml files from another folder and display it in the Grid. For this purpose i use xamlReader to parse the objects of the stream. Further more i can load the xaml file if the file is present in the bin\debug folder if i try the same to pickup xaml files from some other folder i get SecurityPermission Exception. 2) I am migrating an existing aspx application to xbap. i need to know whether i will be possible to access URL query strings to be passed between xaml pages. 3) Can i use atlas along with WPF. Its possible for me to load the xaml if its in the debug\bin folder. If i try to load i ...Show All
Visual Studio Express Editions Error: "No Visual Studio template information found"
Hi, I recently installed Visual Basic 2005 Express edition. Upon trying to open or create a new project I received the following error message: No Visual Studio template information found. See the application log in event viewer for more details. The application log in the event viewer displays the following: The Visual Studio template information is out of date. Regenerate the templates by running 'vbexpress /installvstemplates' or reinstalling Visual Studio. Note: corrective action requires Administrator privileges. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . Does anyone have any idea how to fix this problem (Note: I already tried re ...Show All
Windows Forms Delete File from ListViewItem?
I have an app that finds files and displays them in a ListView. In the ListView, I have a column called "cLocation" which displays the file path. How can I Delete the file with the file path listed in the ListView Thanks, I know how to delete the file, it's just retreiving the path from the listview items. example foreach(ListViewItem item in lvResults.Items) { if (item.Checked) { I need to get the filepath listed in each item to delete the file. } } ...Show All
Visual Basic Null Reference Exception
I am having a problem with a multi-form application I am writing in VB .Net 2003. When I transition back from one form to my startup form, I get an intermittent Null Reference Exception. Sometimes it will work, moving back and forth from form to form with no problems for 15-20 minutes, and sometimes it will crash everytime. I have tried putting a try-catch block around the instantiation of the main form. It does not catch anything. The exception points to line 2 of the startup form, which reads: Public Class frmWelcome Not much to cause a problem there, I would have thought. I am attaching the code for bringing up the welcome screen in hopes that someone will see something I am not thinking of. Try Dim welcome As New frm ...Show All
Visual Studio Tools for Office Force ContextLeave Event
If I use TransformDocument(..) in a VSTO2005 Word-solution, and the insertion mark is currently in a XML-Node with an attached ContextLeave-Eventhandler, the event won't fire, but after the transformation the insertion mark is outside of the node. I moved the insertion mark programatically out of the node with Application.Selection.GoTo(..) which worked, but also doesn't fired the event. Is there a way to force the event Thank you for your answer Cindy. I was on the wrong path, it's not a problem of TransformDocument, it's because I'm working with temporary documents which are closed and opened again. But the question is the same: How can I force the ContextLeave-Event ...Show All
Visual Studio Team System Problem with running Continuous Integration
I am going to be running CI, and I forsee some problems that are going to arise. I am going to be having approximately 26 team build projects that are going to be running on CI. If each of those are run say 3 times a day - that will leave me with almost 80 entries in the "integration build", "found in build", "resolved in build" fields. I would like to have these builds ignored, as I have a main build which will "sweep up" all of the work items and change sets. What is the best way to do this fyi, I tried to rename my build to CI but you can't overwrite one with the same name once it has built... Hi Johnny, I just finished a blog post that provides a simple filt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bad Lines Appear with Sprite.Draw with Redist. but not with SDK
Hello Everyone, I am working on an isometric game pseudo 3D but using Direct3D. Primarily I am using one call to draw everything... (Sprite.Draw). Infact I even use only one sprite to draw all the images to the screen and have written all other collision detection and transforms myself using surface level operations... The only real hardware accelerated feature I am taking advantage of is color and alpha blending. Everything has been going fantastic and I am getting ready for a preview release in a few weeks but then I decided to test it on two more machines to make sure everything worked. Almost everything did... but some images are not being drawn to the screen correctly they will have shaded lines under or around them that were no ...Show All
.NET Development What is the right way to instantiate/dispose a Control?
Hi, In Windows Forms application I am trying to dynamically create and dispose Controls. However, while testing it I ran into the fact that the way I do it leads to a stable GC Handle leak (one per instance). Here is the code that seems to produce a leak: for ( int idx = 0; idx < 5000; idx++) { Control tmpCtrl = new Control (); tmpCtrl.Dispose(); tmpCtrl = null ; } This results in exactly 5000 extra GC Handles (according to performance counter). What am I doing wrong Thank you, Leo. Thank you, nobugz. I already posted the question on this group: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=986071#986071&SiteID=1 Is that the right g ...Show All
SQL Server Setting up Client PC to access remote SQL Server
Hi, I am a VB6 programmer and I'm really new to SQL Express, I have always used ACCESS because it was so easy to deploy. I've now written a VB6 program which uses SQL Express and I want to know how to deploy it. Basically my PC will host the SQL database as it has SQL Express loaded onto it. I now want to install my EXE onto other Client's PC and have them read/write to the database on my machine. Besides the EXE program, what software do I need to load onto the Client's PC so they can access my SQLExpress database... (eg: Net Framework, SQLExpress, etc). Also, if my machine is called ABC123, in my connectionstring do I just put in ABC123\sqlexpress as the datasource.. . Will this be enough for the other PCs to connect to mine ...Show All
.NET Development Error Launching the Framework MDbg debugger
I am having some difficulties with the Mdbg sample debugger so I thought I would try the Framework version MDbg.exe. 1. I launch MDbg.exe from a command prompt 2. Issue an "echo hello world" command 3. Works fine. 4. If I execute the following fragment then I can Issue the echo command and it works. Process process = new Process (); process.StartInfo.FileName = "Mdbg.exe" ; process.StartInfo.WorkingDirectory = Application .StartupPath; process.Start(); 5. If I execute the following fragment in which I pass the command arguments then it ends with "the system can not find the specified file" exception. Process process = new Process (); process.StartInfo.FileName = ...Show All
Visual C++ iostreams from within a static lib
What is the best way to have iostreams output (std::cout) from within a static lib be routed to a console I have managed front-end that calls a unmanaged static lib. Since the front-end has no console to begin with, I am using AllocConsole() to spawn one. Calls to std::cout from the managed code then appear on the console, however calls to std::cout in the unmanaged code do not appear. If I then move the AllocConsole() call to the unmanaged code (again, which is linked into the managed code as a static lib), still calls to std::cout do not appear on the spawned console. Anjo The best thing do in this case is to make your application have a console in the first place. You can do this by changing the subsy ...Show All
