McWhirter's Q&A profile
Visual C# SetDllDirectory
Is there a way to set multiple directories in the search path using SetDllDirectory I've been able to get it to work for a single directory but I've subsequently found that this DLL is dependent on a number of other Dlls which are spread over different directories. Calling SetDllDirectory twice resets the directory which is what you would expect, but have tried comma-separated and semi-colon separated directories in a single call both of which failed. eg [DllImport("kernel32.dll")] public static extern bool SetDllDirectory( string pathName); //and the call is: bool result = SetDllDirectory(@"C:\Dir1;C:\Dir2"); Anyone tried / done this before I tho ...Show All
Visual Studio Crystal Reports XI Release 2 Merge Modules are Out
Hello all Well I have been waiting for ever for the merge modules. http://support.businessobjects.com/fix/merge_modules.asp Merge Modules for Crystal Reports XI Release 2 .NET Deployments - This file contains the merge modules required for deploying applications using Crystal Reports XI Release 2 for Visual Studio .NET. Merge Modules for Crystal Reports XI Release 2 RDC Deployments - This file contains the merge modules required for deploying Crystal Reports XI Release 2 applications using the Report Designer Component. These merge modules may be incorporated into MSI-based setup packages to include the appropriate runtime files. Question Below Does anyone know the diference between these two files I think ideally ...Show All
Windows Live Developer Forums Need Help? Urgent !! How can i get the polyline or polygon selected when i click on it?
I am new to javascript. Can any one help me to find a solution for getting my polygon or polyline got selected while clicking on it on map. so that i can drag or change the shape of the selected polygon or polyline. It will be helpfull if anyone knows the related links or docs related to this issue. This functionality is the same in www.local.live.com when we draw a polygon or polyline on the map. Thanks in advance. Dias Not good news from me on this. This is where we left off, guess we were hoping for a bit more from V4. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=726756&SiteID=1 John. ...Show All
.NET Development About the retry mechanism of Remoting
Hi, I am using .Net remoting in my app. and there some socket errors, such as "Invalid handle" or "the target is not a socket", etc., happen during remoting. I can use the try...catch mechanism to avoid the fatal exception and realize the error processing. I wonder if some retry mechanism is available in .NET. I intend to implement a mechanism to retry the same remoting process for serveral times before quit it completely. Will this work it out Thank you! Nobody said that distributed system design was easy. :) Actually that's not true. Lots of people claim it's easy, particularly people trying to sell middleware. But the people making such claims tend not to have built m ...Show All
Commerce Server Biztalk Catalog Integration
Is it possible to setup the Biztalk integration with the Catalog Manager to delete variants when importing with Incremental changes. I have tried creating the XML file with the variant I no longer want not present in the file but if I go into catalog manager I can still the variant after import. Please Advise. Hi, The variant delete worked after changing the Transaction Mode to "Non Transaction" on Send Port. Not sure, why it has to be Non Transactional.. ...Show All
Windows Forms DataGridView, CellValidating and Object DataSource
Hi, I have a datagridvew bound to a bindinglist of business objects. The grid also contains an unbound textbox column. Depending on the value entered in this unbound column, the UI needs to modify the underlying business object. This needs to happen in the UI because certain selections will require additionnal interaction with the user (popup forms, messageboxes, etc...) My first try was to use cellvalidating because of the added benefit of being able to cancel the edit if the entered value is invalid. To get it working, I had to suppress change notifications otherwise if a new row was created, the unbound column modified (causing the businness object to be modified) and then the current row changed, the row that was just edited wou ...Show All
Windows Forms whenever user INSERTS a new record,current date must be displayed in the DATETIME picker contro
Hi, On a data-entry form in VB 2005, i have a Datatimepicker control. I want that whenever the user clicks the INSERT button to add a new record, the current date must be displayed in the control & the same saved to SQL db. The user may or may not change the date. But, by default the current date must be displayed. How can i accomplish this i am using tableadapters Alex Hi, You don't mention if you use a BindingSource control. If you do, call EndEdit() on it before calling Update() on the TableAdapter, but AFTER setting the date on the DateTimePicker. This goes in the Insert button event handler: MyDatePicker.Value = DateTime.Today; MyBindingSource.EndEdit(); // tis will "f ...Show All
Visual C# How do I convert a 1 dimentional array to a multidimentional array?
Hello, im having some trouble converting an array to a multidimentional array, the code I have used is below. The trouble with it is, when you times any number by 0 it will always be 0 so (0,1)(0,2)(1,0) ect will always be the first item of the old array. does anyone know how this can be solved Thanks in advanced for ( int i = 0; i < 257; i++) { for ( int j = 0; j < 257; j++) { newarr[i,j] = oldarr[i * j]; } } ...Show All
Visual Studio Express Editions Fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
When I try to compile a win32 sample program, I get the 'fatal error C1083: Cannot open include file: 'windows.h': No such file or directory' error. I have installed and configured (even the step not in video) the most recent Platform SDK, but I still get this error! What is happening Thanks! I get the same error, not with the Console Application but with the Windows Application. It appears that the Console Application part is working allright. Can anybody provide a solution to this Regards Modeller ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hep a Complete New Guy!
I'm a junior in high school and am possibly interested in the game industry as a possible career. My goal is to learn enough to do it as a hobby so I can just sort of try it out. I currently know all basic C++ and some advanced features, but I don't know how to start using it to practice any skills. It seems like it has no useful implication without learning another API. I'm absolutely willing to learn an API, but I'm afraid I'll have a ton of information with no practice in using it. Well anyways, I'm see you have a lot of good points to start off the forum (David Weller's post about writing video games), yet I feel that I have a problem. Although it gives great topics to learn about, I feel at lost when I ...Show All
Visual Studio Express Editions Database search help
Ive copied a database search out of a progrsamming book I have and as far as I can tell I've adjusted it correctly to use my db. Whenever I run the search , it tells me theres no matching records to disply, even though there deffinetly is. I have a suspcion (may be wrong) that its a problem with the number of row counting code, but does anyone ahve any ideas. Thanks If ForecastsDataSet1.Tables.Count = 0 Then MessageBox.Show("No records found for supplied case reference", "Search") : Exit Sub End If Dim s As String Dim re As String Dim i As Integer Dim x As Integer s = LCase(txtsearch.Text) If s = "" Then MessageBox.Show("Please enter search value") : Exit S ...Show All
Visual Basic how to autosize the tab control inside a window's form
I have a tab control inside a form. When I drag the border of the form to resize it, the tab does not resize with the form. What should I do so that the tab control can automatically size with the form Thanks. You either set the .Dock property or the .Anchor property of the tab control. ...Show All
Visual Studio Date bug?
If i change my system date to a date >= 2007 and try to build i get this error: Attributo di assembly "System.Reflection.AssemblyVersionAttribute" non valido: La versione specificata '1.0.070111.00' non e valida. C:\STARMADE\cassa new mdi\AssemblyInfo.vb raw TRANSLATION: Invalid Assembly attribute "System.Reflection.AssemblyVersionAttribute": Specified version is invalid. The maximum number for any piece of the version is 65535, so your 070111 is too big. Here is another thread that discusses this problem. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=194293&SiteID=1 - Steve ...Show All
Software Development for Windows Vista What is LVN_FIRST - 88?
Hi, using Spy++ I can see the listview of Vista's Explorer sending multiple (LVN_FIRST - 88) notifications to its parent. The parent always returns 0x0. Does anyone know what this notification is for It isn't defined in the Vista RTM Windows SDK. The folder which I spied for my tests is the Welcome Center in the Control Panel. TiKu Oh, for that matter, what's LVN_FIRST - 86 It is sent too and the parent responds with 0x1. /edit: Forget this one, according to Wine HQ, it's LVN_ASYNCDRAWN. ...Show All
SQL Server Checkpoint file used by another process
I have an SSIS solution with 8 packages in it. I have checkpoint turned on with the 'If Exists' option. Each of the 8 packages have 8 separate checkpoint files specified. One out of two runs will fail with one of the below errors: The checkpoint file \\xxxxxxxx is locked by another process. This may occur if another instance of this package is currently executing. Checkpoint file \\xxxxxxxx failed to open due to error 0x80070020 "The process cannot access the file because it is being used by another proces I have checked all the settings and everything looks fine, looks like the problem is when you have many Control Flow tasks in a package and if two of them are completed at the same time and they try to write to this fi ...Show All
