The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Brian Evans (2) [Avatar] Offline
#1
Hello Fergal, First off I wanted to let you know that I love your approach with this book. Nonetheless,I am having problems with the Poker app. I have followed your directions for creating and registering the .dll and I tried to run the ComPok.vbs file, however, after I enter the number of cards to hold I get the following error: ComPok.vbs(18, 3) Microsoft VBScript runtime error: Invalid procedure call or argument: 'machine.Draw'

Please help.....
Brian Evans (2) [Avatar] Offline
#2
Re: Poker.dll problem.
Found the answer: set drawHand = machine.Draw((dealHand), holdCards)


What does the parenthesis do?
Noisy Crow (1) [Avatar] Offline
#3
Re: Poker.dll problem.
They force the parameter to passed-by-value. Otherwise the interface gets fed an generic object, for which there is no provision in the C# code.