Click here to Skip to main content
16,006,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB6 webbrowser "run-time error -1 (ffffffff)" Pin
a.vehbi13-Jul-07 1:00
a.vehbi13-Jul-07 1:00 
AnswerRe: VB6 webbrowser "run-time error -1 (ffffffff)" Pin
Dave Kreskowiak13-Jul-07 3:44
mveDave Kreskowiak13-Jul-07 3:44 
QuestionLogic for file splitting? Pin
sudhakar7913-Jul-07 0:46
sudhakar7913-Jul-07 0:46 
AnswerRe: Logic for file splitting? Pin
Dave Kreskowiak13-Jul-07 3:41
mveDave Kreskowiak13-Jul-07 3:41 
GeneralRe:Here is the detailed problem and failing conditions. Pin
sudhakar7913-Jul-07 6:02
sudhakar7913-Jul-07 6:02 
AnswerRe: Logic for file splitting? Pin
Guffa13-Jul-07 3:48
Guffa13-Jul-07 3:48 
GeneralRe:Hi just look at these cases and conditions Pin
sudhakar7913-Jul-07 6:04
sudhakar7913-Jul-07 6:04 
AnswerRe:Hi just look at these cases and conditions Pin
Guffa13-Jul-07 7:53
Guffa13-Jul-07 7:53 
What you have to do is to make a preliminary list of file sizes, and make corrections to it until it's correct. Set the sizes to the max size, then correct the sizes that are smaller than the min size until there are none left, or until you realise that it's impossible.

For the first example (450 - 350):

450, 450, 150

As the last size is smaller than 350, take bytes from the second file:

450, 250, 350

As the second file is smaller than 350, take bytes from the first file:

350, 350, 350


For the second example (125 - 100):

125, 125, 125, 125, 125, 125, 125, 125, 50

As the last size is smaller than 100, take bytes from the 8th file:

125, 125, 125, 125, 125, 125, 125, 75, 100

As the 8th file is smaller than 100, take bytes from the 7th file:

125, 125, 125, 125, 125, 125, 100, 100, 100


For an impossible example (450 - 400):

450, 450, 150

As the last file is smaller than 400, take bytes from the second file:

450, 200, 400

As the second file is smaller than 400, take bytes from the first file:

250, 400, 400

As the first file is smaller than 400, there is no possible combination of file sizes.


---
single minded; short sighted; long gone;

QuestionPaging a DataList? Pin
rashadaliarshad13-Jul-07 0:34
rashadaliarshad13-Jul-07 0:34 
AnswerRe: Paging a DataList? Pin
Dave Kreskowiak13-Jul-07 3:37
mveDave Kreskowiak13-Jul-07 3:37 
QuestionHow can i update custom document properties... Pin
koolprasad200313-Jul-07 0:01
professionalkoolprasad200313-Jul-07 0:01 
Questionmultiple items dragging and dropping from one list box to another listbox.? Pin
sudhakar7912-Jul-07 23:56
sudhakar7912-Jul-07 23:56 
AnswerRe: multiple items dragging and dropping from one list box to another listbox.? Pin
Dave Kreskowiak13-Jul-07 3:29
mveDave Kreskowiak13-Jul-07 3:29 
GeneralRe: Your logic is not working? Pin
sudhakar7915-Jul-07 19:12
sudhakar7915-Jul-07 19:12 
GeneralRe: Your logic is not working? Pin
Dave Kreskowiak16-Jul-07 2:03
mveDave Kreskowiak16-Jul-07 2:03 
GeneralHere is the code... Pin
sudhakar7916-Jul-07 2:54
sudhakar7916-Jul-07 2:54 
GeneralRe: Here is the code... Pin
Dave Kreskowiak16-Jul-07 13:25
mveDave Kreskowiak16-Jul-07 13:25 
Questionwhat is the problem with this code Pin
chiyankrishna12-Jul-07 23:32
chiyankrishna12-Jul-07 23:32 
AnswerRe: what is the problem with this code Pin
Guffa12-Jul-07 23:42
Guffa12-Jul-07 23:42 
GeneralRe: what is the problem with this code Pin
Vasudevan Deepak Kumar13-Jul-07 0:05
Vasudevan Deepak Kumar13-Jul-07 0:05 
AnswerRe: what is the problem with this code Pin
chiyankrishna13-Jul-07 0:31
chiyankrishna13-Jul-07 0:31 
GeneralRe: what is the problem with this code Pin
Dave Kreskowiak13-Jul-07 2:53
mveDave Kreskowiak13-Jul-07 2:53 
AnswerRe: what is the problem with this code Pin
Guffa13-Jul-07 3:18
Guffa13-Jul-07 3:18 
GeneralRe: what is the problem with this code Pin
Dave Kreskowiak13-Jul-07 3:31
mveDave Kreskowiak13-Jul-07 3:31 
AnswerRe: what is the problem with this code Pin
Paul Conrad13-Jul-07 4:32
professionalPaul Conrad13-Jul-07 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.