Click here to Skip to main content
15,891,863 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: create a buffer overflow Pin
Dave Kreskowiak27-Feb-09 17:52
mveDave Kreskowiak27-Feb-09 17:52 
Questiontime bomb Pin
moneyque27-Feb-09 16:42
moneyque27-Feb-09 16:42 
AnswerRe: time bomb Pin
Dave Kreskowiak27-Feb-09 17:50
mveDave Kreskowiak27-Feb-09 17:50 
GeneralRe: time bomb Pin
ABitSmart27-Feb-09 18:07
ABitSmart27-Feb-09 18:07 
AnswerRe: time bomb Pin
Eddy Vluggen27-Feb-09 23:14
professionalEddy Vluggen27-Feb-09 23:14 
GeneralRe: time bomb Pin
Luc Pattyn28-Feb-09 0:38
sitebuilderLuc Pattyn28-Feb-09 0:38 
GeneralRe: time bomb Pin
Eddy Vluggen28-Feb-09 3:06
professionalEddy Vluggen28-Feb-09 3:06 
QuestionHow could I integrate a progress bar if datawriter wirtes the image at once? Pin
JUNEYT27-Feb-09 11:52
JUNEYT27-Feb-09 11:52 
Hi,

I am working with IMAPI2 and IMAPI2FS to burn a cd or a dvd. The sample code is shown below. I want to show a progress bar to user during cd burning. However datawriter is writing the whole image file at once. How could I generate a progress bar to show to user while it is burning?

<br />
<br />
    Public Sub HellBurnIt()<br />
<br />
        Dim Index As Int32 = Nothing '**<br />
        Dim Recorder As New IMAPI2.MsftDiscRecorder2<br />
        Dim Stream As Stream = Nothing<br />
<br />
        ProgressBar3.Value = DriverSize<br />
        ProgressBar1.Value = DriverFreeSpace<br />
<br />
<br />
        'Here we dump all selected files under a temporary directory<br />
        '<br />
        Dim GetFolderPath As String = TransferFilesToTemp()<br />
<br />
        Index = DriverNo  ' x numbered drive on the system<br />
<br />
        'Create a DiscMaster2 object to connect to optical drives.<br />
<br />
        Dim G_DiscMaster As New IMAPI2.MsftDiscMaster2<br />
<br />
        'Create a DiscRecorder object for the specified burning device.<br />
<br />
        Dim UniqueID As Int32 = Nothing<br />
<br />
        UniqueID = g_DiscMaster.Item(Index)<br />
        Recorder.InitializeDiscRecorder(UniqueID)<br />
<br />
        'Create an image stream for a specified directory.<br />
<br />
        Dim FSI As New IMAPI2FS.MsftFileSystemImage<br />
        Dim Dir As IMAPI2FS.FsiDirectoryItem = FSI.Root<br />
<br />
        'Create the new disc format and set the recorder<br />
<br />
        Dim DataWriter As New IMAPI2.MsftDiscFormat2Data<br />
        DataWriter.Recorder = Recorder<br />
        DataWriter.ClientName = TextBox1.Text<br />
<br />
        FSI.FreeMediaBlocks = DataWriter.FreeSectorsOnMedia<br />
        FSI.FileSystemsToCreate = FsiFileSystemISO9660<br />
        FSI.VolumeName = TextBox1.Text<br />
<br />
        ' Add the directory and its contents to the file system <br />
        Dir.AddTree(GetFolderPath, False)<br />
<br />
        'Create an image from the file system<br />
        '<br />
        Dim Result As IMAPI2FS.FileSystemImageResult = FSI.CreateResultImage()<br />
<br />
        Stream = Result.ImageStream<br />
<br />
        DataWriter.Write(Stream) ' Here data writer writes the whole image <br />
<br />
    End Sub<br />
<br />
<br />


What a curious mind needs to discover knowledge is noting else than a pin-hole.


AnswerRe: How could I integrate a progress bar if datawriter wirtes the image at once? Pin
Dave Kreskowiak27-Feb-09 17:46
mveDave Kreskowiak27-Feb-09 17:46 
Questionusing downloads Pin
megacharged27-Feb-09 10:57
megacharged27-Feb-09 10:57 
AnswerRe: using downloads Pin
Curtis Schlak.27-Feb-09 12:46
Curtis Schlak.27-Feb-09 12:46 
QuestionHelp spawing more then 25 threads per processor in a thread pool Pin
PoweredByOtgc27-Feb-09 10:14
PoweredByOtgc27-Feb-09 10:14 
AnswerRe: Help spawing more then 25 threads per processor in a thread pool Pin
Dave Kreskowiak27-Feb-09 10:49
mveDave Kreskowiak27-Feb-09 10:49 
GeneralRe: Help spawing more then 25 threads per processor in a thread pool Pin
PoweredByOtgc28-Feb-09 4:57
PoweredByOtgc28-Feb-09 4:57 
QuestionCopy File From One Location To Another + Urgent + Sourabh Das Pin
Dot Net Jantu27-Feb-09 5:39
Dot Net Jantu27-Feb-09 5:39 
AnswerRe: Copy File From One Location To Another + Urgent + Sourabh Das Pin
kriskomar27-Feb-09 5:51
kriskomar27-Feb-09 5:51 
AnswerRe: Copy File From One Location To Another + Urgent + Sourabh Das Pin
Luc Pattyn27-Feb-09 6:04
sitebuilderLuc Pattyn27-Feb-09 6:04 
AnswerRe: Copy File From One Location To Another + Urgent + Sourabh Das Pin
PoweredByOtgc27-Feb-09 10:27
PoweredByOtgc27-Feb-09 10:27 
GeneralRe: Copy File From One Location To Another + Urgent + Sourabh Das Pin
Luc Pattyn27-Feb-09 11:35
sitebuilderLuc Pattyn27-Feb-09 11:35 
QuestionUpgrading VB6 to VB.net printing problem Pin
tbkfile27-Feb-09 5:08
tbkfile27-Feb-09 5:08 
AnswerRe: Upgrading VB6 to VB.net printing problem Pin
Sebastian Br.27-Feb-09 7:43
Sebastian Br.27-Feb-09 7:43 
GeneralRe: Upgrading VB6 to VB.net printing problem Pin
tbkfile27-Feb-09 18:36
tbkfile27-Feb-09 18:36 
QuestionDataset containing nullable datetime values does not like a null datetime? Pin
kriskomar27-Feb-09 4:56
kriskomar27-Feb-09 4:56 
AnswerRe: Dataset containing nullable datetime values does not like a null datetime? Pin
johnsontroye27-Feb-09 9:38
johnsontroye27-Feb-09 9:38 
GeneralRe: Dataset containing nullable datetime values does not like a null datetime? Pin
kriskomar27-Feb-09 9:59
kriskomar27-Feb-09 9:59 

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.