LLOYDLOYTON's Q&A profile
Visual Studio Express Editions I have to run a run command
first, with no relation to the question.....run a run command...that just aint right... anyways,i need to run a command usually run with run , the code is the following, Attrib +s "<Textbox1.text>" i have tried to use a bat file,written with a buttton,but the bat file has to write a " before the location and after,but " " " will not work if anyone can please make me a code that actually is done with code without opening bat or anything,just one code that can run Attrib +s " between goes the location localized at textbox1.text " it has to be written that way,obiously except the location which normally could be something like Attrib +s "C:\Documents and Settings\A ...Show All
Visual Studio Express Editions Can't Install VB 2005 Express
When I try to run setup.exe it tells me the it needs to repair or uninstall. When I tell it to repair it goes through the down load process. I've tried deleting both .net 2 and VB 2005 twice now and the result is still the same. I have a 3 Gig intel processor with 500 KB Ram and 160 G HD Althought new to programming I can not recall having this much trouble trying to start a program. Can some one please suggest what I could be missing. Yes I've tried the the readme file but it doesn't help with this one. Thanks I would make sure that you operating system is upto date with the latest patches from Microsoft Update. When you have done this the next step is to try and install the seperate components ...Show All
.NET Development Send object to Client from Server using TCP/IP
how to send and receive object not a string(like code in the bottom) to client from server. so the client will accept object not array byte. //this is for send string TcpClient connectedClient = tcpServer.AcceptTcpClient(); byte[] bt; bt = Encoding.ASCII.GetBytes(message); connectedClient.Client.Send(bt); Because the level at which your working is so low, I don't know that you can have the client accept an 'object'. But what you can to is serialize the object into a stream of bytes (using the BinaryFormatter class) or into an XML document (using the SoapFormatter class). Once the object is in this form, you can send and receive it using the TCP classes and then deserialize the byte stream back into an object. Of ...Show All
Visual Studio 2008 (Pre-release) Suggestion: Role-based styling
So far, so great. WPF is really coming along wonderfully and I can't wait for it to pick up traction in the industry. There is one thing that I would love to see in WPF, in a future release... Right now styling an app requires you to either specify an element's Style by key or have a style which applies to all instances of a specific type (or you can use inline styles). This is all fine and good, but it does not lend itself well to creating "skinnable" apps, where with the change of one global setting the entire app uses a new theme. Currently one could respond to the "skin-swap" by explicitly altering the Style of every element. Obviously that is time consuming and error prone. Alternatively one c ...Show All
Visual FoxPro appending data into an existing DBF with an autoincrement field
I have a table called special.dbf. It has a autoincrement field. I would like to append records to this file. The autoincrement field always defaults to zero and produces an error message. Any suggestions on how to append or insert records would be helpful. I would like to append using a text file or excel file from MS Access table Or import directly from Access to FoxPro. Oh I thought you were directly appending from SQLExec() result. You're putting a text file in between. Then create a temporary cursor that matches the structure of your table and format of text file. Drop autoinc field. Append. ie: table: AIncField, Field1, Field2 text file: 0,"Field1Value", " Field2value " select * from myTable in ...Show All
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks doing the bool thing could be a temp solution but not best practice. What is this thing you are doing onload perhaps you can do this process at some other point If you can explain more in depth on what your code is doing onload, perhaps I/we can give you a better solution - if you would like :-) ...Show All
.NET Development MailSlots FileStream receiving a zero length message
After creating a mailslot using CreateMailSlot and attaching a FileStream to the SafeFileHandle. Once this operation is completed the receive handler gets a 0 length packet. After reviewing some rotor2 code when the FileStream contructor is called the GetFileType is called, for a MailSlot it is FILE_TYPE_UNKNOWN thus it calls some sync code. If the file type is FILE_TYPE_PIPE then it does not call the sync code, shouldn't Mailslots do the same thing and not call this sync function This is causing problems with older C++ code that does not expect this sync code.. m_SendHandle = MailSlotCommon.CreateFile(remoteSlotName, FileAccess.Write, FileShare.Read, IntPtr.Zero, FileMode.Open, MailSlotCommon.EFileAttributes.nothing, IntPtr.Zero); ...Show All
.NET Development UDP Sockets wont communicate across LAN
I created an app with udp sockets that communicatte on port 62626 & installed it on 2 hosts on my local network (192.168.2.2 & 192.168.2.3). While the code appears to work, it appears windows (XP) is dropping th packets rather than letting them cross the network. All firewalls have been turned off to no avail. Can anyone tell me what I need to do to allow the packets to pass Thanks If you have DontFragment == true and the size of the message is larger than your network frame size (most likely 1.5k) your packets will be dropped. Which address are you sending the message to ...Show All
Visual C++ Problem of calling WNetGetUniversalName
Hello all: I'm calling WNetGetUniversalName to get a file path name which is on a network mapped drive. Sometimes this function returns successfully but sometimes it just return ERROR_NOT_CONNECTED. But that network drive can be accessed so I think it should be connected. Does anyone have more experience about this API or other alternatives Thanks in advance. For win API issues, please use the win32 dev newsgroups at http://msdn.microsoft.com/newsgroups where folks there will be more familair with such issues. These forums are specific for VS2005 issues. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Software Development for Windows Vista how to skip frame for compressed viedo
hello friends, i created a source filter to play compressed viedo in windows media player, since it's compressed, i need to skip frame in order to show the frames corresponding to the position of windows media player scroll bar. my question is : how can i get current position of windows media player scroll bar especially when i am only developing a source filter, Hi, Is it sufficient to support IMediaSeeking on Source filter only or is it also required to implement some pass through functions on the transform filters as said on http://msdn2.microsoft.com/en-us/library/aa919887.aspx under "when to Implement" section Regards, ...Show All
SQL Server hard time understanding the execution plans
SQL server 2005 has a really complicated execution plans that I am really unable to compare two execution plans with each other cumulative. I can easliy see by eye that one execution plan is slower than the other but is there anyway to compare two execution plans in sql 2005 Hi, I'm afraid there is no comparison tool. Here is a reference to the items in the Execution Plan: http://msdn2.microsoft.com/en-us/library/ms175913.aspx . Hope it helps. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
SQL Server Appropriate Use of End Conversation
I have a system that will post a message to a queue, but does not need to wait for a response - just needs to make sure the message arrived properly in the queue, not that is was processed at the receiving end. A second service will poll the queue to retrieve outstanding messages and will then move the message to an outside system. The movement of the message to the outside system will be wrapped in a transaction and if the process is successful, then the transaction will be commited otherwise it will be rolled back. 1) is it appropriate for the service that posts the message to send an END CONVERSATION This way the sending service will not be waiting for a response. 2) in the data movement phase, is it appropriate to issue and END ...Show All
Visual Studio Express Editions Make an .exe file install itself on a remote computer from a web page (.aspx)
Thanks in advance for any help on this... I have 2 servers on a network, Server A and Server B . The two servers has IIS installed. On Server A , I want to create and host a web page that holds a simple <form>...</form> and a <submit> button. Once the users clicks on the <submit> button, I want to run an .exe file that is stored on Server B . but the thing is that I do not want Server A to run that .exe even if the web page was ivoked by Server A , I want Server B to run that .exe file. Imagine this is the code inside page1.aspx that is stored on Server A: protected void Button1_Click( object sender, EventArgs e) { System.Diagnostics. Process .Start(" \\ ServerB \C:\automate.exe pa ...Show All
Visual FoxPro "Flush" vs. "Tableupdate(1,2,.T.)" ?
The question is: When is it wiser to "flush force" (data to disk) vs. =Tableupdate(.T.), =Tableupdate(1), etc. What is the usual paradigm Can I forget flush Is flush slow in the LAN setting(s) Does flush hog resources Does frequent-flush help prevent corrupting tables during intense LAN data-manipulation, crashes, and/or power outs Is is dangerous to rely too much on Tableupdate() alone when tables stay open all day As always, thanks in advance for any thoughts >> An updated open data-file remains unsaved and not "Modified" (according to fdate("myData.dbf") and Windows Explorer "Modified") Thae fact of the matter is that I have been working in VFP for more than 20 yea ...Show All
Windows Forms UIP Application Block Version 1.0 upgrade to 2.0
I am using UIP Application Block 1.0 with .Net 2003. Now I am upgrading .Net 2003 to 2005. But it is giving me run time error because of the UIP AB. I am lost and can not find any clear information to the following questions. Can I use UIP AB 1.0 with .Net 2005 If so, what changes do I have to make in my current AB to make it to work with .Net2005 What it will take to upgrade UIP AB 1.0 to 2.0 How much of a code change do I have to make I am new to microsoft technolgy. Any information would be helpful and please direct me where i can find useful information on those topics. Thanks in advance!! Please be patient Someone will only reply if they know the answer. It would also be advisab ...Show All
