Modify Avi File On The Fly?
Sep 2, 2010
I have (with help from you) got 'full' control of Canon image capture and processing with feature recognition, and USB cam capture including frame modification on the fly. I now want to read an avi file and modify it on the run. I have found several C# and C++ routines as a good basis, (Especially the steganography example) if only I could successfully convert them. Unless I understand what I am doing wrong I don't stand a chance. So - start with the absolute basic Open/Close avi - This fails - Protected
memory eror
[Code]...
I can hardly think about streams til I can open a file, but when it is functional to the access to frames I'll submit a final copy for othersto use
View 9 Replies
ADVERTISEMENT
Jun 13, 2010
i am working on an application called logonscreenchangerxp i made my program and when i run it on xp virtualmachine i get errors the program is made using vb 2008 and using .net framework 2.0 i am not able to get full permissions to modify boot.ini file and a regisrty value and to delete a file
View 5 Replies
Jun 9, 2010
If i use a stream to modify few bytes in a file without changing the total number of bytes
does the stream rewrite all the file even if just few bytes have been replaced?
View 1 Replies
May 4, 2011
I am developing an application that Monitors a specific folder for file changes such as modify deletion, update, etc. The only problem I have is , the application doesn't fire up File events.
Here is the code:
Imports System.IO
Imports System.Diagnostics
Public Class Form1
[CODE].............................
View 8 Replies
Feb 19, 2009
I'm trying to read an entry in an ini file; if it reads "ShowInvoiceRequiredMsg=NO" then my program is going to give the option to change that line to "ShowInvoiceRequiredMsg=YES". My code below reads the file and picks up if the option is set to 'NO' but I can't seem to modify that line to change it to 'YES'....... (in red is where I'm trying to modify this text)
Dim file As System.IO.File
Dim reader As System.IO.StreamReader
Dim line As String
reader = file.OpenText("c:file.ini")
[code].....
View 1 Replies
Nov 3, 2011
I have a CSV file with many rows in which I need to update/replace column four's value using VB.NET. There are no headers on the columns so the loop can start on row one.
infile.csv
"value1","value2","value3","value4"
After much googling, there are lots of examples on how to read and write CSV files, but none quite what is needed. I know there are multiple ways to accomplish this task, but a requirement is that it's done with VB.NET.tFinal code ported from Marco's C# answerPrivate Sub CSVmod(ByVal strFileName As String, ByVal newFileName As String)
Dim strLines As String() = File.ReadAllLines(strFileName)
Dim strList As New List(Of String)
Dim strReplace As String = "test"
[code]....
View 1 Replies
Aug 27, 2011
I have an application using Visual Basic 2010 Express. Basically I load an XML file into a datagrid and then wish to modify it. Now the following code works fine:
Private Sub Modify_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Modify.Click
Dim da As New XmlDataDocument
da.Load(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "/events.xml")
Dim path1 As String = "/calendar/event/title[text()='" & DataGridView1.CurrentRow.Cells(0).Value.ToString & "']"
Dim path2 As String = "/calendar/event/text[text()='" & DataGridView1.CurrentRow.Cells(1).Value.ToString & "']"
[Code] .....
Now the modify button does what it is intended to do as far as load the "title" and the "text" elements into the text boxes. However I want to load the other attributes into the text box. I.E. date, timeStart, timeFinish etc. Also, the just of this is to be able to modify an xml file without going into the xml file using a text editor.
View 8 Replies
Jan 7, 2012
I want to change the file from resources. When radiobutton"Put new namirnica" checked=true, by clicking on button "save", i want to open .txt file in resources file that is loaded into listview1 and fill with data from textbox1,textbox2,textbox3,textbox4,textbox5,textbox6.
else When radiobutton"modify existing Namirnica" checked=true,I wish that selected index from listview1, replace with data from textbox1,textbox2,textbox3,textbox4,textbox5,textbox6. by clicking on button "save"
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim a As String = My.Resources.Hrana
[Code].....
View 6 Replies
Jun 19, 2011
i have text file more than 2000 row like these:
[Code]...
and i want to find the avarge of the 1440 row ,start from down to up and find the max,then find the avarge for each 30 row and put them besid the data and find the max of these avarge like this max(od data)=---- max(averge)=-----
View 1 Replies
Apr 15, 2012
Is it possible for me to modify this area1.txt format to format as in area_modify.txt file take a look txt file for diffrent.... the area1.txt just simple report.
View 14 Replies
Oct 4, 2007
I am developing desktop applications using .NET 1.0,1.1 thru VS 2002. I need your help. I want to view/modify file metadata like Author, Title, Company, etc. that file may be a txt / doc / exe / xml / html / pdf any format... I found an example for this in CodeProject site. In that project they give dsofile.dll and source code for viewing/modifying file metadata. I tried to register that dll using regsvr32.exe (regsvr32 dsofile.dll). But it couldn't be registered. even i tried to download setup file from microsoft site but it was not found. Please help me to view/modify file metadata info.
View 9 Replies
Aug 2, 2007
create an app that can modify file attribute like hidden, archive, read-only.
View 3 Replies
Apr 19, 2010
I am getting the above error when I attempt to run setup.exe as a non-administrator on Windows XP (sp3). This is for an application I created, and I would like to know what permissions the users need to install the application and updates. I am trying to understand the security issues when installing a vb.net desktop application, the .NET framework, and other resources such as the visual studio crystal reports engine. Any good resource which explains how this works for different operating systems and privilege levels?
View 6 Replies
Dec 18, 2009
I want to modify the third column of an existing excel file. The problem with below code is a new file is prduced with the new values in Column C and erases all other values in the orginal file. I want to update the orginal file with the new values.
Public oExcel As Excel.Application
Public oBook As Excel.Workbook
Public oSheet As Excel.Worksheet
[Code]....
View 4 Replies
Apr 8, 2010
I have text files with X Y Z data. There are three columns, one each for X, Y and Z and the files are tab delimited.The value of X is constant over a (repeating) range of Y. Z is the dependent variable.
For example:
0 1 44
0 2 32
0 3 22
[code]....
I need something to take this file and break into multiple tab-delimited columns. In the output, I would like the initial range of Y to be the first column (ie 1 to 4). Then, the second column should have the Z values for that domain (X=0 in above example). Then, the next column should have the Z values for the next domain of Y (i.e. 1 to 4 again, but now for X=5 in above example) and so on. Also, I'd like the first line value in each of the new columns containing Z values to be the X-value they were originally associated with.Thus, I'd like the output file to look like
Y 0 5 9
1 44 66 51
2 32 11 72
[code]....
View 2 Replies
Jan 6, 2011
I currently have a nightly build system running as a windows scheduled task, calling at batch file, that works sort of like this: Check out the latest revision from subversion Modify the AssemblyInfo.vb file of the main executable and the librarys to set the version number to 0.0.0.revision Invoke MSBuild to build everything (including the installer) Upload the installer and a log of the build to an FTP server This works ok, but step 2 is dirty and fragile, and I can't imagine that this the only way to do what I want. Any ideas?
View 1 Replies
Nov 29, 2010
I am currently working on an application which requires reading, writing and modifying data from a TEXT file. I have searched a lot but was not able to find a simple way to achieve this. I have to use a standard VB form with textboxes for this text file operations.
View 2 Replies
Nov 30, 2009
1. I have a button, and registry entries, each tell me what version and where it is located.
Example : (reg path = HKEY_CURRENT_USERSoftwareTNL)
Path = c:program filesmyprogram
Regan = us
The program its launching is called caw.exe. but it requires diffrent locations in a file named realms.*** file to work properly. Basically if Regan = us, do this, else if regan = eu do that, else if regan = tu do this. I need to basicly erase everything in that file and replace it, the file location is located under :
"PATH"/data/en"Regan"/realmlist.***
The PATH and Regan need to be replaced with correct paths.
2. After it has finished modifying the File it saves it and then Launches
Path/caw.exe
View 19 Replies
Mar 26, 2009
Dear Friends: I have some files in 1 folder directory that show "XML Configuration File" under type. But none of these files show the extension .config. The directory filesare like C0150,C0150_new,C0200,C0200_new etc. I need to change only 1 attribute of each of these files. I need to write a VS.Net project to do this. I have to send the .exe file(from bin directory of this VS.Net project) to my client and they will just double click the .exe file and it will change that attribute in all the .config files.
The C0150 file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
[code]....
View 2 Replies
Jul 22, 2011
I make an application and make setup file using VS setup project. This work fine and create default text files into Program Files Folder for winodw 7/vista .but can not modify these files or create any new files.There are few text files need to create ,modify during application running ,but in windows 7/vista unable to create,modify files.I am using full default admin right for these OS. If iuse C: root path then application work fine or for win XP no problem.I think UAC restricting to perform these opeartion. But i do not know how to change these restriction using vb.net, whenever application start.
View 5 Replies
Mar 29, 2011
Is there a way to modify contents of app.config file at runtime after starting application?
View 8 Replies
Jul 27, 2011
I make an application and make setup file using VS setup project. This work fine and create default text files into Program Files Folder for winodw 7/vista .but can not modify these files or create any new files.
There are few text files need to create ,modify during application running ,but in windows 7/vista unable to create,modify files.I am using full default admin right for these OS. If iuse C: root path then application work fine or for win XP no problem.I think UAC restricting to perform these opeartion. But i do not know how to change these restriction using vb.net, whenever application start.
I found one solution that , if change user rights manually then this problem solved.Follow these step to change your account settings.Control Panel-->User Accounts and Family Safety-->User Accounts-->Change User Account Control settings-->Never notify(Set tab to never notify).After this change need to restart system.Now can make all changes like windows XP into Windows 7.can also make changes into program files.
Its working fine, but need to make these changes manually in OS.but its not efficent solution. So if any one knows how can make these changes by coding that will nice.
View 1 Replies
Jul 21, 2011
In an app I am writing I need to be able to display the current settings of the following:- Windows "automatically restart on error" setting from advanced, startup and recovery section Paging file size and whether it is custom size or set to system managed Is this at all possible? perhaps VB has a function to do so I cannot find, or perhaps I can do by querying a registry value?
View 6 Replies
Oct 22, 2008
I'm trying to compare the modify date of a file vs the current system date. I've found an MSDN article describing how to get the modify time of a file:
Dim infoReader As System.IO.FileInfo
infoReader = My.Computer.FileSystem.GetFileInfo("C: estfile.txt")
MsgBox("File was last modified on " & infoReader.LastWriteTime)
This gest the Date and Time, but I want just the Date not the time.
View 6 Replies
Jul 15, 2009
It's possible to modify the "run as administrator" attribute in a file?I don't need this for my .exe, i need to modify external files, for example I need to set "run as administrator" by default in "c:file.exe"
View 2 Replies
Dec 22, 2009
I have an existing application written in html/asp that calls routines from a standard dll (written in VB6), and (3) COM+ components (also written in VB6). The db is MS SQL.
This is a very small and benign application that does logic processing. It is becoming increasing difficult to find shared hosting sites that allow registration of standard dll's (using reg32) and the COM+ components (using the IIs tools).
On the other hand, I was told by one hosting service (goDaddy) that they can host apps that are written in .NET>>>
"DLLs written to the .NET Framework specification can be run automatically from the /bin folder of your ASP.NET enabled website."
What does this entail and can it be done? i.e., can I convert the older VB6 components (and the asp/html code?) to .NET?
View 3 Replies
Oct 1, 2009
i have xml file like this:
Quote:
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<zylab>
[code].....
View 1 Replies
Jul 31, 2010
I am trying to create an application that will enable me to type in my local language. For that I need to modify the key presses. For example when I press key A it should change it to ”. Also I would like to know how to detect double and triple key presses e.g. shift + W and ctrl + shift + J and remap them to a different character. Also I would like to know how to detect a text string like and replacing them with other string like member. I have found a code that modifies key. But when I tried to change key A to key B it produces AB. I am including the code below. Hope I have made myself clear.
[Code]...
View 1 Replies
Sep 28, 2010
I am attaching a working program. But in this program i need to do some changes
View 9 Replies
Aug 6, 2010
I have a variable holding a string that is set to the value of 'B Recipes'. I need to know how to modify the string so that the new value is 'B'.
View 1 Replies