Page 72 of 106

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 2:39 pm
by Roberto Lopez
rathinagiri wrote:Hi

I am getting this error for every demo... :(
error.jpg
I've upgraded QT from 4.5.3 to 4.7.

I guess that you must copy the new runtime dlls to your windows system folder.

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 2:44 pm
by mlacecilia
rathinagiri wrote:Hi

I am getting this error for every demo... :(
error.jpg
Probably you need to do a clean rebuild of hbQt lib.
No problem here.
Regards
Maurizio

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 2:47 pm
by Rathinagiri
Yes. Now it is working. Thanks.

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 2:54 pm
by Roberto Lopez
Pritpal,

An strange bug appeared.

After running samples/window.main/demo_3.prg after 'clipboard set value' command issued, the program crashes when exiting.

It causes a GPF. No runtime error nor hb_out.log file.

Rathinagiri showed the problem perfectly on the following post:

viewtopic.php?p=14446#p14446

Since there is no error messages, we was not able to find what's happening.

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 3:02 pm
by bedipritpal
rathinagiri wrote:Yes. Now it is working. Thanks.
Correct your message.

You did not let the group know, what you did to make it working.
It could be useful for anybody who experiences such problem.

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 3:14 pm
by bedipritpal
Roberto Lopez wrote:Pritpal,

An strange bug appeared.

After running samples/window.main/demo_3.prg after 'clipboard set value' command issued, the program crashes when exiting.

It causes a GPF. No runtime error nor hb_out.log file.

Rathinagiri showed the problem perfectly on the following post:

viewtopic.php?p=14446#p14446

Since there is no error messages, we was not able to find what's happening.

This is how it should be used:

qClip := QClipboard()
qClip:clear()
qClip:setText( cClip )

Do not retain a reference of QClipBoard() anywhere.

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 3:15 pm
by Rathinagiri
Sorry Pritpal. From now on wards, I will be descriptive.

I had copied the runtime dll files in window/system directory as Roberto suggested in the previous post.

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 3:36 pm
by Rathinagiri
bedipritpal wrote: This is how it should be used:

qClip := QClipboard()
qClip:clear()
qClip:setText( cClip )

Do not retain a reference of QClipboard() anywhere.
Hi Pritpal,

I have tried to use this function. Same error is repeated. :(

Code: Select all

FUNCTION SetClipboardValue( cValue )
   LOCAL qClip
   qClip := QClipboard()
   qClip:clear()
   qClip:setText( cValue )
   RETURN NIL

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 3:59 pm
by Rathinagiri
2010-10-19 21:10 UTC+0530 Rathinagiri (srgiri@dataone.in)
* /source/window.prg
- Removed oClipboard variable and Clipboard method from Window Class as clipboard is not window specific.
* /source/dialogs.prg
+ Added: CreateFolder()
+ Added: RemoveFolder()
+ Added: SetCurrentFolder()
+ Added: GetClipboardValue()
+ Added: SetClipboardValue()
* /samples/window.main/demo_3.prg
- Removed: clipboard demo from window and moved the same to system.objects demo
* /samples/misc/demo_1.prg
+ Added: clipboard function demo

Re: Welcome to the Project Developers' Table

Posted: Tue Oct 19, 2010 4:12 pm
by bedipritpal
Hello Group

Though this message can be ignored, but it will be useful if acted upon.

There are tons of scattered "demos" with names "demo_n" .
It is a lot of work for user to see what is where to look into.
Plus it is a repeatitive code. Also it does not portray a composite
application view of HMG.

What I believe, most of the demos can be clubbed into one
showcase application with bells and whisles. It will facilitates:

1. A showcase application a new user can use as a template.
2. Maintenance of the code will be easier.
3. You will have to write less code.
4. User will always have to look into at one place.

hbIDE is one example of showcasing hbQT as a whole.