donkaiser's Q&A profile
Smart Device Development Periodically starting an applicaiton
Hi. I'm using VC2005 and CF 2.0 to develop a Smartphone application. I need a method to periodically start an application. For example, I want an application to automatically startup once a month, do its job, then exit. And then do it all again the next month. Is there anything like a task scheduler in Windows Mobile Or any other suggestions Thanks, Tony Surely using CeRunAppAtTime and CeRunAppAtEvent using Time change notification we can launch our application at particular time / timed event. I had tried using CeRunAppAtTime it is working properly for the set time.Then again I need to modify its time/Schedule new time.Is there any way it can be done automatically like ...Show All
Visual C++ EVC++ unicode problem
hi, im building an application with evc++ and i want to get rid of unicode because it causes me problems. i ve read the first sticky post but says only how to disable unicode support in MVS2005.. how can i do that in evc++ 4.0 thanx in advance error C2065: '_stprintf_s' : undeclared identifier msdn says that needs <tchar.h> but no luck.. anyway thanx for your time mate, i ll ask in smart devices forum.. ...Show All
SQL Server Time Dimension Browsing Very Slow - ProClarity
Hello, I have a problem when browsing the time dimension (when cube cells have values) I have a standard time dimension with the following levels Year-Quarter-Month-Day. My cube has values for the years 2003 .... until 2006. 2002 Does not have values. When I browse the time dimension for 2002 (the year where cube has no values), I have no problem..but when I browse the dimension for values in the other years.... I wait until 1 minut to make a drill down in the dimension Pane (whitout executing the query). PS: I notice in SQL Server Profiler, that each time I browse the dimension in ProClarity, all my 80 partitions are read in the OLAP Server....without executing the query. Thanks in Advance Joao Campanico ...Show All
Software Development for Windows Vista Is there any way to prevent promotion when crossing AppDomains?
I've created some data access objects that hit SQL Server 2005. I designed 'em so that I can choose at run-time whether to participate in distributed transactions or not. I do this by always putting 'Enlist=false' on the dbms connection string, and manually calling SqlConnection.EnlistTransaction() - or not - based on a method parameter. This works great. Next I wanted to make these components remotable so that they could be placed on a separate server when scalability requirements dictated. I made them inherit MarshalByRefObject; if registered for remoting, calls were made remotely, and if not, data access executed in the client process. In order to make transactions work remotely, I followed Florin Lazar's advice in a thread from t ...Show All
Software Development for Windows Vista How to Serialize individual Ink Strokes?
Hello, I am just wondering how to serialize individual ink strokes. When I attempt to I catch an exception stating that the Ink.Stroke object is non-serializable. I would love to not have to save the Ink object and serialize the entire thing, but instead simple grab a single stroke and serialize it. Does anyone have any information that may help with this Thanks again! Now that we have an Ink object with just one stroke, how do we transfer that stroke to an already existing Ink object hat has strokes I'm running into a few issues and was just wondering if there was something straightforward that I'm simply missing ...Show All
Smart Device Development Using custom fonts on windows mobile devices
hello, We are developing an winforms application for win mobile devices. We need to target win mobile smart phones 5.0 and 2003, also win mobile ppc 2003 and 5.0. What we should do if we want our own custom fonts for the application. can we use and install a particular true type font on all of the devices above second option is going for our own bitmap fontstrings but in that case how can we use them in managed application where controls like textboxes,listviews does not support these fonts we are developing managed application with c#., and as much as possible want to leverage on rich controls provided by .net., Only hurdle here is fonts, please suggest us suitable solution urgently. ...Show All
Community Chat object spaces???
can anyone tell about object spaces object spaces is object mapping realtionship technology.... a new technology coming in .net3 hopefully with full class libraries and support and wid great features and durability. in fact by this we can make direct relationship between Class properties and Tables fields using XML configuration files (mainly 3 files) http://www.microsoft.com/belux/msdn/nl/community/columns/jtielens/objectspaces.mspx for more and authentic details visit above URL ...Show All
Windows Forms GridView and always visible headers
I have a gridview that has many rows, it's a fixed size and will scroll vertically when the number of entries are too large for the area allotted to it. Is there a way to force the headers to remain at the top regardless of how far down the view you scroll The only other solution I can think of is putting my own labels in, but then I lose the sorting features . Thanks in advance. your assumptions were correct It's not happening for me. the headers go away when scrolling down. Are you using div's at all or any other html stylings ...Show All
Software Development for Windows Vista Cannot create more than one worklfowRunTime per AppDomain
Hi, In web.config i have < configSections > < section name = " WorkflowRun " type = " System.Workflow.Runtime.Configuration.WorkflowRuntimeSection, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " /> </ configSections > In my asp.net web form i have using System.Workflow.ComponentModel; using System.Workflow.Activities.Rules; using System.CodeDom; using System.Workflow.Runtime.Tracking; using System.Workflow.Activities; using System.Workflow.Runtime; using WorkflowLibrary3; public partial class _Default : System.Web.UI. Page { //private WorkflowRuntime workflowRuntime; WorkflowRuntim ...Show All
Visual Studio Express Editions newb question, namespaces & application wide database access
I have been looking through the various documentation and it differs from what I have to type in, and was just wondering why. For instance the documentation says Using connection As New OleDbConnection(connectionString) But to get the same I have to type Using connection As New OleDb.OleDbConnection(connectionString) Am I missing something or is it normal to have to prefix everything with what I assume is the namespace My second question is more of a design issue. In terms of data connections my thoughts are that it would be more efficent to have a persistant data connection for the whole application and pass it to each object I create rather than initiate a new one whenever an object that requires data access is cre ...Show All
Visual C++ Using a C++ object as a data source
Hello, I'm using Vs2005 C++ and .Net 2.0 and creating a Windows Form Application so that I can use the DataGridView control. I want the DataGridView to be bond to a data source which is a C++ object. If look at documentation on how to do this it says that any object with at least one public property can be used. And there are examples on how to do this, but the big frustration of being a C++ programmer in a .Net world is that the only example is in C#. Normally the syntax is close enough that I can translate it, but in this case I'm missing something fundimental. If I create a class with a public property like this in it: property unsigned Id { unsigned get(); } And then run Data Source Configuration Wizard ...Show All
Visual Basic Complex Processing In the Webbrowser control
I'm working on system that has a complex browser based in the WebBrowser control and I've found somepages that it cannot process in ways that I do not understand. www.vanishingpointgame.com is a page that it cannot process and that why I am using that page to test on. I have taken the most simple test case in a form. It has a designer created groupbox with a dynamically created webbrower. It navigates to www.vanishingpointgame.com . I do the following operations: I choose the box on the far left. I click on the little tab at the back of the box. Nothing happens. In contrast IE7 opens a new dedicated widow. The interesting thing about the webbrower control is that if I mini ...Show All
SQL Server OpenRowSet and OpenDataSource Fail on Production to open Excel data
The following statement fails when using SQL Analyzer under sa but works on all of our development and staging server. All are SQL Server 2005 SP1. We upgraded production over the weekend from SQL Server 2000, creating a new instance machinename\SQL2005. SELECT * FROM OPENROWSET ( 'Microsoft.Jet.OLEDB.4.0' , 'Excel 8.0;Database=d:\data\test.xls' , 'SELECT * FROM [Sheet1$]' ) The error we are getting only in prodcution is: OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Unspecified error". Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server &q ...Show All
Visual Studio 2008 (Pre-release) Expression Trees support for Attributes
Hello, Are Expression Trees currently supported for Attributes. For example, is this possible: [MyAttribute(x => x+1)] void MyMethod() { } If this is not supported, why not I believe this would be a very useful addition to attributes, especially if you consider things like specifiying rules in attributes (e.g. for O/R-Mappers). [ValidationRule(x => x > 5)] int MyProperty; Thanks, Thomas Krause Ok, but what about anonymous types/ tuples as attribute arguments [MyAttribute(new {a = 123, b = 456})] class xx {} Last I checked this results in a compiler fault :) ...Show All
Visual Studio Team System Can I develop custom rules in VS2003 using Fxcop 1.35?
I am trying to develop custom rules in VS 2003 and i am unable to add FxCopSdk.dll and Microsoft.Cci.DLL as references.I have downloaded 1.35 version of Fxcop. FxCop 1.35 is .NET 2.0 only. You will need to use a .NET 2.0 compiler, either via Visual Studio 2005 (or one of the free express versions) or via using one of the command-line compilers that ship with .NET 2.0 redistributable. ...Show All
