Logo
SharpKmyCore.h
1// XXSharpKmyCore.h
2
3#pragma once
4using namespace System;
5
6#using <System.Drawing.dll>
7
8namespace XXSharpKmyBase {
9
10 private ref class PerformanceMeter
11 {
12 static IntPtr begin(System::String^ name, System::Drawing::Color c);
13 static void end(IntPtr p);
14 public:
15 static void showCpu(bool flg);
16
17 ref class AutoPeriod
18 {
19 public:
20 AutoPeriod(System::String^ name) {
21 ptr = begin(name, System::Drawing::Color::Red);
22 }
23 ~AutoPeriod() {
24 end(ptr);
25 }
26 IntPtr ptr = IntPtr::Zero;
27 };
28 };
29
30 private ref class StringConv
31 {
32 public:
33 static std::string convert(System::String^ s);
34 //static bool convert(System::String^ s, char* buffer, size_t size);
35 static String^ New(std::string s);
36 };
37}