Yellar's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Ways of Rendering mouse cursor in directx9
I'm trying to build a GUI using directx 9. I find that rendering mouse cursor is something different from the main rendering process. It needs to have higher priority to make cursor looks "smooth" even when main rendering process's frame rate is low. Others give me some advice, but I'm not sure which is better. The following are the ways I figure out. 1. Using windows mouse cursor. It's fast but in full screen mode it failed. 2. Drawing cursor in seperate thread using windows GDI. The cursor is just blinking. 3. Drawing cursor in seperate thread using directx. I don't know how to do that. Should I share the same d3d device or ...Show All
Visual Studio Team System Another problem when creating a new project.
I get the following error. Has anybody an idea what it would be. Has anybody had the same problem 04.20.2005 10:38:19.578 | Module: ELeadServiceMediator | URL for eLead web service retrieved as " http://193.5.41.175:8080/bisserver/EleadWebService.asmx " from the registration service | Completion time: 0 seconds 04.20.2005 10:38:19.578 | Module: ELeadServiceMediator | eLead web service proxy constructed | Completion time: 0 seconds 04.20.2005 10:38:20.671 | Module: ELeadServiceMediator | Template Information for domain "193.5.41.175" retrieved from eLead web service | Completion time: 1.09375 seconds 04.20.2005 10:38:30.234 | Module: Engine ...Show All
SQL Server is this possible in SSIS?
I got a OLE DB source pointing to 1 table and 1 flat file destination. currently this is how i export data from 1 table to 1 flat file. To make things easier, I was wondering whether i can have only 1 OLE DB source pointing to few tables pointing to few file destinations so I dun need to create 1 SIS project for each table data exporting. anyone can help me Unfortunately not because the metadata i.e. the columns involved in the transform need to be the same. So you can't have 1 data flow in a loop that is reconfigured for different tables and destinations. If the source is SQ ...Show All
Visual Basic Problem with SQL Connection
Hi, I installed the AdventureWorks database, and can connect with SQL Express Manager or Visual Studio 2005 data tools to this database. The problem is that while writing the follwoing code: Dim connectStringBuilder As New SqlConnectionStringBuilder()connectStringBuilder.DataSource = ".\SQLEXPRESS" connectStringBuilder.InitialCatalog = "AdventureWorks" connectStringBuilder.IntegratedSecurity = True connectStringBuilder.UserInstance = True Dim ds As New DataSet() ' Open connection to the AdventureWorks database Using connection As New SqlConnection(connectStringBuilder.ConnectionString) connection.Open() it fails ...Show All
Visual Studio Express Editions Slow screen redraw
I am in inexperienced programmer who has an application that displays many (50-60) controls on a form. The application is a production planning system, that requires many controls displayed on screen (1 for each job qued on individual machines) Whenever the form is re-draw, it is painfully slow, I have set the doublebuffer ControlStyles etc, but are unable to fix the issue. This issue is running on a P4 2.8GHZ / 500MB PC. Can anyone assist I have attached an example of my problem (not my actual application, but the samle gives the same issue). The sample simply displays many controls onto a form. When you force a redraw ie ALT ...Show All
Visual C# Application.Exit() not working
When i tried to end my application with Application.Exit() Visual Studio seems to throw me an exception pointing to the Application.Run(new FormNameHERE()) saying that it had nothing to start. But my Application only calls the Application.Exit() after the Application.Run() in had been executed. Kinda strange. A workaround i did was to do an empty try..catch. But is this a bug or is it just happening to me Are you able to trace from the Application.Run into the constructor of FormNameHERE It may be that the form name has changed and the main Application.Start hasn't been changed. ...Show All
Software Development for Windows Vista State Machine Design Question
I am trying to build a state machine workflow that contains a state called the "ReviewState". The purpose of the review state is to wait until N users perform a review on a target document. Also, if a review by a particular user is not performed within a specific time I would like to take some alternate action. My question is as follows: How do I design a State such that it stays in the state until N users perform some discrete action ( like firing a reviewed document event). I also would like each individual review to have a timeout associated with it so that if the review is not performed by the user within a specific time some discre ...Show All
Visual Studio 2008 (Pre-release) DLing foreign key mapping
When you have a foreign key mapping and you have your property referencing the entity is it also necessary to expose a property for the foreign key id value ... CREATE TABLE Entry ( -- ... CONSTRAINT FK_Entry_EntryClassification FOREIGN KEY(ClassificationId) REFERENCES dbo.EntryClassification(Id) ) public class Entry { // ... public EntryClassification Classification { get { return this.classification.Entity; } set { ... } } // ** Is this essential ** public short ClassificationId { get { return this.classificationId; } set { this.AssignPropertyValue(ref this.classificationId, value, "ClassificationId" ...Show All
.NET Development security problems using getprivateprofilestring api call to read ini file over network
I'm attempting to use the GetPrivateProfileString API call to read from an INI file. (Note - This is my first venture into .NET development and I understand .config files are the current thing, but I already had code which did what I wanted with an INI file, so I thought it would be a faster development path...) When my test application resides on the desktop from which I'm running it, everything works fine (ie. start | run | c:\projects\testapp.exe). However, I need to be able to deploy the application on a network server and call it from various places within our corporate intranet. This is where the troubl ...Show All
Software Development for Windows Vista Workflow Designer Rules Support
Hi, I'm in the process of trying to setup a demonstration application which shows an example of workflow and rules management. I need to basically setup a workflow, set some properties, then run the workflow from the designer. Part of this demo include the use of an IfElse activity and a Policy activity which link with the rules engine portions. I've trundled through the examples and the current samples get things about 75% of the way there, and I've probably gotten another 5-10% there by looking at the threads here, but I'm still stuck. Here is what's happening: 1. Create a new workflow 2. Drop an IfElseActivity on the design surface, thro ...Show All
.NET Development How can I Add/Update/Delete ConfigFile in windows Application 2.0?
Could somebody help in writing a routine to Add/Edit/Delete a config File in 2.0 Lets suppose I have the following Config File < xml version="1.0" encoding="utf-8" > <configuration> <connectionStrings> <add name="Connection1" connectionString="Data Source=MYSERVER;Initial Catalog=Pubs;Integrated Security=True" providerName="System.Data.SqlClient" /> <add name="Connection2" connectionString="Data Source=MYSERVER;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> </configurat ...Show All
Visual Basic Tab Key vb.net dll
We have an established vb6 app, which makes different calls to various vb6 dlls depending on our client's requirements. These dlls hold all our forms etc. We are now trying to move any new deployment to vb.net dlls, but are having a big problem with the Key tabbing. If the forms are shown modeless in vb.net all the tabbing functionally is lost. If we display the form modal then the tabbing returns, but that would not be acceptable. (modal forms) We thought we had an answer, if each form in vb.net was opened in a new tread. But we soon found some very odd behaviour not least the mouse icon wouldn't change on some controls. ...Show All
Visual Studio 2008 (Pre-release) Is Avalon and XAML interoperable between Windows and Web ?
Newbie here. Is it true that an interface designed in Avalon using XAML can be interchangeablye used for a web or a windows application Thanks. In Windows Presentation Foundation, the programming model for developing browser-hosted and installed Window-based applications is the same. The only difference is in some project properties that help the build system decide whether to build one or the other flavor of application. Of course, since browser-hosted apps run in a security sandbox, you cannot do some things like File I/O etc. in that application flavor. In case you're interested, the proper ...Show All
Windows Forms DataGridView Master-Detail (Parent-Child) AddNew
Gents - I have a DataSet with a Parent / Child relation. On Form1 I have a DGV that is bound to the details (child) portion of the relation (tblInventoryTransBindingSource). I have a BindingNavigator bound to the Parent binding source (tblPurchaseOrdersBindingSource). On the form I also have a DateTimePicker for date control bound to tblPurchaseOrdersBindingSource - OrderDate. In order to create a default value of today on the DateTimePicker control, I have set the BindingNavigator's "AddNewItem" to NONE to handle this programmatically. I have the following code: <code> Private Sub POAddNewItem_Click(ByVal s ...Show All
Windows Forms how to disappear the menu's rectangle strip of the child form in a MDI application?
>> Hi,everyone, I add a menu to a MDI child form,and use Designer to merge this menu to the main form's menu, when I open the child form, its menu items were putted into the mainform's, but there is still a menu's rectangle strip just at the top of child form. >> Anyone can try it and must get the same question. >> So my question is how to disappear the menu's rectangle strip of child form ...Show All
