I have created my custom class myclass.cls and I've put it into the BASE folder on MiKTeX dis. (C:\Program Files\MiKTeX 2.9\tex\latex\base). Then I have created my xxx.sty file with some additional code, I've put it into the new folder OWNCLS (C:\Program Files\MiKTeX 2.9\tex\latex\owncls) and refreshed the file name database (FNDB) in MiKTeX settings. I hope I did everything how I should.
And my question is: How do I define \newcommand in myclass.cls that will load the xxx.sty file from its folder?
For example, when I want to create a new document, I will use command \loadmytheme{xxx} in the preamble. beamer class has got something similar \usetheme{Themename}.
I will appreciate any help.