home *** CD-ROM | disk | FTP | other *** search
- //
- // COMPONENT_NAME: somx
- //
- // ORIGINS: 27
- //
- //
- // 10H9767, 10H9769 (C) COPYRIGHT International Business Machines Corp. 1992,1994
- // All Rights Reserved
- // Licensed Materials - Property of IBM
- // US Government Users Restricted Rights - Use, duplication or
- // disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- //
-
- /* %Z% %I% %W% %G% %U% [%H% %T%] */
- /*
- * This file was generated by the SOM Compiler and Emitter Framework.
- * Generated using:
- * SOM Emitter emitxtm: 2.37
- */
-
- #ifndef SOM_Module_foo_Source
- #define SOM_Module_foo_Source
- #endif
- #define Foo_Class_Source
-
- #include <somdtype.xh>
- #include "foo.xih"
-
- SOMEXTERN void SOMLINK SOMInitModule(long majorVersion, long minorVersion)
- {
- FooNewClass(0, 0);
- }
-
- SOM_Scope string SOMLINK method1(Foo *somSelf, Environment *ev,
- string* a, long* b, _IDL_SEQUENCE_octet *c)
- {
- /* FooData *somThis = FooGetData(somSelf); */
- FooMethodDebug("Foo","method1");
-
- /* set return value for out string parameter */
- *a = "abc";
-
- /* set return value for inout long parameter */
- *b = c->_maximum + *b;
-
- /* return results */
- return("method1 completed");
- }
-
- #ifndef _WIN32
- #include <windows.h>
- int CALLBACK LibMain (HINSTANCE inst, WORD ds, WORD heapSize, LPSTR cmdLine)
- {
- SOM_IgnoreWarning (inst);
- SOM_IgnoreWarning (ds);
- SOM_IgnoreWarning (heapSize);
- SOM_IgnoreWarning (cmdLine);
-
- SOM_ClassLibrary ("foo.dll");
- return 1;
- }
- #endif
-