Shut down/Desktop Icons
BlitzMax Forums/BlitzMax Programming/Shut down/Desktop Icons
| ||
Is there a way to tell Windows to shut down? Is there a way to create a shortcut icon on the desktop? Both of these were possible in BlitzPlus through a lib. |
| ||
You can do it via winapi. |
| ||
Try the code here which has these commands: Standby Hibernate Shutdown Restart LogOff |
| ||
It returns- "Compile Error" "CString can only be used with extern functions" -when you try to run it. |
| ||
I get no error here. Are you using BlitzMax 1.22? |
| ||
I synced the modules and now it works. |
| ||
Talk about reviving an old thread... but I'm curious, what's the answer to the second question (creating shortcuts)? |
| ||
http://www.tacktech.com/display.cfm?ttid=316 |
| ||
Sorry, I thought it would be obvious that we were all talking about how to create a shortcut within Blitzmax. :) Can anyone help with that? |