Click here to Skip to main content
15,893,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCreate my own installation program Pin
Pim-Pom19-May-04 3:12
Pim-Pom19-May-04 3:12 
GeneralRe: Create my own installation program Pin
Dave Kreskowiak19-May-04 3:40
mveDave Kreskowiak19-May-04 3:40 
GeneralRe: Create my own installation program Pin
Member 110929919-May-04 4:18
Member 110929919-May-04 4:18 
GeneralRe: Create my own installation program Pin
Pim-Pom19-May-04 6:24
Pim-Pom19-May-04 6:24 
GeneralRe: Create my own installation program Pin
Dave Kreskowiak19-May-04 8:01
mveDave Kreskowiak19-May-04 8:01 
GeneralRe: Create my own installation program Pin
Pim-Pom19-May-04 11:18
Pim-Pom19-May-04 11:18 
GeneralRe: Create my own installation program Pin
Dave Kreskowiak19-May-04 17:26
mveDave Kreskowiak19-May-04 17:26 
GeneralRe: Create my own installation program Pin
Pim-Pom19-May-04 23:21
Pim-Pom19-May-04 23:21 
I have found this :

private static void CheckDLL(string dllfilename)
{
if (!(System.IO.File.Exists(dllfilename)))
{
System.IO.Stream s = Assembly.GetExecutingAssembly).GetManifestResourceStream("nBASS." + dllfilename);
System.IO.Stream r = System.IO.File.Create(dllfilename);
int len = 8192;
byte[] buffer = new byte[len];
while (len > 0)
{
len = s.Read(buffer, 0, len);
r.Write(buffer, 0, len);
}
r.Close();
s.Close();
}
}

And I have adapted it for my program, and convert it into vb.net :

Function CheckDLL(ByVal dllfilename As String)
Dim s As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(("WindowsApplication1." + dllfilename))
Dim r As System.IO.Stream = System.IO.File.Create(dllfilename)
Dim len As Integer = 8192
Dim buffer(len) As Byte
While (len > 0)
len = s.Read(buffer, 0, len)
r.Write(buffer, 0, len)
End While
r.Close()
s.Close()
End Function

Thanks a lot it works !! Smile | :)


GeneralRSA Cryptography Pin
klauszanini@hotmail.com19-May-04 2:43
klauszanini@hotmail.com19-May-04 2:43 
GeneralRe: RSA Cryptography Pin
Dave Kreskowiak19-May-04 2:56
mveDave Kreskowiak19-May-04 2:56 
Generalhome bookkeeping Pin
dmacca018-May-04 23:10
dmacca018-May-04 23:10 
GeneralRe: home bookkeeping Pin
klauszanini@hotmail.com19-May-04 2:38
klauszanini@hotmail.com19-May-04 2:38 
GeneralRe: home bookkeeping Pin
Dave Kreskowiak19-May-04 3:01
mveDave Kreskowiak19-May-04 3:01 
GeneralApplication Object Model Pin
beowulfagate18-May-04 23:01
beowulfagate18-May-04 23:01 
GeneralRe: Application Object Model Pin
RichardGrimmer26-May-04 3:33
RichardGrimmer26-May-04 3:33 
GeneralBackground image in treeview. Pin
scurhee18-May-04 19:07
scurhee18-May-04 19:07 
GeneralRe: Background image in treeview. Pin
Dave Kreskowiak19-May-04 0:52
mveDave Kreskowiak19-May-04 0:52 
GeneralTree View Pin
farhangm18-May-04 18:46
sussfarhangm18-May-04 18:46 
GeneralRe: Tree View Pin
Dave Kreskowiak19-May-04 1:10
mveDave Kreskowiak19-May-04 1:10 
GeneralRe: Tree View Pin
farhang19-May-04 20:20
farhang19-May-04 20:20 
GeneralRe: Tree View Pin
Dave Kreskowiak20-May-04 1:04
mveDave Kreskowiak20-May-04 1:04 
GeneralAnother Toolbar Problem Pin
qyp18-May-04 14:46
qyp18-May-04 14:46 
GeneralHi all - runonce reg key Pin
HarryBo18-May-04 6:34
HarryBo18-May-04 6:34 
GeneralRe: Hi all - runonce reg key Pin
Dave Kreskowiak18-May-04 9:45
mveDave Kreskowiak18-May-04 9:45 
GeneralToolBar Problem Pin
HinJinShah18-May-04 5:46
HinJinShah18-May-04 5:46 

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.