redocdlab's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged equivalent to Sprite.Draw2D?
Is there an unmanaged equivalent to Sprite.Draw2D I only see ID3DXSprite::Draw listed in MSDN. My GUI system uses Sprite.Draw2D and I'd like to make an unmanaged version. Or will I have to work with the transforms You will have to work out your own transforms. Draw2D was a special "helper function" that was only in the Managed APIs (and to be honest, there's some discussion about whether it should stay). ...Show All
Visual C++ Can C++ develop web-based applications?
Hi, All New to C++ programming. and have put resource in C++ and VC books and time learning it. But now I was told that C++ can not develop web based apllications. Is this true or some extensions of C++ can go around this limit I need develop a web-based database, so the users can input company names, location, phone numbers. etc. and the users can have a full text search on this database. Do I have to learn C# and and SQL to do this Thanks. You need to learn SQL no matter what. You can write web apps using VBscript and C++, that's call ASP. It really sucks. You should learn C# and ASP. ...Show All
Visual J# Creating zip files without Path info
I using java.util. zip to zip files. Can anyone tell me if it's possible to zip these files without including the Path info of the source file in the zip I want to unzip the files into a directory of my choice. Any help would be greatly appreciated! :) Regards, Psydney Hi, I was able to zip files without their source path being included and also could unzip them into a directory of my choice. Here is the snippet of the code that i worked with: To zip the files: static int BUFFER = 2048; BufferedInputStream bis = null; FileOutputStream destination = new FileOutputStream(" Sp ...Show All
Windows Forms Re-use of Datagrid
I'm using a datagrid to load different tables depending on the choice of the user. It loads fine the first time, but when user comes back to the choice the 2nd time around, I get the error: *********** An unhandled exception of type 'System.ArgumentException' occurred in system.data.dll Additional information: DataTable already belongs to another DataSet. ************** The line of code ...Show All
SQL Server HOWTO: Script object as execute?
(Didn't know in wich group this question belongs....) Hi group, In QA there is an option called 'Script object as....' Were developing a lot of sp's. When I use this option the 'skeleton' of a sp is created. Eg Create proc uspMySP @Message varchar(10) AS SELECT @Message The mention option would generate the following: DECLARE @RC int DECLARE @Message varchar(10) -- Set parameter values EXEC @RC = [EMGLSP3].[EM3_OWN].[uspMySP] @Message The question: Is it possible to customize this I would like to *** SET statements... Is this possible Regards Sander It is possible to add/modify the QA templates. Her ...Show All
SQL Server Database Mirroring with multiple websites
Hi, it's real strange that there are currently no questions in the whole of the SQL Server section. That has to change! Anyway, here's a scenario. There's a website we are developing, which we expect to have a high load. the site is being developed with ASP.NET 2 & SQL Server 2005 and will probably be complete some time early next year. However, we've already started thinking about deployment issues as these will greatly affect the development. Because it will be accessed from a few places around the world, for performance, security and resilience, the suggestion is to: deploy the ASP.NET website on difference s ...Show All
Visual Studio 2008 (Pre-release) When and where to set custom IIdentity when implementing custom authentication
Hi - If custom user name/password authentication is being implemented, where is it possible/recommended to set the "PrincipalIdentity" to a custom IIdentity object So far I have custom implementations of ServiceCredentials, UserNameSecurityTokenAuthenticator, UserNameSecurityToken and IAuthorizationPolicy all hooked in and working nicely to verify user credentials against a custom store. I am looking to attach a custom principal object following the example in this thread . However, the object obtained from EvaluationContext.Properties["PrimaryIdentity"] when IAuthorizationPolicy.Evaluate gets called is a GenericIdentity. Where should I (ca ...Show All
Windows Forms Data Validation in Smart Client Applications
I am currently evaluating Billy Hollis' Windows data validation control for possible use in a smart client application. Because this is a third-party tool *and* it's unsupported, I want to get as much real-life feedback as possible before I use it. I have 4 questions: If you've used his data validation control: 1) Are there any bugs/issues/stability problems w ...Show All
SQL Server Backup databases programatically.
Hello 1. Sql Express supports SMO 2. If so How can I make a backup of a database programatically Thanks You do know that you can overload the Server instantiation to direct it to the server you want to connect to, don't you Example: Dim srv As Server srv = New Server("MyLapTop\Express") In VB.Net you can also set the property in the ServerConnection object: Dim srv As Server Dim srvConn As ServerConnection srv = New Server srvConn = srv.ConnectionContext srvConn.LoginSecure = True srvConn.ServerInstance = "MyLapTop\Express" Either one should work for you. ...Show All
Visual Basic API Calls supported by VB6.
I would appreciate information on exactly which API calls are supported by VB6. In paticular, I am having trouble declaring the following calls: SetupDiGetClassDevs SetupDiEnumDeviceInterfaces SetupDiGetDeviceInterfaceDetail The declares for these calls listed by the API Text Viewer generate the error message: "Variable uses an automation type not supported in Visual Basic" One variable it rejects is > ByRef ClassGuid As Guid. I realize that I may have to move up to VB.Net to get support for these API calls, but I have not yet been able to verify this. Richard, I am using the API-Guide ...Show All
Visual Studio Express Editions Need Help Iterating Through DataSet to Return Data...
This is probably a real stupid question... I have a dataset that gets created programatically (no connected database, no TableAdapter, no datagrid - just a dataset used to store a ton of records temporarily in memory). I have the dataset bound to a couple listboxes to filter information and everything works exactly as I want it to. Now, I'm creating a report based off the information in the dataset. The stupid question is... If I want to query the dataset to get back a single item for the report, how do I do it To make it simple to understand, the dataset has 6 columns and probably 150 records. If I know that I want to retrieve ...Show All
Visual Studio 2008 (Pre-release) Quality of Drawings Q
Hello, I’m new in WPF, all my previous exp with drawings for Win is Win API, GDI+. I'm surprised by the quality of drawing in Avalon. Please note, I do it from my code: Ellipse es = new Ellipse(); es.Width = 20; es.Height = 20; es.Stroke = Brushes.Green; es.StrokeThikness = 0.5 MyPanel.Children.Add(es); What I got in result is a crappy GDI+ like pseudo circle... I sow some real nice examples of drawing with XAML (I can't use it by some reasons) - does that fact that I'm calling wpf from my code cause that, or I’m doing something wrong here Thanks. Hi Alex (nice name...), ...Show All
Architecture Domain-Specific Languages for Architecting Distributed System
How does Domain-Specific Languages support for Architecting Distributed System DSLs as a concept are completely orthogonal to distributed systems. You can create DSLs for monolith single computer systems just as much as you can for a complex distributed system. One way to divide DSL types is to vertical languages - for vertical domains e.g. financial, defense etc. and the other type is horizontal languages. You can conceptually create an horizontal DSL to help create distributed systems. some people would say Biztalk designers provide one such language. Arnon ...Show All
Visual Basic [VB2005]Q of Serialport ----> Need Help
I jz start to learn the programing of vb2005, but there is a new plugin of serialport, i reali dun no how to use it, who can tell me how to write the code to achieve a simple network connection, like chating, transfer the text form1 include: textbox1,button1 form2 ~~~~~: textbox2.button2 how to make tt when i click the button1, the content of textbox1 will be sent to textbox2 (use network ee.. not form2.textbox2.text = textbox1.text ....) hope can reply ^-^ thx veri much! Do you want to specifically use the serial port or just create a means for t ...Show All
Visual Basic How do I find the drive path for a resource in my.resource.
The following scenario happens quite often. I have a file; text, audio, etc. that I need to access from my application. I cannot seem to find a good way to access the file both during debug and after deployment. During debug I have to use something like "..\..\Resources\afile.txt", If the file is included as a resource. The relative path doesn't work once the solution is deployed since the relative locations are different. (I realize that you can directly read the text through the my.resources object, but often I have to use methods that require a path.) It would be nice if I could extract the filepath of a resource irreg ...Show All
