CreateImage(0,4096,4096) = 0 ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

*scratches head*

Only thing I can think of is rundll but that would be a very slow and weird way to do it (if practical at all, sounds like a nightmare).
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Just downloaded and installed the demo.

Code: Select all

OpenLibrary(1,"kernel32")
Debug CallFunction(1,"GetTickCount")
CallFunction(1,"Sleep",3000)
Debug CallFunction(1,"GetTickCount")
CloseLibrary(1)
End
np.
@}--`--,-- A rose by any other name ..
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

I feel the biggest problem here is the language barrier. :(

@doodlemunch: I have seen many of your posts and I do not ever remember seeing anyone making fun of you or your English. Maybe it's your (mis)understanding or interpretation of the spoken words that make you feel that you are being made fun of.
doodlemunch wrote:thx u!!
i want to buy pb so bad!!!! learnin wiht the demo is not fun

ref: http://www.purebasic.fr/english/viewtop ... 943#127943
I sincerely hope you come back and continue to save money for your purchase of PureBasic. :)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

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

@Fred: Recommend you remove this possibility from future demo versions.

> u guys laughed of my english

I certainly didn't.

> say i use pirate of pb

I said Please don't tell me you're using a pirate version.
I did NOT say you were. Maybe you misunderstood me.

> u guys are ugly

Heh, you say that after I spent a night working on the "Close Program"
dialog for you! I'm sorry I did that for you now. If that sort of time and
support, for someone using the DEMO version, makes me UGLY, then
you can get lost for all I care.

(Edited to remove my profanity)
Last edited by PB on Fri Mar 10, 2006 11:17 am, edited 1 time in total.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

@Fred: Recommend you remove this possibility from future demo versions.


Maybe not remove too much functionality?

What about having any exe made by the demo version open a small window.

The window says "This program created with the PureBasic Demo version" or similar.

The window stays open (although not necessarily an 'always on top' window) even after the program has ended (so console programs, on ending, reveal the advisory).

If this advisory window is closed, it also closes the program (if still running).
@}--`--,-- A rose by any other name ..
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

PB wrote:> 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...
Nah, he said he's using commands in the 'XXXX_()' style which is impos using the trial:
doodlemunch wrote: i just have no error on creatin the gadget that is ok it only does not work when i do this

SetWindowLong_(WindowID(#Win),#GWL_EXSTYLE,GetWindowLong_(WindowID(#Win),#GWL_EXSTYLE)|$00080000)

and then i call this after some other code

UpdateLayeredWindow_()

it displais my png with shadow correctely but my gadgets are long gone will never apear

how can i make a window with no bakground so i can place it over this one at least?
--Kale

Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

The thing that confuses me is, if using a pirated version, why claim to be using the demo? That seems a bit too weird.

More likely it is to show code on these boards in a format the rest of us are familiar with. It doesn't take much to edit CallFunction("Name" .. into Name_. Maybe doodlemunch tries to make things as straightforward as possible given the other difficulties in communication.

Anyhow, I don't know if he (she?) has a pirated version or not. It just seems to me that there is enough doubt to allow "innocent until proven guilty" to apply.

Ah well. I've said my piece now. :)
@}--`--,-- A rose by any other name ..
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Nah, he said he's using commands in the 'XXXX_()' style which is
> impos using the trial

No, he said (and I quote directly from this thread):
i called tem by my own usin the dlls in windows sys dir!!

So I was only going by what he said here. Long and short of it: he's shown
the demo version can do things that Fred didn't intend, ie. call API commands.
For that reason, I think Fred should restrict the demo more. And also, maybe
restrict the IncludeFile command, because the demo is limited to X number of
lines in the source, but IncludeFile may be an exploit for that too. :?:

I don't really like the "window" idea to identify an exe made from the demo.
What might be better is what I saw for another app: the compiled exe has a
specific filename that can't be modified. If renamed, the exe won't run. It was
called something like AppName Demo (Made by www.site.com).exe. That
would discourage spreading the app and also advertise the site as a bonus.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

I do like the window idea. :)

I also like the idea you just mentioned with the app name. That is pretty crafty! :)
@}--`--,-- A rose by any other name ..
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Actually the demo is limited in number of lines at the assembly level, so i really doubt your can do big programs with the demo.
Post Reply