[2008] Decompressing A Zip Works But Where Is The File?

Jan 20, 2009

First of all I am not a really experienced programmer, sorry for that. I try to do my best.So far my application is succeeding: it can create a directory for itself download a file from the internet, rename it to the matching unique id for the user, replace the file and backup the old one.

THe problem I now have that the file to download is 22mb, with .rar it's only 3mb. Zo I tried to zip it (also worked) but now I need my application to decromress it. After a lot of search I found this method from MSDN:

[Code]...

View 1 Replies


ADVERTISEMENT

VS 2008 Compressing / Decompressing Entire Folders

Apr 1, 2010

How do you do it? I've looked it up everywhere and failed to find anything. If there is a previous post I missed that discussed this, post it as a comment and forgive me. <scenerio>Friend and I are working on a VB project. We want to export and inport folders of information, and to do so neatly, we wanted to compress the files in the format we made for our program, then be able to decompress it within the program as well. If theres any other way to do this without compression and decompression

View 2 Replies

Site (which Works) For Uploading A File Using Express Edition 2008

Nov 1, 2009

can you suggest me a site(which works) for uploading a file using vb express edition 2008.it should be there on the site when i download it.

View 5 Replies

VS 2010 Decompressing A Byte Array?

Nov 24, 2011

I have read a byte array called compressed_byte_array() from a file. This array is compressed using the zlib compression Deflate (RFC1951).

How would I decompress this array and store it in another array, let's say decompressed_byte_array(). I probably have to use DeflateStream and I have tried a few methods, but always ending up with a error message.

View 4 Replies

Decompressing LZSS - Data Stored In A Byte Array

Dec 28, 2009

I have some data, stored in a byte array, compressed with LZSS compression. I've crawled the net for the last 2 days trying to find some code to decompress this data without success. Has anyone come across a suitable routine that can help?

View 2 Replies

XML File Parsing Works On Win 7 But Not On Win XP?

Feb 18, 2011

I'm writing an application in VB.net 2010, using Visual Studio 2010 Pro on a Win 7 Computer. The test code works for me correctly. However when I ziped the project folder and sent it to a friend (who is using Visual Basic 2010 on an Win XP Computer), it did not work correctly.

While runing the program in debug, we found a section of that code reads an XML file to construct an object provides a different results on the two computers. I'm not sure why the same code would parse parts of same XML differently. Most of the XML parsed correctly on both computer, just a couple of sections provides the incorrect result on the XP Computer using VB 2010 Express.

Sample of XML that reads differently:

<players>
<min>2</min>
<max>2</max>

[Code]....

View 4 Replies

Batch File Works When Ran Directly But Not From .Net?

Sep 2, 2009

Im running VB.Net 2005.Inside of the program I use the line ystem.Diagnostics.Process.Start("program_) to open multiple programs. For all but one of them this works perfectly. This erros when I try to run a batch file using. System.Diagnostics.Process.Start("C:xx.bat") the batch file opens but then throughs a number of unreconizable java errors follow.

[Code]...

View 2 Replies

How File Format Conversion Works

Feb 9, 2011

Need explanation on basics of the file format conversion in VB.net. I absolutely don't know anything about the file format conversion, so a starter here.

View 2 Replies

Does ADO Works On VB 2008

Aug 17, 2009

does ADO works on VB 2008 ?i have this error when i tries to run this code

'Item' is 'ReadOnly'

and below is my code:

rs.AddNew()
rs!("pwd") = TextBox1.Text (it gives me the error here )

View 4 Replies

Works In Vs 2008 But Not Outside?

Feb 17, 2010

So my vb program works inside of vs 2008 with the code below but when i build it and put it in windows home server it crashes. The problem is with the if statement. If i take it out the program works just fine. the if statement searches the output from the shell.

schedule = "SCHTASKS /Create /SC " & Often & " /RU Administrator /RP " & password & " /ST " & TextTime.Text & ":00" & " /TN " & title & " /TR " & path & " > C:copypalslogs" & title & ".txt"

[Code]....

View 7 Replies

Watermarking Code Works But Not If Used In Codebehind File?

Nov 1, 2009

Puzzled why the same Sub Page_Load code will not work if used on the codebehind file. Current code works fine if used directly on the aspx page,but as soon as i try placing the same code in a codebehind file the images will not show at all. Will post code sample if requested.. The way the code is setup thumbnail page opens a new page that displays larger image with watermark. the watermark page only contains code that creates the watermark for the larger image page.

View 7 Replies

.net - Opening XLSX File Via OleDb Works In WinForms But Not Always Via ASP.Net?

Apr 18, 2012

I've built a simple library to import data from XLS/XLSX files. The code runs perfectly in my WinForms app but occasionally throws exceptions when I run it from ASP.Net. The "occasional" part seems to based on file size. My test file is about 16,000 rows and 18 columns totaling about 4MB as an XLSX file. If I drop rows (down to about 12,000) it works or if I drop columns (down to about 12) it works or certain combinations of these (14,000x14, etc) it works. This leads me to believe that I'm possibly running into a memory constraint somewhere. Below is the distilled code that's not working:

Dim dsn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=""c: est.xlsx"";Extended Properties=Excel 12.0"
Using Con As New System.Data.OleDb.OleDbConnection(dsn)
Con.Open()'Exception thrown here
Con.Close()
End Using

The exception that I'm getting is:External table is not in the expected format Searches for this all talk about getting the DSN correct and since it works on the desktop I know I've got that right.My test machine is a Windows 7 64-bit with the Microsoft Access Database Engine 2010 Redistributable - 32 bit installed. (My machine has Office 2010 32 bit installed which is why I have the 32-bit ADE installed, it won't let you install 64-bit.) I've set my IIS app pool to allow 32-bit applications which I needed to get ADE to work in the first place. I'm running the v4 Framework and as far as I know my IIS settings are pretty much standard.Like I said, the code works every time when I run it through a WinForms app but occasionally fails through ASP.net on the same machine.

View 1 Replies

Creating A Bat File And Executing Directly As A Command And Neither Works?

Dec 10, 2008

I am trying to execute Plink from a Windows Service. I have tried creating a bat file and executing directly as a command and neither works. I the bat file it acutally initiated the command but it didn't execute, just sat there till I killed it. in a bat file

[Code]...

View 6 Replies

VS 2008 : How A Module Works

Jul 8, 2009

Im on Chaper 10 of Microsoft Visual Basic 2008 Step By Step, and I just dont understand how a module works. Ive the chaper over and over and i still don't get it.

View 12 Replies

Get A Treelistview Written That Works On Vs 2008?

Mar 11, 2010

where can i get a treelistview written in vb.net that works on vs 2008 or vb express edition 2008?

View 2 Replies

VS 2008 : Loop Works With Breakpoint Only?

Mar 26, 2009

I have written a pontoon game for a college project but i have a problem in which my loop only works when there is a breakpoint in it.The counter is incrementing as i have used a msgbox to display it. The procedure runs the loop and returns the same value in all locations in the array. With a breakpoint it displays correctly in the array.

here is the

Dim aryCardValue(0 To 10) As Short
Dim aryCount(0 To 10) As Short
Dim i As Short

[code]....

I have used the cards procedure in other programs and it worked fine.

View 4 Replies

VS 2008 : USB Code Works On Vista And 7 But Not XP?

Dec 26, 2011

my code doesn't seem to work on windows XP but does work on Windows Vista and 7.

Code

Imports Microsoft.Win32
Public Class Form1
Dim rValue, rsvalue As Int32
Dim Regkey, RegKey2 As RegistryKey

[code]....

View 11 Replies

VS 2008 Added Tab Control -> Nothing Works

Sep 9, 2009

I've been working on a project lately, where the user can click on an item in a listbox and then get a picture in the PictureBox1. My problem is that when I added a tab control so that I could have several pages with different listboxes and pictureboxes, it stopped working! When I click on an item in ListBox1, the picture doesn't show up in PictureBox1. Why did the tab control ruin everything?

View 3 Replies

VS 2008 How Mschart Control Works

Dec 28, 2009

I have browse the net and can not find any examples of code that i can use to see how the Mschart control works. Can someone please help me with some examples.

View 4 Replies

VS 2008 Raw Socket Don't Works With Vista

Aug 12, 2009

my goal is to control the incoming and outgoing packets to a game server, to alert when a game round finishes the main code is this:

Private Buffer(65535) As Byte
Private RawSocket As Socket
Public Event PacketReceived(ByVal PacketBuffer() As Byte)

[code]....

this code works perfectly with XP (you can read both incoming and outgoing packets to the game server)... with Vista the same code displays ONLY the incoming packets....

View 4 Replies

[2008] Code Works With One Database, Not The Other?

Feb 23, 2009

When trying to get this program to filter appointments based on which doctor is selected, the code works fine with a sample database. When i try to use the database I have to, it doesn't show any appointments.

Imports C1.Win.C1Schedule
Imports C1.C1Schedule
Imports System.Data

[code].....

View 13 Replies

[2008]same Identical Code That Works Only In 6 PC Out Of 10?

Mar 17, 2011

I have made a little Hotkeys utility for Poker Tables. I hook the keys and, depending from the key, I simulate a mouse click over the related table button.The Sub that make the job is this:

Private Sub DoMouse(ByVal flags As NativeMethods.MOUSEEVENTF, ByVal Wheel As Integer)
'wheel = +-120 if wheel event, 0 in other cases
'added hoping to improve the code, but nothing changes, Hwnd is a global variable

[code].....

View 19 Replies

Vb 2008 Conrol Array Works To A Poit

Mar 25, 2011

'Make a control array work around (it works) except for'PROBLEM txtBatterPos_Changed sub handler.[code]

View 2 Replies

VS 2008 : Button Works Once Then Stops Working?

Aug 17, 2009

I am having issues with my program. It should update every time i click the button, but it runs through perfectly on the first click, after the first click it does nothing.This is a UDP Program, where the client sends a packet with a sequence number and payload which are separate items in the packet. The server receives the packet, reads the sequence number, and then sends back the next sequence number the client should send.The client then receives that from the server with the same payload.. And then should change its sequence number to the one it recieved, and send that to the server..The client works up to where the client updates to the sequence number it receives from the server.. But both show no effect on any clicks after.

Heres my Client
Option Strict Off
Option Strict Off
Imports System.Net.Sockets

[code]....

View 21 Replies

VS 2008 Can't Resolve Warning But Code Still Works

May 30, 2010

"Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated".I have this message showing up that references this code in the keyup event:[code]I am just testing the trapping of keys right now. The code still works but I am uncomfortable with an unresolved warning.

View 3 Replies

VS 2008 Make A Function That Does What This One Does But Works Faster?

Oct 27, 2009

I have a function that I use quite a bit that I wrote more than 2 years ago. It works fine but recently I saw how it can use up a good deal of time under certain condition. Here's some code that uses the function SelectValue The function works so that if you had N which you plug into the function rising continuously while SelectLimit was set to 255 then SelectValue would match N until N reached 256. SelectValue would start to descend to 0 until it reached 0 and then it would again ascend to 255 and the process would repeat. So SelectValue(255, 255) would return 255 and SelectValue(256, 255) would return 254. SelectValue(257, 255) would return 253.

Option Strict On
Public Class Form1
Dim sw As Stopwatch

[code]....

The function works exactly as I want it to but if one of you knows a way to write this so that it will process faster then you can let me know. I get a result for processing time of 6.11 seconds on my computer for the above code.

View 2 Replies

Link From Button - When Sheet1 Is Selected, It Works, But When Sheet2 Is Selected, Not Works

Jan 5, 2012

I have a spreadsheet with this code:

'insert link
sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "")
the code of the button (ribbon)

[CODE]...

When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?

View 2 Replies

IF Works But Loop Required - Huge Network With 20+ File Servers All With Data Spread Out Across Them

Mar 4, 2011

My app is a fairly simple and im sure with the right knowledge this would take 2 minutes.. but sadly iv been at it for hours. So my scenario here is a huge network with 20+ file servers all with data spread out across them it can take hours to find the folder required.

Hence this app.. so it consist of a input box, progress bar and a button, using FileSystemObject I plan to interrogate a directory to see if a folder exists (folder specified by user input) however it need to check multiple directories, in my old app I used a list box which wrote to a text file allowing the user to add additional directories then using if statements proceeded through the servers.. however they have added that much that my IF's have ran out really because i know it should have been a loop

Imports System
Imports System.IO
Public Class Frm_main
Private Const FILE_NAME As String = "C:directories.txt"
Dim objReader As New System.IO.StreamReader(FILE_NAME)
Dim Lines() As String = IO.File.ReadAllLines(FILE_NAME)
Dim Dir As String

[CODE]...................

View 1 Replies

Upgrading From 2008 To 2010 VBScript_RegExp_55 No Longer Works?

Dec 2, 2010

There shouldn't be any problem whatsoever right?

VBScript_RegExp_55.RegExp
and
VBScript_RegExp_55.MatchCollection is gone

VBScript_RegExp_55 name space is still around but only contain interface globalObj and errObj.

View 9 Replies

VS 2008 : SQL Query - Works At Design Time But Not Runtime?

Aug 16, 2010

I've created an SQL Query using the query builder. In the query builder, you can test the query by clicking the button "Execute Query", and entering the desired values in the parameter fields.

My query returns the correct results when I do this, but when I seemingly pass the same values at runtime, I get 0 records returned.The query is designed such that you can pass nulls if you don't wish to filter data by that particular parameter.
SQL Query:


SELECT ID, UPC, Quantity, Manufacturer, Style, Color, Size, Category, DateReceived, Cost, OriginalRetail, Retail, LocationID
FROM Inventory
WHERE (UPC = @UPC OR

[code]....

In the query builder "Execute Query" dialog, I enter a value I know that the db contains in the "Size" field, "1/1/1900" & "1/1/2199" in Dates A & B, respectively, and nulls for all other fields. This returns 1 record, which is just as I expected. It works correctly.But when I pass the same values into the method created by the designer, I get 0 records returned. I can't figure out where the problem lies. Even if I enter nulls for all fields other than the dates, it returns 0. This tells me that the dates are causing the problem, but I can't figure out why, because I'm passing strings equivalent to what I entered in the query builder.

View 6 Replies







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