santosh42's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Using index buffers
I want to draw cube. And I want specify only 8 vertices, and then specify their order in special array. As I know index buffers allow to do so. But I can't find example. Please, write example of using index buffers. I wrote following program: using System; using System.Windows.Forms; using System.Drawing; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace ProgaX { class Forma : Form { #region Variables Device device = null ; VertexBuffer buf = null ; IndexBuffer ibuf = null ; PresentParameters par = new PresentParameters (); #endregion ...Show All
Visual Studio Tools for Office Uninstalling addins: removing menuitems in outlook
Currenty removing menuitems in outlook during ThisApplication_Shutdown like this bool found; do { found = false; Office.CommandBarPopup foundMenu = (Office.CommandBarPopup) this.ActiveExplorer().CommandBars.ActiveMenuBar. FindControl(Office.MsoControlType.msoControlPopup, System.Type.Missing, menuTag, true, true); if (foundMenu != null) { foundMenu.Delete(true); found = true; } } while (found); It does not work, however. Can anyone explain how to remove men ...Show All
Windows Forms Service Controller App cannot execute OnCustomCommand: Access is Denied
While making my way on learnig what is all that about by following MCAD/MCSD Self-paced training kit 'Developing XML Web Services and Server Components', in reaching page 92, I read: In addition to the Start, Stop, pause and Continue methods, you can use the ExecuteCommand method to run custom commands on your service.... So, I wrote the override code in the&nbs ...Show All
Visual Studio Rmt9x.mst not found error VS 2005 setup
I'm trying to install Visual Studio 2005 on windows vista (december beta). When the installer tries to copy the temporary files to start the installation, I get an error that says that the \vs\Setup\Rmt9x.mst file cannot be copied. I have already installed this copy of Visual Studio in Windows XP and it worked perfectly. Hi, Thanks for all your solutions. I got the basic idea of how to go forward. I was getting the same error ( " cannot copy Rmt9x.mst file " while copying the files to temp folder. I rectified it by copying the 'setup' folder' to my local and re-running the setup.exe f ...Show All
Visual Studio Look what happened after I installed SQL Server 2005.
Visual Studio Express 2005 Beta 2. SQL Server 2005 Express June CTP. After I installed the SQL Server 2005 books online, this is what happened to the visual studio documentation. http://hometown.aol.co.uk/shexec32/shexec32/images/screencorruption.png Look in particular at the table of contents. These strange topics appear all over the Visual Studio Express documentation. They appear to be fragments of the Net framework help. Sometimes, I can even see non-english characters (eg. from the Kanji range), which could suggest I'm looking at my contents of memory. This occurred after I installed the SQL Server books onlin ...Show All
Visual Studio 2008 (Pre-release) Is it possible to search for Values in DataGridview with Linq?
Hi, is it possible to search for cells values in Cells of a DataGridView using Linq. My target is to search values in a DataGridView without loops. You'd need to create some sort of adapter. An extension method, for example, could add a method to present the visible rows of the DataGridView as an IEnumerable<RowType> or the like, which could then be consumed as "from row in dataGridView.GetVisibleRows<RowType>()". RowType could take a dataGridView row and reference it internally, its properties accessing it: class RowType { private readonly DataGridViewRow _row; public Ro ...Show All
.NET Development Stored Procedure parameters
Hello friends. I am a software engineer working for a software company. Recently I have developed a software for vb.net and sql server which reads database metadata, stored procedures, foreign keys, stored procedure parmeters and generates full featured data access code for vb.net and sql server. It generates full, bug free and highly optimized code for playing with database tables, stored procedures, etc. Now I am extending this software to support Oracle database. I am able to read table metadata, read oracle stored procedures but " not able to retrieve parameter information from stored procedure in oracle ." DeriveParam ...Show All
SQL Server Subquery returned more than 1 value error
Hi group I get the above error in my SP when the tblHolidayDates has more than one record. Here is my SP: begin if datediff(day,getdate()-10 ,(Select HolidayDate from tblHolidayDates))= 3 AND DATEPART(dw,(select holidaydate from tblHolidayDates)) = 1 -- Monday Date SELECT su.SuspensionID, su.ConsentNo, si.SiteID, si.NameNo + ' ' + si.Address1 AS SiteAddress, si.SiteDesc, si.SuspensionStart, si.SuspensionEnd, si.Address1, si.BaysAttached, rd.RefValue AS NoticeDays, si.MergeID FROM Suspension su INNER JOIN SiteData si ON su.SuspensionID = si.SuspensionID INNER JOIN RefData rd ON si.NotReq = rd.RefCode WHERE su.Status = 'ACT' ...Show All
Visual Basic Access control on main form
I'm having problems accessing controls on the main form from another form.... I selected Public as the modifyers - see below Public WithEvents Test1 As System.Windows.Forms.TextBox but still can not access them from another form with the following code ... ( As you can see, i did try several different approaches to access the control "Test1" & several more that I can not show ...... none of them seem to work ) I assume somethings missing during "decleration" of the main window Public Sub NoError() Dim Mainwindow As New Main Mainwindow.Test1.Text = "Hello" Main.Test1 ...Show All
Visual Studio Add a project template in Package.
I am trying to create a user experience for creating custom workflows inside VS as a custom package. The behavior would essentially be the same as a workflow project, but I'd want to limit the types of activities available in the toolbox, and probably change the properties and commands. Certainly add menu commands. I'd need a custom project template and maybe some custom project item templates as well. The template I probably can create with the export template function in Visual Studio. I'd create a workflow project which does what I want it to do, then export that as a template. I could use some advice on what would be the ...Show All
Windows Forms Preview crystal report under VS.NET
I designed a crystal report under VS.NET but do not know how to preview it Any simple button to switch design view to preview just put CrystalReportViewer onto the form, then build app and preview your report there ...Show All
Visual C# Dll Help
Sorry for the Double Post i accidently posted this in the Wrong section. Hi, i have my mainform referenced in my dll proj. I am wondering how i can call the dll file to read a text file and send the text to a textbox on the mainform: On the mainfrm it isn't giving me the option to add the delegate "TextSender". Once i get that i should be fine with the app part of it. What i would want to put here is textReader.TextSender = ProcessText; public partial class mainfrm : Form { public mainfrm() { InitializeComponent(); } private void rfButton_Click(object sender, EventArgs e) { Op ...Show All
Visual Studio Express Editions password format
I have installed the VWD on Windows 2003 server and gone through the configuration several times. At this point the applications which I have developed which worked fine on my Windows xp are not up and running because of some sort of difficulty with the password format. When using the ASP.NET Webstie Admin Tool isn't able to recognize the password format. Can someone help me figure out how to configure this. I tried adding the System.Web.Security.MembershipPasswordFormat.Hashed command recommended by the http://msdn2.microsoft.com/library/kek09k9k(en-us,vs.80).aspx library. but I'm unable to get it to move. Th ...Show All
Visual C# Integration of MSDN Library with Visual Studio 2005
I have installed two versions of MSDN Library, and still my VS2005 doesn't recognise any local help at all. Because of some legacy code I need to keep VS2002, VS2003 and VS2005 on my system. My VS2005 is Team Edition for Software Developers. My installed versions of MSDN Library are Octover 2005 DVD for VS2003, and 8.0.50727.137. Thank you. Could you elaborate What do you mean by "doesn't recognise" Do you mean when you press F1 while editing code you don't get any help ...Show All
.NET Development Finally not called unless exception caught outside?
Is it expected that the code inside a finally block is not executed when the exception is not caught elsewhere Or perhaps I am seeing something else... in the following the code in the finally is never executed: Have you stepped through the debugger, or just run the program I suspect that the thrown exception is stopping the console app long enough for you to see that the finally block was executed. No - I am wrong. Your basic problem is that a try without a catch will just blow up. As such, the program dies because of an uncaught exception, and it does not run your finally block first. If you had a catch block in ...Show All
