Igor_Bsa's Q&A profile
Visual Studio Express Editions How to use the Window API --ReadFile() to get the text file's text become to TEXT mode
Hi there! Sorry ,my english is poor ,please try your best to understand what the question that i ask,Thank you! Question: I would like to get the text file contain ,Window API ReadFile() just can read the text file contain become the binary mode only ,i known that fopen() have the flag to set the mode that you want ,but CreateFile havn't this option,Plz help me to solve,Thank all Matthew AFAICT, you will have to perform this conversion yourself (replace all "\r\n"s with "\n"s). Is there a reason why you must use ReadFile() fopen()/fscanf()/fread() is the better function to use in most cases. ...Show All
Visual Studio Express Editions Back Button?
Can I have a Code example for a back button in a web browser. Also a progress bar. <a href="#" onClick="history.go(-1)">Back</a> That's a back button. A progress bar is more complex, because your page needs to update itself to show progress. What do you want to report progress on ...Show All
Software Development for Windows Vista MSDN Vista key fails
Hi I have just downloaded the December CTP 5270 build from my MSDN subscription but the Product key provided on MSDN doesn't work, I have read that I need a new code for this build does any one know when this will be published on MSDN Regards Steve Me too. I tried both CTP and Beta 1 key but both of them didn’t work. I tried to install Vista CTP on Virtual Server 2005 R2. I’m sure this is NOT issue of Virtual PC. ...Show All
Windows Forms DataGridView + RowValidating = Index 4 does not have a value?
Hello, I recently setup my DataGridView to use the RowValidating event. However, whenever a user types something in to a NewRow (as to cause the DGV to create a new row and consider the current row's NewRow = false) and then hit escape to cancel the edit, the DataError exception goes nuts. It keeps spitting out "Index 4 does not exist" in what seems to be an infinite loop. Here is my RowValidating code: private void dgvMain_RowValidating( object sender, DataGridViewCellCancelEventArgs e) { if (dgvMain.Rows[e.RowIndex] != null && !dgvMain.Rows[e.RowIndex].IsNewRow) { string er ...Show All
Visual Studio Express Editions GetPixel's Output - Hex, HTML or Dec?
What's the output of GetPixel Html, Dec, or Hex I need to know. Binary......It's an integer. Look at the to the API and it says integer. Dec or Hex is a way of formatting binary so that humans can read it. ...Show All
Windows Forms DataReader and ListBox!
How bind the sqlDataReader with ListBox (in code) Personally, I'd rather you'd at least give it a shot before asking how to do something with code. It seems very lazy and almost demeaning for you to ask with such little information. however, I am hoping there's articles that others may have come across that may help you. I'd& ...Show All
Visual Studio Team System How do I query SCC for items
Hi, I would like to use http://tfs:8080/scc/application/...asmx to retrieve a list of files of a particular project (ie $/MySccProject/MySolution/MyWebProject) to see the date+time of last change of each file. can someone give me a hint - or better: a link to some documentation ! I've installed the VS2005-TFS SDK, but I can't see a difference, nor any help-file which would give me a hint! thank you! FYI: doing it per SQL would be simple (see below), but not as elegant and is prone to errors, if anything in the structure changes, or the meaning of fields in the DB is mis-interpreted. But basically, what you see below is what I am trying ...Show All
Visual Studio Team System Registering com during build
Hi all I'm trying to register a COM dll during the build process, my Regsvr32 is looking ok but it returns an error code of 3. However when I try and register manually (whilst remotely working on the server) it works absolutely fine. Any ideas Thanks Kev I needed to register a dll before the project was build. In the project folder I created a new folder 'lib' and copied the dll to the folder Opened the project file in the XML editor and added a new target block: <Target Name="BeforeBuild"> <Exec Command="regsvr32 /s "$(ProjectDir)lib\dsofile.d ...Show All
Visual Basic Filling StronglyTyped DataSets
This is a Master/Detail kind of application using access and vs2005.Since I had tables that contains large data, I want to implement a selection criteria for a user to load customers' name in a gridview.Because using the Fill() takes too much memory, I want populating the grid done just like in FillBy but instead of toolstrip I want it in a textbox.So I had a textbox(tboxSeachCustomer) and when the user inputed 'A' the grid will show all of cutomers starting with 'A'.What should be my Query looks like assuming I had this one: SELECT CustomerID, LastName, FirstName, MName, DateOfBirth, ...... FROM Customer thanks... ...Show All
Visual Studio How to listen keystorkes in VS.Net IDE
Hi, I'm writing a add-in for helping our development team. Something like live templates, templates will be stored in a xml file with keyname. Like forloop, ifcondition and so on... So when the developer types forloop in the codewindow, then a tooltip should appear on the window, saying press some key to fill the template. For doing this i tried using add-in, but in VS 2003 only LineChanged event is available for texteditor events in DTE. So I don't know how to track the keystrokes happening in the current window. Please let me know the solution or alternative way to handle this or any workarounds. Regards, Saravana Kumar B Samo, I desc ...Show All
Windows Forms Custom Controls losing Event Handlers and WithEvents
I've created various custom controls that inherit from the regular windows controls (textbox, combobox, datagrid), but provide a little extra functionality. I have added my custom controls to the toolbox so when I am in the designer, I can just drag and drop them onto my forms. The problem is when I do add them to my form, the designer gene ...Show All
Visual Studio Express Editions Add Reference Crash
While using any of the Visual Studio Express Edition programs, the program crashes when I try to add a reference to the project. The program will pause for a bit, then I get an error box stating "Microsoft Visual WD has encountered a problem and needs to close." It gives me the option to send an error report or don't send, as well as to Restart the program afterwards. I am using Windows 2000 Professional. Thanks in advance for any help. You've pretty much answered your own question. Send the error report. You indocate from the error message that you are using VWD Express. You aren't trying to refer ...Show All
Smart Device Development Multiple serial ports
I have a tester that communicates to my Devices Under Test(DUT) thru 1 of 8 serial ports. I have 128 DUT's in my tester hooked up to the 8 serial ports thru a mux which selects 1 of 16 banks (8 * 16). Normally I will select a bank and port and send cmds or get status from that device then switch to any other combination of bank and port and continue using the WriteFile(hComm, ...) & ReadFile(hComm, ...) after selecting the proper bank and com port handle. My issue has to do with initialization of these DUT's. I need to download code to every one at the begining of opperation which could take quite long using WriteFile & ReadFile func ...Show All
Windows Forms Error initializing form containing button with image
When I set the image field of a button on my form, I get the following error when my form is initializing. A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Form1.resources" was correctly embedded or linked into assembly "test2". baseName: Form1 locationInfo: test2.Form1 resource file name: Form1.resources assembly: test2, Version=1.0.2162.17278, Culture=neutral, PublicKeyToken=null The statemen ...Show All
Windows Forms button in datagrid
hi. does someone know how to add a button col in datagrid i want every record to have a botton that will open a screen. thank's http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/datagridcolumnstyle2.asp ...Show All
