CLIPER's Q&A profile
Software Development for Windows Vista Building XPS printer driver on windows XP
Hi I want to use XPS printer driver on Windows XP. while installing this XPS printer driver on windows XP it's asking for some DLL files (ex. xdwmark.dll, xdcolman.dll). in WDk folder there is no such DLL that means i have to build this DLL from WDK building environment. when i am trying to build these dll from WDK's Windows XP build environment i am gettting following warning : [source path ] is not valid for the current OS target . can you help me how can i build these DLL for XP I am able to build these DLL from Windows Vista environment. but while printing from this d ...Show All
Visual Studio Team System AspNetDevelopmentServer on TestInitialize? Possible?
I have a large number of TestMethods that all reside within the same test class. Currently they all have the exact same AspNetDevelopmentServer attribute applied to them, and they all do the TryUrlRedirection. I was hoping to eliminate some duplication and be able to do something like this: Public Class AcceptanceTests Private _Target As MyWebService <TestInitialize()> _ <AspNetDevelopmentServer("BusinessLayer", "%PathToWebRoot%\BusinessLayer")> _ Public Sub MyTestInitialize() _Target = New MyWebService WebServiceHelper.TryUrlRedirection(_Target, Me.TestContext, "BusinessLayer") End Sub <TestMethod()> _ Public Sub SomeTestMethod() _Target.MethodUnderTest ...Show All
Visual FoxPro Right to Left Screen
1- How Can I make a Program Designed by VFP 9.0 Language Start from Right to Left Without Pressing (ALT + Right Shift) Keys 2- In Which Way Can I Make a Program Designed by VFP 9.0 Language to Dail Phone Number Thanks i think you can do the following 1 - _Screen.writetoleft = .t. set sysment to rtljustfiy you can put these in your config file Greetings, Mahmoud Fayed C/C++,CA-Clipper & VFP programmer www.sourceforge.net/projects/fglib www.sourceforge.net/projects/doublesvsoop ...Show All
Visual C# Else if statment
Here is some of my code, I get 2 errors, how would i fix it [code]#pragma warning disable if (lcarrier.Text == "Altell") ; { endadd.Text == "@message.alltel.com"; } else if (lcarrier.Text == "AT&T"); { endadd.Text == ("@mmode.com"); }[/code] My 2 errors are ...... _ Invalid term else and ; expected when comparing text, always use the Equals() method, not the operator = overall your code should be : if (lcarrier.Text. ToLower().Trim().Equals (" a ltell")) { endadd.Text = "@message.alltel.com"; } else if ...Show All
SQL Server Flat File Source - Add Output Field
I am moving data from a flat file source to a SQL Server table. But I want to add a columm that IS in the destination table, but NOT in the source file. Say the table column name is XXX in destination table, and there will be a global variable called @[User::XXX] that remains constant throughout the package. I would like to put the variable value into the destination column, even though the source file does not contain the field. Is there an easy way to do this Thanks! This was the solution. I actually came across that while trying to solve a problem or recalculating and input field while passing through. ...Show All
Software Development for Windows Vista issuedTokenAuthentication\knownCerticates Validation Problem
Hi, I am in the midst of porting over the Remote STS samples (from here) to the July CTP. I am faced with an issue that I totally have no idea how to solve. My Service config behaviour config looks like this: <serviceBehaviors> <behavior name="serviceBehavior"> <serviceCredentials> <serviceCertificate findValue="Fabrikam" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My"/> <clientCertificate> <authentication certificateValidationMode="None" revocationMode="NoCheck" /> </ ...Show All
Visual Studio Team System Apply new process template to project
We have customized the TFS process template to our development. I'm wondering if it is possible to move, copy or convert existing project to this process template in some way There is mainly GUI changes to the forms, but also som new fields that later shall be used by custom controls. what is the safest way to apply the new process templates Just to apply the new templates by running witimport commands for every project Yes, it seems like I have to go the long way in this case. This feature would be on my wishlist for future versions - the possibility to apply a new process template for existing projects and get an indication of what needs to be done (required changed work items) to satisfying the n ...Show All
Windows Forms VS2005's Form Designer can't find the event's handler if defined in parents class. (VS2003 works)
My forms' structures are like that: public __gc class VFormBase : public System::Windows::Forms::Form { . . . public: virtual System::Void btn_Click(System::Object * sender, System::EventArgs * e) { DoSomething (); } }; public __gc class MyDialog : public VFormBase { . . . this->btnOK->Click += new System::EventHandler(this, &VFormBase::btn_Click); . . . } there is no function body for btn_Click in MyDialog. I could edit this forms in VS2003's Form Designer but after migrate the project to VS2005 non of my 300 dialog opend by VS2005's Form Designer and I recive this error : "The method 'btn_Click' cannot be the method for an event because a class this class derives from already defines the m ...Show All
SQL Server Running the package through C# UI
one more guidance needed with regard to the Quotation marks path = @"D:\SSISProject\Integration Services Project1\ArchiveTicket.dtsx"; jobCommand = new SqlCommand(@"xp_cmdshell 'dtexec /f "'path '" /Set \package.Variables[User::ArchiveFileType].Properties[Value];""Excel""'", cconn); How Do i set the path's value in c# the quotation marks are wrong again. cos i want to set value of path according to selection in the UI. Select("deviceUniqueId = '" + deviceUniqueId + "'"); is an e.g of Doing in C# but when i implement it through text it does not recognize Thanks Jas Hi! Thanks For your reply! but this is ve ...Show All
Smart Device Development Web page or Mobile Application For A PDA
hi there i have been tasked with developing my first application for a mobile device, in this case a PDA. we already have an ASP.NET website out there. however when i tried to access it via the PDA i noticed that the javascript was not working. also the page was scrunched up due to the small resolution. as i see it, i have 2 choices: - develop a subset of ASP.NET web pages for the PDA to cater for the smaller screen resolution. - develop a fully fledged mobile application for the PDA. my boss is keen to explore the web page scenario in order to save development time. however i am keen to find out what the pros and cons are of both methods from a more experienced PDA .NET developer. any advice much appreciated. its important i u ...Show All
Visual Studio Express Editions "This project is out of date" on Debug Immediately After Successful Build
When I try to run my application with the debugger, I get a pop up which says: Visual C__ 2005 Express Edition This project is out of date: ProgName - Debug Win32 Would you like to build it [Yes[ [No] [Cancel] [ ] Do not show this dialog again I find this somewhat bothersome, because the very last thing that I did just before that was build the application. And the build did complete successfully (immediately before I clicked on Start Debugging -- F5.) Nevertheless, I've debugged the application and it works OK. But is there a solution to this annoying pop-up Dan The compiler will check the file time on your project, since you pre-build the project before running it, its only informing you that its l ...Show All
.NET Development .NET 2.0 Real Time Requirements
Hi. Probably .NET 2.0 and realt time requirements shouldnt be on the same sentence. I'm trying to control a machine that set's me some real time requirements, the machine fires events, inside those events I have to do some processing. On one of them I have less than 200ms to performs the work that I need. 200ms is already very thight I cant waste more than 180ms. Per minute I have fired at least 120 of these events I have to handle all of them and can't stay on them for longer than 180 ms. My question is, is the .NET Framework suited to this kind of work Another thing that I must say to help on the discussion, if I waste more than 180ms the machine stops, and that can't happen I really have to meet the time!!! Even if ...Show All
SQL Server Determine status of processing cube
From C# I need to determine if a cube is currently processing. We are trying to avoid running MDX against a cube while in the act - it results in an error message to our users. Does anybody know of a way to do this Maybe with AMO Thanks in advance, John Hello John, There is no easy way of doing this in AMO, but you could use the DISCOVER_LOCKS schema rowset to test whether there are write locks on your cube. The LOCK_STATUS and LOCK_TYPE fields returned by this discover could help you find this out. Hope this helps, Artur ...Show All
Smart Device Development UPnP (once more): linking problems
Dear all, I am writting an application for windows mobile in VC++ 2005 and when I compile my program, I get error LNK2001: unresolved external symbol IID_IUPnPDeviceFinder and unresolved external symbol CLSID_UPnPDeviceFinder I included the "upnp.h" from UPnPctrl part of the MS Server Components but I get that error. I have also included the path to upnp.h in the project properties. I noticed that there is no .lib file included in the /lib directory of UPnPctrl part. do you think that this must be a problem Any help will be really appreciated. Thank you in advance. PS. The error comes up when I use the CoCreateInstance(CLSID_UPnPDeviceFinder, NULL, CLSCTX, IID_UPnPDeviceFinder, (void **) &finder); ...Show All
Visual Studio Tools for Office Accessing Word 2007 BuildingBlockEntries
Hello, I would like to programmatically delete a Word Interop BuildingBlock, and am running into several problems. 1. In VBA, I can use this syntax, which works: Dim t As Template Dim bb As BuildingBlock Dim strName As String Set t = ActiveDocument.AttachedTemplate strName = "TestMe" Set bb = t.BuildingBlockEntries("TestMe") '(error if does not exist) bb.Delete 2. Using VB.Net/VSTO, I am unable to use the Word 2007 BuildingBlockEntries collection - can't even get this code to compile. Dim t as Microsoft.Office.Interop.Word.Template = Nothing Dim bb as Microsoft.Office.Interop.Word.BuildingBlock = Nothing t = doc.AttachedTemplate bb = t.BuildingBlockEntries("TestMe") ...Show All
