prashantsable's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Performance profiler and obfuscator
I have two software questions. First of all does anyone know a good performance profiler package (besides CLR) Secondly, what is the best way to secure your intellectual property, by using an obfuscator or are there alternatives. What are the thoughts of Microsoft on this part. Cheers! Remmie wrote: ... does anyone know a good performance profiler package (besides CLR) ... Ants from Red-Gate has done well for me in the past: http://www.red-gate.com/products/ants_profiler/ ...Show All
Visual Basic Activating or opening an existing Excel workbook with Visual Basic from within a Visual Studio Project
Hello all, I have tried numerous ways to modify the responses to "Openening an Excel file from within project" to open an existing Excel workbook and also select and activate a minimized workbook but have totally struck out, Can anyone give me some guidance Also, where should I be looking for samples that answer such basic questions Thanks very much. Noel Rietman <% @ Import Namespace ="System" %> I will give this a try but I do not understand. I have not seen this in any of my books. What does the <%@ do Thanks Tom Hallmark ...Show All
Visual FoxPro a post card printer?
ok i made a nice little software package for my first client and at one point in my prg he needs to print addresses on a postcard. .... the software works fine and does everything good. except every couple postcards that go through his standard (average) printer will jam and the printing will stop. Does anyone know the type of printer my client needs in order for him to print these things properly dimensions of post card 5 3/4 inch (length) 3 3/4 inch (width) thickness/height= your average laminated postcard. A working one. ;-) "Laminated" is suspect because there may be heat problems in laser printers. Most applications that print postcards do them when they're packaged in perforat ...Show All
Smart Device Development ActiveSync Permissions? - Running VB .Net code to create directories/copy files over to a winCE/wm5 PDA...
Hi, A Colleague has written an app in VB .net to copy files over to the application directory on the PDA (symbol mc3000 running WinCE). It fails due to permissions. Does anyone have any clues on how to change permissions on active sync I have created an 'account' with the PDA via active sync. Mike Parsons It copies all of the files over, except the files that are in a directory below. It failes to create this directory, therefore cannot create anything below. Any ideas why it cannot create a directory but can copy files over Mike ...Show All
Visual C# How to convert an Object in session to OdbcConnection?
How to convert an Object in session to OdbcConnection Thank you. the codes are here. OdbcCommand odbccmd2 = new OdbcCommand("select 查看 限 from 限信息 where 用 名='" + Session["UserName"] + "'", OdbcConnection(Session["dbcon"])); OdbcDataAdapter odbcadp2 = new OdbcDataAdapter(odbccmd2); DataSet ds2 = new DataSet(); In C# to cast an object to a type without doing any runtime checking (and hence throwing an exception if you are wrong) use the following syntax: ((OdbcConnection)Session["dbcon"]) To perform a safe cast that returns null if it is not correct then use this: OdbcConnection conn = Session["dbcon"] as OdbcConnection; N ...Show All
Internet Explorer Development Problem debugging embedded Client Script using IE7
We are getting an error when trying to debug client script (VBscript and JScript) from the Running Documents window using VS2003. This only happens when the script is inline on an asp page. If there is a .js file, there is no problem. Here is the error we get: "The following breakpoint cannot be set: bla bla bla No executable code is associated with this line." I am about to uninstall IE7 and go back to 6 because I am unable to debug our client-script-heavy applications. Any help would be appreciated. Thanks, Kevin One of the developers uninstalled IE7, and he was able to debug normally from within Visual Studio 2003. The other develo ...Show All
.NET Development How to disconnect the recordset that has been upgraded to .Net
Hi, I have a function "FetchRecset" that just populates the recordset when the SQL string or the stored proc name is passed and it looks like this in VB6.0. Public Function FetchDiscRecSet(CmdSQL As String, _ rsResultSet As ADODB.Recordset, _ Optional Updateable As Boolean = False) As ErrInfo Dim cnConnection As ADODB.Connection Dim rsTemp As ADODB.Recordset Dim strConnectString As String 'Initialize connection object Set cnConnection = New ADODB.Connection cnConnection.CommandTimeout = c_Timeout cnConnection.Open gc_ConnectionString Set rsTemp = New ADODB.Recordset With rsTemp .ActiveConnection = cnConnection .CursorType = adOpenStatic .CursorLocation = ...Show All
SQL Server Install and Uninstall problem
Mike, I am having the same issue, but a slightly different situation. I installed sql express...then thought I should uninstall and install sql express with advanced services...got the sa login error described in this thread but with error number 29521. the summary log says this...should I also send you the error log referenced in this log Microsoft SQL Server 2005 9.00.2047.00 ============================== OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600) Time : Fri Jan 05 09:59:01 2007 Machine : myname Product : Microsoft SQL Server Setup Support Files (English) Product Version : 9.00.2047.00 Install : Successful Log File : C:\Program Files\Microsoft SQL Server\Setup Bootstr ...Show All
Visual Studio 2008 (Pre-release) Strange menu bug with July CTP of Interactive Designer
I just installed the July CTP of Interactive Designer on top of Vista build 5472. None of the menus across the top (i.e. File, Edit, View, Format, Project, etc...) will open up. I click on it and the background turns gray as if the menu is active, but none of the menu items display. Anyone else run into this problem Anyone have a fix Thanks! I am not seeing that problem on the same build of Windows Vista. The first time I tried, it appeared that there may be a problem...but it was just delayed the first time. I'd recommend you work with the EID team on their blog or their forum . Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.msn.com ...Show All
Visual Studio Express Editions Respond (trap) Windows Pop-up messages
I have been trying to find an easy (if possible) way to get status on a Windows pop-up window. For example I am using .CopyFile to copy say 30 files (individually) from on directory to another. I run out of disk space after number 5 and I get a Windows Message "Destination Drive Full". I would like to trap that and jump out of the copying routine. Right now I would get another 25 messages of Disk Full. Any help would be apprciated. Hillimonster Pseudo COde: Try System . IO . File . Copy ( "Source" , "Dest" ) Catch IOEX As IO . IOException 'DO SOmething her to respond to error End Try 'COPY METHOD Exceptions: System.IO.DirectoryNotFoundException: The path ...Show All
SQL Server Return Top row from a ResultSet - SQL Server (TOP)
Hi all, I need to return only the top row of a ResultSet that is generated from my Query but can't seem to find anything in SQL Server 3.0 Mobile that allows me to do that. I know in SQL Server (Desktop) I could use the TOP keyword. The query I have is as follows, and just need the top row. Now the returned resultset will, in time, be massive, and there is just no way I can afford to return this amount of data in my application only to take to the top/first row. The query I have is as follows... SELECT * FROM tbl_NSP_AnswerSet WHERE (DateCompleted IS NOT NULL) ORDER BY DateCompleted DESC (I want the last record that was inserted into the database) Thanks Hi SELECT * FROM tbl_NSP_AnswerSet WHERE ( DateCompleted I ...Show All
Visual Basic Show right click context menu over selected node treeview
Hiya, I have a treeview and want to display a context menu when the user right clicks on a node. I want the context menu to appear next to the node that is clicked. At present the menu is popping up at the top of the screen. My code private ClickedNode as TreeNode Private Sub JobTreeView_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles JobTreeView.MouseDown Dim ClickPoint As Point If e.Button = MouseButtons.Right Then ClickPoint = New Point(e.X, e.Y) ClickedNode = Me.JobTreeView.GetNodeAt(ClickPoint) Me.JobTreeView.SelectedNode = ClickedNode End If End Sub Private Sub JobTreeView_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Figuring out the angle a ship is pointing at
Do any of you know Asteroids, that classic arcade game, something similar to that, I am trying to make (but much cooler of course ). I have just started with xna, and I wanted to do something like that, I would say that I am pretty proficient in C#, but don't know at all how I could figure out the angle of a ship, and change it when the person moves the keys...obviously, the x, y is easy, but how would you figure that out, and rotate the image through xna Is it easy Look in the XNA documentation under 2D Graphics -> Rotating a Sprite. It's childsplay. Either as a global variable (bad!) or as part of a player class (good!) you'll want to store a RotationAngle variable. Use this both in your Draw() method ...Show All
Visual Studio Tools for Office Displaying Excel Chart In Windows Forms
Hi, I am using VSTO to get access to excel charts. It there anyway to have the created charts be displayed in windows form rather than within Excel When I run my application Excel starts up and my chart is displayed there in a worksheet, but I want the chart to be displayed in a form. And I don't want Excel to be openned at all. Best Regards, Armand you may find the following link is useful: http://www.codeproject.com/useritems/ExcelCSharp.asp ...Show All
SQL Server Changing ASP Application to use SQL Native Client
I am attempting to change an ASP application we've got to use SQL Native Client instead of MDAC and running into a problem. If I use ODBC driver our application runs without problem, but if I try to use the OLEDB provider certain pages are throwing the following error: Item cannot be found in the collection corresponding to the requested name or ordinal. The pages that are not working are using ADODB.Command object to execute a Stored Procedure and populate ADODB.Recordset object. The error is thrown when I try to access a field (by name or index) in the recordset. I am using recordsetname(0) or recordsetname("fieldname") to access the data in the recordset. I have other pages that are working that use this same technique, ...Show All
