gobby74's Q&A profile
Visual Basic Help: How to speed up the process if doing the files (one by one) deletion to recycle bin
by using the following source code, i found that it take a lot of time to do the files deletion. Is there any setting that i could set to speed up the process please do help me. thank you Private Type SHFILEOPTSTRUCT hWnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer fAnyOperationsAborted As Long hNameMappings As Long lpszProgressTitle As Long End Type Private Declare Function SHFileOperation Lib "Shell32.dll" _ Alias "SHFileOperationA" (lpFileOp As SHFILEOPTSTRUCT) As Long Private Const FO_DELETE = &H3 Private Const FOF_ALLOWUNDO = &H40 Public Sub DeleteFileToRecycleBin(Filename As String) Dim fop As SHFILEOPTSTRUCT ...Show All
Visual Studio TSQL Debugger is not working - Unable to bind SQL breakpoint at this time.
Hi, When I put breakpoint into the stored procedure and do "Step into Stored Procedure" the break point became disabled and the message is "The breakpoint will not currently be hit. Unable to bind SQL breakpoint at this time. Object containing the breakpoint not loaded." I'm absolutely sure that this was working normally about 2 weeks ago. I have a suspicion about “VSTS - Database professionals CTP5” which I have installed recently in approximately the same time frame. I have posted this question in the “Visual Studio Team System - Database Professionals” group as well and so far response is that this tool should not have such effect. I have a number of developer’s workstation working normally and able to step ...Show All
SQL Server insert in row small chunks
hi, i have a big table (120 million records) and i want to take all this table and to insert it into another table. since this BULK insert operation can make all kind of performance problem i would like to make the bulk insert via small chunks. the table does not have any idintity. can someone give me an exapmle with rowcount or with a loop to make each time an insert into select statment and to insert in each time for example 5000 rows. help is appriciated, thx, Tomer See the BOL under Bulk Insert and BATCHSIZE. This breaks up the insert transaction into x rows (ie 5000) instead of doing a transaction for the entire record set. ...Show All
Visual Studio Mixed-mode debugger hangs
We have a quite large native C++ application with some parts in C++/CLI, and some GUI components written in C#. Recently, the mixed-mode debugger has become unusable for us because it hangs with a high CPU load as soon as the managed components are used. Visual Studio itself stays responsive, until I select 'break all' -- then VS itself also hangs, now without CPU load. During the high-CPU-load hang, VS uses ca. 59% of the CPU, our program (the debuggee) uses ca. 17%. The process explorer (from sysinternals) shows that VS uses CPU mainly in two threads which stay in ntoskrnl.exe. The number of objects marshalled also increases continuously. Here are typical call stacks for those two threads if I debug the devenv.exe and break execution: &g ...Show All
Visual Studio 2008 (Pre-release) Link ResourceDictionary to Code-Created Object
Hi there Perhaps someone knows of an easy way to do this: I have a XAML resource that defines the look of a tab control. Now in CODE I create a new instance of a TabControl, but I have now idea how to hook that tab control up to the style defined in the resource. Here is the resource file. It is added as a XAML file in my project: < ResourceDictionary xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > <!-- SimpleStyles: TabControl --> < Style TargetType = " {x:Type TabControl} " > < Setter Property = " OverridesDefaultStyle " Value = " True &qu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Calculations for projecting 3d points to 2d
Is there a calculation that will calculate 2dX and 2dY from 3dX, 3dY and 3dZ. I read somewhere about diving by Z values and eye distance, but what is the eye distance measure from ok, I thought there was a simplier way, i.e. without the matrix..something like X2d = X3d - (fraction/Z3d+eye dist.) But didnt understand the eye distance deal ...Show All
Visual Studio How can I find which files are updated by other users?
Hi, I am new in visual sourcesafe. When I open "Microsoft Visual SourceSafe" or Visual Studio, I can easily see which files or folders are being locked by other users. But when they check in the files I can't find whcih files are updated to update my own local files by "Get Latest Version". Is there a way to easily find this out Of cours I can use the comapre tool, but it is not wise in a 10000 files solution. :) Thank you. Thanks Richard. It seems good, but not enough. I need to know which files are updated before I decide to get the latest vesrion. Sometimes I do want to get the latest version, but it is important for me to know if someone has changed the file or not. Act ...Show All
Windows Live Developer Forums Positioning Custom Control Panel
Hi, I am trying to follow the article on how to create your own control panel: http://www.viavirtualearth.com/VVE/Articles/GettingStartedWithV3Pt2.ashx Using the following style instruction for "var panel = document.createElement("div")": panel.style.right = "10px"; doesn't work as I would like it to do. That means, that the custom made control panel is 10px from the right margin of the window. How can I achieve this Thanks for any hints! If you are adding the control through the VE api, it will probably default to adding it relatively positioned to the map control container. If you want your control widget positioned accordingly to the browser window, use absolute po ...Show All
Visual Studio Team System Navigation around Project Portal hindered by repeated display of Domain Login Prompt
Help please! I am a project manager and seem to be the only person afflicted with this problem in my organisation and my SysAdmin doesn't know what to do to overcome it. When I am in VSTS explorer, I can right click and select to show Show Project Portal. The project portal home page is displayed, and a few moments later, the login prompt is displayed. If I 'cancel' or re-enter my password three times I can generally navigate round the portal. (But am increasingly frustrated by the hindrance caused by dealing with the all the extra popup screens!) The login prompt is also requested for each project portal home page that I visit, and for some of the subordinate pages too. It may also be requested when I select to edit or view documen ...Show All
Visual Studio Visual Studio 2005 Standard Edition
I am new to Visual Studio 2005 and this product was already installed onto my computer. My problem is that I wanted to create a Database Project and noticed that the Database Project template is missing. Where can I go to fix this problem do not quote me but I don't think SQL Server Express has templates....but the full version does. I have VS2003 and VS2005 with SQL Server 2000 EE and SQL Server 2005 enterprise installed and I can see (but never used in my life) the SQL Server project template. I'll do a test on a virtual machine and get back to you soon on this. I hope it does help...for both of us! ...Show All
Visual Studio Express Editions I am trying to use the printDocument toolbox event and I am getting an overload statement
I am getting an overload statement for my printdocument. It says overload resolution fail because no accessable 'DrawString' accepts the number of arguments Structure ProductData Dim strName As String ' Product name Dim strDesc As String ' Description Dim intProdNum As Integer ' Product number Dim decPrice As Decimal ' Unit price Dim intUnitsSold As Integer ' Units sold End Structure ' Print sales data for each product. For intCount = 0 To intMAX_SUBSCRIPT ' Calculate the unit revenue. decRevenue = products(intCount).intUnitsSold _ * products(intCount).decPrice ' Accumulate the total revenue decTotalRevenue += decRevenue ' Print the uni ...Show All
Visual C# Accessing old(legacy)resource DLL in C#
Hi, Need help on how I can use data from old resource only DLLs in my C# .NET app. I have a collection of about 5 DLL's generated in 1998 that contain strings, images and sounds needed for this new c# application. I've attempted the following.... 1) to use add reference->browse to add the DLL to my solution but get and error saying it cant add because it needs a valid assembly or COM component. 2) attempted to use System.Resources. ResourceManager .CreateFileBasedResourceManager to load the resources, but I seem to be doing something wrong because it does not load anything into the datastructure. 3)I've searched around for any examples for how to do this but cant find anything with C# and old resource DLL. I've used resh ...Show All
Visual C# How to edit ico files in the solution?
When I double click on my application icon in solution explorer, it comes up in MS Paint, not in VS.net's icon editor. I checked file associations, and ICO files were not associated with anything, so I set them to VS.net -- made no difference. Tried Open WIth.. "Resource Editor" (Is that what the icon editor is called ) get modal message box "This file cannot be opened with the selected editor". Now if I reset the application to not have an icon, and attempt to edit the ico file, it opens with paint. How do I get it back in the icon editor again Thanks in advance this seems like it would be so easy... Thanks for the reply. As far as I know only an icon file can be used for this purpose (Applicatio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Graphics Device
Why do I keep getting an error box saying d3dx9d.dll was not found how do I fix that do i need to do somethink to the directx sdk after it is installed. i get the error when I try to compilie something with xna it does it with the space war start up kit or just if you compilie a new project with nothing done to it. The direct x sdk was downloaded on another computer because i us dialup could it be because it wasn't the redistributable version that they downloaded and its d3dx9d_30.dll i forgot the underscore 30 last time. ...Show All
Visual Studio Express Editions Visual basic printing question
Hi! I am a big noob at Visual Basic programming (started one day ago). Basicly what i need to to is a really small program which prints 12 different textboxes textbox_1 to textbox_12. What i have done is to manage to get a hang off how to print textbox_1 with the following code: Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawString(TextBox1.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(e.MarginBounds.Top, e.MarginBounds ...Show All
