Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / SHELL32 and Styx call back function

Author
Message
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Apr 2014 00:34
I moved from my earlier post because the story has changed.

am trying to catch dragged files to DBpro window Using the Styx library functions call back. now looking at my earlier post, I can easily catch those files using "message call back" from Matrix Utility plugin but, unfortunately, this command can cause crash on some systems and not on the others. ehile the styx does not cause any crash.

however, I tried plenty of ways but couldn't catch any dragged file.

please look at the code and correct it if you can.




Thanks

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Apr 2014 12:13
Just saying... you forgot to delete the DLL before closing...

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Apr 2014 13:49
nope, you can't close dll that you will constantly calling, other wise the window can't know when you're dragging the file.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Apr 2014 14:17
Just before closing the program I doubt it is in use there ^^

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Apr 2014 14:23
I already there when I close the program. now while the program is running, I can't get the message call back.

must be somrthing am missing

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Apr 2014 14:36
Try putting your constants before everything else and globals too, then register the STYX function and then load the dll...

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Apr 2014 16:48
Nope.

It's obviously seems that there is something am missing in here, I tried all options but nothing has worked.

we need someone who really know about functions call back otherwise. otherwise drag and drop files will be history(or at list for now.)

GIDustin
18
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 3rd Apr 2014 21:23
Here is a thread that discussed the topic, and has a working solution:

http://forum.thegamecreators.com/?m=forum_view&t=205752&b=1

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Apr 2014 23:18
Thanks GIDustin.

I know about this post. If you read the top thread I mentioned that using Matrix utility command "Set Message CallBack" causes crash on some new computer systems with win7 business edition.

so I have to use the callback from the styx library because it's not causing crash.

GIDustin
18
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 3rd Apr 2014 23:40
Do you mean windows 7 professional? I have many computers in my work network that run Windows 7 Pro, and have two programs that run on each PC that use "Set Message Callback" extensively, and none crash... Are you sure that command is responsible for the crashes?

I tried doing something with Styx's callback commands where I get a list of running processes, and it was really clunky and didn't always work. I much prefer Matrix if possible.

Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Apr 2014 23:56
I've noticed I get a crash on Windows 7 when calling CallNextHookEx from DBPro on certain events, maybe it can be related?


"Why do programmers get Halloween and Christmas mixed up?"
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 4th Apr 2014 00:21
yep am sure 100% that the command "Set Message Callback" is causing crash but as I said, only on the latest version of received computers that run win 7 win AMD graphics card. not on previous versions.

Login to post a reply

Server time is: 2026-07-07 09:29:07
Your offset time is: 2026-07-07 09:29:07