Reading Someone Else's Code?

Jun 10, 2011

What are some practical ways to resolve legacy code in an n-tier architecture where all of the code is written in self-referencing web services? So far, much of the code is undocumented, uses old VB6 conventions, and there are very long procedures. What's the best way to approach, let's say, a change of business rules for such a large project without having reliable documentation?

I have limited access to the original developer of the code. How can I better document the process and complete my assignments, knowing that the code is changing daily and there are several dependencies for each method, there may be xml files, sql queries, and other unconventional resources being accessed.

View 1 Replies


ADVERTISEMENT

C# To VB Code Reading XML Node?

Jul 20, 2011

C# to VB code reading XML node?

View 5 Replies

Get Started Reading Code?

Oct 6, 2011

I want to know if there is a way where i can view the code that my computer sending threw the cpu so i can learn it is there a program i need to so this

View 3 Replies

Reading Barcode Using .net Code?

Oct 15, 2011

I need to add barcode reading feature to my application. I donot know how to enable my application to read barcodes.I mean a scanner should read the barcode and having matched the article no. in database, info should be displayed on the screen.

View 3 Replies

Reading Code From Javascript

Oct 25, 2009

i need to call a vb code in my aspx.vb from my javascript. How can i do that? I need an example.

View 3 Replies

Getting A Code For Reading And Writing To Files?

Jul 18, 2012

I have been given the task of basically reading and writing to and from files. Below is the code from one sub:

If btnSaveRecipe.Enabled = True Then
FileName = "C:UsersLeylaDocumentsRecipe TaskRecipe.txt"
FileWriter = New IO.StreamWriter(FileName)

[code]....

I can't work out what i've done wrong, but when I open the file itself in the folder, it is empty.

View 1 Replies

Reading - Code To Parse A XML File

Apr 15, 2011

I am using the following code to parse a XML file of mine:

Code:

Dim xml As String = "<?xml version=""1.0"" encoding=""Windows-1252""?>" & _
"<theref:theref-msg xmlns:csr=""http://www.xxxxx.com/Schema/csr"" xmlns:theref=""http://www.xxxxx.com/Schema/theref"">" & _

[CODE]...

I get a value of "0" from xmlb when i should get a "1" if it found something. I can get the first half (<theref:header> to </theref:header>) using this command:

Code:

Dim xmlb = (From getXMLData In document.<theref:theref-msg>.<theref:header>).ToList()

View 8 Replies

Reading From Text File In Code?

Aug 31, 2010

Using Microsoft Visual Studio 2008: ' Create an instance of the open file dialog box.

Dim openFileDialog1 As OpenFileDialog = New OpenFileDialog
' Set filter options and filter index.
openFileDialog1.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
openFileDialog1.FilterIndex = 1

[code]....

On the line marked, how can I pass the path of the selected file into the StreamReader constructor?

View 1 Replies

Writing A C++ Code For Reading Data From UC Using USB

Apr 9, 2009

I am doing the project to make a microcontroller communicate with PC. I am facing the problem writing the C++ code for command button to ask uC to display the data in my label. How to write the code for C++ to get the data from the microcontroller?

i'm using a C8051F320-dk which already have a USB connector and a RTC.

my data will be the date, and time provided from the RTC.

View 1 Replies

.net - Reading Codelines From Dataadapter Generated Code?

Mar 10, 2011

In one of my project I have the following lines:

Me.SqlDeleteCommand1.CommandText = "DELETE FROM [CLASS] WHERE (([MAIN FACILITY USED] = @Original_MAIN_FACILITY_USED) " & _
"AND ([START DATE] = @Original_START_DATE) AND ([CentreId] = @Original_CentreId) " & _
"AND ([RowVer] = @Original_RowVer))"
Me.SqlDeleteCommand1.Connection = Me.SqlConnection1

[Code]...

View 1 Replies

Designing The Flow Of Code When Reading / Writing From Database

Aug 8, 2009

So I'm trying out a concept tool of mine where I need to be able to read and write data from a database real easy. I've set up the form as I like and spread around different text boxes and dropdownboxes to read the data from the database. And I've got it all to work and all, but there's a small bug I don't fully understand why's there. Some textboxes don't update the text from the database.

But it seems as it only occurs if the data in the database is nothing. So the value from the last row is still hanging in the textbox and thus, clicking "Update" actually updates the value from the field from the last row, into the new row. Messing everything up.

[Code]...

View 2 Replies

Drawing Code In The .Paint Event. Reading The Above Mentioned Thread?

Mar 29, 2012

I'm trying to follow the technique discribed by jmcilhinney in this HTML [URL]..I have all the drawing code in the .Paint event. Reading the above mentioned thread I would need .Invalidate(all or parts of the picturebox) AND .Update() in order to repaint (all or parts of) my PictureBox, however in my case it works without .Update. Am I doing something wrong?

View 5 Replies

Reading All Files In Current Directory In Visual C++.Net - C And C++ | Dream.In.Code?

Mar 24, 2009

I have created a project in VS2003.Net under VisualC++.-->Windows32 Application. I have to make an executable file that I will be able to run from different machine.The purpose of this file is to read some files that are in a particular directory. I will run the VSC++ .exe file from this folder. So I have to use some code to get the currentdirectory(directory where the current exe file is existing). After getting the directory, I have to find all the files in this directory that has an extension of .config.

View 2 Replies

Reading Forum Input - Opening Database Connections And Calling VB Code

Jul 31, 2011

I am extremly new to this concept of aps.net and vb. all the tutorials I see are c# based or very basic for vb. What I have is a contact forum with some basic information. I got the whole "check if the user has input information correctly down pat how ever Its this whole, connecting to a database (sdf) if in another vb file ands calling that method into aspx file and proessing forum input to say "take this, insert into bla..." I come from java, JSP and J2ee bak ground where its not that diffrent and I dont have all week to read books and take baby steps. I have until tuseday morning to finsih this. Right now I am as far as forum validation....

[Code]...

View 1 Replies

.net - C# Code For Reading Multiple Attachments From Microsoft Access Attachment Data Type Using DataReader?

Aug 1, 2011

I have multiple documents stored in Attachment data type in Access database. UsingDataReader, I need to read multiple attachments along with their file name and store them on the file system

View 1 Replies

Reading Multiple Lines Of Code And Storing Them In "Records"?

Jan 15, 2012

I'm Rather new to coding, and It seems like I skipped some of the basics, and jumped in the deep end.I'm having a couple of problems, as I have an ordinary text file called "Orders", and this file stores Orders, placed by users of my program.The Users write to the Orders.txt file, 5 lines per Order, For Example :

Item Name
Item Quantity
UserName (Of user)

[code].....

View 4 Replies

Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?

Dec 18, 2010

The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.

View 1 Replies

Reading, Then Using, Then Reading Text File?

Jan 2, 2010

I am working on a project in VB 2008 and need it to do this:Read first line from text file (using Openfile)Enter line into textbox on formDo some other codeThen Read second linefrom text fileEnter line into same text boxand loop until we have gone through text fileI am not sure how to read line by line from text file then enter it in textbox. I can open the Openfile and get the filename and everything, but I just am not sure how to read from it or enter that line into the textbox.Here is what I have, its not much but its a start:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim FileReader As StreamReader

[code]....

View 4 Replies

Code To Load The Already Compiled Yahoo Files To Execute The Code Again, Without Having To Recompile The Code?

Dec 8, 2011

I have some code to execute code at runtime...

Here is the main

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text.Trim <> "" Then
If TextBox2.Text.Trim <> "" Then

[code]....

When the button is pressed, it all works and the following files are created: yahoo.dll and yahoo.pdb My question is this: What is the code to load the already compiled yahoo files to execute the code again, without having to recompile the code?

View 1 Replies

VS 2010 Convert VB6 Code To VB2010 Code From "The Most Amazing VB6 Code Ever" Thread?

Jul 19, 2011

This code was posted in Chit Chat and everyone is saying how great it is. I just have Visual Studio 2010 and no familiarity with VB6 so I thought it would be good to convert the code to Visual Basic 2010.

[Code]...

View 39 Replies

SyncLock / Multithreading - Child Thread Reading The Values Of _do At The Same Time As Another Child Thread Is Reading The Values

Nov 13, 2009

I have a dictionary object (let's call it _do) I am using to cache some values for use in a multi-threaded program. I have a single controlling parent thread, with a timer function _doTimer() which can kick off child threads with a new instance of class MyThreadObject in each. My parent thread has _do as a property and with each time _doTimer() gets called, it may or may not repopulate _do depending on cacheflag settings. I pass a reference to _do to each instance of MyThreadObject and those threads at some point read the values of _do but DO NOT write to it.

What I want is to ensure that the child threads do not try and read _do whilst the parent thread is writing to it. Same thing but very slightly different -> I also don't want the parent thread to write to _do whilst the child threads are reading from it. However there is no problem with 1 child thread reading the values of _do at the same time as another child thread is reading the values - so ideally I do not want each child thread to completely lock out read access, only locking out Write access.. The code is roughly like this:

[Code]....

View 3 Replies

Another OPTIMIZING Macro Vba Code For Excel 2007 - The Code Is A Sort Of Transposer For Data

Sep 9, 2011

this code was not done by me originally and there are some thigns here i dont quite understand i have altered it a bit from my coworkers code to suit my data and it works. but too slow. and when i have 4000+kb excel files it might freeze altogether. ( I have checked tho that when and after this transposer runs it will still be within the excel row limit, i had done calculations before and made a macro to automatically split excel files based on number of columns and rows to make sure this is so ). This code seems to start out fast then goes slower the longer it runs. at least this is what it seems liek to me.

[Code]....

View 2 Replies

Convert Excel 2007 Macro Code To Correct VB 2008 Code?

May 26, 2010

i recorded the following macro in excel 2007:

[Code]...

View 3 Replies

Restricted Textbox Code (Specifically, Building A Class Library With Code)?

Jan 2, 2012

I recently found this code (provided for third party use on another VB site), however,ll of my attempts to insert it into a class library have failed.I open a new class library and past the code in, and immediately get several errors pertaining to how certain objects can't be found. I find it it is crucial to use this code, unless someone can suggest to me another example of existing code that will do the same thing: make a restricted textbox who imputs can be restricted, that can handle pasting, shortcuts, text property setting, and script-entered text.

Option Strict On
Imports System.ComponentModel
Public Class RestrictedTextBox

[code].....

View 9 Replies

Size Of Compiled Code Into MSIL Necessarily Correlate To Code Speed?

Nov 24, 2010

I have been playing around with different types of native code operations in Visual Basic and then inspecting the code with Reflector to see what kind of MSIL is produced. For example, I wondered, in a one line If-Then-Else different than an If-Then-Else split onto multiple lines, ie.

[Code]...

View 3 Replies

Write A Code For Serial Ports Without Sucess But The Code Does Not Throw An Error ?

Feb 20, 2011

what is wrong with my code and I get no feedback from my button click event, i have imported. ( code Below) and i have tied differrent combinations of the code without sucess.maybe add extra to my code for the list to show open Port or closed ports.

Imports System.Management
Imports System.Management.ManagementObjectSearcher
Imports System.Management.ManagementNamedValueCollection[code].....

View 9 Replies

E.graphics.DrawSpiral Okay Folks Here Is A Code Update From Code Have Posted Yesterday Using An Extension Method?

May 1, 2012

This code is for 2008, 2010 and later versions of VB.Net as it uses an extension method.Please note: If you are using an earlier version ( or you do not like extension methods ) please see the next post.Here is the code I posted on Monday April 30th, 2012.>>Now you can specify the startRadius to be

View 7 Replies

VS 2005 Remove The Box (0x0A) Unix End Line Code; Then Replace It With CR+LF Normal ASCII Code?

Dec 13, 2009

I have this string just down loaded of a Unix server. I would like to remove the box (0x0A) Unix end line code; then replace it with CR+LF normal ASCII code. Also, I would like to do the replace before I save the data, while it in memory.

View 14 Replies

VS 2010 Bar-code Font With A Library That Converts Text To Proper Format For Bar-code Readers

Jan 18, 2012

I had a weird series of errors involving e.Graphics.DrawString() when painting a panel.I am using a barcode font [Code 128] with a library that converts text to the proper format for Barcode readers.That's fine, however, when I draw it to the panel, that's where things stop being fine:But, here's where things get funky. When I put it into a TextBox instead of drawing it via Graphics.DrawString(), everything is peachy:In fact, the TextBox one looks much better than the Graphics.DrawString() one! Am I doing something wrong?[code]

View 2 Replies

MSI Returned Error Code 1638 When Re-Installing Visual Studio 2008 - .NET Framework | Dream.In.Code

Jan 9, 2012

I realize this post is rather long, but I wanted to give all the information up front instead of people having to ask me for more information.At the end of the re-installation of Visual Studio 2008, there is this message:

"Microsoft SQL Publishing Wizard: [2] Error: Installation failed for component Microsoft SQL Publishing Wizard. MSI returned error code 1638" in the log file dd_error_vs_procore_90.txt.

I have searched on Google for this whole message and found some references to this error, but I have done what they said worked for them and it did not fix the problem for me.When I searched for just "MSI returned error code 1638", I got that it cannot install something because it is already installed:"Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel".In Add/Remove Programs I see these two programs:

Microsoft SQL Server Database Publishing Wizard 1.3
Microsoft SQL Server Database Publishing Wizard 1.4

Are these programs/versions what the error is refering to? Am I safe to remove them and depend on the similarly-named item which would be newly installed with Visual Studio 2008 - "Microsoft SQL Publishing Wizard"? I still use SQL Server 2000 and 2005 on my computer, as well as 2008. I had installed VS 2008 on my computer before without this problem and also have VS 2005 and 2010.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved