Jump to content


Photo

Window Dll:


  • Please log in to reply
38 replies to this topic

#1 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 29 October 2006 - 11:34 AM

Window DLL, Varius window fuction:

List of the function with relative argument: (NOTE*: fuction = Not work)
-----------------------------------------
WindowInit()
WindowFree()
-----------------------------------------
SetCursorVisible(True/False)
SetMousePos(X,Y)
SwapMouseButton(True/False)
-----------------------------------------
GetFile()
MessageBox(Text,Title)
-----------------------------------------
CloseWindow(Handle)
DestroyWindow(Handle)
EnableWindow(Handle)
FindWindow(Handle)
GetLastError()
GetWindowVisible(Handle)

SetFocus(Handle)
SetForeground(Handle)
SetWindowPos(Handle,X,Y,W,H)
SetWindowText(Handle,Text)
WindowHide(Handle)
WindowMaximize(Handle)
WindowMinimize(Handle)
WindowShow(Handle)
WindowShowNormal(Handle)
WindowForceMinimize(Handle)

ADDED:

IsWindowVisible(Handle)
GetCaptionLeght(Handle)
-----------------------------------------
AttachMenu()
CreateMenu()
CreatePopup(Name,SubName)
-----------------------------------------

Credit

Thank's to Striker for the WinApi Lib: ThanX!

http://xarro.altervista.org/Window.zip

Mirror: http://upload2.net/p...Window.zip.html

Right click---> Save target as

Edited by Mauros, 10 November 2006 - 04:40 PM.

  • 0

#2 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 29 October 2006 - 12:33 PM

Added:
Maximize,Minimize,hide and show window

Edited by Mauros, 29 October 2006 - 12:59 PM.

  • 0

#3 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 29 October 2006 - 01:19 PM

No reply?
  • 0

#4 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 29 October 2006 - 09:39 PM

it gave me an error, it says:

This application has hailed to start because MSVCRTD.dll was not found. RE-installing the application may fix this problem


  • 0

#5 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 29 October 2006 - 11:15 PM

You must first download the file. And put the dll in ur windows directory ie: c:\windows\system32\
  • 0

#6 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 30 October 2006 - 08:51 AM

if the download don't start try this
http://xarro.altervi...org/MSVCRTD.DLL
right click--> save as
  • 0

#7 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 30 October 2006 - 09:25 AM

Ok, I have relased the final version:

Init:
Init(). //Init the dll

Cursor:
Win_SetCursorVisible(true/false) // Set Cursor Visible

MessageBox:
Win_MessageBox(message,title) //Simple MessageBox
Win_GetFile() //Get current directory of the file

Menu: //The menu work, but it is only visible.
Win_CreateMenu() //Create Menu
Win_CreatePopUp(title,titlesubmenu)//Create PopUp Menu
Win_SetMenu() //Set the menu

Window:
Win_GetWindowVisible(hwnd) //*****Not tested***********
Win_WindowMaximize(hwnd) //Maximize the window
Win_WindowMinimize(hwnd) //Minimize the window
Win_ShowWindow(hwnd) //Show window if hide
Win_HideWindow(hwnd) //Hide Window if show
Win_SetForeground(hwnd) //Set Foreground
Win_SetFocus(hwnd) //Set Focus
Win_CloseWindow(hwnd) //Close Window
Win_EnableWindow(hwnd) //Enable window
Win_DisableWindow(hwnd) //Disable window

Not yet working:
Win_FindWindow(caption) //Find Window
Win_GetLastError() //Get last error

Edited by Mauros, 30 October 2006 - 09:54 AM.

  • 0

#8 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 04 November 2006 - 07:59 PM

Added 3 function. :)

EDIT: View first post

Edited by Mauros, 04 November 2006 - 08:01 PM.

  • 0

#9 tsa05

tsa05

    GMC Member

  • GMC Member
  • 1063 posts
  • Version:GM:Studio

Posted 04 November 2006 - 09:32 PM

I got the same error as coolsmile.
Process info for msvcrtd.dll:

msvcrtd.dll is a module that contains functions needed for the debug version of an application.


Sure, I can dl the dll and install it, but why would I? Or more to the point, why would my user? I'd be pretty hesitant to use any program that crashed out of the gate, or that told me to first go download some other dll.
  • 0

#10 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 05 November 2006 - 09:13 AM

http://xarro.altervi...org/MSVCRTD.DLL

download wih rightclik---> save as and type in system32 folder....
  • 0

#11 tsa05

tsa05

    GMC Member

  • GMC Member
  • 1063 posts
  • Version:GM:Studio

Posted 06 November 2006 - 12:33 AM

I know how to download and install a dll. I think you missed my point...
  • 0

#12 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 06 November 2006 - 07:39 PM

I got a similar error like that testing my DLL on my oldlaptop

"msvcm80d.dll", just copt that dll you that the computer cannot find the same directory the window DLL, it worked for me, that DLL is also probably some C runtime DLL.
  • 0
Loves his girlfriend Melissa <3

#13 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 06 November 2006 - 07:47 PM

Here it comes:
* Download corrupts when using FF (Now this is the first time I use the smiley without being sarcastic :o).

* I didn't have to download anything, even though I am using an outdated ME :/.

* @tsa05: I totally agree, how can they NOT get you (unless the posters were <= 12 years old).
  • 0

#14 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 06 November 2006 - 07:52 PM

***error*** :o

Edited by Mauros, 06 November 2006 - 07:53 PM.

  • 0

#15 larry994

larry994

    GMC Member

  • New Member
  • 4 posts

Posted 07 November 2006 - 08:26 PM

Just downloaded this one. Works for me so far. :D

Now if The Omega can just get the GMF2.dll working, all will be well.

Edited by larry994, 07 November 2006 - 08:29 PM.

  • 0

#16 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 08 November 2006 - 07:04 AM

Why download and use dlls?
Why don't you all remove all dlls found in system32 directory?
If you think they're useless just remove them i don't recommend this though.
And yes if i'm not mistaken, GM physics also uses those 2 dlls.
Just for ur information, im 21 if your that nosy.
Anthony

Edited by uuf6429, 08 November 2006 - 07:07 AM.

  • 0

#17 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 08 November 2006 - 01:32 PM

I want to know if the DLL is good.

EDIT: I have rewrited the dll with dev-c++..

Edited by Mauros, 08 November 2006 - 01:40 PM.

  • 0

#18 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 08 November 2006 - 06:13 PM

(No new download)
i am currently adding small fuction, between this SwapMouseButton(bool)

i say this for racomanded your to use SwapMouseButton(false) to game end!!!
  • 0

#19 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 08 November 2006 - 07:05 PM

Just downloaded this one. Works for me so far.  :blink:

Now if The Omega can just get the GMF2.dll working, all will be well.

<{POST_SNAPBACK}>

what do you mean? my dll is going to something with his? I don't understand...

I want to know if the DLL is good.

EDIT: I have rewrited the dll with dev-c++..

<{POST_SNAPBACK}>

what did you use before? I tried Dev-C++ before. But now I have Visual Studio 2005, which is like one of the best Apps I ever had.
  • 0
Loves his girlfriend Melissa <3

#20 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 08 November 2006 - 07:17 PM

first i have made the dll in visual studio, but it required other dll (MSVCRTD.DLL ecc)
  • 0

#21 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 08 November 2006 - 07:21 PM

Believe me or not but Dev Cpp is better for dll programming.
I guess many of you know what is structured programing?
If yes then you'll agree that vc++ is better at that then dev.
Regards,
  • 0

#22 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 08 November 2006 - 07:22 PM

first i have made the dll in visual studio, but it required other dll (MSVCRTD.DLL ecc)

<{POST_SNAPBACK}>

ahh...like mines requires those 2 DLLs that come with my DLL.
  • 0
Loves his girlfriend Melissa <3

#23 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 08 November 2006 - 07:37 PM

ehm... the my dll? is good or not?
  • 0

#24 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 08 November 2006 - 07:44 PM

First Post :blink:
  • 0

#25 str1ker-

str1ker-

    GMC Member

  • New Member
  • 155 posts

Posted 08 November 2006 - 10:47 PM

hey, um, the download link doesn't work for me, it keeps returning an error.

doya mind putting up another link? sorry...
  • 0

#26 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 09 November 2006 - 01:10 PM

Mmm.. for me work!

Edit: ok http://upload2.net/p...Window.zip.html

Edited by Mauros, 09 November 2006 - 01:12 PM.

  • 0

#27 tsa05

tsa05

    GMC Member

  • GMC Member
  • 1063 posts
  • Version:GM:Studio

Posted 10 November 2006 - 03:30 AM

This looks like it's coming along nicely... Thanks for making it all work in 1 dl...

I haven't tested everything yet--only the functions demonstrated when the game runs. I'm not sure what mouse swap does, but it didn't seem to have any effect on my pc...

Also, resize doesn't work for me I don't know if it's related or not, but in your d&d for most objects/events, you must have used custom library actions that don't come standard with GM, because I'm getting "Unknown Actions". Maybe something's weird w/ my machine, but that doesn't seem to be the case...
  • 0

#28 str1ker-

str1ker-

    GMC Member

  • New Member
  • 155 posts

Posted 10 November 2006 - 05:22 AM

thanks 4 the nu link
  • 0

#29 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 10 November 2006 - 12:59 PM

Thanks for the compliment, resize work very fine, in the example i not have inserted (sorry for the english) the new script ( for the winapi lib (thanks to striker) you are obligotary(ehm) create a new script...) the script, sorry
Mauro


Edit: Swap buton : change left button with right, and right to left, in shortly if you press right, you press left..

Edited by Mauros, 10 November 2006 - 01:03 PM.

  • 0

#30 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 10 November 2006 - 03:38 PM

well I downloaded the file, I am going to check it out.
  • 0
Loves his girlfriend Melissa <3

#31 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 10 November 2006 - 04:35 PM

View first post! (Added 2 fuction)
  • 0

#32 homebrewpc

homebrewpc

    GMC Member

  • New Member
  • 651 posts

Posted 10 November 2006 - 07:36 PM

nvm

HomebrewPC

Edited by homebrewpc, 10 November 2006 - 07:41 PM.

  • 0

GMArcade is being remade into iPlayIndie, check out our development topic for more information.

#33 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 10 November 2006 - 09:47 PM

well the DLL worked for me, so can you assign GML action to the button? or what? because all I have seen the buttons do is like minize the window, etc. Also does the DLL create another window or add widgets to the GM window?
  • 0
Loves his girlfriend Melissa <3

#34 Mauros

Mauros

    GMC Member

  • New Member
  • 122 posts

Posted 11 November 2006 - 03:11 PM

No, the button are created wit WinApi Lib by striker...
for now you can't create another window..
  • 0

#35 TheOmega

TheOmega

    GMC Member

  • New Member
  • 88 posts

Posted 11 November 2006 - 03:45 PM

No, the button are created wit WinApi Lib by striker...
for now you can't create another window..

<{POST_SNAPBACK}>

oh...well I am going to try that, make it where you can create many windows, and attach GUI controls to them, and listen for events make by the user.
  • 0
Loves his girlfriend Melissa <3

#36 sleija

sleija

    GMC Member

  • New Member
  • 174 posts

Posted 14 July 2007 - 04:52 PM

DANG! This is exactly what I need, but the link is broken. :chikin
  • 0

#37 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 14 July 2007 - 07:51 PM

If you hadn't noticed, this is over a year old... but try the one made by roach.

Edited by the_doominator, 14 July 2007 - 07:52 PM.

  • 0

#38 sleija

sleija

    GMC Member

  • New Member
  • 174 posts

Posted 17 July 2007 - 05:58 PM

I know, but i want to cut down on how many DLLs i have in my game, and this would cut down the size
  • 0

#39 2xD

2xD

    GMC Member

  • New Member
  • 8 posts

Posted 11 November 2012 - 05:37 PM

Somebody reupload this DLL, please!
  • 0