Captain007's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Develop in VirtualPC / VMWare possible? (Seems not)
My understanding is that XNA GSE can only be hosted on top of C# Express, not VS2005 Pro. So, I installed it in a VMWare OS. Unfortunately, I get a NoSuitableGraphicsDeviceException when I attempt to run or debug a game (I have VMWare tools installed). Any thoughts on this What about running under Virtual PC I suppose I could program in VMWare, copy the binary over to my host OS, and attach the debugger... oh, wait... that doesn't seem to be an option in C# Express. Back to Square 1. Hi Larry. C# Express installs side-by-side with VS 2005 Pro. The S3 Trio video card that is virtualized by Virtual PC doesn't support the required level of D3D the XNA Framework requires. ...Show All
Visual Studio Team System assemblies missing when running unit test
Hi, When building a project in visual studio the project build fine and all test are run and passed. But when i run the build from TFS the test run fails due to missing assemblies refences. These are included as references in the unit test project. Has anybody had some experience with missisng assembly refences when running a build from TFS . All references are under source control. Under the same solution. If by work folder you mean TestResults\xxxx_PCxxxx 2006-12-02 16_08_43\Out. Then the work folder includes all referenced assemblies exept for 2. I can solve the issue by refernecing the dlls instead of the project that creates them but, its a dirty workaround and & ...Show All
Visual Basic MsgBox always return "no" regardless of what the user click
I am using VS2005 and have a messagebox inside of an event that does not work properly. The code is below: If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If The problem is regardless of whether the user clicks Yes or No, it always returns No. If I add another MsgBox in the code immediately before the if statement, then the if statement will always work properly. (see code below) Microsoft.VisualBasic.MsgBox( "Dummy MsgBox" ) If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If I can't figure out what is wrong h ...Show All
Visual Studio Tools for Office MODI Example
Hi everyone, I'm new at vb .net, and i'm wondering if someone has an example that uses the MODI (Microsoft Office Document imaging) control in VB .NET I found an example for VB6, but upgrading it to .Net doesn't seem to work. Thanks, Guy Hi Peter There's plenty of action in office.developer.automation, just not much about MODI. There's a slew of office.developer newsgroups. Try a Google search on the term across those groups. I saw one code sample during the last few weeks for MODI... Lots of people asking about MODI, but very little knowledge/experience available, apparently. ...Show All
.NET Development Accessing and Manipulating .rdl file in .Net
Hello, I have the following scenario: I have to get the reports from SQL server, modify the reports (.rdl file) and save it back again to SQL server. Right now, I have got the rdl file from the server and have saved it to my local machine. Now when I try to access the rdl, am not able navigate to particular element of the rdl file. I debugged and found the following issue that is not allowing to navigate to particular element. I have the following code at the start of the rdl file <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"> When I remove the first attribute "xmlns:rd" from this element, am able t ...Show All
SQL Server Publishing Web Application
Hello to everybody. I got a problem like this: I developped a project using Visual Studio 2005 Standard Edition on a XP pro x64 Machine using a developpemet data area on a SQL 2005 Express Edition. Everything is ok, even the user and profile management. But when I try to publish my application on IIS (we're talking about a little Intranet), I get my problems. I think is important to say that the server is a Windows Server 2003 and data (database reproduced as a backup of the developpement one) are under an SQL 2005 Standard. The strange thing is that by publishing the "site" VS create a DB under SQL Std named with the path of local ASPNETDB.MDF. I can reach everything, all data are ok, but when I pass the login page g ...Show All
SQL Server PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE
I tried to create a sp on one of the databases on my lap top and got this: Pls help i need it bad Msg 10314, Level 16, State 11, Procedure ap_Hello, Line 5 An error occurred in the Microsoft .NET Framework while trying to load assembly id 65695. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly 'vbtriggers, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x80131 ...Show All
Community Chat EDM
Does anyone know if Microsoft has electronic data management application systems I have lots of documents which I am interested managing electronically. Documents that have to be send to several people for approval/signature for example before they are returned to me. Its frustrating when one has to walk around with a form that needs to be signed by several people instead of just electronically sending the document to the relevant person who in turn will sign/approve and the document in turn will automatically be send to the next person who needs to sign/approve. Is there actually a way of doing this electronically Did you find anything I am in a similar situation and looking for a solution ...Show All
Windows Forms Adding help to an application
I have used HelpStudio lite to generate help content but I can't figure out how to add it to my application. The help keeps talking about adding / registering it to Visual Studio, but I just want it to be relevent to the application I am developing. How do I display the help window How do I get the help content being displayed to be the help content I produced Thanks, John Ok, I used the Help Integration Wizard to integerate my .hxs help system into help. Then I used the following in my app to display the help. try { EnvDTE. DTE dte; dte = (EnvDTE. DTE )System.Runtime.InteropServices. Marshal .GetActiveObject( "VisualStudio.DTE.8.0" ); Microsoft.VisualStudio.VSHelp80. H ...Show All
Visual Studio Express Editions String table resource with static library
Hi all, I want to use string table resiurce with my static library. Is it possible to embed the resource file in library And as per what I have read, we use Loadstring() method to load the string, but this requires HINSTANCE handle, how do I get it in my library Any help will be greatly appreciated. Regards, Smriti Well, that oughta work, either with a NULL or the hInstance you got in WinMain. Next, make sure that the string resource ID number matches the one you used when you created the resource with the resource editor. ...Show All
Visual Basic A list with key-value pairs sorted by adding sequence?
Hello, i need a key-value pair list sorted by adding sequence like a collection. But i see that the Dictionary Class, the HashTable Class, the Sorted List Class seem not to do that. Must i use two Collections one with the keys a second with the values for that, or does such a list exist Regards, Markus What your probably looking for is a sorteddictionary collection which is avaialble in VB2005 Sorted Disctionary Class http://msdn2.microsoft.com/en-us/library/f7fta44c.aspx This represents a collection of key/value pairs that are sorted on the key. ...Show All
.NET Development Serializing objects without .Net attributes
Hi. I'm trying to serialize objects without getting the additional " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" " notes at the root section. Does anyone have any idea how can I manage to do so Thanks, Izhar Create an XmlNamespaceManager, and add a namespace to it with String.Empty as both the prefix and the namespace. Pass this into one of the XmlSerializer overloads that takes it, and you won't get the xs/xsi namespace declarations. It's not the most obvious thing in the world I have to admit......!! ...Show All
SQL Server Domain group logins failing on SQL 2k5 workgroup
This question is regarding a brand new out-of-the-box SQL Server 2005 Workgroup Edition install. The old SQL Server 2000 server is working properly with regard to the issue we're having: We are using Windows Authentication, and have created SQL logins for about 40 different groups on our domain. We've given those logins the appropriate permissions on the databases they're supposed to be able to access. The SQL Server is not a domain controller, but is a member of the domain, and domain logins do work for Windows-login purposes on this box. The problem is that when users try to connect to the SQL server, they are denied access. An error 18456 is thrown, and logged in the Application event log stating "L ...Show All
SQL Server UDF to format as XML
Is there a way in RS2005 to create a UDF that will take an XML field as an input, and display the XML formatted (similar to how IE formats XML files, structured, but without the need to expand/collapse sections). Right now I can display the XML data from the field in a textbox, but it displays as one continuous string, rather than nicely structured for viewing. Thanks Kory I've searched around, and this doesn't seem to be trivial, but it seems it should be In .NET, isn't there any classes that take a text string, apply XSLT to convert to HTML But then it seems that this wouldn't still be sufficient as the textbox control in RS isn't a rich textbox for displaying HTML content. Another option ...Show All
Visual Basic Loop in a recordset
Hi If i use: Dim strSQL As String strSQL = "select * from samlekursus where kategoriId = " & Me .Combo_kategori.SelectedValue & " and kursusId = " & Me .Combo_kursusnavn.SelectedValue & " " Dim objCmd As New OleDb.OleDbCommand(strSQL, opstart.objConn) opstart.objConn.Open() Dim objRdr As OleDb.OleDbDataReader = objCmd.ExecuteReader() If objRdr.Read Then End If How can i get all records into a textbox In asp i would use do while objRdr.eof But how do i use it here Alvin ...Show All
