![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Choose Tools - Components - Add Dll (Both) and add BinaryFile.dll.
Choose Tools - Add Object - BinaryFile and add the object. See the manual: http://www.basic4ppc.com/help/binaryfile/index.html for information on working with this library. |
|
|||
|
Thanks. Now it works... or at least compiles. But the data.dat file doesn't saver the files. :S
Don't know why. The code i have as follows: Code:
Sub Globals End Sub Sub App_Start Form1.Show End Sub Sub Button1_Click FileOpen(c1,Encaje.Text,cRandom) bin.New1(c1,true) End Sub Sub Encajar_Click bin.EmbedFile (AppPath & TextBox2.Text) bin.EmbedFile (AppPath & "\aboutOk.png") End Sub Sub Button4_Click FileClose(c1) End Sub |
|
|||
|
Thanks!!!
I did ti, thanks. Now I can embed files in to a data.dat. Now the thing is, i have a series of images in the same data.dat. How can i retrieve them? I don't think this do the job: Form1.Image = bin.RetrieveImage Form1.DrawImage(bin.RetrieveImage,10,10) Thanks again tho Last edited by Rod : 08-15-2007 at 05:48 AM. |
|
||||
|
Hello Alex
In order to minimize memory load the Image Button just references to an image. It is best to retrieve images from a binary file into an ImageList control and assign images to Image Buttons, such as Code:
FileOpen(p1,"images.dat",cRandom)
bin.New1(p1,true)
For i= 0 To x
ImageList1.Add(bin.RetrieveImage)
Next
FileClose(p1)
ImageButton1.Image = ImageList1.Item(x)
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Serial2 and binary transfers | agraham | Bug Reports | 2 | 10-19-2008 09:19 PM |
| Reading binary files | jgm | Questions & Help Needed | 5 | 05-28-2008 11:09 AM |
| Binary files on device | Ianmac | Questions & Help Needed | 4 | 08-24-2007 08:49 AM |
| Binary File problem | Ianmac | Questions & Help Needed | 3 | 08-07-2007 06:44 PM |
| Binary Files- Love'm and sometimes confused | XerVision | Questions & Help Needed | 2 | 06-10-2007 08:55 PM |