Batico's Q&A profile
Smart Device Development STAThread can not be found, but where is it?
Hi. I'm writing an application with Compact Framework 2.0 SP 1. I want to apply the [STAThread] attribute to the main method, but there seems to be no such attribute. I get offered the MTAThread attribute, but not STAThread. Of course, the compiler doesn't find either. It just seems to be missing in the referenced assembly (System.dll, Version 2.0.6129.0). I didn't find anything about this problem on the web, so could anybody help me, please I'm quite desperate. I already reinstalled the CF 2.0, no success. Nobody else seems to have had this problem, ever. Help!!! Thanks! rudiman Thanks Ilya. Unfortunately my actual problem, which I thought had something to do with the STA-mode, remains. I describe ...Show All
Visual Basic Read data from XML file to combobox
Hello, I'd like to read data from an XML file. It starts with the following: <NewDataSet> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Table"> <xs:complexType> <xs:sequence> <xs:element name="RESPONSIBLE" type="xs:string" minOccurs="0" /> </xs:sequence> ...Show All
Visual Studio Team System TFS HandleComException error
I'm trying to programmatically create a bug in TFS like so: try { TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer( "http://TFS:8080" ); WITracking.Client.WorkItemStore store = (WITracking.Client.WorkItemStore)tfs.GetService( typeof (WITracking.Client.WorkItemStore)); //create WI of type bug WITracking.Client.WorkItemType workItemType = store.Projects[ "ROI" ].WorkItemTypes[ "bug" ]; WITracking.Client.WorkItem workItem = new WITracking.Client.WorkItem(workItemType); workItem.Title = textBox1.Text; workItem.Fields[ "System.AssignedTo" ].Value = "Kawatana" ; workItem.Fields[ "Microsoft.VSTS.Common.Priority" ].Value = 1; ArrayList list = workItem. ...Show All
Smart Device Development Deleting write protected files
I'm developing a VB application to run on IPAQ devices. I have two different models of IPAQs and I want to delete all the shortcuts in \Windows\Start Menu so only my program and one or two others are visible. I can do it via active sync on one of the IPAQ's but they are write-protected on the other. I would like to put code in my program to delete all the unwanted shortcuts every time my program runs because I'm sure the shortcuts will reappear if the user does a cold boot. Does anyone know how to delete a file that's write protected I'm not sure if you want to delete shortcuts or the files itself. In any case, this link deals with both - http://www.bostonpocketpc.com/modules.php op=modload&name ...Show All
.NET Development Typed DataSet Class not exposing its members
Hi all, I've made a Typed DataSet and create 2 DataTables manually. I added few columns for them and a relation between them. The ParentDataTable has a primary key which we can call Id and that field also is contained in the child parent. This field is the one that creates the relation between both tables. If I get to the code, I can declare a variable of the Typed DataSet type, but when I call for the methods, it does not show me those methods. I think it is not being generated so, I can not access the class members, like typed tables and row collections. I'm Using VS.NET 2005. Does somebody knows what it may be the problem thanks in advance Luis Diego Rojas Excelsus ...Show All
.NET Development How does the .NET FCL work?
Does the .NET framework function off of Win32 API methods or something Sure, C# and .NET languages use .NET, but how does .NET do what it does Hello All. xRuntime: Basically (and over-simplified), it goes like this: 1) .NET code compiles to MSIL instructions -------------------- Native processor boundary------------- 2) MSIL compiles (via the JIT) to native machine instructions 3) native code either calls WIN32 library functionality (via .NET wrappers) or newer .NET library funtionality --------------------Windows device-independent boundary--------- 4) operating system library code (either WIN32 or .NET) calls device-dependent code (device drivers). 5) application runs (or, crashes ) That's it in a (ve ...Show All
Smart Device Development Win CE 6.0 ARMV4I Emulator Build Error - 4K page alignment
I am building a Windows CE 6.0 image file that will include my application. I have a test application that I have built using C#. I have modified the project.bib file to include the application. When the image file is being built for the device emulator, I receive the following error message: Error 19 Error: only 4k page alignments supported at this time, found in module test.exe What does this error mean How can I include my application in the image file Problem solved. The .net compact framework 2 was not included from the catalog. Once this item was selected and compiled as part of the image, my "test" application runs. ...Show All
Microsoft ISV Community Center Forums Word 2003 Includetext XPath
I have a word document that has an includetext field. The text is extracted from an XML file that is generated from an external database. I want to load it into word and insert text from different sources that is formatted data into different elements. I do not have problems extracting data from a n element when using a raw xml document. But if I add random text with formatting to an element, I need to save as a Word XML. If I save as raw data I will lose the added formatting. I can't seem to make the xpath statement work after that. Shouldn't it extract all text with formatting as long as I make sure the namespace and node name is correct. I would appreciate any suggestions Hi Mary -- I sent yo ...Show All
SQL Server Filtering Duplicates in SQL2005 doesn't work anymore
Hi, Made the jump from SQL2000 to 2005 - i'm not a DBA but like to play around with such nice tools- and tried to convert my DTS package into a 2005 one. I've got a csv file containing some log in information. As users log in everyday, this keeps getting added to the file. I'm only interested in the latest appearance of a certain machine on the network so i filter by creating an unique Index the CSV file get's imported into a temporary table first and then i executed the following on SQL2000 CREATE TABLE [patchings] . [dbo] . [allfilter] ( [username] varchar ( 20 ) NULL, [machine] varchar ( 20 ) NULL, [os] varchar ( 20 ) NULL, [sp] varchar ( 20 ) NULL, [date] ...Show All
SQL Server where can i download IIS v6.0
Where can I download this IIS v6.0. IIS 6.0 is not downloadable. It's part of Windows 2003 and you just need to install it. See here for install steps: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/fb42a5d5-8ade-4dda-8bbd-f63e38e602b9.mspx mfr=true ...Show All
Visual Basic How do we use the sample files?
I can`t open the sample examples, can you help me out best regards So you are using 2005 (am I assuming this is VB 2005 or 101 Samples for 2005) Which samples are not working Which version of the product are you using VB Express / VB Std / VB pro / Visual Studio etc. Please try and provide as much details as to what the problem is - what samples your trying to run - where you obtained these samples, what error messages it is generating. All these things are important in determining the problem and giving you a resolution. A description like "The samples dont work ", tells us very little, We dont know what samples your talking about, what failures they are giving, what ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VertexBuffer.SetData
When I overwrite a portion of a static VertexBuffer can I overwrite just a portion in the middle of the buffer or do I have to overwrite from the starting point all the way to the end of the buffer Looking at the documentation. SetData is overloaded with parameters to allow an offset when setting the buffer. I haven't tried it myself - Run a few experiments. You'll soon find out the issues. ms-help://MS.VSExpressCC.v80/MS.VSIPCC.v80/MS.XNAFX.1033/XNA/SetData_VertexBuffer_Graphics_Framework_Xna_Microsoft_M_O.htm VertexBuffer.SetData (Int32, T[], Int32, Int32, Int32, SetDataOptions) Sets the vertex buffer data, specifying the start index, staring offset, number of elements, and size o ...Show All
Software Development for Windows Vista uac elevation by a service
Hi, I have a service running as local system which sometimes has to spawn another process running as the currently logged on administrator user. The spawned process needs elevated admin rights in order to perform its task which could be a software installation or configuration job. The question is; how does the service do this without the user having to click the uac dialog The problem is that the user may be logged on but could be away (perhaps the job takes place at night) so there could be nobody to click the dialog. The way it works at the moment is that the service gets the token of the admin user then calls createprocessasuser. The spawned process, of course, runs under restricted admin rights which are insufficient for the ta ...Show All
Visual Studio Team System Creating field which is a value dependent on other fields
I would like to have a field called weight or multiplier which takes the rank and priority and multiplies them together to populate this field. Does anyone know how to do this I think that the way I could do this is by having a conditional value. Basically this is what I will need to do...1. have a field called Customer which will be by default 0, if there is a customer assigned to this work item, then set to 1.2. Create a query which will sort first by the field Customer, then by Priority and then by severity.This way, developers could come in in the morning and see their highest priority bugs (i.e. those associated with a customer) and do their work accordingly.Does anyone know how I can do the first par ...Show All
.NET Development system.web.mail works, system.net.mail fails
I'm still fighting this changeover to system.net.mail. I have the same error message you showed above. I have a web page that sends the same email text two different ways, or tries to. This one (using real addresses) works: System.Web.Mail.SmtpMail.Send("me@there.xyz", "you@there.xyz", "subject of my email", "body of my email") This one does not: Dim sc As New System.Net.Mail.SmtpClient() Dim message As New System.Net.Mail.MailMessage() sc.Host = "localhost" sc.Port = 25 Dim fromAddress As New System.Net.Mail.MailAddress(txtFromAddress.Text, txtFromName.Text) message.From = fromAddress message.To.Add(Me.txtToAddress.Text) message.Subject = "testing smtp at ...Show All
