Search found 206 matches

by PureLeo
Mon Nov 14, 2011 6:14 pm
Forum: Coding Questions
Topic: Purebasic and Html5 and css3
Replies: 24
Views: 5049

Re: Purebasic and Html5 and css3

If you want to design your own browser you'll need to download the page and then interpret the HTML and CSS.

I am using the PB's webgadget where the entire page loads automatically.

How does one is able to download and interpret the html5 and css code? I am not sure.

Alan

You would need to ...
by PureLeo
Tue Nov 01, 2011 4:05 am
Forum: Coding Questions
Topic: PostMessage_ to another application window input string
Replies: 16
Views: 5657

Re: PostMessage_ to another application window input string

You mean including .au3 using Purebasic + Autoit? I don't think so... :/
by PureLeo
Mon Aug 22, 2011 5:36 pm
Forum: Announcement
Topic: PureBasic 4.60 beta 4
Replies: 39
Views: 15822

Re: PureBasic 4.60 beta 4

Great!! Thanks! :D
by PureLeo
Thu Aug 11, 2011 6:46 am
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Re: Open File larger than the amount of ram you have

Hm... I haven't tested it on very large files yet
by PureLeo
Mon Aug 08, 2011 6:40 pm
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Re: Open File larger than the amount of ram you have

Thanks very much, I didn't know about that :)
by PureLeo
Sat Aug 06, 2011 2:09 pm
Forum: Game Programming
Topic: Need some testing
Replies: 25
Views: 8636

Re: Need some testing

Hi again, now that's weird...
I just opened ATI Control Panel and changed some silly configs in 3d tab like anti aliasing, mipmap, filtering, and it's running fine now...
by PureLeo
Sat Aug 06, 2011 1:56 pm
Forum: Game Programming
Topic: Need some testing
Replies: 25
Views: 8636

Re: Need some testing

Yes, weird..
It wont run on my gf's notebook also, Win7 (can't say but guessing 32bit), Athlon II X2 @ 2.1ghz, ATI Radeon HD 4250

Now I'm curious to run it :)
by PureLeo
Sat Aug 06, 2011 6:06 am
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Re: Open File larger than the amount of ram you have

My Professor mentioned that when he was talking about the importance of pointers :D I wasn't born at that time...
by PureLeo
Sat Aug 06, 2011 5:52 am
Forum: Game Programming
Topic: Need some testing
Replies: 25
Views: 8636

Re: Need some testing

Don't know why, but the little screen goes black and that's it :/
Win7 64bit 4gb RAM, AMD Athlon II x3 440 @ 2.13GHz, ATI Radeon HD 5500
by PureLeo
Sat Aug 06, 2011 5:33 am
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Re: Open File larger than the amount of ram you have

@tinman Yes, that's it...

At first I thought I was messing with the RAM limits, but you're right...
I also used "Define.q" hoping to solve the issue but ofc, that didn't help :/
by PureLeo
Fri Aug 05, 2011 7:40 pm
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Re: Open File larger than the amount of ram you have

I thought I couldn't use an offset to read data from some point with ReadData( )

Netmaestro your example shows that ReadData() keeps reading from where it stopped, instead of reading all again from the begining, thank you!

Thank you all for your time :)
by PureLeo
Fri Aug 05, 2011 6:15 pm
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Re: Open File larger than the amount of ram you have

Hi! Thanks for your replies!

Maybe you didn't understand me :oops:

Actually I don't want to copy files, I want to split a VERY big file like 4gb+ into small files...
But for that I need ReadData() and for this I need a large buffer.... but when I try to allocate memory for 4gb, I get an error ...
by PureLeo
Fri Aug 05, 2011 6:13 am
Forum: Coding Questions
Topic: Open File larger than the amount of ram you have
Replies: 20
Views: 5123

Open File larger than the amount of ram you have

Hi...

I have this code,

Define.q

size=FileSize("teste")

ReadFile(0,"teste")
CreateFile(1,"teste2")

*a=AllocateMemory(size)

ReadData(0,*a,size)
WriteData(1,*a,size)

FlushFileBuffers(1)
CloseFile(1)
CloseFile(0)

Debug FileSize("teste")
Debug FileSize("teste2")


It says "Can't allocate a ...
by PureLeo
Thu Aug 04, 2011 10:22 pm
Forum: Coding Questions
Topic: ReDim cost?
Replies: 4
Views: 1583

Re: ReDim cost?

I think ReDim is slower, but you can access an array element by index
by PureLeo
Wed Aug 03, 2011 12:48 am
Forum: Coding Questions
Topic: Editor Gadget character input limit.
Replies: 6
Views: 1428

Re: Editor Gadget character input limit.

Something like this could be used to limit lines....

Select WindowEvent()
Case #PB_Event_Gadget
Select EventGadget()
Case #Editor_0
Select EventType()
Case 1024
If CountGadgetItems(#Editor_0)>10
RemoveGadgetItem(#Editor_0,11)
EndIf
EndSelect
EndSelect
EndSelect