Zhiqiang Feng's Q&A profile
Visual Studio Project reference problem
Hi, I want to create a template solution with 2 projects. One of the projects has as reference the other projects from the same solution. Can you tell me if is possible to do something like this and provide me the solution (an example) Thx, Marian Hi, thats no problem. In the project that shall reference the other, just right click refernces, click add reference, click on the project tab, chose your other solution as reference. ...Show All
Windows Forms ClickOnce Beta 2
I am having difficulties signing the manifests in ClickOnce. I've already taken care of the single named assembly problem but for some reason Visual Studio Beta 2 intermittently signs the manifest when I try to publish. I have obtained an Ascertia "code signing" certificate and a dialog window pops up three times. Are there any more quirks I am missing in ClickOnce Beta 2 I need help bad. See supplying the Publisher name is not only way that the application recognizes you. For this you have top go to the proper channel for the Application to accept your supplied Publisher name and recognize you the Va ...Show All
Visual Studio Tools for Office Access/Create DOM for MailItem.HTMLBody and Open Contact by EntryID
Hello, I have two questions, I wish to modify the html of a mail item when it is read in Outlook (so I can hyperlink key words, similar to Smart Tags). There are issues though when I straight modify it because it messes up the html. The best way seems to be to access the DOM. Does anyone know how I can do this Should I load the html first up into a web browser control OR is there a way to use Smart Tags when reading e-mails Second question: How can I open a contact by an EntryID I don't think looping through the contacts would be very efficient...so I was hoping to find a better way. Thanks! Modifying the ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Develop a console program that calculate and displays the charges for each customer who parked a car in this garage yesterday. ...Show All
Visual Studio MSBuild task does not work
Can you provide the full log from the Team Build One possibility is that the project file you are attempting to call doesn't exist on the Team Build machine, or it might be in a different relative location to the calling project file. Is this other project file checked into source code control What was the specific error you received --Rajeev As I said - there is no error log. the build just stops. you can try it: first build file: ... <MSBuild targets="mytarget"/> ... second build file: ... <Taget name="mytarget"> <Exec command="..."/> </Target> .. the second bui ...Show All
Smart Device Development Why can't I add an Image to a Button
I am working on a Pocket PC app. Using the Mobel Application Development Toolkit and writing it is VB. What I am trying to do is add an image to a button. I notice that there are not any properties for the button to do this (or function, or members). Also there is no help on trying to do this in any other way. Anyone now why you can't do this Yes I did look at those. I wonder why they just didn't add the image attribute to the button object. I did something similar to what you have just a little simplier in code There not buttons but Picture boxes ( ...Show All
SQL Server multiple-step ole db error
When trying to connect to sqlexpress, I get the rather uninformative error message: Error No. -2147217887 Multiple-step OLE DB operation generated errors. Check each OLD DB status value, if available. No work was done. Here's the connection string I'm using: strDbConn = "Data Source=.\SQLEXPRESS;AttachDbFilename=" & _ DbPath & ";Database=rawtf_1;Integrated Security=True;User Instance=True; " & _ "Trusted_Connection=Yes;providerName=System.Data.SqlClient" What can I do correct this problem I found the following: http://support.microsoft.com/kb/2694 ...Show All
Software Development for Windows Vista promote a transaction to DTC
Is there a way to forcefully promote a transaction to become a distributed transaction Because I got some code that runs flawlessly on Oracle and MS SQL Server 2000, but bombs out on SQL Server 2005 because the transaction logic tries to be too smart and fails doing so. The situation is that object A is opening a SQL connection and a reader while reading it comes to a situation where it creates object B which opens another connection to another database. On SQL Server 2000 and Oracle that works flawlessly, in my understanding because the transaction is already a distributed transaction. With SQL Server 2 ...Show All
SQL Server Need help with filtering fields with null and more
Requirements: 1) Cannot have results in which both m.homephone & d.homephone are both null, or both m.workphone & d.workphone are both null in the result set 2) We also do not want to see any combos where one homephone is null and the other has only the char 0....same for workphone...no null & 0 combinations. e.g. m.homephone d.homephone null 0 0 &n ...Show All
Visual C++ Lib debug problem
Hi, guys, I am trying to debug a project using visual C++ 6, which using some libraries in an SDK. I compile and run the demo in the SDK, there is no problems. But when I press F5 to debug and track, I cannot do it and assembly language appears; I cannot even enter InitInstance(). I open the stach, it is in SUMDLLAPI! 100f66e5(). I never meet such problems before. the libraries can be loaded and used; but cannot be debugged; I cannot observe the return values of any API in the lib. Thanks a lot. Damon Make sure you have no stray breakpoints active: Edit + Breakpoints + Remove all. Make sure you built the debug ...Show All
.NET Development Web Service Authentication Question
hi could you perhaps give me some information about this. How about restricting access to the web services by only allowing access from the local subnet i.e. if your network addresses are on the 10.0.0.* subnet, then only allow access from that subnet. This of course won't work if your network is using NAT for inbound queries ...Show All
.NET Development WebProxy Fails for https in IHttpHandler (*.ashx)
Hi, It seems WebProxy Fails to work when used with a "https" url in a IHttpHandler. you will get a timeout ! In a regular console application there is no problem with WebProxy . What is wrong here Derryck see example code : ---------------------------------------------------------------------------------------- using System; using System.Web; using System.Net; using System.IO; using System.Text; namespace ft_track { public class ft_track_handler: IHttpHandler { public bool IsReusable { get { return false; } } void process_my_post(HttpContext context) { try { HttpWebRequest req ...Show All
Visual C# Save as Targa
I was wondering if anyone knew a simplisitic way to save an image in the targa format. Otherwise I was going to write my own exporter/importer. Thanks for the advise in advance. You can see c++ targa loader in http://www.gpwiki.org/index.php/LoadTGACpp Encapsulate this code in class an use this on your project, too see targa format in http://www.gpwiki.org/index.php/TGA Other option, use this library http://www.mastropaolo.com/ page_id=20 ...Show All
Visual Studio Missing Icons and Bad Links in MSDN
Hello. I'm having trouble with my installation of MSDN. Some of the little icons that should appear next to some of the links don't show up, and many of the links don't work. When the links don't work, I get a JScript error "Object does not support this property or method." If I attempt to debug it, it's always a simple, one-line, code block, such as; alink_301.Click() This is an example of what the missing icons look like. The little box, next to Look here, should be an icon; Send feedback to MSDN. Look here for MSDN Online resources . But other icons Do show up, as in this case; Platform SDK: Perf ...Show All
Software Development for Windows Vista Communication between 2 different workflows
I have a host application (a windows service) and 2 different types of state machine workflows. The workflow1 executes a certain amount of workflow2 and waits for the workflows to return. To do this they need to communicate between each other. I thought workflow2 could send an event to workflow1, in order to tell him when he's finished. Everytime a workflow2 returns it send this event to workflow1, so workflow1 can check if the started workflows are all finished. But how can I send events from one workflow to another Any ideas, which dont use wcf Thanks You can accomplish this by having a local ser ...Show All
