OrpheusTheBard's Q&A profile
.NET Development Command in C# fr EchoOff & EchoOn...
Hi... What is the command for 'EchoOff' & 'EchoOn' in C# for SerialPort communication. I am developing one application which will communicate with one instrument & send/receive some ASCII text. Regards, Vinay There is no dedicated command for setting half-duplex or full-duplex communication. It is a feature of the application program and the device, not of the serial port communication protocol. Check for example the HyperTerminal applet, File + Properties, Settings tab, ASCII setup, "Echo typed characters locally". You would turn that option on if the device is operating in half-duplex mode and doesn't echo the received characters. ...Show All
Smart Device Development Http Image File Uploader for .net compact framework 2.0
Having major problems trying to upload a file (an image) to a webserver via http post, keep getting a WebException.. Tried using the example code available at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/httpcomm.asp ---------- Code -------------- private void menuItem2_Click( object sender, EventArgs e) { String httpResponce = UploadFileBinary( @"\Storage Card\test.jpg" , http://www.myServer.com /upload.php ); MessageBox .Show(httpResponce); } public String UploadFileBinary( string localFile, string uploadUrl) { Cursor .Current = Cursors .WaitCursor; HttpWebRequest req = ( HttpWebRequest ) WebR ...Show All
Visual Studio 2008 (Pre-release) How to initiate Validate in the binding system?
Actually, validation isn't the issue per se, its adornment, but obviously its cleaner to let WPF handle it by failing Validation. I have a situation in which the validity of a control's contents is affected by an external entity (object that is not part of the data binding). In other words the constraints that apply to the Source value of my binding have changed, so it is no longer a valid value. Thus, I want to adorn the UI control that is binding to it. I would like some way to poke the binding system to cause it to adorn the aproporiate UI control. 1-a) Is it enough to just call UpdateTarget 1-b) If so, how can I get a binding expression within the scope of the Source object ...Show All
Software Development for Windows Vista Windows Workflow Code snippet insertion not available
I am working with Windows workflow and going through some labs from MS. One of the task is to use the Code Snippet option to insert for example a DpendancyProperty The problem is when I right click and select Insert Snippet I can only see the following C#, Office Development, My Code Snippets; I cannot see the option for Workflow I am able to develop other workflow applications but cannot the Workflow option for Insert code snippet. Any Ideas why. I have run the "intergrate Windows SDK with Visual Studio for WWF. Thanks Javahar Hi Javahar - As Elif pointed, we are not sure what do you mean Integrate Wondows SDK with VS for WWF - I am assuming you want to say VS ...Show All
SQL Server R
I am having some issues with my replication server. The sqlservr.exe is running 75-100%. Sometimes it pins up above 95 for more than two minutes. It's eating a ton of memory as well. The only thing the server is used for is to replicate our production server. The distribution database runs on it and the log reader, but thats it! Dell Poweredge 2950 2003 x64 Xeon 5160 3.00 8.0 gbs of ram Currently replication is running OK with the processor that high. But it only has about 900 mb of memory available. Does anyone have any ideas why sqlserver.exe needs that much horsepower I just can't image it is right. Thanks, ok ok i figured this out. i am kind of a newbie. It was an in house app running huge select sta ...Show All
Commerce Server How to integrete MOSS and Commerce Server 2007
Hi There, Could you please send me some useful links to access how the integretion is possible between MOSS and Commerce Server 2007. Regards, Saradhi Max Sweet! Thanks for update. Would you be able to provide us some highlights about this solution/whitepaper for integrating these 2 servers The biggest piece that interests me is to be able to use, publishing and WYSWYG features of MOSS with commerce features of Commerce Server. Thanks Nilesh ...Show All
Visual Studio Express Editions Problem with building tutorial
I installed DirectX 9.0 SDK(June 2006).I opened Saple DirectX Browser and installed Tutorial00 in my projects folder.I opened the project with Visual C++ 2005 Express and tried to build the project.The compiler started to build it but it suddenly stopped with showing 0 errors,0 warnings...And the compiler doesn't want to continue building...I get this problem every tim I try to build tutorial...Please help me! laforced wrote: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ I installed Platform SDK before I install DirectX 9.0 SDK.I have read this page hundreds of times:) ...Show All
Windows Live Developer Forums Dynamic images for pushpins
Hi, We are doing a virtual earth implementation for our client. He has some specific requirements. I want to find out if requirements can be met with Virtual Earth API. 1. Ability to upload images: The client wants to be able to upload images onto the map. I was thinking of giving the functionality to upload an image for a pushpin when the user adds one. Is it possible to dynamically upload an image for a pushpin If not, can we have an image store on the server and the user is able to choose the image from there when adding a pushpin 2. Ability to write text: The client should be able to add text at various points in the map. I am thinking of again providing it in a pushpin. The user will be able to choose/upload an image or speci ...Show All
SQL Server Sensitive info protected with password - best practices
I have been selecting the option to protect sensitive info in my packages with a password. However, this poses problems when later execute the packages by using the Execute Package Task. The problem is that I am repeated required to input the password before the packages will execute. I was making this selection in the hope of not tying execution to a partiular user's credentials (my boss may also want to execute these pacakages at some point). I find this subject confusing. Once I have selected this option, how can I change to another method Additionally, does anyone have any advice vis a vis best practices in this matter I want to store connection passwords, etc. in the package so they don't have to be supplied each time but I a ...Show All
SQL Server Full text searches and/or CONTAINS in MS SQL 2005
Hiya, I have recently become responsible for a small database for a volunteer soccer league. I am reasonably savvy when it comes to development, but I have not had a lot of experience with administration before. I need to do what I think must be pretty simple: set up full text indexing so I can use a CONTAINS search on a table. The table contains all of the fields the kids use, and each field has a number of divisions that typically play on that field; we use these 'favored divisions' to make scheduling a little easier. Now, one day when I have time, I will set up a proper, normalized, one-to-many relationship between the favored divisions and the playing fields, but right now it's basically like this: fieldID (int, primary key, i ...Show All
Visual C++ Help! problem with CFile class
This is code void func(CString string) { pFile.Open( m_FilePath, CFile::modeWrite | CFile::modeCreate); pFile.Seek( 0, CFile::end ); if ( pFile.GetLength() > (m_iFileSize) * 1024 * 1024 )//when file have some size { pFile.Close(); //close a file DeleteFile( m_FilePath + CString(".old") );//delete old file MoveFile( m_FilePath, m_FilePath + CString(".old"));//move information from main file to old if(!pFile.Open( m_ FilePath, CFile::modeWrite | CFile::modeCreate))return;//open file again and write from begin } //here i write some information in file pFile.Close();//close file //end function } in this code MSVS always thow CFileExeption error i can`t understa ...Show All
SQL Server Sql 2000 setup and configuration
I am in charge of redoing a SQL 2000 box and was wondering what would be the best setup configuration Should it be setup like an Exchange server, where the log files are on one drive the database files another, and the OS another I have looked for some kind of documentation thought I had found one but can't find it again. Thanks in advance for your help. In my experience, you are best to keep the database on the same disk (as well as logs). The reason is for performance, reliability and stability. if you choose to store the database on a network drive - performance and reliability will be a factor which will have an impact. I hope it helps/gives you a starting point :-) ...Show All
Software Development for Windows Vista Is XAML designed for Win AND Web UI's ??
I cannot see a definitive statement about whether UI development with XAML is capable of catering for just Win Client, or Web Apps too. Can anyone enlighten me and point me to some more info about developing XAML based UI's for Win and Web Thanks ...Show All
Visual C# Moving from procedural to OO
I have been coding in C for upwards of 4 years now and a friend of mine has brought to my attention that a lot of employers now want their programmers to use OO instead of procedural. I have gotten a book on Java and 2 on C# (one on the basics and one on network programming), but I must say this OO thing isn't really catching with me. I am still in high school, so I don't have much time on my hands, but do any of you have any good resources on how to relate OO to procedural, or to just make it a bit understandable Thanks hi, this page has few lessons which will help you to understand OO better personaly i started with it. i guess you will better understand it quicker than i did , because you have back ...Show All
Visual Basic How do I create an eventhandler for 32 programmatically created checkboxes (winforms) ?
The code below is a working version of programmatically generated checkboxes in a FlowLayout Panel. Question. How do I create an eventhandler for all of these 32 checkboxes (or checkboxes in a buttons' clothing) thx -greg Public Class Form1 Dim iCamera As Short Dim nCameras As Short = 32 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load For iCamera = 0 To nCameras - 1 Dim c As New CheckBox c.Appearance = Appearance.Button c.MinimumSize = New Size(30, 23) c.Width = Me.FlowLayoutPanel1.Width / nCameras c.TextAlign = ContentAlignment.MiddleCenter c.Text = iCamera.ToString() c.FlatStyle = FlatStyle.System c.FlatAppearance.MouseOverBa ...Show All
