Stephan Smetsers's Q&A profile
Microsoft ISV Community Center Forums find current path in VBA macro word
I have a macro in word. In this macro I have need of a function that find the current path. Try this Application.path which return the current working path. check out msgbox application.path ...Show All
Visual C# Cannot implicitly convert 'type' to 'type' error
Code: string processName = processTextbox.Text; Process a = new Process(); a =System.Diagnostics.Process.GetProcessesByName(processName); a.Kill(); It returns this error: Error 1 Cannot implicitly convert type 'System.Diagnostics.Process[]' to 'System.Diagnostics.Process' C:\Documents and Settings\Deru\Mina dokument\Visual Studio 2005\Projects\ProcessKiller1\ProcessKiller1\Form1.cs 30 21 ProcessKiller1 And the help(F1) doesn't help me out too mutch, It says it's trying to convert a type into a type... Now I get this: Error 1 Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keywo ...Show All
Software Development for Windows Vista Statemashine workflow - handleExternalEventActivity
is that the HandleExternalEventActivity must have to handle a different event in a Statemashine workflow why Can't they hand the same event like "approval" it is impossible to define a lot of events. error: Event " Approval " on interface type "TestStateWorkflow.Interface1" for instance id "7ef95267-b552-452f-ac43-2794c474b54d" cannot be delivered. Code: //..........workflow................. this.handleExternalEventActivity1.EventName = "Approval"; this.handleExternalEventA ...Show All
Visual C++ How to set/change path for .exe (microsoft development environment)
when I tried to run the debug version of a .exe file, it poped up a window (Microsoft Development Environment) and gave me the error message: Unable to start debugging. Unable to start program: c:\currentprojects\testbend\debug\testbend.exe The system can't find the file specified. Any idea will be appreciated. At first glance, that path looks correct. Are you sure you actually have a debug version of the program To be sure, go to Build | Configuration manager and change the Active Solution configuration to Debug (if it isn't already set to Debug). Make sure that the configuration shows your Testbend project, that the configuration for that project is Debug and that the Build column has a checkbox with a ...Show All
Audio and Video Development Controlling the starting video
I want to take my test and alter it so that it starts with a background image and buttons, but the video does not start playing until requested via a button. How do I prevent the video from playing from start up One way is to have two Titles: the first runs your existing code, and has no AV clips in it (and loops to itself). When the button is clicked, jump to the second title, which runs your video. ...Show All
Visual Studio DSL Setup projects and SDM command prompt - an experience
Hi, I'd like to share something that happened to me and cost me some pain I did some SDM and DSL development on the same machine, starting with SDM. To use SDM you need wix, but you have to install it yourself and (according to the documentation) you need to specify the location for wix through the WixToolPath environmet variable. (from Distributing System Definition Models) To build an MSI installation package for each of the samples in the SDM SDK using WIX, you must complete the following: Download the WIX tools (for example, download the tools to C:\Wix). Start the System Definition Model Command-Line Window. For more information, see SDM Command Line Window. Execute the following command: set WixToolPath=C:\Wix Execu ...Show All
.NET Development Passing Values from a Windows Service to a Web Service
Has anyone ever created a windows service that would query a SQL database and hold onto the results and then pass those results to a Web Service through HTTP Post Parameters: 1. Query SQL Database in own environement using windows service(C#). 2. Pass results from SQL query to client Web Service in external environment. It sounds very basic but I am new to Windows Services and Web Services. If anyone has any example code for download or an article on such a configuration, I would appreciate any advice. Thanks, Always Learning How to create a windows service: http://www.codeproject.com/dotnet/simplewindowsservice.asp How to work with DB (for beginners): http://www.codeproject.com/cs/database/DatabaseAcessWithAd ...Show All
Smart Device Development Using modem for data connection
Hi, I established a data modem connection using TAPI ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcetapi/html/cmconsampletspsourcefile.asp ) Now I want to send and receive data, but I can't find any function. I have a pointer to established call, pointer to opened line, but I don't know how to use it. Can someone help me (program is written in c# and run on WM5) Thanks Ivana What exactly you're trying to do Is this connection to another modem or to ISP (or modem pool with TCP/IP support) In the first case, why not use serial class for communications In second case why not use connection manager to handle everything and just use normal TCP/IP after connection is establish ...Show All
Visual Studio VSS 2005 Crashes When Creating History Report
My VSS 2005 is crashing when I - Open VSS 2005 Explorer - Navigate to subfolder - Right Click - Select View History - Check "Recursive" - Enter a recent date - Click OK - Click Report - Both Include Details and Differences are checked - Clicking either OK or Preview for any of the choices (printer, file, clipboard) causes a "MS VSS Explorer has encoutnered a problem and needs to close". Button choices are Debug, Send Error Report, Dont' Send. If I click debug, VS opens with a green arrow at the bottom of this method. Unforntuantely I dont know C++, so I dont know any other context to provide BOOL CStatusBar::SetPaneText( int nIndex, LPCTSTR lpszNewText, BOOL bUpdate) { ASSERT_ ...Show All
Visual FoxPro Error loading file
Hello, I can't open same forms and report, I getting error "Error loading file - record number n. "object" <or one of its members>. : Memo file c:\mypath...\my database.dct is missing or is infalid Is there a way to open these file I will deeply appreciate advices or ideas.. Thanks. Aleniko, It isn't help me, I can build, run exe and see the forms and reports, but I can't modify them. I have a project with several database thanks for you help ...Show All
Visual Studio Tools for Office How can i add some contents chosen from building blocks to the document surface programmatically?
Hi. everyone I'd got some questions about BuildingBlockInsert event. Please anybody help me! I want to insert a content chosen from building blocks into the document surface automatically when the user choose it from a actionspane's datagridview to which meta data of building blocks are binded. 1. How can i add some contents chosen from building blocks to the document surface programmatically 2. What is the purpose of Word.Document.BuildingBlockInsert event thanks in advance. Hi Jeon Have you used the online Help files There's an entire set of articles about using Building Blocks. Open Word 2007, press Alt+F11 to open its native IDE. Type BuildingBlock into ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to Using an Input Method Editor in a XNA's Game
How to Using an Input Method Editor in a XNA's Game http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/Using_an_Input_Method_Editor_in_a_Game.asp this is about directx,but how use in the XNA THX~ ...Show All
Windows Forms ListBox Problems
I am coming to terms with ListBoxes (C#, VS 2005). I have a ListBox which I populated by way of a "Collection" in the Properties Box, with the values "0", "1", ... , "9". I experienced two problems. First, to get the "SelectedItem", "SelectedIndex" and "Text" values to change, I found I needed to double-click on the new value, even though the highlight moved to the new value after a single click. This is hardly user-friendly behaviour. Is there any way to get these properties to change on a single click Second, I could not find a way to cast the selected item (or the Text property) to an int variable, either implicitly or explicitly, or whether I tried the origi ...Show All
Visual Basic Converting an Integer to String
Im trying to convert some integers to a string (which works fine) For example My Funciton MKI is working ok as far as i can tell Dim v1 as String = MKI(116) V1 then equals "t I wish it to equal "t" Can anyone offer any suggestions please For interests sake this is the MKI function Private Declare Sub CopyMemoryMKI Lib "Kernel32" Alias "RtlMoveMemory" ( ByVal hDest As String , ByRef hSource As Short , ByVal iBytes As Integer ) Shared Function MKI( ByRef Value As Short ) As String Dim sTemp As String = Space(2) CopyMemoryMKI(sTemp, Value, 2I) Return sTemp End Function as it turns out, all i had to do ...Show All
Visual C# VB.NET 2.0 to C#.NET 2.0 (Help Please)
I'm working on Converting a VB.NET 2.0 Project to C#.NET 2.0 and need a bit of help with this... Here is the VB.NET Code i'm coverting:: statz.Items.Item(2).Text = "0" For i = 0 To CInt (ClientList.Text) ClientID(i) = ListView1.Items.Item(i).SubItems(1).Text Socket(i).Close() Socket(i).Connect(ServerList.Text, 5050) If ServerList.SelectedIndex = ServerList.Items.Count + 1 Then ServerList.SelectedIndex = 1 Else ServerList.SelectedIndex = ServerList.SelectedIndex + 1 End If /****************************************************/ ListView1.Items.Item(i).SmallIcon = 2 Brendan Grant wrote: That main block would become: statz. ...Show All
