comspy's Q&A profile
Windows Forms Multiple Instances of AxWebBrowser
Hi, I have a csharp application, running multiple instances of AxWebBrowser at the same time. Each web browser requires the same cookie, set using InternetSetCookie. I used InternetSetCookie before I start navigating in each control. If one AxWebBrowser control is navigating, another control is not able to recognise the cookie. If I waited until the first control is complete navigating, then start navigating the second control, then it is able to recognise the cookie. Is this a known feature of the control Is there any way to get around it Thanks and Best Regards Thanks for your reply. That means I have to queue the navigations It will take too long, because I can have many instances of web br ...Show All
SQL Server returning the number of rows from TOP PERCENT
Greetings. I want to write a sql query that returns the number of rows from a query that uses top percent. For example, select top (7) percent object from objecttable It appears that @@rowcount will give the info but it does so as a separate column on each returned row. Any suggestions would be appreciated. Thanks. alan Thanks for the quick reply. I tried select top ( 7 ) percent objectid , count ( 1 ) over ( partition by 1 ) from bases order by state and got (objectid) (no column name) 16 85 19 85 23 85 85 85 38 85 34 85 I'm not sure what '85' represents. When I select and use @@rowcount I get '6' in each ...Show All
SQL Server Using ssis task to call a web service
Hi, I m trying to use the web services task, but when i try to run it i got the following error [Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Object reference not set to an instance of an object.. at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection) at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser) at Micr ...Show All
Visual Studio Team System Make ALLOWEDVALUES more dynamic?
Hi, Is there any way to make the list of ALLOWEDVALUES more dynamic so that users can change it without having to export the work item XML file and then changing the values of the LISTITEM Thanks, Maggie The following blog post shows an automated way to do this through the Object Model (also using global lists): http://blogs.msdn.com/team_foundation/archive/2005/05/06/415268.aspx ...Show All
SQL Server TRY... CATCH block does not behave as described or as expected...
Below you have a piece of code that despite the TRY... CATCH block, has the following result: Msg 4860, Level 16, State 1, Line 4 Cannot bulk load. The file "C:\123.txt" does not exist. BEGIN TRY SELECT count(*) FROM OpenRowSet (BULK 'C:\123.txt', FORMATFILE = 'C:\123.txt.fmt') O END TRY BEGIN CATCH select 'catched' END CATCH select 'done' So why the code never falls into the CATCH block ---------------- Another misbehaviour of the TRY... CATCH BLOCK i in the following example: BEGIN TRY DECLARE @rowcnt int, @error int BULK INSERT [__BULK_UPLOAD_247_20061209_pwgJqAbspG] FROM 'C:\Test\test.txt' WITH ( FORMATFILE = 'C:\Test\test.txt.fmt') SELECT @error = @@error, @rowcnt = @@rowcount END TRY BEGI ...Show All
Software Development for Windows Vista Finding the renderer filter in the Graph
Hi, In my code I create a filter graph for rendering video files with audio components. I create the filters automatically using the RenderFile() function. I want to insert another filter just before the video renderer filter in order to process the video component of the file. Since I use the code for different kinds of video files I do not want to find the renderer filter using its name. For the files without audio, I enumerate the filters and I check for the output pins of the filters one by one. For the filter with no output pin I understand that its the video renderer filter, so I disconnect it and insert my OpenCV ProxyTrans filter. However, for the video files with audio I don't know how to find the video renderer f ...Show All
Visual Basic My.Settings changes work, but are not reflected in Settings or app.config file
Greetings: I'm using this code to record when a report was printed, and what month of records was covered. It works just as hoped it would. When I print a report, the date of printing, and what month the report is about is recorded, somewhere. However, when I look in the project Settings tab, and in the app.config file, the settings still show the test entries I put in on Day 1. Private Sub btnPrintVoucher_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnPrintVoucher.Click PrintDocument1.DefaultPageSettings.Landscape = True PrintDocument1.Print() My .Settings.DatePrinted = Date .Now My .Settings.MonthReported = strLastMonth End Sub This is the code I ...Show All
Visual Studio Team System Emergency: Deleting Custom Work Item Type
I played with custom workitem types and stuck in the middle. I created some workitem types that are irrelevant and they create errors everytime my team opens any workitem related interface or Team Explorer pane like "One form per Work Item"; we ignore the error and continue working; but it is annoying, undesired and some feature that VSTS must support as deleting a custom work item type if you are the TFS Administrator. I want to delete "the work item type" at all with no glue back. I deleted some unrecognized rows from SQL Database but still there they are. You are correct, we store the information in our database. Someone else might be able to help you with exact information or steps for deleting WIT - it could ...Show All
Visual C# Any way to mix C++ templates and C#?
I've been trying to write a small library that depends on C++ templates (C# generics are just too restrictive for my purposes), but I'd like to be able to access and use the final library from C#. I haven't been able to dig up much information about this, but my observations so far are that: 1: If I just define a class template in a managed C++ assembly, it's inaccessible from another assembly (This makes perfect sense given how and when C++ templates are instantiated. I'm actually surprised this is possible between two managed C++ assemblies) 2: If I specialize the class template, the resulting type is not accessible from a C# assembly either. That is, I do something like this in my C++ assembly: template <typename T ...Show All
Smart Device Development Found conflicts between different versions of the same dependent assembly.
Is there an easy way to determine which assembly or assemblies are conflicting When I double-click on the error message in the Error List panel, a message box pops up and says: One or more dependent assemblies have version conflicts. Do you want to fix these conflicts by adding binding redirect records in the app.config file Under what circumstances would I want to do that And what are the alternatives Use ildasm.exe to look at the manifests in your app and assemblies. The offending dependencies should be obvious if you don't have too many assemblies. If you have the option of recompiling the app (and/or assemblies) to have consistent references, do so. If you don't have any compatibility, dep ...Show All
Visual Studio Debug doesn't break in some places.
The section of code in the middle fails to catch any breakpoints. Execution continues upon stepping into the if(ThisMsg... line LRESULT CALLBACK ProcessMessage(UINT nCode, WPARAM wParam, LPARAM lParam) { // Don't process the wrong messages. if (nCode < 0) { CallNextHookEx(hMsgHook, nCode, wParam, lParam); return 0; } // Get the message information. LPMSG ThisMsg = (LPMSG)lParam; *************************** Breakpoint not hit section ********************************* if (ThisMsg->message == WM_COMMAND) { msg = ThisMsg->message; hwn = ( int )ThisMsg->hwnd; lp = ( int )ThisMsg->lParam; wp = ( int )ThisMsg->wParam; // CopyMemory((void*)Passe ...Show All
Visual Studio Tools for Office VSTO Seem Broken After SafeGuard Easy install
I was forced to install a product by the name SafeGuard Easy (a whole disk encryption system) on my development PC at work and since them I have been unable to run my VSTO excel projects. SafeGuard Easy evidently has some kind of issue with Visual Studio 2005 as I was required to removed Visual Studio before SafeGuard would install. After SafeGuard was installed, I was able to reinstall Visual Studio, its service pack and VSTO 2005 SE but now excel addin projects do not launch. As far as I can tell, the addins for excel simply are not loading. The new() method in the code behind is not firing but there are no error messages either in excel or Visual Studio. 1) I've looked at the security settings for excel and they seem correct 2) I've lo ...Show All
.NET Development how to show data in dataGridView using my own dataset
Hi, i am new in using vs.net, i need to make a form that is used to maintain data from certain database by the clients, i do not use the dataset by click dataset component from wizard, i write my own dataset, read and import data from external files or database, my own dataset extends the DataSet Class, i create object of DataTable Class, add columns, i also write the function that is used to import data, after finishing it, i add a component dataGridView and try to use my own dataset as datasource, i choose it from project data, and after finishing it, it gives the column names without any data, when i create crystal report from this method, i know it only shows data when i run this program, because the data is only imported when t ...Show All
Windows Forms ORDER BY Clause in DataAdapter QueryString Fails
In the following code, I establish a QueryString with an ORDER BY clause. When I call the fill method of the DataAdapter, I get an error. If I remove the ORDER BY clause, the error doesn't occur. Can anyone tell me why Thanks, Mike Dim personnelQueryString As String = "SELECT * FROM Personnel ORDER BY Position, LastName" Dim personnelAdapter As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(personnelQueryString, conn) Dim dsPersonnel As DataSet = New DataSet() personnelAdapter.Fill(dsPersonnel, "Personnel" ) If your column name is a keyword you need to enclose it in brackets for it to work. Position is a sql server function name. ...Show All
Software Development for Windows Vista IVMRMixerBitmap9 Unsupported on Windows XP?
I have a customer who is using Windows XP with SP2, and they have a NVIDIA GeForce FX 5200 with the latest NVIDIA drivers It appears my program is failing when trying to obtain the IVMRMixerBitmap9 interface to overlay text over a video (interface not supported). Could this be possible If this is indeed possible, what is the suggested path to take to obtain the same functionality Thanks... --Bruce VRM9 is definitely failing. I sent the customer the BitmapMixer test app from the .NET DirectShow library, and it failed instantiating CLSID_VideoMixingRenderer9. The video card is a Leadtek A340-T GeForce FX5200 128MB DDR, AGP8X, TV-Out I'm attaching the first part of their DxDiag output. I'm wondering if &q ...Show All
