GirishUmadi's Q&A profile
.NET Development Sending and Receiving messages
hello I want to create a client- server program. The server computer is connected with a serial device (cash register). The others computers must send and receive data from the device. I dont know much about sockets. The examples i have seen are console applications and are using infinite for and while loops. When i use loops in windows applicattions the program does not respond. Also i dont have any dataReceived event like in serial port.I click a button to read the incomning data. What method i must use synchronous or asyncronous So i would like an windows example where some clients are sending and receiving messages from the server. The communication server-device i can hanlde myself. Thank You ...Show All
SQL Server sql2005 shared memory provider error
A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.).Net SqlClient Data Provider at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParserState ...Show All
SQL Server Dimensions within Excel Pivot Table
Hi I have a cube that has dimensions such as year, company, customer, statustext, employee etc. In the Browse in Analysis Manager - all the dimensions look fine. When I access the same cube from Excel after dragging and dropping the dimensions during analysis the dimensions in the Page section are not what is show when dragged to the row section. For example - i have a display Customer as rows, years as columns. I drag the statustext next to customer and shows customer. The filter in the page section for statustext is correct. I have tried moving the dimension back to the Field List and re-adding, refreshing from the cube makes no difference. The only solution I have been able to come up with is rebuild the Pivot table - not wh ...Show All
Windows Forms Setting default values in bound controls on a form
How do you set default values for bound fields in windows forms There are times when specifying the default value in the underlying dataset is insufficient. The fields are bound to a binding source which has an AddingNew event where you can do something like: e.NewObject = <something>. The something however needs something of the same type or else you get an error message of "Objects added to a BindingSource's list must all be of the same type". I assume this is a DataRowView except I don't don't know how to create one in this context. One way is to use code like this: DataRowView rowView = dsNorthwind.Customer.DefaultView[0] but this implies the row is already in the underlying dataset except it isn't becaus ...Show All
Game Technologies: DirectX, XNA, XACT, etc. reduces texture color depth
Hi! I can't figure out an issue, and it is somewhat critical for the visual quality. I modified my skybox component to use the content pipeline. This means that the content pipeline should take care of loading all thextures defined in the .x file. And it does that, but the problem is that when i run the program, my skybox textures look as if their color depth has been reduced to 16 or less bits per pixel. For the skybox I used a .x model that contains a cube with faces pointing inwards. I took it form an SDK sample, and modified the textures. I even tried making all textures into .dds What should I try next Did anybody encounter this problem also Yes, I understand what you mean. Thanks I'll try and see ...Show All
SQL Server rs:clearsession
Hi . I am using rs:clearsession for refreshing of report data from my page.i had passed rs:clearsession parameter from aspx page to report URL, but when i am navigating from parent report to child report then rs:clearsession is not appended. so is there any way by which we can set some property in reporting service and we can get the result of "rs:clearsession" variable in itself report. Thanks in advance, Sanket. Hi, I did some tricky work. Add a new parameter [Time as DateTime] field in the subreport and pass the current time from the main report [Globals!ExecutionTime]. So parameter values always be different, so it will refresh the report every time. Regards, -Sarav. ...Show All
SQL Server SQL Execute Task
Hi how would you use a package variable in inline sql, is there a format utilized Are there any steps I need to take to do that I currently have the SQL Execute task inside a ForEach Loop container, which has the variable mapping for the ID that i need for the SQL Execute task. I just need to know the syntax to use parameters in my query in my task. here is the current code which doesnt work: INSERT INTO LAFProcess.ProcessList (WorkListID, CreatedOn, ProcessStartedOn, Status) SELECT WorkListID, GetDate(), NULL, 2 FROM LAFProcess.WorkList WHERE Status = 2 AND LoanApplicationID = " + @[User::LoanApplicationID] +" UPDATE LAFProcess.WorkList SET Status = 1 WHERE LoanApplicationID = " + @[User::LoanApplicationID] +& ...Show All
Software Development for Windows Vista Accept() error when spawning a task
I am trying to spawn a task to listen for socket connections which will then spawn a task to receive from the connection. The problem I am having is that when I spawn the task the accept() returns an error of ENETDOWN (50) saying that the network is down. However, if instead of spawning the listening task I simply call the function the accept() returns fine. Here is the code... //Spawning a task int main() { taskspawn("listenTask", ListenForConncetion, 100, 0); Time t = {9999, 0}; Sleep(&t); Exit(0); } void ListenForConnection(void) { bind(listenSocket, (sockaddr *)&listenSocketInfo, sizeof(listenSocketInfo)); ..... listenSocket = socket(AF_INET, SOCK_STREAM, 0); ..... while(1) { acceptSocket = acce ...Show All
Microsoft ISV Community Center Forums ScreenUpdating
hi all, I am nearly done writing an application (in vb.net) that uses interop for Microsoft Powerpoint, and the problem is that when I write to the slide, I don't want the user to see those updates. I know in vba, one would write 'Application.ScreenUpdating = false', however screenupdating is not found under the application. I have searched fruitlessly through other articles for a simple solution, but they seem to be geared towards excel. Can anyone help me Thanks in advance Myron ChasAA: Thanks for the reply. I had already known that one, but it still takes time to minimize. Because the user will be generating a theoretically limitless number of powerpoints, the minimal time that it sh ...Show All
SQL Server Object Explorer - Group By Schema?
Hello all, I'm new to SQL Server Management Studio and was wondering if anyone knew of a way to group by schema's under the Tables node in the Object Explorer. I know you can use a filter to show just the schema you want, but it would be nice if there was a way to have the schema's themselves show as a node which could be expanded. If anyone knows of a way or a plug-in, it would be greatly appreciated. I'm running SQL Server 2005 Enterprise (64-bit) with SP1. Cheers, Corey The tables under the Table node in Object Explorer are actually shown in sorted order of [SchemaName].[TableName] so you should be able to view all the tables with the same schema together. Thanks, Kuntal ...Show All
Audio and Video Development Missing WMCreateLicenseRevocationAgent in WMVCORE.LIB
I am working on a WMP music store plig-in and added license revocation code from a sample from MSDN, but the project is failing to build due to linker error for WMCreateLicenseRevocationAgent. THe detailed error message is below. wmpservice error LNK2019: unresolved external symbol _WMCreateLicenseRevocationAgent@8 referenced in function "public: long __thiscall CLicenseRevoker::Init(void)" ( Init@CLicenseRevoker@@QAEJXZ ) Dump does nto show the method. There something similar called WMCreateLicenseRevocationAgentPrivate. What should I do WMP 10 SDK WMF 9.5 SDK Win XP Sp2 VS 2003 7.1.3088 Thanks, Robert Thanks Becky! Now it makes sense. There is a similar article in WMF 9.5 SDK, but i ...Show All
Visual Studio Express Editions Inherit From Another Class
Hi, i am trying to inherit from a class so i can use functions from that class in the class it inherits from but i have no idea how, can someone shed some light how to Thanks Hi, Just as following example: BaseClass { public void Method (){...} } ChildClass: BaseClass {...} When you create an instance (child) of ChildClass you can use the "Method": ChildClass child = new ChildClass(); child.Method(); If you have further questions, pls feel free to let me know. Thank you ...Show All
.NET Development I need to transfer Images from a SQL 2005 DB to an Access mdb.
I have images stored in an MS SQL 2005 server. For portability, I am trying to export them into Access using VB .Net 2005. I also need for these pictures to be displayed in an Access report. I can get the image data moved over, but the images don't display in the reports. I understand that Access attaches an OLE object header to image data and I think this is where I am going wrong. I think I need to find out how to attach this header before storing the image in Access. I have included the sub that I use to do the transfer: Private Sub ExportAnswerImages( ByVal drJobItem As dsJobs.JobItemsRow, ByVal strPoleNumber As String , ByVal dblLatX As Double , ByVal dblLonY As Double ) ' Fill the source dataset fr ...Show All
SQL Server error 0x80004005 when copying tables between servers
hi I've got a job which copy tables between different servers . I am feeding the tables one by one and the process of copying is in a loop so I have cotrol over the copying process. it works fine but sometimes randomly I am getting Execution failed with the following error: "ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Invalid character value for cast specification". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Invalid character value for cast specificati ...Show All
Architecture GOST cryptography with IE
I have a few questions. 1) Can't IE understand certificates with GOST encryption & signing algorithms. I have a PFX file for GOST but I can't import it into IE. However, I can read the private key from the PFX file using Java program. 2) Even if I import it somehow, how will I do the signing part with CAPICOM because there is no underlying crypto provider in Microsoft that supports GOST algorithms. If I get a CSP for GOST, how can I use it to sign messages using CAPICOM 3) Do you know of any GOST CSP's that I can use with Windows Thanks in advance! ...Show All
