Zhen WEI's Q&A profile
Windows Forms Windows 98/.Net Framework Problem
Hi, I have a ClickOnce, VB Express application that is working fine on many clients, except for a client who is stuck in the world of Windows 98. I have uninstalled, rebooted and re-installed .Net Framework 2 several times. The reboots seem clean, but when I attempt to Run the application, the file is downloaded and then Windows asks if I want to Run or Save the file. In either case, Windows attempts to open the file, Prize%20Money[1], but of course there is no application associated for this file. I assume that there is a problem with either Windows 98 or .Net Framework 2, but I don't have clue where to begin. Although, I'd like to tell the client to upgrade his old iron and get Windows XP this is not an option. Thanks for your sugg ...Show All
Visual C++ destructors and SEH
got code class A { public: ~A () { std::cout << "~A\n"; } }; void f2 () { int u = 0; //int z = 9 / u; throw (0); } void f () { A a; f2 (); } int main () { __try { f (); } __except (EXCEPTION_EXECUTE_HANDLER) { std::cout << "exc\n"; } } output : exc code : class A { public: ~A () { std::cout << "~A\n"; } }; void f2 () { int u = 0; //int z = 9 / u; throw (0); } void f () { A a; f2 (); } int main () { try //__try { f (); } //__except (EXCEPTION_EXECUTE_HANDLER) catch (...) { std::cout << "exc\n"; } } Output : ~A \n exc code: class A { public: ~A () { std::cout << "~A\n" ...Show All
Software Development for Windows Vista Installation problem in windows vista
I am facing problem during installation in vista beta2 OS. Windows installer is throwing error during registration of few dlls. These dlls are marked as "self registered" and are build in VS 2005. Also I have included the dependent vc8 merge modules along with the package. I tried to install in a clean XP SP2 OS. It installed with out any problem. Then I tried to install it in vista beta2(5342 and 5384 builds). It throws error while doing the self registration. After the first error message pops up, I checked the WinSxs folder for the dependent mfc dll. That time it was not installed. I ignored all message and finally able to see the mfc dlls in the WinSxs folder. Assuming next time it will install correctly as already depende ...Show All
.NET Development Invoke soap method with dynamic parameters
Hi Is it possible to invoke a SOAP method when the namespace (e.g. http://tempuri.org/), the method name (e.g. HelloWorld) and the method parameters are not known at design time. Thanks A couple of suggestions from another thread here: if you're just experimenting, you can try a tool like Web Service Studio . This tool provides a UI that you can point at a web service and allows you to call methods on it while showing what the soap looks like for the requests and responses. if you don't mind using WCF, you can use DynamicProxy . This will create a proxy for a web service at runtime and allows you to call methods on it. It is possible to implement this library for ASMX, but we don't have sample ...Show All
Smart Device Development How to Popup emoticons panel
I want to add a popup emoticons panel which displays when user clicks on. Do u have any idea how to implement in .NET. Plz guide me in this matter. Hi Ilya Tumanov, in this http://www.verichat.com/verichat_ppc/index.html you can find chat application for Pocket PC. ther u can find emoticons panel. not only this in another application i have seen popup color panel. in the similar in my messenger i want to get emoticons popup. Plz if u find any let me know. Thank You for responding ...Show All
SQL Server Moving reports backward from RS2005 to RS2000
Is there a nice way to get reports from an RS2005 project into an RS2000 project I know this sounds like an odd request but I have built reports in RS2005 that need to be deployed to a server with only 2000 on it. I don't really want to have to go in and re-draw all those reports. Any ideas would be most appreciated! Thanks, Eva ok... I have read your comment in Charlie's article - you entered your sql-statements right in the reports without using stored procedure. Best way for the downsizing-option... If you think about a scenario with stored procedures I think it would be worth thinking about a little "rdl-preparator-dwonsize-application" if you would have to downsize more than 15 r ...Show All
Software Development for Windows Vista Can I avoid serialization problems by going code-only
Hi I am trying to consider which authoring mode to use for designing workflows. We will only be providing compiled workflow types to the runtime and we will be designing workflows with the default worklfow designer in visual studio. Reading one of the posts on this forum there seems to be some limitations with the code-seperation approach in regard to serializing generic types. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=875768&SiteID=1 . In our scenario would we be able to avoid these serialization problems if we went with the code-only approach Cheers Duncan In most cases using the code only workflow would keep you from getting serialization errors but not all. Take a look at m ...Show All
Visual Studio 2008 (Pre-release) ListBox in a ListViewItem Data Binding issues
Hi All I’m currently trying to bind a list of values into a listbox within a listbox item. I have a collection AgentCountInfos filled with AgentCountInfo Object, each AgentCountInfo Object has a propety CountByStatus. CountByStatus is also a collection. I have not problem to bind the first list (AgentCountInfos) to a listbox using a DataTemplate. In the DataTemplate of the Listbox I had try to add another listbox to display item of the CountByStatus list but without any good result. Is there a way to make that To display a list of item in a listitem Here is all my code Thanks for your help Fred XAML.CS File public partial class ListSampleWindows : Windo ...Show All
Architecture SOA - Transaction/compensation/cordination
I have a challange. I have multiple services that are located on different server setups. They are build stateless N-tier architectures based on single call remoting. The services do not support the flow of transactions. This would also couple the services an go against the very idea of service orientation. But ..nevertheless, one needs to perform business operations that span multiple services. How do I best support this. Should I have the programmers do custom compensation code very time (clean-up) and accept that if something crashes the data is inconsistant or should I try to find/implement some kind of common cordination What are my choices Hi Siteadm, As you ...Show All
Windows Forms package for multiple applications
Hello, I have developed several apps and would like to put them in the package of deployment or publication. I also want to give the user the choice to choose which app(s) they wanna install on their machine. I know how to deploy one application. but still very cloudy about multiple app packaging. Any suggestion Well, i have tried to install the program but it won't work under VS2005. beside i found it quite complicated. so VS2005 does not have sth to package all the msi and run them automatically during setup ...Show All
SQL Server SSIS Crashes while validating Data Flows
Hi all, I'm stuck here when I try to open an existing package which contains several data flows, SSIS tries to validate each data flow and after a while a Visual Studio error message pops up and I can't do anything. The error message says : "Unable to cast COM object of type 'System._ComObject' to interface type 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSObject90'. This operation failed because the QueryInterface call on Com component for the interface with IID '...GUID...' failed due to the following error : The application called an interface that was marshalled for a different thread. (Exception from HResult: RPC_E_WRONG_THREAD)" Did anyone has seen this error message Any help will be appreciated. Sebastien ...Show All
Visual C# Getting the console AND GUI to appear simultaneously
Hello Everyone, I have Just moved over to C# from Java... When I ran Java programs with a GUI from an IDE both the GUI and the console window appeared, so I was able to send debugging information from the GUI program out theough the command line. How is this done when using Visual Studio (Using C# as the programming language). Thank you Chris Hi all, I'm sotred for VS2005. But I'm still having trouble with doing this in VS2003. We are migrating to 2005 soon, however until then I need to use this functionality in VS2003. The debugger tip is great: I'm not familiar with the debugger as of yet... but I intend to become proficcient with it soon! But atm, I'm debugging 'ad hoc' in VS 2003, and need the command line! Your ...Show All
Community Chat HAY! I'm not sure what is allowed in here
Serious Question.. I DID look for what I should do but.... Gee I spent two days gettin' nowhere! Can code be posted in here for other's use Do I need to send 'AS MADE' or erase all DLL and Exe files first I would suppose if OK in a ZIP I have some programs made with my FREE C# Express (I LOVE FREE) Thank you Bill! Ya' made me SO happy! Just some test programs with User Controls for the Mindstorms(tm) NXT... using my wonderfull! C# Express.. And Other (Smarter than I am) code which I think is is free to anybody.... Sorry folks.. I tried the Microsoft (tm) Robo stuff but I'm not smart enough to use it! EDIT: Sorry LEGO Mindstorms (tm) not the other NXT! Yes, you can post code here for others to use. If yo ...Show All
Visual Basic Find And Replace Command Not Working?
Good day! My Find/Replace Edit Menu command inside VB 2005 is not working anymore, and SQL Server 2005 as well. When I tried to check this feature in Microsoft Office applications, there is no problem at all. It's mysterious, I don't know what happen. I also tried to re-install VB and SQL, but still it didn't work. I know it is a petty problem, but it plays an important role when editing your codes. Please help. Thanks Hi there. I had also posted this problem earlier...found the answer on a different forum. I've had this happen in all visual studio 2005 apps. What seems to be happening is that the find/replace window is there, it's just 'almost' hidden. Drove me nuts. Look around the very edges ...Show All
Visual Basic Other Apps give my App a "HungApp"
My application hangs when it has been minimized for a somewhat long period of time (one hour or so). This is especially noticed when another application is running on top of it and has been evidenced on XP, 2k, and 2k3 Server. Some of the specific applications that are causing my grief are SQL Server Mgmt Studio and Novell's GroupWise client. Can anyone please give me insight as to why it Hangs to the point that I need to do an alt-ctrl-del to kill the process This application was written in VS.NET 2005 written in VB using XML Web Services tied to a SQL 2k5 database and is around 28 MB installed (These machines all have at least 512 MB of RAM). For posterity, this error was caused by IllegalCr ...Show All
