View Single Post
  #18 (permalink)  
Old 12-01-2007, 07:01 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,699
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by colin9876 View Post
what have i done wrong
Firstly it only works on the device - I have a different solution for the desktop - see the first post of this thread.

Ensure both dlls are in the same folder as your B4PPC app.

Add the fliteDevice.dll to your project by Tools->Components -> Add DLL

Add a fliteDevice object by Tools-> AddObject "SomeName"

Save the app to the folder where both dlls are located.

This should then work

SomeName.New1
SomeName.Say("Hello world")


If you get a complaint about P/Invoke then move the fliteDLL.dll to your Windows folder .

BTW just saying "it doesn't work" is not conducive to finding problems. A description of the way in which it does not work (especially with any error message) will usually get you a solution much quicker.
Reply With Quote