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

Software Development Network >> Peter Bernhardt's Q&A profile

Peter Bernhardt

Member List

Suneel VLN
Craig M Jackson
RichLeyshon
nobodyman
m.raj
langalaxy
Jebat
M.N. Ahmed Sahib
samssb
IamManick
markios
dmkp231
Alexey E.Rybakov - CpsLabs
programmer01
sumit kr
SurreDeth
Tarey Wolf
alwayslearning
arcliner
Old Fart
Only Title

Peter Bernhardt's Q&A profile

  • Software Development for Windows Vista Is WF worth it? Convince me!

    So, I came back from TechEd enthused and raring to go with the new Workflow technology. But, after installing the June CTP and working with it a bit I am becoming disillusioned. The whole purpose of WF is to ease development and maintenance, is it not It seems to be making my life harder - having to go into code and hardwire if-then CodeConditions and build events and interfaces out the wazoo to do some simple passing of data. Once these things are built, I have to try to explain it to other developers who may not be as up to date on WF concepts and it just seems like a mess. Am I wrong Will the benefits pay off in the end Is the IDE interface just a bit immature and perhaps this is something that should be tabled and addressed again ...Show All

  • SQL Server Getting SSIS running on Web Server

    I need to be able to run SSIS packages form an asp.net (win 2k3) web server. Wrox has a book out "Professional SQL Server 2005 Integration Services" where they call the dtsx package directly using the following vb.net snipette: Imports Microsoft.SqlServer.Dts.DtsClient Dim ssisConn As New DtsConnection ssisConn.ConnectionString = String.Format("-f ""{0}""", strMyFilePath) ssisConn.Open() As you would expect this works great on a workstation that has BIDS installed on it but does not work on a web server where sql client tools are not installed. Without install sql tools on the server what needs to be done to get this functioning as coded How about calling packages that are insta ...Show All

  • Software Development for Windows Vista How can I get Workflow Status from Tracking DB without using SqlTracking and WorkflowStatus?

    How can I get Workflow Status from Tracking DB without using SqlTracking and WorkflowStatus property, but by select  statement from DB Here is some tsql code to get the most recent status value for each activity in a workflow (just change the hardcoded workflow instance id or move the code to a proc with workflow instance id as a parameter).  Activities that have not yet executed (or will never execute, for example in a branch that is not executed) are listed as 'Initialized' and the Context values are null.  Hope this helps. Thanks, Joel West MSFTE - SDE in WF runtime and hosting This posting is provided "AS IS" with no warranties, and confers no rights   DECLARE @Workflo ...Show All

  • Visual Studio Team System webtest - parameter names and values not getting recorded

    I'm trying to record a very simple test on a very simple aspx page. after recording my test that involves entering data in to two text fields and hitting submit - the parameter names are blank for the request. Also, the values for each parameter are a series of squares, rather than the data I've entered while recording. Please note that I've sucessfully recorded other tests on other pages. The code for the page I'm hitting is pasted below. I will say that my huntch is that this is related to the use of __VIEWSTATE. Any help would be appreciated. thanks < xml version="1.0" encoding="utf-8" > < xml-stylesheet type="text/xsl" href=" http://www.w3.org/Math/XSL/mathml.xsl " > ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Reading the buttons of Joystick Saitek x52

    Hi all, Did anybody come across a C# sample that relates to Saitek X52 I have found some generic Joystick samples which help me read the buttons EXCEPT the Mode button. The GetButtons() function returns the codes of the pressed buttons, but I cannot get the status of the Mode button out. I just spoke to Saitek support - No .NET samples whatsoever. Any tips will be appreciated. Best Moni. Does the mode button show up on the DirectInput setup wizard in the control panel You can test all the buttons in there. If it does NOT then this means the driver does not expose it and no DirectInput application could read it, managed or native. ...Show All

  • Visual Studio 2008 (Pre-release) ScaleTransform a Visual to create reflection effect

    Hi I'm trying to apply a visual to a border to make it reflect the content above it, the problem here is that I need to set the CenterX and CenterY to be half the size of the visual. Now the values are hardcoded, you can see what I have below. Is it possible to do this with XAML < Style x:Key = " brdAdorner1PgProductFilter " TargetType = " {x:Type Border} " > < Setter Property = " Grid.Row " Value = " 4 " /> < Setter Property = " Grid.Column " Value = " 1 " /> < Setter Property = " VerticalAlignment " Value = " Top " /> < Setter Property = " Width " Value = " {Binding ElementName=grdVisu ...Show All

  • Windows Live Developer Forums Move a pushpin

    HI, Thanks everyone for the help. My next problem is simulating moving a push pin So far I can make a clickable pin, it highlights when it the user clicks it all ok so far. Then I want the user to click a new position on the map. The problem is that if I use map.AttachEvent( 'onclick' , HandleClick) then this disables the ability to click the pushpins! Does anyone know why this happens and how to get around it Many thanks Martin I have clickable pins and a map onclick event without issue see: http://www.lookupandsmile.com.au/what_map.aspx Here for the custom popups if you click anywhere on the map the popup is hidden. Maybe there is an error in your code It certianly is possible. John ...Show All

  • Windows Forms how to create desktop shortcut automatically by setup project?

    I'm now using visual studio 2005 standard version. By the setup project function, I create the .mis and .exe file. It runs successfully. However, I can not get the desktop shortcut or all program shortcuts. I have to make shortcut from the installed folder. Is there anyway to add shorts during the setup process automatically by visual studio 2005 Or should I choose to use another tool to make the setup project Thank you! Right click on your setup project in the Solution Explorer, and select "View -> File System". In the File System view, select "User's Desktop" in the tree view on the left. In the right-hand pane, right click and select "Create New Shortcut" In the shortcut ...Show All

  • Visual Studio Express Editions the overflow stack exception

    Hi everyone, I am trying to implement a merge sort with linked list implementetaion. as you know, to implement the algorithm of merge sort, we should use three nested function, mergeSort(), mergeSort(), merge(). So, because of this plenty of calling functions , the overflow stack exception is thrown. How can I fix it Thanks mergeSort(), mergeSort(), Overload of functions Try indexes or links... Exp: void* callprocedure(); ...Show All

  • Windows Forms Click Once: How to specify application folder?

    Hi all. I want to use click once deployment to upgrade window application. I made deployment package installing app to Program Files/MyApp. I want to upgrade application to the Programe Files folder. However, Click once put all the time the application to sub folder of Document Setting. This is none sense to me. Why does it install on the Document setting And I couldn't find the way to specify the location of folder. Isn't it the common sense it upgrade and put exe and dll files to application folder which is Program Files How to specify click once application folder If it's not possible, do we have to use it or just go with 3-rd party upgrading solution Any comment helps. Thank you. You can't control this ...Show All

  • Visual Studio an actual BUG

    Heaven forbid!! a BUG no way :-) There is no event on Display-tree click (web based CrystalReportViewer IE: DisplayGroupTree=True) Makes for a very weak implementation in that the report document must be supplied to the viewer on any postback - even if the postback is not related to the CrystalReportViewer object. I am quite familiar with work-around techniques, but i was HOPING after all these years of having the bug in VS2003 that the bug might be fixed in vs2005 -- guess not. :-( Sad in St. Louis ...Show All

  • Visual C++ How to convert "string" into "byte array" and vice versa?

    Hi all, I think most of you probably know the two .NET framework functions, namely Encoding.GetBytes( string ) and Encoding.GetString( byte[]), to convert string into byte array and vice versa. Now, I want to do the same thing in pure(unmanaged) C++. I searched the Internet but could not find any satisfactory solutions. I am really in need of help! Is there anyone to explain how I can implement these functions by not using .NET library Thanks a lot... Hi kirants, Actually you are right. I know the theoretical background but I cannot implement the necessary functions. I need the following two functions: 1. a function takes a string parameter and returns the unsigned char array re ...Show All

  • Visual Studio 2008 (Pre-release) problem with app.config for WCF service

    Hi All, I have this error popping up when i run a very simple WCF service which I am trying to host in a Console application. System.Configuration.ConfigurationErrorsException was unhandled Message="Unrecognized attribute 'type'. Note that attribute names are case-sensitive. (C:\\My Projects\\WCF\\Lab1\\DerivativesCalculatorSolution\\Host\\bin\\Debug\\Host.vshost.exe.config line 9)" Source="System.Configuration" BareMessage="Unrecognized attribute 'type'. Note that attribute names are case-sensitive." Filename="C:\\My Projects\\WCF\\Lab1\\DerivativesCalculatorSolution\\Host\\bin\\Debug\\Host.vshost.exe.config" Line=9 StackTrace: at System.Configuration.BaseConfigurationRecord.EvaluateO ...Show All

  • Visual Studio 2008 (Pre-release) FlowDocumentViewer Zoom and Mode Changed Events

    Hey all, is there any way to capture the FlowDocumentReaderViewingMode changed event or the Zoom changed event for the FlowDocumentViewer control. It would be very helpful if I could have access to these events, but it doesn't seem like they exist. Thanks for any suggestions, Corey ViewingMode and Zoom are both dependency properties. If you create a Mode=TwoWay, or Mode=OneWayToSource Binding, you can easily see when the properties change. - Doug ...Show All

  • Smart Device Development Displaying images using IImage - SRC rectangle ?

    Like many people who have been using the imgdecmp method to load jpg and gif images in previous OS versions, I'm now migrating to use IImage. I have my code working calling CreateImageFromFile() and then Draw() using NULL as the source parameter. I then get the entire image displayed in the destination rectangle that I specify. What I havent been able to do is to specify a source rectangle so that I can display only part of the image. Basically I want to be able to pass in : srcX srcY srcWX srcWY dstX dstY dstWX dstWY The API description of Draw() says that the source rectangle is expressed in 0.01mm units. So I have tried to do: pImage->GetImageInfo(&imgInfo); SetRect(&src, (int)(srcX / imgInfo.Xdpi * 254.0), (int) ...Show All

©2008 Software Development Network