文件名从 jrj/jarch/factory/JObjectSvr.hpp 修改 |
| | |
| | | #pragma once |
| | | #include "jobject.hpp" |
| | | #include <tchar.h> |
| | | #include <wtypes.h> |
| | | |
| | | #ifdef JARCHOBJECT_EXPORTS |
| | | #define JOBJECT_API __declspec(dllexport) |
| | |
| | | static JObjectSvr* get(); |
| | | public: |
| | | template<class Ty> |
| | | static Ty* CreateInstance(LPWSTR pStrObject) |
| | | static Ty* CreateInstance(LPCWSTR pStrObject) |
| | | { |
| | | return (Ty*)get()->CreateInstance(nullptr,pStrObject); |
| | | return (Ty*)get()->CreateInstance(nullptr,(LPWSTR)pStrObject); |
| | | } |
| | | JObject* CreateInstance(LPWSTR pStrUri, LPWSTR pStrObject); |
| | | void RegisterObjectsByXmlFile(LPWSTR pStrFile); |