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 / [LOCKED] help!! set the disable x close in dbpro

Author
Message
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 7th Jan 2005 09:08
in vb in user32


the vb . bas file

the .frm file




in c no close ok


help!!! in dbpro!!!! disable a x button

help disable a close windows
plese help

download a exe in c mode compiled whit dev c++

full screen + no close( in dbpro ? )

hello,attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2

Attachments

Login to view attachments
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 7th Jan 2005 09:29
helo

this samples disable the key alt + f4

help in dbpro ?

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 7th Jan 2005 09:59 Edited at: 8th Jan 2005 06:43
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 7th Jan 2005 10:01
hello

create a plug-in plese

or use call dll samples.

helo , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 8th Jan 2005 06:35
hello all

plese help me.

disable a x close

post a samples in load call dll mode.

or create a plug-in dll in open surce + dll , help plese

hello all, attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 8th Jan 2005 07:09
nessun non può fare con darbasic

-This...is my boomstick!
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 8th Jan 2005 07:25
hello all.

help plese

it must be able to make, why year made of all with load DLL and call DLL. hello to all, I attend news more soon

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 8th Jan 2005 08:19
Darkdomy

Sto provando a aiutarlo, nonlo ignori prego.

Se desiderate un plugin che permetterà che inabilitiate il tasto

vicino di una risposta professionale di base scura di applicazione sì

o di no, se desiderate un plugin che inabiliterà alt-ctrl-cancelli la risposta

sì o no.

La vostra risposta dovrebbe osservare il simile

sì o no

sì o no

Potrei potere aggiungere un ordine come questo alla mia rete di

base scura plugin X, se quello è che cosa state cercando.

Note to self used http://www.worldlingo.com/en/products_services/worldlingo_translator.html Translator


Click sig for DarkBASIC Network IDE.
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 8th Jan 2005 08:25
hello.

I want to disable the combination alt + f4

I do not want that the DLL or plug-in demands rutine DLL

firework. net

no rutine file.

hello all. attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 8th Jan 2005 09:45
Proverò ad inabilitare Alt-F4 ed averlo come ordine nella rete di

base scura X. Vi dirò quando sono riuscito.


Click sig for DarkBASIC Network IDE.
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 8th Jan 2005 21:13
hello all

new link http://forums.devshed.com/t56125/sef9f4caeba845aa674a6bfd91711e797.html


help plese
hello all, attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 8th Jan 2005 22:46 Edited at: 8th Jan 2005 22:52
È fissato a questo filetto un DLL che ho reso quello ho l'ordine

X_CtrlAltDelete(ByVal bDisabled As Boolean)

tutto che dobbiate fare dobbiate specificare booleano se desiderate

l'ordine inabilitare o permettere la cancellazione del ctrl alt. Questo ordine ora farà parte della rete di base scura X, così se desiderate qualunque nuovi ordini concernente questo potete

inviare nella tribuna di base scura ufficiale della rete X.
Dark Basic Network X

metta questo DLL nel vostro Dark Basic Professioanl/Compiler indice


Click sig for DarkBASIC Network IDE.

Attachments

Login to view attachments
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 9th Jan 2005 00:03 Edited at: 9th Jan 2005 00:04
hello

plese samples

post the samples.

plese disable alt + f4 ok ? in dbp ?

tanks 1tg46 , plese post the samples .

dbp folder /compiler ?

use the dll ?


hello all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Jan 2005 00:34
We've discussed this ages ago - you need to sub-class DBPro, insert your own windows handling function and check it yourself, which hopefully should do it.

Visit http://homepages.nildram.co.uk/~nickk/
I have no signature.
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 9th Jan 2005 02:33
All try to get some samples later on today.


Click sig for DarkBASIC Network IDE.
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 10th Jan 2005 01:07
hello all

help plese disable a x close , ok screen saver professional and create the applicazion very professional e secury.



attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 10th Jan 2005 01:24
Se avete versione 2.0 di BlueGUI allora potete generare un dispositivo

dalla finestra professionale di base scura ed allora cambiare lo stile

della finestra.

Regards,
1tg46


Click sig for DarkBASIC Network IDE.
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 10th Jan 2005 05:43
hello all.

yes blue gui 2 ok


help post all, samples buegui2 or dll disable a alt + f4 = disable a x close. help!!!!

all surce, help!!! disable a x close windows.

hello attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 11th Jan 2005 08:24
hello

c++ code , help create a dll in dev c++ disable a x close ?



help!!! create plese a dll disable a x close.

hello all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Jan 2005 10:26 Edited at: 11th Jan 2005 10:27
Domenico

[EDITED] Correction in answer

Code to disable close button and disable CLOSE option in system menu



Paul


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 11th Jan 2005 10:38
hello all

Plese Create a dll plug- in for dbpro

disable a x close

help plese

hello all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Jan 2005 10:51 Edited at: 11th Jan 2005 10:52
Domenico,

I do not understand what you are trying to do. A DLL doesn't have a windows class unless explictly created. Or am I to assume that you want to prevent a DarkBASIC Professional application from closing?

Paul.

[EDIT] Therw will be delay before I check this thread again.


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 11th Jan 2005 13:35
hello

yes create a plug-in for dbp no close a windows in dbpro.

help plese!!!!

attend , news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Jan 2005 21:20
Well frankly, I've just about lost my patients with this code

#constant GWL_STYLE (-16)
#constant CS_DBLCLKS 8
#constant CS_NOCLOSE 512
#constant SWP_NOSIZE 1
#constant SWP_NOMOVE 2
#constant SWP_NOZORDER 4
#constant SWP_FRAMECHANGED 32

Global dwSystemDLL As DWord
Global nResult As Integer
Global nWndLong As Integer
Global hWnd As DWord

dwSystemDLL = 1
Load DLL "User32.dll", dwSystemDLL

hWnd = Call DLL( dwSystemDLL, "FindWindowA", 0, "DarkBASIC Pro Project" )
nWndLong = Call DLL( dwSystemDLL, "GetWindowLongA", hWnd, GWL_STYLE )
nResult = Call DLL( dwSystemDLL, "SetWindowLongA", hWnd, GWL_STYLE, nWndLong || CS_NOCLOSE || CS_DBLCLKS )
nResult = Call DLL( dwSystemDLL, "SetWindowPos", hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE || SWP_NOMOVE || SWP_NOZORDER || SWP_FRAMECHANGED )

Basically you don't need a plugin to do this, but the above code isn't doing what it's supposed to!! Basically I'll play with it more, but I've just about got to the stage where my head is being banged against a solid brick wall.

If you can get this to work, then well played!

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 00:07
hello APEXnow

thanks of the impegnio that you put to us. but purtoppo it does not work why? hello APEXnow tanks, I attend news more soon

help!! no disable a alt + f4


help this code no work

configure exe

in windowed 640x480 no disable x close and other

help all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 12th Jan 2005 00:18
I really missed this guy. Glad he's back! Almost as entertaining as Lost In Thought complaining about the Compiler.

@darkdomy:
Why DBPro? Why not use Dark Game SDK? It would be easier!

-This...is my boomstick!
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 01:16
hello

dbpro very easy

Dark Game SDK c++ Style , no easy ( only visual c++ , no dev c++ )

I am not expert of c++

plese disable a x close ( alt + f4 ) in dbpro create a plug-in plese. and post all surce.

hello, attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
Dodo
19
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 12th Jan 2005 01:50
if you don't want the x button to be clicked, hide the titlebar and use a sprite to simulate the bar without a x button. use set window layout to remove the title bar, like this...



Part of solving the problem is actually noticing that the problem is there in the first place

Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 12th Jan 2005 02:38
What he wants is a program that once is running, you cannot exit out of it unlesss you type in the password for security reasons.

This scares the heck out of me for I would hate to have a program that I could not get out of running on my machine, but that is just me.

-This...is my boomstick!
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 12th Jan 2005 04:38 Edited at: 12th Jan 2005 04:44
Domenico,

Attached is a Dev-C++ Plugin using TPCToolkit, (THIS ALSO DOES NOT WORK) and I have no idea why

Anyway, it'll get you started, but you will need to play around and see if you can figure out correct Window Style (COMMANDS.CPP) Function called DisableClose.

Also, TPCToolkit for DBPro does not allow plugins to be written very well for Dev-C++ users because of a change that needs to be made in DBPro. This problem is caused by the function ReceiveCoreDataPtr in FRAMEWORK.CPP. DBPro tries to call this function using Visual Studio C++ compiler mangled function names - example I mean is (?ReceiveCoreDataPtr@@YAXPAX@Z), but Dev-C++ generates Exported DLL entry (_Z18ReceiveCoreDataPtrPv) So because ReceiveCoreDataPtr never gets called in the Utility.dll plugin, it cannot receive any dependency information from DarkBASIC Professional such as the Window Handle or globstruct information.

So the DisableClose function tries to find the DBPro Application window by it's window caption.

The plugin adds following command to DBPro "DISABLE CLOSE dbProWindowsCaption"

As I said, I cannot get close button to disappear, because I think DarkBASIC Professional may be overriding the Window Class style parameter.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer

Attachments

Login to view attachments
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 12th Jan 2005 04:41
Cellbloc Studios, the program whether the close button is disabled or not, can still be shutdown using Process Task manager.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 05:49
hello all

plese staff dbpro create a dbpro compatible for dev c++ compiler

help all!!!

help user of visual c++ disable a x close create plug-in for dbpro

hello all attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 05:51
hello

file dbpro

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2

Attachments

Login to view attachments
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 05:54
dll compiled

not work

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2

Attachments

Login to view attachments
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 12th Jan 2005 06:03
I cannot spend any further time on this problem. I've provided the source for the plugin, it just needs tweaking. The function you need to concern yourself with is DisableClose in (COMMANDS.CPP).

The rest you do not need to worry about.

Again, I've comprimised my timeline because of this problem, I expecited it to be a 10 minute job and it ended being half of the day so if you can find someone who can look or experiment with the DLL and source, go right ahead.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 06:17
hello

tanks APEXnow the all surce.

I did not want makes you to lose the precious time. thanks of all the source, but unfortunately in dbpro do not go.

other user the dbpro and visual c++ plese create this plug -in disable a x close.

staff the dbpro create dbpro compatible for dev c++ compiler plese.

hello all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 12th Jan 2005 06:27
Domenico, look at my previous thread

Quote: "Domenico,

Attached is a Dev-C++ Plugin using TPCToolkit, (THIS ALSO DOES NOT WORK) and I have no idea why

Anyway, it'll get you started, but you will need to play around and see if you can figure out correct Window Style (COMMANDS.CPP) Function called DisableClose.

Also, TPCToolkit for DBPro does not allow plugins to be written very well for Dev-C++ users because of a change that needs to be made in DBPro. This problem is caused by the function ReceiveCoreDataPtr in FRAMEWORK.CPP. DBPro tries to call this function using Visual Studio C++ compiler mangled function names - example I mean is (?ReceiveCoreDataPtr@@YAXPAX@Z), but Dev-C++ generates Exported DLL entry (_Z18ReceiveCoreDataPtrPv) So because ReceiveCoreDataPtr never gets called in the Utility.dll plugin, it cannot receive any dependency information from DarkBASIC Professional such as the Window Handle or globstruct information.
"


I have ATTACHED Dev-C++ source code to this post. Bottom right corner, click download. I'm not referring to the DBPro source, I'm referring to the UTILITY,dev project and source files.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 12th Jan 2005 06:44
hello

ok APEXnow

download file UTILITY surce

create dll ok.
test in dbpro compiled in dbpro ok.
run programm in dbpro ( no disable a x close ) no work dll in dbpro, ok.

ok Dev-C++ problem the command ReceiveCoreDataPtr ok

plese staff the dbpro create dbpro compatible whit dev c++ compiler.

hello , attend news.

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 13th Jan 2005 19:19
hello

new ?

Plese create a plug-in(disable alt + f4 an x close) in visual c++ for dbpro

disable alt + f4 an x close help!!!

hello, attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
Rye
20
Years of Service
User Offline
Joined: 30th May 2003
Location: United Kingdom, Blackrod
Posted: 13th Jan 2005 23:46
wouldnt really be useful.

i could simply press ctrl+alt+del and end process.

Am i right in thinking it is impossible to make a program uncloseable in windows?

ok so u can stop alt f4 and remove the x button. but that just stops you from closing the program cleanly.
Cryptoman
20
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 14th Jan 2005 00:29
You can hide your programs from the task manager also. You just have trick windows into thinking it is a driver. But I have not tried this with DBPro, and don't think it would be a good idea since the runtime sometimes is not very tight.

The only thing suggested to trick windows into running that low level would be c++, assemly, or purebasic, and tested for many days to be error free. Because you then have no control whatsoever of the program in question if it goes haywire.
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 14th Jan 2005 02:37
I would try to make the plugin, but the commands require API, and the_winch's dll_tool has problems exporting the commands when using API.


Click sig for DarkBASIC Network IDE.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 14th Jan 2005 03:19
I've already written a plugin example for him. It's there as a download button on the previous page. Christ don't people read these pages or what!!

Look, sorry but this is not the only thread where the obvious has had to be stated because either the posts were not read or the answer given wasn't the one needed. But if you have seen the post and it's not for you, then fare enough

Again, a Dev-C++ project is there in zip format, it just needs tweaking as I couldn't get it to hide the close button, but it could probably also be modified to do what was suggested above in any event.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 14th Jan 2005 09:34 Edited at: 14th Jan 2005 09:38
hello

other samples in vb mode +api

http://148.213.20.44:81/vbapi/ref/w/wm_close.html

create a plug -in in visual c++ or use metod load dll and call dll api.

hello all , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 14th Jan 2005 09:58 Edited at: 14th Jan 2005 09:59
hello


help only disable a key alt + f4 and ok , help plese!!!



tanks a this forum.
http://www.dannywartnaby.co.uk/rgt/index.php?board=4;action=display;threadid=5606;start=msg66987#msg66987

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 16th Jan 2005 18:06
hello

download all surce.

this surce in c++ dll + c++ , disable a alt + tab , alt + esc, plese add disable alt + f4 and compiling dll.
hello , attend news

Anxiously awaiting BlueGUI v2

it informs to me when and ended BlueGUI v2

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-05-03 08:18:38
Your offset time is: 2024-05-03 08:18:38