# Win32api

**URL:** <https://www.ruby-forum.com/t/win32api/94760>\
**Category:** Ruby\
**Created:** [May 13, 2006, 9:33am UTC](https://www.ruby-forum.com/t/win32api/94760 "2006-05-13T09:33:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckonrad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Post date:** [May 13, 2006, 9:33am UTC](https://www.ruby-forum.com/t/win32api/94760/1 "2006-05-13T09:33:03Z")

</div>

hello

does this mean i dont have the WIN32API

irb(main):008:0\> require ‘win32api’  
LoadError: 127: The specified procedure could not be found. -  
Init\_win32api  
C:/ruby/lib/ruby/1.8/i386-mswin32/win32api.so  
from C:/ruby/lib/ruby/1.8/i386-mswin32/win32api.so  
from C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require’  
from (irb):8  
from :0

how do i get that or use it in a program?

---

<div class="post-metadata">

**Author:** ![ckonrad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Post date:** [May 13, 2006, 9:46am UTC](https://www.ruby-forum.com/t/win32api/94760/2 "2006-05-13T09:46:25Z")

</div>

corey konrad wrote:

> hello
> 
> does this mean i dont have the WIN32API
> 
> irb(main):008:0\> require ‘win32api’

Try require ‘Win32API’

Regards,

Dan

---

<div class="post-metadata">

**Author:** ![ckonrad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Post date:** [May 13, 2006, 9:55am UTC](https://www.ruby-forum.com/t/win32api/94760/3 "2006-05-13T09:55:05Z")

</div>

oh ok thanks thats right because Win32API is a class so it has to be  
capatalized, kind of jumping ahead of myself there but i was just  
curious.

Thanks

Daniel B. wrote:

> corey konrad wrote:
> 
> > hello
> > 
> > does this mean i dont have the WIN32API
> > 
> > irb(main):008:0\> require ‘win32api’
> 
> Try require ‘Win32API’
> 
> Regards,
> 
> Dan

---

<div class="post-metadata">

**Author:** ![ckonrad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Post date:** [May 13, 2006, 1:33pm UTC](https://www.ruby-forum.com/t/win32api/94760/4 "2006-05-13T13:33:58Z")

</div>

corey konrad wrote:

> oh ok thanks thats right because Win32API is a class so it has to be  
> capatalized, kind of jumping ahead of myself there but i was just  
> curious.

No, it’s not a class, it’s a required file. The case has to match method  
name Init\_…

irb(main):001:0\> require ‘wIn32ApI’  
LoadError: 127: The specified procedure could not be found. -  
Init\_wIn32ApI

Most libraries use all lowercase. Another one that trips people up is  
“RMagick”. “Win32API” is the only one with uppercase letters in the  
standard library, as you can see from the list at  
[http://www.ruby-doc.org/stdlib/](http://www.ruby-doc.org/stdlib/)

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![ckonrad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Post date:** [May 14, 2006, 4:06am UTC](https://www.ruby-forum.com/t/win32api/94760/5 "2006-05-14T04:06:55Z")

</div>

corey konrad wrote:

> oh ok thanks for the info, i jus started ruby like a week ago, but  
> playing around with th e wind32api or doing shell stuff in linux are  
> probably he first thing i am going to do to get more comfortable with  
> programming. I think that it would make sence to play around with as  
> many classes and methods as i can first before writing my own. Do you  
> think that is a good plan?

Not really. It’s not a bad idea, but it’s just so easy making classes in  
Ruby, so you might be able to just jump straight into it.

Chapters 11-17 of Matz’ Ruby U.'s Guide might be of some help with the  
concepts involved.  
[http://www.ruby-doc.org/docs/UsersGuide/rg/](http://www.ruby-doc.org/docs/UsersGuide/rg/)

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![ckonrad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Post date:** [May 14, 2006, 1:36am UTC](https://www.ruby-forum.com/t/win32api/94760/6 "2006-05-14T01:36:15Z")

</div>

oh ok thanks for the info, i jus started ruby like a week ago, but  
playing around with th e wind32api or doing shell stuff in linux are  
probably he first thing i am going to do to get more comfortable with  
programming. I think that it would make sence to play around with as  
many classes and methods as i can first before writing my own. Do you  
think that is a good plan?

Dave B. wrote:

> corey konrad wrote:
> 
> > oh ok thanks thats right because Win32API is a class so it has to be  
> > capatalized, kind of jumping ahead of myself there but i was just  
> > curious.
> 
> No, it’s not a class, it’s a required file. The case has to match method  
> name Init\_…
> 
> irb(main):001:0\> require ‘wIn32ApI’  
> LoadError: 127: The specified procedure could not be found. -  
> Init\_wIn32ApI
> 
> Most libraries use all lowercase. Another one that trips people up is  
> “RMagick”. “Win32API” is the only one with uppercase letters in the  
> standard library, as you can see from the list at  
> [RDoc Documentation](http://www.ruby-doc.org/stdlib/)
> 
> Cheers,  
> Dave
