Dangling Participles

Just starting out? Need help? Post your questions and find answers here.
AgentOrange
User
User
Posts: 14
Joined: Sun Oct 12, 2003 3:51 am

Dangling Participles

Post by AgentOrange »

I don't care much for leaving graphics out in the open. I read about the IncludeBinary. Once included, is there a way to access the binary without having to write it out to the disk?

Code: Select all

  If CreateToolBar(0, WindowID())
    ToolBarImageButton(0, LoadImage(0, "Icons\Load.ico"))
    ToolBarSeparator()
    ToolBarImageButton(3, LoadImage(0, "Icons\Stop.ico"))
    ToolBarImageButton(2, LoadImage(0, "Icons\Play.ico"))
    ToolBarImageButton(4, LoadImage(0, "Icons\Pause.ico"))
    ToolBarSeparator()
    ToolBarImageButton(12, LoadImage(0, "Icons\About.ico"))
  EndIf
ao
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

There sure is - check out CatchImage()
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
AgentOrange
User
User
Posts: 14
Joined: Sun Oct 12, 2003 3:51 am

..

Post by AgentOrange »

Karbon wrote:There sure is - check out CatchImage()
Hey thanks a bunch.. I think what's happening, is that I'm making this harder than it needs to be... the Visual Designer is freakin sweet.

Especially, the Include Event Loop..

Very nice.. so should I be so bold to ask, is it going to be this easy to include and play a wav file? I'm not into using compressed audio at the moment.. waves only

ao
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

is it going to be this easy to include and play a wav file?
Yes! Binary include it within a datasection, use CatchSound() to grab it from binary to memory then use PlaySound() to play it! :D
--Kale

Image
AgentOrange
User
User
Posts: 14
Joined: Sun Oct 12, 2003 3:51 am

Post by AgentOrange »

Kale wrote:
is it going to be this easy to include and play a wav file?
Yes! Binary include it within a datasection, use CatchSound() to grab it from binary to memory then use PlaySound() to play it! :D
Thanks Kale.. that was too easy.. :lol:
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Be sure to check out PureVision too - another visual designer. http://www.reelmediaproductions.com/purevision/
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
AgentOrange
User
User
Posts: 14
Joined: Sun Oct 12, 2003 3:51 am

..

Post by AgentOrange »

Karbon wrote:Be sure to check out PureVision too - another visual designer. http://www.reelmediaproductions.com/purevision/
I've seen that before.. Just wish the screen shot was bigger. :cry:

ao
Post Reply