CreateImage(0,4096,4096) = 0 ?

Just starting out? Need help? Post your questions and find answers here.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

CreateImage(0,4096,4096) = 0 ?

Post by doodlemunch »

i have 512 megs of ram and i call CreateImage(0,4096,4096) it gives me a 0
y?!!?

i think i have enouhg ram no ??

i just put to testt ''Debug CreateImage(0,4096,4096)'' compiel w/debug and it gives 0

not even usin 2048,2048 it works :(:(:(:( y??!
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

If you use the v4, you can specify a depth (for example 32) and it should get ride of this Windows limitation.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

i though pb comands were made by u and not wrapers of windows api :?
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Did you tried it ?

Code: Select all

CreateImage(4096, 4096, 32)
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

but i use demo :cry:
can i create an image by other ways ?
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> but i use demo :cry:

Demo of PureBasic? I thought you had a registered version of PureBasic?
How did you run that LaunchTaskManager code that has API commands?
Please don't tell me you're running a pirated copy of PureBasic? :evil:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

i called tem by my own usin the dlls in windows sys dir!!
dont u know u can call api that way ?
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> i called tem by my own usin the dlls in windows sys dir!!
> dont u know u can call api that way ?

No, I didn't know. Can you give me an example then? And I'm glad to hear
you're not using a pirated version then. You had me worried for a moment!
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

hey doodle waarom koop je niet een licentie? duur is het niet
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Actually, having around 250 forum posts and using the demo version sounds a bit wierd to me, as you asking for support on a product you don't own.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

doodlemunch wrote:but i use demo :cry:
Hmmm... i think you are telling porky pies!

in this post you are using inline WinAPI:
http://www.purebasic.fr/english/viewtopic.php?t=19063

which is impossible using the trial version!
--Kale

Image
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Well,, we KNOW that he has a pirated version, but I think that's NOT enough to prove he has a pirated license.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> in this post you are using inline WinAPI [...]
> which is impossible using the trial version

But he's claiming he's calling the API commands via Windows DLLs... and I've
yet to see an example, using the demo, of how this is done. Maybe Fred needs
to stop that possibility for the v4.00 release?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
doodlemunch
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Apr 05, 2005 11:20 pm

Post by doodlemunch »

OpenLibrary(1,"kernel32")
Debug "jo"
CallFunction(1,"Sleep",3000)
Debug "jo"
CloseLibrary(1)
End


bye i do not want to be here anymore
u guys laughed of my english made fun and too say i use pirate of pb u guys are ugly i was saving to buy it
now i will look somewere else
i hate pb and u
my english is horribel i know - SORRY i am dyslexic - i uses pb 3.94
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Just a thought here.

doodlemunch has often said he is using the demo. Not every post, but over time.

IIRC, in one post somewhere, somehow explained how to use DLL's instead of API calls.

Maybe rethink what is going down here? You may be right, but perhaps hurry slowly. :)


@doodlemunch. Nobody made fun of your english, you are overreacting. But that is, of course, your choice. You own your attitude or it owns you.
@}--`--,-- A rose by any other name ..
Post Reply