Search found 20 matches

by Flower
Tue Apr 26, 2011 6:27 am
Forum: Announcement
Topic: PureBasic 4.60 Beta 2
Replies: 21
Views: 12398

Re: PureBasic 4.60 Beta 2

---------------------------
Error
---------------------------
An Error has been detected in the IDE!

Error: Invalid memory access

File : c:\purebasic\svn\v4.60\Fr34k\PureBasicIDE\FilePanelGadget.pb

Line : 237



IDE build on 04/10/2011 [22:09] by Fred

Branch: v4.60 Revision: 1297
This seems ...
by Flower
Fri Feb 18, 2011 10:51 pm
Forum: Feature Requests and Wishlists
Topic: IDE refactoring tools
Replies: 16
Views: 8256

Re: IDE refactoring tools

Wow, if any of those could be implemented in the PureBasic IDE, I must be dreaming.
Appearance in jaPBe is more likely.
by Flower
Mon Jan 10, 2011 10:47 pm
Forum: Off Topic
Topic: I want the same .....
Replies: 8
Views: 1432

Re: I want the same .....


But my dog win all the day against me at the chess game and sometime, when he stop to read albert einstein book, make some code for me :lol: :lol:
It's sometime this code that i put on the forum and you fix for me :mrgreen:

http://erdsjb.free.fr/PureStorage/Images/chien-intelligent.jpg
Yeah ...
by Flower
Sun Jan 09, 2011 9:02 pm
Forum: Off Topic
Topic: I want the same .....
Replies: 8
Views: 1432

Re: I want the same .....

Seems our KCC is back, Haven't see you in a while... :mrgreen:
One of my friend has a dog like that (Jack Russell Terrier), but not as smart unfortunately...
IMO Poodle is somehow easier to train than many others.
by Flower
Mon Nov 01, 2010 2:31 am
Forum: Tricks 'n' Tips
Topic: Disable - Enable Windows Task Manager(Win XP - Vista - 7)
Replies: 10
Views: 3341

Re: Disable - Enable Windows Task Manager(Win XP - Vista - 7

Code: Select all

Define buffer.s
buffer = Space(#MAX_PATH)
GetWindowsDirectory_(@buffer, #MAX_PATH)
buffer + "\System32\Taskmgr.exe"
CreateFile_(@buffer, #GENERIC_READ, #Null, #Null, #OPEN_EXISTING, #FILE_ATTRIBUTE_NORMAL, #Null)
Repeat
      Sleep_(10)      
ForEver
How about this one? :mrgreen:
by Flower
Fri Oct 29, 2010 6:37 pm
Forum: Tricks 'n' Tips
Topic: Disable - Enable Windows Task Manager(Win XP - Vista - 7)
Replies: 10
Views: 3341

Re: Disable - Enable Windows Task Manager(Win XP - Vista - 7

> If you set this in the registry and your program crashes..
> you've now just locked the computer out of the task manager.

Not really. There's a million Task Manager replacements for download.
Locking the Windows one like this is, quite frankly, a useless gesture.
It takes less than a minute to ...
by Flower
Wed Oct 20, 2010 4:14 pm
Forum: Coding Questions
Topic: InputBox really modal on all process [Resolved]
Replies: 25
Views: 4776

Re: InputBox really modal on all process [Resolved]


@FLOWER
I have try your code and you have right....my desktop disappears and i have the mouse pointer into the notepad :shock:
I have search all my icons behind my screen ..turn it and no icons too :shock: :shock:
So i have close the notepad and all the littles icons come back in my screen 8 ...
by Flower
Wed Oct 20, 2010 2:56 pm
Forum: Coding Questions
Topic: InputBox really modal on all process [Resolved]
Replies: 25
Views: 4776

Re: InputBox really modal on all process [Resolved]

Hello FLOWER

Thanks for your code but, you surely don't know KCC, .....the programmer who coding slower that his shadow :oops:

How i can use your skyrocket :P
I have try to launch it with match...but he don't do anything :oops:
That's right, it doesn't do anything until you tell it to... :wink ...
by Flower
Wed Oct 20, 2010 2:36 pm
Forum: Coding Questions
Topic: InputBox really modal on all process [Resolved]
Replies: 25
Views: 4776

Re: InputBox really modal on all process [Resolved]

Define hCurrentDesktop.l, sNewDesktopName.s, hNewDesktop.l
hCurrentDesktop = GetThreadDesktop_(GetCurrentThreadId_())
sNewDesktopName = Hex(Random(10000000))
hNewDesktop = CreateDesktop_(sNewDesktopName, #Null, #Null, 0, #GENERIC_ALL, #Null)

If (hNewDesktop <> #INVALID_HANDLE_VALUE ...
by Flower
Fri Oct 15, 2010 7:19 pm
Forum: Feature Requests and Wishlists
Topic: Please check for syntax that doesn't make ANY sense
Replies: 45
Views: 9618

Re: Please show all syntax errors

If all mainstream C/C++ compilers allow

Code: Select all

NULL;
and

Code: Select all

for(;;);
and

Code: Select all

i = i++;
Why would PureBasic forbids something that is much more sensible? :wink:
And, how many different logical errors could we check for?
by Flower
Sat Oct 09, 2010 9:14 am
Forum: Tricks 'n' Tips
Topic: Delete a directory safely (only when it's empty)
Replies: 11
Views: 4130

Re: Delete a directory safely (only when it's empty)

Well, my bad. DirectoryEntrySize does not return the number of files in the directory. Guess we have to use FindFirstFile / FindNextFile ... :cry:
by Flower
Sat Oct 09, 2010 7:35 am
Forum: Tricks 'n' Tips
Topic: Delete a directory safely (only when it's empty)
Replies: 11
Views: 4130

Re: Delete a directory safely (only when it's empty)

Code: Select all

Size.q = DirectoryEntrySize(#Directory)
If(Size > 2)
  ProcedureReturn
EndIf
I guess this will also work. :mrgreen:
by Flower
Wed Sep 29, 2010 4:02 pm
Forum: Tricks 'n' Tips
Topic: Passing all variables between Dinosaurs VB6 to Baby PB
Replies: 13
Views: 3782

Re: Passing all variables between Dinosaurs VB6 to Baby PB

I like your writing and posting style, KCC :mrgreen:
I don't have VB6 installed at this time, but you could try some secret function called StrConv, StrPtr & CopyMemory :wink:

Some references here: http://vb.mvps.org/tips/varptr.asp
(Declare Function is not necessary for XxxPtr on VB6)
by Flower
Thu Sep 23, 2010 3:00 am
Forum: Tricks 'n' Tips
Topic: Create a relative path
Replies: 18
Views: 5958

Re: Create a relative path

Of course they can't know, Microsoft has around 100,000 employees.
@Flower:
You wrote "kernel32 documentation writer", it is "writers", not "writer". :wink:
Yeah, writers, that's right.
Anyways, hope they do mention more shell functions in the related articles in the future, those function can ...
by Flower
Wed Sep 22, 2010 4:10 pm
Forum: Tricks 'n' Tips
Topic: Create a relative path
Replies: 18
Views: 5958

Re: Create a relative path


I knew about the WinAPI function GetFullPathName_() , and looked it up on MSDN . On that page there is a link to another page about Naming Files, Paths, and Namespaces , which even contains a section named "Fully Qualified vs. Relative Paths" -- but nowhere a word about PathRelativePathTo ...