# FXDirDialog.new Error Message

**URL:** <https://www.ruby-forum.com/t/fxdirdialog-new-error-message/183123>\
**Category:** FXRuby\
**Created:** [February 8, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/fxdirdialog-new-error-message/183123 "2010-02-08T17:46:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [February 8, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/fxdirdialog-new-error-message/183123/1 "2010-02-08T17:46:19Z")

</div>

I want a dialog box to choose a directory. I’m running the following  
code

require ‘fox16’  
include Fox

dialog = FXDirDialog.new(self, “Choose Directory”)

and am getting an error that says  
“No matching function for overloaded ‘new\_FXDirDialog (ArgumentError)’”

Am I missing something, or typing something wrong?

Thanks,

Alex
