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.

DLL Talk / just a simple msgbox dll without .net

Author
Message
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 7th Jan 2005 09:43
well i have been looking for a free and no .net msgbox dll and havnt found one so i made my own and it is also opensource if anyone wants it
i have not created a readme file on it yet but anyway
it is i think a lot like cattlehustlers msgbox dll like u add the values up
so here are the values(this was taken from another manual and was nto made by me)

MB_OK 0 Default Display OK button only.
MB_DEFBUTTON1 0 Default is first button
MB_APPLMODAL 0 The user must respond to the message
box before continuing work in the
window identified by the hWnd parameter.
However, the user can move to the windows
of other applications and work in those
windows. Depending on the hierarchy of
windows in the application, the user
may be able to move to other windows
within the application. All child windows
of the parent of the message box are
automatically disabled, but popup windows
are not.MB_APPLMODAL is the default
if neither MB_SYSTEMMODAL nor MB_TASKMODAL
is specified.
MB_OKCANCEL 1 Display OK and Cancel buttons.
MB_ABORTRETRYIGNORE 2 Display Abort, Retry, and Ignore buttons.
MB_YESNOCANCEL 3 Display Yes, No, and Cancel buttons.
MB_YESNO 4 Display Yes and No buttons.
MB_RETRYCANCEL 5 Display Retry and Cancel buttons.
MB_ICONERROR 16 Display Critical Message icon.
MB_ICONQUESTION 32 Display Warning Query icon.
MB_ICONEXCLAMATION 48 Display Warning Message icon.
MB_ICONWARNING 48 Display Warning Message icon.
MB_ICONASTERISK 64 Display Information Message icon.
MB_ICONINFORMATION 64 Display Information Message icon.
MB_USERICON 128 Specify the MB_USERICON flag
if you want the message box
to display the icon specified
by the lpszIcon member
MB_DEFBUTTON2 256 Second button is default.
MB_DEFBUTTON3 512 Third button is default.
MB_DEFBUTTON4 768 Fourth button is default.
MB_SYSTEMMODAL 4096 Same as MB_APPLMODAL except that the
message box has the WS_EX_TOPMOST style.
Use system-modal message boxes to notify
the user of serious, potentially damaging
errors that require immediate attention
(for example, running out of memory).
This flag has no effect on the user's
ability to interact with windows other
than those associated with hWnd.
MB_TASKMODAL 8192 Same as MB_APPLMODAL except that all the
top-level windows belonging to the current
task are disabled if the hWnd parameter
is NULL. Use this flag when the calling
application or library does not have a
window handle available but still needs
to prevent input to other windows in the
current application without suspending
other applications.
MB_HELP 16384 Adds a Help button to the message box.
Choosing the Help button or pressing F1
generates a Help event.
MB_SETFOREGROUND 65536 The message box becomes the foreground
window. Internally, Windows calls the
SetForegroundWindow function for the
message box.
MB_DEFAULT_DESKTOP_ONLY 131072 The desktop currently receiving input
must be a default desktop; otherwise,
the function fails. A default desktop
is one an application runs on after
the user has logged on.
MB_TOPMOST 262144 MessageBox is WS_EX_TOPMOST style
MB_RIGHT 524288 The text is right-justified.
MB_RTLREADING 1058476 Displays message and caption text using
right-to-left reading order on Hebrew
and Arabic systems.

here are the possible values returned

IDOK 1 OK button was selected.
IDCANCEL 2 Cancel button was selected.
IDABORT 3 Abort button was selected.
IDRETRY 4 Retry button was selected.
IDIGNORE 5 Ignore button was selected.
IDYES 6 Yes button was selected.
IDNO 7 No button was selected.
IDCLOSE 8 Close button was selected.
IDHELP 9 Help btton was selected.


and here is finally the download link


http://hckr83.freefronthost.com/msgbox.dll

and here is some example source for it



come to my forums http://hck83.darktech.info/forum/ formerly: 404 name not found
"others understand me but i dont understand my own thoughts"
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 7th Jan 2005 20:10
Yeah, I've got one that does all that, it's in the TPC DLL List that's stickied in this forum. I don't know why you didn't make yours a true TPC though.


"Computers are useless, they can only give you answers."
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 8th Jan 2005 12:29
yea i just noticed but hey im a noob as far as dlls i later found that out when tryign to make a keywords file soa re there any turtials for how to make a dll like that though i know that some people have posted and got locked so i didnt dare post

come to my forums http://hck83.darktech.info/forum/ formerly: 404 name not found
"others understand me but i dont understand my own thoughts"
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 9th Jan 2005 06:15 Edited at: 9th Jan 2005 06:24
@Shadows, I have a use for this. Just one lill request: Could you recompile it in Release mode instead of debug mode?
(c:documents and settingsjordandesktoptest1.c)
[edit]
And one more thing: Could you show me the way you declared the mesgbox function? I just need the declaration, not it's code. I can't call it without knowing how you made it.

AphoticVM status: 80% AphoticBasic status: 10%
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 9th Jan 2005 06:31
Can't you just use the api function directly?
http://www.mentalis.org/apilist/MessageBox.shtml



Quote: "this is not a quote"
DarkBasic Pro Guy
19
Years of Service
User Offline
Joined: 4th Jun 2004
Location: Broomfield, Colorado
Posted: 9th Jan 2005 06:42 Edited at: 9th Jan 2005 06:43
nevermind delete this post mods

Computers are stupid all they do is calculate. Your the one that makes the computer do stuff
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 9th Jan 2005 07:33
I tried that, but I keep getting an error because of the function type. I'm not doing this in DBP, so things aren't this easy.

AphoticVM status: 80% AphoticBasic status: 10%
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 9th Jan 2005 10:06
ummm
ok i will do that i forgot to uncheck include debug info in the compiler
i made this in c not c++ so err well actually i made it in bcx a basic to c translator thing which is quite handy but anyway
ummm
oh and here is complete source to it in c



and in c++ but it is not tested and i think might have had problems translating


come to my forums http://hck83.darktech.info/forum/ formerly: 404 name not found
"others understand me but i dont understand my own thoughts"
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 11th Jan 2005 08:39
Thanks!
Did you update the link?

AphoticVM status: 80% AphoticBasic status: 10%
Cha0s
19
Years of Service
User Offline
Joined: 10th Jan 2005
Location: France
Posted: 17th Jan 2005 06:45

Login to post a reply

Server time is: 2024-04-23 11:49:22
Your offset time is: 2024-04-23 11:49:22