Software Development Network Logo
  • Windows Forms
  • Visual Studio
  • Visual C++
  • IE Development
  • .NET Development
  • VS Team System
  • Visual FoxPro
  • Visual Basic
  • Visual C#
  • SQL Server
  • Windows Vista
  • Smart Devicet
  • Microsoft ISV
  • Audio and Video
  • Game Technologies

Software Development Network >> venp's Q&A profile

venp

Member List

Wendell G
Rhubarb
Dr. YSG
Leon Mayne
GS80
Esthera
clearlydotnet2
ninglima
nabeelfarid
soma34
Sujithf
InstantKarma
axg70
Michael J Brown
kjak
allison_h
rebecca M
Derek Nedelman
ming1127
Chidu
Only Title

venp's Q&A profile

  • Visual Studio Tools for Office VSTO 2.0 Excel Project Recurring Compile Error

    I have three Excel VSTO 2.0 projects in a single solution. When I build, I keep getting the following error in one of them: C:\Program Files\MSBuild\Microsoft.VisualStudio.OfficeTools.targets(96,9): error : The build process failed because all the worksheets in the workbook you are using in this solution are protected. Turn off the protection of at least one worksheet and then build again. The message returned is: Failed to add the customization. The other projects are essentially identical and never have this problem. I have cleaned out the projects, compared the .csproj files in notepad, nothing is different or out of place. The other worksheets in the other projects are protected in exactly the same manner. Further, when I unprote ...Show All

  • SQL Server ForEach Loop - Getting MD5 Hash of File

    Hi Guys, I'm importing logs from multiple servers from CSV format into a table. Inside the loop the 1st thing I do is insert the FileName into a table to ensure that I never process the same file twice. The problem is that multiple servers produce the same filename, so if server A produces Log20061110.csv - when I import the log from server B ( also called Log20061110.csv ) into the table, it of course runs into a problem. If there was some way for me to get an MD5 Hash of the file as a variable that would be solve my problem. Does anyone know how I could accomplish that Thanks Warrick Warrick You could try adding a script task that makes use of MD5CryptoServiceProvider(), or maybe just store the ServerName along with the fil ...Show All

  • Visual Studio 2008 (Pre-release) June CTP big problems with GridViewColumn controls

    I'm having a big, big problem with new behavior that was introduced in the June CTP. The problem has to do with the automatic sizing of controls that are placed in GridViewColumns. I have working code (at least working prior to the June CTP) that uses a FrameworkElementFactory and DataTemplate that is added to the CellTemplate property of a GridViewColumn. This allows me to change the control used within a column. I have a number of custom controls that rely on the control being resized when the column is resized. The problem is that controls added in this way are no longer resized to the full available column size. To illustrate this problem, I modified the code for the standard "ListView that uses a GridView Sample" . I modif ...Show All

  • .NET Development When is it safe for a breakpoint callback to walk the call stack with MDbgThread/Frame/Function etc.?

    I want to build a histogram of the number of times a particular method is called through various different functions. I’ve extended breakpoint to have a custom action that walks the call stack and added an extension to set these new breakpoints. But I have a problem! When I construct an MDbgThread with the breakpoint event’s CorThread the frame is always the exe’s Main method. In order to get sensible MDbgFrames from the thread I need to call Controller.Stop. If I keep hitting g in the console everything works. But this breakpoint is hit tens of thousands of times in interesting scenarios. My question: What magic is Stop doing that makes thread.CurrentFrame, NextUp/NextDown, Function etc. correct, and how can I do ...Show All

  • Windows Forms System.Deployment.Application.InvalidDeploymentException on some machines

    Hi! I'm getting the following exception when trying to install my ClickOnce-App on some machines: PLATFORM VERSION INFO  Windows    : 5.1.2600.131072 (Win32NT)  Common Language Runtime  : 2.0.50727.42  System.Deployment.dll   : 2.0.50727.42 (RTM.050727-4200)  mscorwks.dll    : 2.0.50727.42 (RTM.050727-4200)  dfdll.dll    : 2.0.50727.42 (RTM.050727-4200)  dfshim.dll    : 2.0.50727.42 (RTM.050727-4200) SOURCES  Deployment url   : http://192.168.23.105/system3/System3.application       Server  : WinGate Engine  Deployment Provider url  : http://192.168.23.1 ...Show All

  • Windows Forms Error when opening deployed project

    I've developed a Windows Forms Application in Visual Studio 2003. I built an MSI package using the setup and deployment projects setup wizard. I ran the MSI package on my machine (where I developed the application) to install it and I can run the application just fine. I deployed it on another machine but when I ran the application I get an error: Login Failed for user OFFICE\Display Wenzl. I have Sub Main as my startup project and this is the code: Sub Main() Dim currentUser As WindowsIdentity = WindowsIdentity.GetCurrent() AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal) If (Thread.CurrentPrincipal.IsInRole("OFFICE\PMS_Admin")) Or (Thread.CurrentPrincipal.IsInRole("OFFICE\PMS_Users ...Show All

  • Visual Basic debug after vb6 migration

    Any advice on issues with debugging a migrated vb6 dll Setup appears correct with an external program defined and starting when debug is started. Breakpoints are set, but never reached. It appears that the application is still referencing the installed (production) version of the dll (still vb6), rather than the debug version (.net). Perhaps registry settings are not being adjusted to support use of the debug version Any suggestions would be appreciated. To remove any doubt, unregister the original component with regsvr32 /u. Make sure you've registered the debug version of the .NET module with regasm. ...Show All

  • Windows Forms Bound DataGridView Sorting: One-shot sorting

    My clients want to sort a bound datagridview on command only, so that adding and editing rows does not change the row positions. The DGV is data-bound. It seems that whether I sort the DataView, the BindingSource, or the column(s), I cannot stop the autosort from happening without losing the existing sorting. One method would be to manage my own collection of DataRows; is there a better way ---Mike I'm having the same problem, but I'm having a hard time understanding how your solution was implemented. Can you provide some more detail on how you accomplished this ...Show All

  • Visual Basic Control USB Scanner from VB Application VS2005

    All, I need to be able to control a USB scanner from a visual basic application. Basically I need the user to put a document in the scanner, click a button in the application, and for the scanner to scan the document and either (1) return an image which I can then save or (2) to return the path of the scanned document (I would prefer the second option if possible) Can anyone help Cheers In Advance You can either use TWAIN if your scanner supports it or Windows Image Acquisition (WIA): http://msdn.microsoft.com/library/default.asp url=/library/en-us/wia/wia/overviews/startpage.asp ...Show All

  • Visual Studio Express Editions data search

    hi all i'm trying to figure out if its possible to search a database in a way similar to itunes search itunes search works on a key press and with each new charecter typed it refines the possible choices i know you can use 'wild charecters' to replace speciic charecters but am unsure where to start any advise would be apperciated thanks nice one thanks that was how was thinking of going ahead but just wasent sure if anyone had used any different ways of doing this thanks tim ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How good is directx normal calculation

    Hi; I've created a small (5 vertex by 5 vertex) heightfield mesh with adjacency information. The mesh is flat in the x-z plane, with a single overhead light. I raise a single point in the cente of the mesh, thus creating a small four-sided pyramid. I then recalculate the normals using mesh.computenormals.But instead of getting a symettrically shaded pyramid, I get an asymmetrical mess. The pyramid is fine, but the shading is wrong. As far as I can tell, this is actually the directx normal calculation going wrong -- perhaps because it doesn't use weighted vertices I've attached a picture of the result here. Does anyone know why it looks like this Is the default normal calculation really that bad or did I mess something up ...Show All

  • Visual Basic Sending text to another PC

    I am now trying to test the TcpClient and TcpListener, but the program just crashes every time. Is this something to do with the prgram or my computer If either, what is it! Ant_59 wrote: I am now trying to test the TcpClient and TcpListener, but the program just crashes every time. Is this something to do with the prgram or my computer If either, what is it! Without seeing the source code there's no way to tell. ...Show All

  • Software Development for Windows Vista WF State Machine and ASP.Net Interaction

    Hi, I'm looking at hooking up an ASP.Net application to a State Machine Workflow. I currently have one running beside a windows form. In my current windows forms solution I use the "workflowRuntime_WorkflowIdled" event on the form to check what state the workflow is in and update my form respectively. I'd like to do something similar in ASP.Net but have a suspicion that the "workflowRuntime_WorkflowIdled" event will not work in ASP.Net. I'm not sure about this as I dont understand how threading would work in ASP.Net with the workflow. Would events raised by a workflow instance (such as workflowRuntime_WorkflowIdled") be caught by the ASP.Net process I think not as the page may be processed and served back to ...Show All

  • Software Development for Windows Vista VB.NET unable to modify {app name}.exe.config on Vista

    Hello all, I have been trying to test some of our current VB.NET applications on Vista. Unfortunately I am unable to modify the settings file ({app name}.exe.config) after installing. I installed the application as a user that has administrative privileges. I tried to edit and save the config file but receive the following error trying to save it: "Cannot create the {file path} file. Make sure the path and filename are correct." which makes no sense at all... If I know the Program Files directory is now "locked down" however regarding configuration files, where should they now be loaded on installation If they are loaded to a path other than the application's home directory, will the runtime be able to locate t ...Show All

  • Visual Studio Team System Assertion failed: Duplicate entries found in the meta data. There may be a duplicate live [Domain]\[Account] in the constants t

    This post refers to another thread in the General section of the TFS forum ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=763844&SiteID=1) I already posted my comments in that thread and received some replies but eventually I was advised to move my question to this thread. Please read the general-thread for all history. By modifying the data further, you risk potentially making this worse, but are some diagnostics you can try: In the WorkItemTracking database, you can look at the metadata in its raw form by executing this stored procedure: exec dbo . GetAdminData 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 If you want to look for duplicates in the Constants table, the easiest ...Show All

©2008 Software Development Network