Francisco G's Q&A profile
Visual J# How to close a blocking DatagramSocket?
Hi; I have a DatagramSocket that is waiting on a receive: DatagramPacket pkt = new DatagramPacket(new byte[100], 100); mySocket.receive(pkt); I need to close the socket when my application is ending (it is in a worker thread). I presently call mySocket.close() and that works but I get: net.windward.xmlreport.b: [formatter] ac.server WARN net.windward.xmlreport.b - direct java.net.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall net.windward.xmlreport.b: [parser] ac.server WARN net.windward.xmlreport.b - multi java.net.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall The thread 0x9d8 has exited with code 0 (0x0). net.windward.xmlreport.b: [p ...Show All
SQL Server Filter SQL Server data by user With an Micmicrosoft access front end
I am in the process of migrating 40 access databases to SQL Server and still use an access front end.All of these databases are Identical in structure and purpose. The goal is to centralize all of the databases backends into one Sql server database, but the data needs to stay seperated by each location(user). I was able to add a location feild to all of the tables to keep the data seperate. Then I imported three of the locations data for testing. I would like to know how could I filter the data on the access frontend, so that it would ask the user for their location and only allow the user to access, update, and delete that Locations data I need an example of how to do it on the access front end , and not the the sql server side. Als ...Show All
Smart Device Development camera image is inverse in directshow. see codes
hr = m_pCaptureGraphBuilder->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, m_pVideoCaptureFilter, NULL, NULL); if(FAILED(hr)) return hr; hr = m_pGraphBuilder->QueryInterface(IID_IMediaControl, (LPVOID *)&m_pMediaControl); if(FAILED(hr)) return hr; hr = m_pGraphBuilder->QueryInterface(IID_IVideoWindow, (LPVOID *)&m_pVideoWindow); if(FAILED(hr)) return hr; //Set video window //hr = m_pVideoWindow->put_Owner((OAHWND)g_hMainWnd); //if(FAILED(hr)) return hr; //hr = m_pVideoWindow->put_WindowStyle(WS_CHILD | WS_CLIPCHILDREN); //if(FAILED(hr)) return hr; hr = m_pVideoWindow->SetWindowPosition(0, 0, 120, 120); if(FAILED(hr)) return hr; hr = m_pVideoWindow->put_Visible( ...Show All
Visual Studio Express Editions web textboxes
Hi peeps, Does anyone know how to insert data from a vb form into a textbox on a website what I would like to achieve is automaticly log into yahoo mail with the selected username and password and return the current new messages in the inbox folder. hope somone can help, thanks. im not sure to be honest and dont quite think so, you could do the not so great method of doing send keys! But I would rather you use the correct procedure - using the webbrowser control, and gives you alot of flexibility too should you require to do anything else ...Show All
SQL Server trouble getting snapshot agent to initialize publication
I have been trying to set up transactional replication between an OLTP SQL Server 2005 Standard edition server and a BI SQL Server 2005 Enterprise edition server. I am using a pull subscription. I was able to establish the replication from the developement server to the BI server however when I tried setting up the replication between the production environment and the BI server, using the same configuration settings, I ran into a problem. The production server had been renamed after it was initially set up. I used the sp_dropserver and sp_addserver to solve this issue and was able to run the replication wizard. However once the wizard finishes the snapshot agent doesn't initialize the publication. When I look at the replication monitor it ...Show All
.NET Development How can I detect muliple rows in dataset using XSL ?
Hi I have the follwing dataset(Tbl1 and Tbl2 with two rows).I have xsl file(given below) to restructure the xml file. Tbl2 may have more than one row and the dataset may change time to time(Tbl2 will be 1 or more rows) If Dataset with 1 row of Tbl2 I can handle xsl file to manage it. But If Dataset with more than 1 row in Tbl2 (please look at the xml file below) How can I write the code(xsl)to detect the rows and place the data in between the elements in the output(look at output xml file) Scenario Dataset <Dataset> <Tbl1> <A>aaa</A> <B>bbb</B> <C>ccc</C> <D>ddd</D> <E>eee</E> </Tbl1> <Tbl2> <1>one</1> <2>two</2& ...Show All
Visual Studio 2008 (Pre-release) Configuring a service in code
Hi, I would like to know of there is a way to configure a WCF service in code only, i.e. not using the web.config or app.config file at all. Thanks. Johan. Yes, you could still implement your own ServiceHost and use that. Steve writes about it in his blog - continued here . Cheers, ...Show All
Visual Studio One of our users is able to checkout files that are already checked out
When he has a file checked out I can't check it out. But when I have a file checked out he is able to check it out. We are using VSS 2005 and the "allow multiple checkouts" checkbox is not checked. How do I prevent him from being able to checkout files that I have checked out. Thanks. ferrethouse, are you still experiencing this problem If so, when it happens, does VSS Explorer on your machine correctly show that the other user holds a checkout lock ...Show All
Visual Studio 2008 (Pre-release) Populating TreeView with xml file in c#?
Hi I am trying to fill a treeview with xml file,i am working on the code provided by the msdn but its for System.Windows.Forms.Control treeview ,and i want to do it in WPF I am doing following thing but keep getting exception: OpenFileDialog dlg = new OpenFileDialog(); dlg.Title = "Open XML Document"; dlg.Filter = "XML Files (*.xml)|*.xml"; if (dlg.ShowDialog().Value) { try { //Just a good practice -- change the cursor to a //wait cursor while the nodes populate this.Cursor = Cursors.Wait; //First, we'll load the Xml document XmlDocument xDoc = new XmlDocument(); xDoc.Load(dlg.FileName); //Now, clear out the treeview, //and add the first (root) node myTreeView.Items.Clear(); ...Show All
Visual Basic how to bind 2 comboboxto the same data table but make them select separately?
Hello, I am trying to bind two comboboxesto the same data table created using the getSchema method.(I wanted to put the list of columns in the combobox) so I used this Dim colSchema As New DataTable Dim colView As String() = New String() {Nothing, Nothing, colClass, Nothing} colSchema = fileConnection.GetSchema("COLUMNS", colView) cmbScore1.DataSource = colSchema cmbScore1.DisplayMember = "COLUMN_NAME" cmbScore1.ValueMember = "COLUMN_NAME" cmbScore2.DataSource = colSchema cmbScore2.DisplayMember = "COLUMN_NAME" cmbScore2.ValueMember = "COLUMN_NAME" now, after testing, I find that whenever I scroll things in cmbScore1, the same thing will ha ...Show All
Software Development for Windows Vista DecCTP_5270_32bit_Main_DVD Installation Problem
Hi!!! I downloaded the latest beta2 (DecCTP_5270_32bit_Main_DVD) but when I tried to install it on my laptop (TOSHIBA Satellite M45-S265 after the 1st step when restarting and trying to boot again it stops on the Longhorn progress bar screen and no thing happen I tried to boot in safe mode but the same loop I cant get to the next installation step, any idea I have the same problem - and I am on a desktop! I try to install from my existing Windows XP OS, then after it restarts - just the black screen. When I try safe mode - it keeps loading different drivers - then after loading disk.sys - it just freezes - no more activity. I also noticed that whenever the computer hangs, the hard ...Show All
Visual Basic using visual basic... how can i lay down a structure on top of storage pointed at by an int32 variable?
the subject really says it all. i get passed pointers to data from the visual basic routines. how can i access the data where the pointer points to, in say a string format if bbb has address 25324400 in it. how can i lay my structure down on that address so i can look at what is at that address as a string, or really as anything i wish to look at it as Jeff Public NotInheritable Class Marshal Inherits System . Object Member of: System . Runtime . InteropServices Summary: Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks, and converting managed to unmanaged types, as well as other miscellaneous methods ...Show All
Visual Studio Express Editions unhandled exception message
is there a way to aquire the message that the details of the exception makes. Not the exception.message property i am talking about the part that says "arguementexception was unhandled" In addition, there is a global routine already in place that will handle any exceptions which haven't been handled: Select MyProject, Application Tab, Application Events, select MyApplicationEvents and add code to the MyApplication_UnhandledException() event. You can also prevent the application from closing after an unhandled exception. ...Show All
Visual Studio 2008 (Pre-release) clientCredentialType "Username" problem
Hi, I have a duplex tcp channel with Aspnet authentication, so in my client : MyProxy = new OperatorServiceProxy ( new System.ServiceModel. InstanceContext ( this ), "suNET" , "net.tcp://localhost:8000/test"); MyProxy.ClientCredentials.UserName.UserName = "username"; // I receive an exception named "Object is readonly". MyProxy.ClientCredentials.UserName.Password = "password"; Does anybody know why I receive this type of exception I have another example that work fine using http but not using duplex channel . Here's my client configuration : < system.serviceModel > < client > < endpoint name = " suNET " address = " net.tcp://localho ...Show All
SQL Server Communication link failure; 08S01; TCP Provider: An existing connection was forcibly closed by the remote host.
Hi, I'm having a problem processing my cube. I keep getting the error stated below everytime I process the cube. I'm a newbiew and can't quite understand the error fully. I'm processing the cube from the server itself so I cant understand why there will be a communication link error.Why do I keep getting this error OLE DB error: OLE DB or ODBC error: Protocol error in TDS stream; HY000; Protocol error in TDS stream; HY000; Protocol error in TDS stream; HY000; Communication link failure; 08S01; TCP Provider: An existing connection was forcibly closed by the remote host. ; 08S01. Errors in the OLAP storage engine: An error occurred while the 'Tbl Error Code' attribute of the 'Tbl Error Code' dimension from the 'CRM_AP' database was being pr ...Show All
