IndigoOne's Q&A profile
Smart Device Development EVC4 SP4 MFC VariantChangeTypeEx Bug
Create a new MFC program. Add a new Menu. Add a handler for the new Menu Item w/ the following code. CComVariant s(_T("100")); CComVariant d; HRESULT hr = VariantChangeTypeEx ( &d, &s, MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT), &n ...Show All
Visual Studio 2008 (Pre-release) targetNamespace
In my WSDL, I see <wsdl:definitions name="MyService" targetNamespace="http://tempuri.org/">. How do I override targetNamespace with my own URI Under .asmx, I did [WebService(Namespace = "http://foo.com/bar/baz")]. The [ServiceBehaviorAttribute()] attribute goes on the service type. For example: namespace Foo { [ServiceContract(Namespace="urn:foo")] interface IBar { } [ServiceBehavior(Namespace="urn:another-foo")] class Bar : IBar { } } Regards Johan ...Show All
Visual Basic MaskedEdit: setting the starting point for entering new text at first position
I have a MaskedEdit control in a form. When I click the control in the middle, my cursor is in the middle of the control. but I want it to be at the begining of my control even if I click in the middle of my maskedEdit text box. What poroperty should I use. I tried: MskEditControl.SelStart=0 but it still goes to the middle of the box if by accident, I click in the middle. It only goes to start of my control if I click at the begining. Thanks 'You can do this, but remember, every time you click 'even if your already in it, it will take you to the 'start of the text box. Private Sub MaskedTextBox1_Click( ...Show All
Visual Basic How to add WMF File in word 2000 as autoshape
Hi all, I'am trying to insert WMF file in the word 2000 through code. If there are more then 2 pages in the document it gives me error and the autoshape property gets lost of the WMF file.This WMF file can be inserted through insert picture-> from file option. when you do this manually the WMF gets inserted as autosahpe or else it get inserted as picture. The error which i get is as follows:- Microsoft Visual Basic Run-time error '-2147467259 (80004005)': Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. OK Help Please let me know solution for this. Thanks ...Show All
Windows Forms Recommend Good API book for C#
I need to do some TAPI programming and cannot find any good reference material. If anyone can please suggest some for C# please let me know. Thanks There is no book so far for tapi in c#. The Tapi dll is a com dll i think u can add reference to that in your C# application and use it with comfort of C#. Thanks ...Show All
Software Development for Windows Vista Threads in long running activities
In my project we are going to provide quite a big library of custom activites. Most of them will take too long to be executed completely within Execute() method, so the idea is to spawn a new thread in Execute() and return immediately. It is really important to have these activities executed asynchronously from the main workflow thread because in a typical case there will be multiple such activities run in parallel. I've already seen others have similar problems ( see Alwo's post "Timeout Activity"). jxxxs, Unfortunately, there is currently no way to satisfy both your requirements (true asynchronous execution without any servic ...Show All
Visual Studio VS.Net 2005 & VSS 6.0
Sorry, I could not find an answer to this already... Will Visual Studio .NET 2005 (Professional ed.) work with Visual Source Safe 6.0 Has anyone attempted this with a beta version Actually, remote and delete propagation will work, but only from client -> database. Synchronizing deletes/renames using Get dialog will not work (propagation database -> client) as it requires new functionality in the provider. Another thing that will only work halfway is getting new files added in the database for web projects. VSS 6.0 has no capabilities of enumerating new folders in the database through MSSCCI functions used by VisualStu ...Show All
Visual Basic VB Express: can I use VB 2005 .net books?
Except for the features that are not supported by VB Express: Applications that connect to a networked database Interact with Microsoft Office Support mobile devices or 64-bit operating systems Remote debugging (any others I haven't listed ) Would books about Visual Basic 2005 still be highly relevant for Express users Also note that there are some differences in the user interface - for example, the Server Explorer in VB 2005 is replaced by the Database Explorer in Express. You will run into other situations where the description in the book is different than what you see in the IDE, b ...Show All
Visual Studio change Destination/Relocate files on Minor Upgrade
I am using Installshield developer and doing minor updrade and want to relocate some files(currently non-shared, non-permanent files) to system32 directory, but when i build the release, Installshield gives this error for each of relocated files: "The Component 'MyFile.dll' identified by ComponentID '{D7FCC46C-D112-4092-870B-E40CB497F1F0}' is missing from the newest version of your setup. You can not delete components and still do a minor/small upgrade. You must perform a major upgrade". And sometimes it says "You should author a RemoveFile table for this file" I want to avoid major upgrade, becuase i dont want to wipe off users data due to ...Show All
Software Development for Windows Vista Problem creating a parallel version of the ForEach example activity
I am trying to create a custom activity that is similar to the ForEach example posted in the custom activity gallery: http://www.windowsworkflow.net/ControlGallery/ControlDetail.aspx Control=2222&tabindex=2 The code below is basically modifications to that sample (i.e. the activity inherits from CompositeActivity, etc.) The difference is that I want the set of activities executed to be done in parallel rather than serially. I’ve been trying to figure out how to accomplish it but have been running into some (perhaps naive) problems. The code looks like the following: private void ExecuteChild( ActivityEx ...Show All
Software Development for Windows Vista Installation hanging (Dec CTP 5270)
I'm installing Vista Dec CTP (5270) on a HP Pavilion zd8000 (3.2 ghz, 2gb ram, 7200 rpm drive), and I get a screen that says "completing installation", but then that changes to a screen that says "Installation is taking longer than expected, but should be finishing soon." I left it on all last night (10 hours), and all day today (8 hours - after I started the installation over), and it stays on that screen. Any advice gibbensr@hotmail.com Many thanks to TPM01 for the suggestion that disabling the wireless hardware on a Dell laptop would allow one to get past the problem of the installation of build 5270 han ...Show All
Visual Studio ProxyGen tool on VS2005 STK Feb
Hi, I'm using the proxygen tool to generate a proxy for my host application. This is the first step to integrate with Visual Studio 2005 Tools for Applications. I'm executing the following command line: proxygen / i'm getting this errors: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ProxyGen, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'ProxyGen, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.Security.SecurityException: ...Show All
Visual C++ How to get rid of the funny scroll bar or expand it in a Dialog?
I add items to the comboBox by _ASSERT( CB_ERR != SendDlgItemMessage(hwndDlg, IDC_LIST_CONTEXTS, CB_INSERTSTRING, 0, (LPARAM)_T( "None" )) ); In C#, the comboBox automatically drops down to a certain size before it has that scroll bar. Here in my C++ Dialog, the comboBox when you click on the down arrow, it drops down another row with a tinny up and down button(underneah the comboBox's big down arrow button) for me to scroll through my small list of just 3 items. Can any one tell me how to fix this problem Thanks. It's a weird quirk of the dialog resource editor. Sorry, this is going to be quite tough to explain w ...Show All
Windows Forms Click-once application doesn't start
I've having big problems with Click-Once deployment of my application. The application appears to install correctly and adds an entry to the start menu, however it won't run: either from the Start menu or from the web page. The application does seem to work correctly for my colleagues, but not for me (although it used to). I can't see any event log entries, and the application isn't running in task manager. How can I see what is going on I've tried reinstalling .Net 2 framework, but that didn't help :-) Best regards, David Do you see any ClickOnce error dialog If "yes" what does it say in the log I ...Show All
Visual Studio VSS checkins take an hour over a domain
Hi all, I have lately joined a domain at my work to program against Active Directory. Most of our machines are not on the domain yet, and our VSS machine isnt. Since I have had to access the VSS machine from within our domain, checkins have been taking up to an hour or thereabouts, and quite often I get a 'Invalid handle' error. The files do get checked in in the end, but it is causing me immense pain. I have tried checking in from both vs2005 beta 2, and vss 6 (I was using the new beta vss, but gave up on that quickly), both give me these errors. Does anyone perhaps know what the problem is, and what the solution may be Thanks in advance, ...Show All
