lyqfqy's Q&A profile
Software Development for Windows Vista Is there a "standard place" to store writeable not plublic shared files to please UAC?
Our program has two files must be writeable (a database file and a config file) which are shared by all dedicated users of the program on a single system. The automatic redirection to a single users directory path is not helpfull in that case. Before changing our program: Is there a standard place on Vista to store writeable not public shared files (We whant also to pass Vista Logo test...) Thanks in advance Hi Lela, sorry, i did not got an answer nor found a acceptable solution on our own... It seems to me we are doing the very old "Main fault of IT: Dividing function and data" again - but only on a higher level now. To stay solution oriented: Where would you place a Jet database file and a config file ...Show All
Visual Basic XML or a database?
I'm creating a program that basically parses textfiles and stores them into a database for easier manipulation (so I can run queries on a DB instead of parsing/comparing/etc raw text on-the-fly) Currently I am using an Access database to store everything, but now that I realize .NET has such great XML support, I figure this may be a better option. I'm thinking of storing each file into its own XML file then loading the selected file into a dataset and pulling info from it. This is basically what I'm doing now, but instead of XML, it's the Access db. Does anyone have any advice on which method is better EDIT: Wow, I forgot to mention something important. What I wanted to know is, how do I han ...Show All
Smart Device Development Questions on using RIL on Smartphones
Hello, I am new to developing on the Windows Mobile platform and have just started writing an app for Smartphones running Windows Mobile 5.0. My first task is to get the cell tower ID that the phone is currently registered to. I searched MSDN and other discussion forums and found that I can use the RIL functions to get this information. My first confusion was wether RIL was even supported on Windows Mobile 5.0 since MSDN includes RIL and Cellcore under 'Windows CE Embedded 6.0'. However, judging by some messages on other forums, RIL does seem to be available on Mobile 5.0. So far, so good. I tried to write a simple app using RIL functions but couldn't build it. I can't find any RIL-related files in my SDK install. After some more searchi ...Show All
.NET Development Error with WebRequest
Hi, I am using the WebRequest object in vb.net to post data to a webserver. I am also using a java application to post the same data to the same webserver. If I post the data using the Java code, it gets a response code of 400 and and a descriptive error message. However if I try using the vb.net code, the code generates an exception once you try to retreive the response headers. What I want to do is get the 400 response code along with the associated error that is generated by the webserver. Seeking Help.... Glenn PS: Here's the code... fails at the last line Dim request As System.Net.WebRequest = CType (System.Net.WebRequest.Create(PostURL), HttpWebRequest) request.Method = "POST" request.ContentType = ...Show All
Visual Studio Express Editions ListView line number
Hello. I would be very happy if someone could help me with this. I do not think it necessary to give all the code, but what I am doing is selecting a line in a 2 column ListView and with a button_click I want the item, its subitem and the row number in TextBoxes of the row selected. I get the item and subitem OK, but I cannot find out how to get the row number. I have tried all ways that I can think of with the code. Here is what I have: txtClue.Text = lvwClue.SelectedItems(0).Text txtPage.Text = lvwClue.SelectedItems(0).SubItems(1).Text To get the row number I have tried variations with this: txtRow.Text= lvwClue.SelectedIndices What should I have to get the row number I can insert info in at a row number (and I kno ...Show All
SQL Server T-SQL Question
I need to figure out how to write a stored procedure to get the correct daily AAbutter price for sales orders on a particular day. I am pretty confused...but I am just a beginner. First of all, a sales person will input a date (@Date) to obtain a correct daily butter price for that day. This will be the date that the order was received...so it doesn't always mean that it is the current date. They will also put in a customer number as well (@Cust_Num). We have a table that gives historical data for the daily AAButter price with the fields MktDate, Price. The catch is how we deligate the AAButter price to our customers. They are categorized in 3 ways: Daily Pricing, M-F Average, and Thursday-Wednesday Average (with no SATor Sun AAButterPr ...Show All
Visual Studio Express Editions Getting the WebBrowser LocationURL to show.
I am having a lot of trouble getting the webbrowser location to show up in the textbox that I use as my address bar. I am trying to make it so that the address bar always stays up to date with what URL the webbrowser is at. Can someone give me an example code of how this is done Sorry for all the questions. I'm very new to VB Private Sub wb_StatusTextChanged( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles wb.StatusTextChanged ' Tabp.wb_StatusTextChanged - WebBrowser Event handler ' WebBrowser Status Text has changed Static tmp As String tmp = wb.StatusText.ToLower() If tmp.Contains( "http://" ) _ Or tmp.Contains( &q ...Show All
Visual Basic conversion from c# to vb.net
public class FloatToolStrip : ToolStrip { private Form floatForm ; public Form FloatForm { get { return floatForm; } } c# is case sensitive so floatForm and FloatForm are different. vb.net is case insensitive so when the inline compiler sees FloatForm, it says it has already been declared. how do I convert the blue code into vb.net Thank you. -greg As you've seen, the case insensitivity of VB.NET will not like your code when directly converted... instead a common option is to prefix private variables with an '_' or 'm_' like so: Public Class FloatToolStrip Inherits ToolStrip ' Private m_floatForm As Form Public ReadOnly Property FloatForm() As Form Get ...Show All
Software Development for Windows Vista My Workflow is not persisting
Hi , I have only one workflow instance running . I have the SQLworkflowpersistenceservice registered .. I also know that my workflow is getting idle and when i ask to EnqueueItem () to the same workflow instance i get exception Workflow with id - ( some Guid ) not found in state persistence store .. Though i have run the sqlPersistenceService_schema & sqlPersistenceService_Logic .. sucessfully. I can see Tables & Procedure being created... Here is the sample code .. in my program. 1. Part ( Initialize ok) SqlWorkflowPersistenceService stateService = new SqlWorkflowPersistenceService( "Data Source=comp83\\SQLexpress;Initial Catalog= Master ;Integrated Security=true"); workflowRuntime.AddService(stateService); workflowRun ...Show All
SQL Server Report Builder - Numeric Aggregate Aggravation
So I'm building a report model containing several 8 or so numeric amounts. All amounts are numeric(10,2), and there is nothing that would differentiate the columns other than their names. One of the columns WILL NOT generate any aggregates. It just appears as an attribute. It's inexplicable. I've even tried to build a model containing just this one numeric attribute, and it still does not work!! VS just hates this one element! Anyone seen anything like this I'm running VS 2005 Sp1. WHAAAAAAAAAAAAAAATTTTTT What genius came up with that! Any why would an ID field be numeric 10,2!! Thank you thank you ...Show All
.NET Development .NET 1.1 Process class - peculiar/problematic behavior
Hi, I am executing a console application using Process class using .NET 1.1 with SP1. It has been working fine until we encountered a particular Windows XP SP2 machine - let's call it machine X. On this machine, the newly spawn process simply returns with return code -1 (i.e., it's an error), and it does not generate any output to standard error or standard output - most likely it couldn't even have gotten started properly. The console application being spawn is a third-party application for which I do not have the source nor extensive documentation so I can't tell what exactly about this machine X that it doesn't like. Without the source, attaching a debugger and stepping through is not an opt ...Show All
Windows Forms classic combobox problem
If you are binding a combobox to a datasource how can you add the infamous "select one" as the first visible selection. I have done this for webforms using the 'listitem" but it seems that this need has been overlooked for windows forms. Thanks PatC Hi, pat capozzi Try something like this: double d = 63.5; this .comboBox3.Items.Add( "aa" ); this .comboBox3.Items.Add(1); this .comboBox3.Items.Add(d); this .comboBox3.SelectedItem = d; //this.comboBox3.SelectedItem = 1; //this.comboBox3.SelectedItem = "aa"; Hope it helps. Best Regards. Ye ...Show All
Visual Studio Team System TFS Server Setup Failu - ENU -- Error 28002.Error unknown.
This is the third time I am trying to install TFS singler server setup. Everytime setup aborts with Retry or Cancel button. I have followed TFS install guide properly and have all the prerequisites installed. Please find the event log as well as excerpts from MSI log and Install log Event Log ---------------------- Event Type: Error Event Source: MsiInstaller Event Category: None Event ID: 10005 Date: 9/1/2006 Time: 2:02:05 PM User: VSTS\TFSSETUP Computer: SERVER2003 Description: Product: Microsoft Visual Studio 2005 Team Foundation Server - ENU -- Error 28002.Error unknown. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . Data: 0000: 7b 35 30 45 35 44 34 34 {50E5D44 0008: 43 2d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Torque X Open Beta is out!
install the software and you will get other starter kits . But I can not find any 3d game starter kit. This is directly from Garage Games: Torque X Now Available for Download! In conjunction with the release of XNA Game Studio Express earlier today, GarageGames is pleased to make Torque X available for download! You can download the binary of the Torque X Engine HERE (yes, it currently resides on the TGB demo download page). The binary also includes the 30-day free trial of the TGB Editors tailored for use with Torque X. Also included are a couple example games and Starter Kits, to helppeople understand how to use the new engine. We are calling this our "Open Beta ...Show All
Visual C# Datagridviewcomboboxcolumn error
I always meet “System.Argumentexception…. datagridviewcomboboxcell value is not valid “ problem. The following is my code: DataTable tCompany = Database .dIResearchDataSet.Tables[ "Company" ] DataTable tEquipment = Database .dIResearchDataSet.Tables[ "Equipmment”] DataGridView dgV1 = new DataGridView (); dgV1.DataSource =tEquipment; DataGridViewComboBoxColumn col1 = new DataGridViewComboBoxColumn (); col1.DataSource =tCompany; col1.DataPropertyName = tEquipment.Columns[ "Manufacturer" ].ToString(); col1.Name = "Manufacturer" ; col1.ValueMember = tCompany.Columns[ "prefereredName" ].ToString(); col1.DisplayMember = col1.ValueM ...Show All
