xj qian
2024-09-05 89c226a7da5ffc6748ff3ef70aacad7625bafa3e
jrj/jarch/JObjectSvr.hpp
文件名从 jrj/jarch/factory/JObjectSvr.hpp 修改
@@ -1,7 +1,5 @@
#pragma once
#include "jobject.hpp"
#include <tchar.h>
#include <wtypes.h>
#ifdef JARCHOBJECT_EXPORTS
#define JOBJECT_API __declspec(dllexport)
@@ -18,9 +16,9 @@
   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);