Akram Hussein's Q&A profile
Software Development for Windows Vista deleting activities from the designer using the DEL key
I am working with the workflow rehosting example from MSDN. After I have dragged an activity from the toolbox onto the designer surface, immediately pressing the DEL key to remove the just inserted activity does not work for me. Only after I have single clicked on the activity, the DEL key works and removes the activity. Activities are shown as being selected, after they have been inserted from the toolbox (the selection markers are displaced). Does someone have an idea, why the DEL key does not remove the activity on the first trial I am assuming you are looking at the sample - http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp I couldn't repro the problem you are talking. ...Show All
Visual Studio 2008 (Pre-release) SVCUtil.exe
Hi All, I am working in WCF. Here my questio is, is it neccessary that to have Winfx SDK installed on the machine to use the SVCUtil.exe Next question, is there any advantage of using SVCUtil.exe instead of Add service reference Regards, Santha Hi, I used the command SVCUtil.exe in the command prompt under the path "C:\Windows\Framework\V3.0\Windows Communication Foundation".This is the path under which I have installed the WCF.But it does not have any SVCUtil tool but I have WSATConfig tool regards, Santha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Timing Function
Hey guys, Query PerformanceCounter is a Win32 function used for high precision timing...I was just wondering if it would be possible to use the same function to time an operation in a Win32 console application too...please let me know...thanks Yes, you can use QueryPerformanceCounter() in Windows console application. Everything that you can do in a Windows GUI application you can do in a Windows console application. The difference between the two is that console applications start off attached to a console, while GUI applications don't. ...Show All
Visual C++ Aero Wizards with MFC 8.0
We tried to convert our Wizard97 style Wizards to the new PSH_AEROWIZARD style. This does not really word, I think because of the different structure size of the header struct in MFC and Vista plattform SDK. Has anyone an idea Is there a workaround for this problem, which could make the wizard word both on Windows XP and Vista Tnaks for your help. Thank you Kenny, I have read your article already. But I did not find your source code for the Aero Wizard. My problem is located in the MFC 8 library. The code beyond does not work. It asserts when the CPropertySheet is beeing destroyed: #include "stdafx.h" #include "afxpriv.h" class CAeroWizardMfcApp : public ...Show All
SQL Server Cannot set the ProfileName on a merge agent
Hi, I am trying to create a new merge subscription using RMO on Sql 2005, but I want the new agent to use a non-default profile. I can set the ProfileName on the agent but it seems to have no affect. I was wondering, do I have the wrong Profile name This is the code I'm using subscription = new MergeSubscription (); subscription.ConnectionContext = conn; subscription.SubscriberName = server; subscription.SubscriberSecurity.SqlStandardLogin = sqlUserName; subscription.SubscriberSecurity.SqlStandardPassword = sqlPassword; subscription.SubscriberSecurity.WindowsAuthentication = useWindowsAuth; subscription.PublicationName = publication.Name; subscription.DatabaseName = publication.DatabaseName; subscri ...Show All
Windows Forms Hosting Windows Form Designer, BeginUpdate/EndUpdate methods?
I'm hosting the Windows Form Designer, and I'm programattically setting position (for undo/redo). when I do this, the contol visibly moves first horizontally, then vertically to its final position. I was wondering if there is any way (like the BeginUpdate/EndUpdate methods on some controls) that I can delay redrawing until I've bade all changes to the controls properties If possible, I don't want to have to inherit and override paint methods. You should be able to call SuspendLayout() / ResumeLayout(False) on the control you're designing. If that isn't suspending things enough, you could try using designer transactions (some controls delay updates while a transaction is open.) Try this (VB code): Sub ...Show All
Visual Studio Tools for Office Server side Mail-Merge using VSTO2005
I have been trying to get a prototype running for doing server-side mail-merge for the past week now using VSTO 2005 and am going nowhere.. Has anyone been able to successfully do this My constraints are: 1. Avoid having to install VSTO Runtime on client machines 2. Avoid using Word 2003 automation on server since its not recommended. 3. The source documents are a bunch of Word documents stored in a templates folder on the server. 4. We have to mail-merge using a runtime datasource, then send the document over the web using asp.net 2.0. If there is a good sample or article out there, I would really appreciate it. Thanks, JGP Hi JGP Given Martin's response about the Word ...Show All
Visual Studio Express Editions Exporting Application
Hi! This questions has probably already been answered... but I can find it if it has. Just starting out in Visual C++ Express (2005) and I have built a program that works great. Is there a way I can export the program so I can use it at work. I don't have Visual C++ Express at work, so simply building the program and "debugging" it everytime I need to use it won't work. Basically, I need to make my app like a regular program that I can use anywhere. Is this not possible Thanks I found the .exe in the solutions folder. I can run the program now. I just realized how it works. Obviously, any computer to run these programs will need to have the .net framework 2.0. Thanks. ...Show All
Visual Studio Tools for Office Find and replace for Strings over 255 charaters in Word
I'm trying todo a find and replace in Word 2003, replacing a found item with a string that is greater than 255 characters in length (believed to be the limitation due to the find and replace in word). My plan was todo a find to highlight what i wanted to replace, then just inserting text over that highlighted area, unless there is a better solution. If this is the best solution how do I go about setting the range values required to insert over the already highlighted text Any help would be greatly appreciated :) Hi Edward OK, you know you're supposed to ask general automation questions here : http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation&lang=en& ...Show All
Software Development for Windows Vista wimgapi and vb6
Greetings, Can someone advise me how to get the declaration, method, constants etc for using wimgapi in vb6 I have all the necessary support files .dll, .lib, .h, and the chm file, but I cannot seem to find the code for including it in my vb app. Maybe I just missed it somewhere. Any help would be greatly appreciated. Thank you. Here is a recent post that claims to have some working VB declarations for using WIMGAPI: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=727562&SiteID=1 ...Show All
SQL Server SQL Server 2005 Reporting Services Add-in for SharePoint, Installation
Setup: Windows server 2003 SP1, SQL 2005 SP2, Sharepoint Office server 2007, Report Services addin (CTP v9.00.3027). Using the Report server configuration tool, setting Report Server Virtual directory, end up with RS Configuration tool crashing. It appears to be happening on the task "Changing Secure connection level", & returns "System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object." any ideas The error log returns nothing but the above. However the event logs include; Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting adapter format BEFORE device creation?
I have a fairly simple problem. I'd like to see if the screen is wider than 1280 or not, before deciding on a 1280x720 backbuffer or a 1024x640 backbuffer. The latter will make the game (in windowed mode) work better on 1280x800 or 1280x1024 displays, which are pretty darn common these days. (Meanwhile, for Xbox, I'll just hard-code 1280x720) However, when I create the graphics device manager inside the constructor of my game, I can't seem to actually read the current display mode / adapter format in any way, because they are all NULL. So, to get this data, I have to create the device first. But to create the device, I have to first get the data. Catch 22! I'd prefer not to have to resort to P/Invoke -- is there a way to do this within pla ...Show All
.NET Development VS 2005 Array searialization problem
I am trying to consume a 3rd party web service in VS 2005 using VB. I have been able to create a web reference and point it to the WSDL. This automatically created my proxy class. Using SOAPscope I can see that the web service is working and accepting and returning the values I would expect. In .NET when I pass or return simple items (strings) the service returns what I would expect. However, when ever I try to pass or return the complex type of "List" the array into which it is to be placed is alwaye = 'Nothing'. I believe that the problem I am having is with .NET's serialization/deserialization of the array list. The WSDL (included below) line "<xs:restriction base="soapenc:Array">" has this error r ...Show All
.NET Development Connecting to SQL Database using Enterprise Library's Data Access block
Hello, I am creating a windows forms application in C# and I'm trying to connect to my SQL database using Enterprise Library's Data Access application block using the following code (btw, I'm sort of new to these forums and wasn't sure if there's specific way to mark code in a post, so i just changed the font and color): ConnectionStringSettings s = ConfigurationManager.ConnectionStrings["myConnString"]; Database DB = DatabaseFactory.CreateDatabase(s.ConnectionString); So I've created an App.config file defining my connection string, as seen below: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <section name="dataConfiguration" type="Mic ...Show All
.NET Development COM exposure of default properties
Hello. I'm having some issues getting default properties exposed to COM on an assembly I'm working on. For a simple example, let's say that I have an assembly that has a public property which returns a System.Collections.Hashtable: using System . Runtime . InteropServices ; using System . Collections ; using System . Reflection ; using System ; namespace MyAssembly { [ ComVisible ( true )] public class MyCSClass { Hashtable objHash ; public MyCSClass () { objHash = new Hashtable (); } public Hashtable myHashTable { get { return objHash ; } } } } I compile the assembly and make sure that it's exposed to COM. Then, to demonstrate that COM ...Show All
