Miguel Angel Zavala Vizcaya's Q&A profile
Visual C++ templates with VC++ event handling
Hi, I'd like to use templates with event handlers. Appreciate any help. Here is the code. The problem is with the hook and unhook methods. #include <stdafx.h> template < class T> class PropertyChangeListener { public : void propertyChange( std::string oldValue, std::string newValue ) { printf("Changed from " + oldValue + " to " + newValue ); } void hookEvent(T* bean) { __hook (&T::MyEvent, bean, &PropertyChangeListener<T>::propertyChange); } void unhookEvent(T* bean) { __unhook (&T::MyEvent, bean, &PropertyChangeListener<T>::propertyChange); } ...Show All
Visual Studio Team System Problem with Microsoft.Pcw.currituck initialization...
There's a problem with creation of a new project... Single-server scenario, all plugins succeeded except subject plugin: ---begin Exception entry--- Time: 05/12/2005 09:09:10.360 Module: Initializer Event Description: Initialization for plugin "Microsoft.Pcw.currituck" failed with error: "Unable to handle request. The action 'http://schemas.microsoft.com/Currituck/2004/07/mtservices/clientservice/GetMetadata' was not recognized." Exception Type: System.Web.Services.Protocols.SoapException Exception Message: Unable to handle request. The action 'http://schemas.microsoft.com/Currituck/2004/07/mtservices/clientservice/GetMetadata' was not rec ...Show All
Visual C++ How to convert unmanaged Recordset20Ptr to managed IntPtr or to managed DataSet object
Hi all, I am trying to get managed representation of unmanaged Recordset20Ptr. More importantly, I want to convert unmanaged Recordset20Ptr to managed DataSet object, or convert unmanaged Recordset20Ptr to managed IntPtr. I have gone through System::Runtime::InteropServices ::Marshal, and could not figure out how to do this. Can I be helped Thanks in advance. I am not sure what a Recordset20Ptr is, but you can cast an unmanaged pointer to an IntPtr. sobo wrote: Hi all, I am trying to get managed representation of unmanaged Recordset20Ptr. More importantly, I want to convert unmanaged Recordset20Ptr to managed Da ...Show All
Software Development for Windows Vista Saving Activities with a specific Formatter
This question is a little related to another I posted about resolving assemblies. If I implement a custom persistence service that -- in an operation to save a workflow instance -- calls rootActivity.Save(myStream, myFormatter), I typically get an exception that my type (Workflow1) is not marked [Serializable]. If I go into the code editor and add the [Serializable] tag, the system throws an exception saying that my type's base class, SequentialWorkflowActivity, is not marked serializable. I tried this with the standard .NET BinaryFormatter and SoapFormatters as well as a custom formatter. Is this by any chance just a bug The real iss ...Show All
Microsoft ISV Community Center Forums download a file via internet and save it locally
Hi, I would like to have a script that download a file (a word document) from internet (http/https) and save it on local PC. I've already found how to download a file: ************************************************************ Dim WinHttpReq Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1") WinHttpReq.Open "GET", "http://", False ************************************************************ but then, I don't know how to save this file on my PC :( Anyone has an ideea Thank you, (Paul) I was just wondering, how to open a MS Word file via internet and save back to same location ! ...Show All
Visual Basic Error has encountered in vb.net 2005
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in one of my form. Ensure the assembly has been referenced and that all projects have been built. ...Show All
.NET Development How to upload a file in server
Hai Everybody pls help me.Now its my SOS Time. How to Upload A file to Server,Mean, If Suppose a Web site Called A.com using this a client is Uploading a file.I Want to Store File Not in the A.com Server, But Put The File In Say B.com/folder/foldername/file Is it Possible using Ftp By code Then Give me Code lIke Import dll WININET.DLL .ITS WORKING LOCAL IIS WHEN I PUT ON THE WEB SERVER ITS NOT WORKING, I need Code for That or any code which help me pls help me jOHN Hai Everybody Any Way Thanks view my question .Iam Using Asp.net1.1 pls help me.Now its my SOS Time. How to Upl ...Show All
Visual Studio Team System ADAM & AMD 64
Is there a AMD 64 version of the ADAM tool I need it to be able to install the Team server. Had some issues when installing teamserver on x64 windows but found solution for most of it. Now only problem i have is the ADAM tool. I can't install the team server without it and can't install the tool. If i use 32bit version of the tool, it says i need the IA64 version ... So when installing IA64 version it says it has been build for other type of processor and fails to install. Running Windows 2003 server x64 on AMD 64 processor. k, On the ms newsgroups they told me to use windows server R2 x64 to get a AMD64 com ...Show All
Visual Basic VS 2005 - Installer Project HELP!!!
I've created a windows service in VB.Net. I'm trying to figure out how to create the MSI file so I can deploy the app. I read through the walk-through for creating an installer. So in my solution there is the windows service and the installer project (which I setup with the wizard). After all is said and done, the instructions say to select the installer project in the solution explorer and then select "Install" from the Project menu. I don't have an option for "Install" on my project menu. I have VS 2005 Pro so I don't understand what I need to do. Can anyone shed some light for me -Dan Hi ...Show All
Visual Studio 2008 (Pre-release) Is it possible to do a MasterDetail Binding with a TreeView?
I used a ListBox and did a test on MasterDetail Binding and that works find. But if I have a TreeView is there any way to do MasterDetail Binding Example a preview box in a file dialog window /godzilla9 You mean using the DataContext method of Master-Detail binding I had the exact same problem you had. When I tested a prototype with a ListBox, I could do the Master-Detail binding by setting the IsSynchronizedToCurrentItem to True. When I switched to a TreeView, it stopped working. The only way I found to fix this is by binding the Detail control to the TreeView's SelectedItem. I should post a suggestion ...Show All
Windows Forms Dynamic loading of UI controls
Are there any good articles out there on packaging up UI into control library and dynamically loading them into a main shell. With the main windows being a .NET executable and the UI library a dll. Thanks Pat JCasa - It will probably be more work to do the merging yourself - as I believe you'll have to add/remove items, but it hopef ...Show All
Windows Search Technologies Cannot install/re-install MS DeskTop Search (nor toolbar): "cannot remove older version"
I get a message that says #msntb_toolbar_full_name# is unable to load its config file. if you have recently upgraded to a newer version of the # msntb_toolbar_full_name# and have not restarted your computer since the upgrade, please try restarting your computer , if the problem persits, please reinstall the # msntb_toolbar_full _name# I tryed it all and still it doesn't work. Please help Me. Sincerly Marilyn i've got the same messages and have also tried everything in this forum.any ideas people ,,,,please.............. ...Show All
Windows Forms Print HTML
Hi, I got a very simple report formated in Html. Is there some simple solution for printing this in .Net Could someone please point me to some example implementations Thanks in advance for any pointers and help! Use the MSHTML object to print below is an example to not prompt the user this.WebBrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPR ...Show All
SQL Server Cannot get rid of SQL server 2005 Developer Edition Installation
I cannot uninstall the SQL Server 2005 Developer Edition. I have run the uninstall from the control panel for ALL of the SQL Server 2005 components. They are no longer listed in the installed programs list. I have done the uninstall with both the Control panel and the command line. When I try to install SQL server Express (Downloaded from the web last night) It will not install. The error message is: TITLE: Microsoft SQL Server 2005 CTP Setup ---------------------------------------- There was an unexpected failure during the setup wizard. You may review the setup logs and/or click the help button for more infor ...Show All
Software Development for Windows Vista Activating workflow by custom activity
Hi all, using a WebServiceInputActivity I can specify IsActivating = true to create a new workflow instance if that published web service is called. Now I would like to create my own custom activity that activates a workflow by some custom events. Let's say I want to activate a workflow as soon as an email has been received. How can I implement such a custom activity Regards, Alex Alex - you can do this - but then you need to write the hosting layer. That is how the WebServiceInputActivity works - is that the host that activitates workflows versus routes messages to workflows is written by MS. ...Show All
