Haruyuki Mohri

毛利春幸のブログです。

It seems use the GetFirstWeekday instead of C++Builder 10 Seattle in GetLocaleFirstDayOfWeek.

GetLocaleFirstDayOfWeek is deprecated. A new method called GetFirstWeekday has been added. in 10 Seattle I tried to use. void __fastcall TForm1::Button1Click(TObject *Sender) { _di_IFMXLocaleService ps; ps = TPlatformServices::Current->Get…

lua53.dll to execute in C++Builder.

lua53.dll to execute in C++Builder(Win64). http://luabinaries.sourceforge.net/download.html lua-5.3_Win64_dllw4_lib.zip Download from the above URL. The lua-5.3_Win64_dllw4_lib.zip exists dll and include files. new project, it will through…

Try TNetHTTPClient in C++Builder XE8

The following URL, we were referring. TNetHTTPRequest/TNetHTTPClientでWebサーバーにアクセスする - 山本隆の開発日誌www.gesource.jp Again, it is Yamamoto Takashi san blog. Try TNetHTTPClient in C++Builder XE8 void __fastcall TForm1::Button1C…

high-resolution stopwatch implementation. in C++Builder

TStopwatch is high-resolution stopwatch. This is present in the version of the old. Unfortunately, I did not know. The header, it will include. #include <System.Diagnostics.hpp> Implementation TStopwatch stopwatch = TStopwatch::Create(); stopwatch.Start(); Sleep(</system.diagnostics.hpp>…

It is described in C++Builder implementation using TStack

TStack is generics class for delphi. But, try to implemented in C++Builder. In the case of C++Builder there is a std::stack. Towards its std::stack is, is recommended. https://gist.github.com/mojeld/424e10acf586549304e5 //Implementation us…

Use the "TAggregatedObject(IInterface)" in "C++Builder"

"TAggregatedObject" because it is for Delphi, Use the "TCppAggregatedObject" in the case of "C++Builder". https://gist.github.com/mojeld/82cba42c0679ddbefc89 How to use in Delphi, please look at the blog of Hosokawa san(Delphi MVP). For "T…

tried the "std::thread". using a "TRESTClient" of "C++Builder"

I used the "std::thread" in C++Builder. This version is "XE8". Previous How to use "async" and "future<>" in XE8(Win64) - (Delphi, C++Builder)Haruyuki Mohri I use them the "TTimer *" to watch the end of a "std::thread". "TTimer *" is the m…

Try SFINAE in C++Builder XE8

I used the previous try boost::asio. This program to check whether the class there is a "TObject". #include <System.Generics.Collections.hpp> // template <class T> bool check_1(typename T::TObject*) { return true; } template <class T> constexpr bool check_1(...) { return false; } template <class T></class></class></class></system.generics.collections.hpp>…

Use the C++BuilderXE8(win64) http connection "boost::asio"

http connection using boost::asio I used the previous TIdHTTP. So, we use the asio. How to use "async" and "future<>" in XE8(Win64) - (Delphi, C++Builder)Haruyuki Mohri C++Builder XE8(Win64) http connection "boost::asio" · GitHub void __fa…

How to use "async" and "future<>" in XE8(Win64)

Use the "async", how to get the http data asynchronously. "C++Builder XE8" is only in Win64, are supported C++11. So, "future<>" it can also be used. //--------------------------------------------------------------------------- void __fast…

In "C++Builder", use the "boost::any"

How to use with "C++Builder FireMonkey", "boost::any". a method using "std::vector<>" I introduced previous. With the "boost::any", it can be utilized, such as the "void *". #include <boost/any.hpp> void __fastcall TForm1::FormCreate(TObject *Sender) { b</boost/any.hpp>…

XE8 Use TCppInterfacedObject IInterface

Using the "C++Builder XE8" in the Delphi "IInterface". Here, the description that of Hosokawa san is "Delphi IInterface". .delphi maniacs: Delphi の Interface Rewrite in this the "C++ Builder". The "IInterface", write the inherited class. …

C++Builder XE8 FireMonkey(32Bit) Form->Sort() template

Was using a "lambda" was described in the previous 64Bit "sort program". C++Builder XE8(64Bit) Form->Sort() examples. (lambda expression) - (Delphi, C++Builder)Haruyuki Mohri It will be replaced for "32bit compiler". XE8 edition "32Bit com…

Visual Studio 2015(C#)でAndroid開発 Xamarinを試してみました。

Visual Studio 2015 がリリースされたので早速インストールしました。 フルインストールだと26GByteほど必要みたいです スマホ開発用にXamarinが入っています iOSやAndroid開発環境で Xamarinが使えます。 新規プロジェクトC#で Androidアプリを作ってみまし…

C++Builder XE8(64Bit) Form->Sort() examples. (lambda expression)

描画順序 (Z オーダー) [Delphi Programming] To describe the DEKOsan article in C++ C++Builder(FireMonkey) of the Sort() method "virtual void __fastcall Sort (_di_TFmxObjectSortCompare Compare);" I have received advice from @owlsperspective …

C++Builder XE8 "template metaprogramming" Try "recursive call"

Using a template a C++ try "recursive call". C++ can use the same template class in the template class. template <int N> class TFoo{ public: static const int value = N + TFoo<N + 1>::value; }; This is infinitely loop. but it is possible to make the cond</n></int>…

C++Builder XE8 (Win64) tried C++11 "for(obj : std::vector<std::shared_ptr<TFmxObject> > ){}

"For" in the C++11 can be of such a description below. for (const int &i : array) std::cout << i << ' '; http://en.cppreference.com/w/cpp/language/range-for "C++Builder XE8" I tried Is it possible any time. std::vector<std::shared_ptr<TFmxObject> > list; We have crea</std::shared_ptr<tfmxobject>…

tried. C++Builder XE8(Win64) template class

We made the aho class and TFoo class. This is both a template class. I check it works properly to put "aho" class and "TStringList" to "TFoo". TFoo I will not try dynamic also static also.We used the "TFoo" as static class when using the "…

Access to Excel cells in "C++ Builder XE4"

Yamamoto-san, has published a sample of at XE8. C++Builder XE8でExcelを起動してファイルを開く - 山本隆の開発日誌 But, PC environment that my Excel is on is XE4. It is regrettable and is not able to try in XE8. When the procedure reasonable…

Pass the "shared_ptr" in "TObject *" parameter

In my case "C++Builder XE8", you may want to generate a "VCL" or "FireMonky" class "smart pointer". "shared_ptr <TStringList>" does not pass only to the same type because the type. void __fastcall TForm1::SListMethod(TObject* value) So,It can do this i</tstringlist>…

C++Builder XE8 Using std::verctor PASCALIMPLEMENTATION class

Made with Delphi "class" will use dynamically. std::vector<TStringList*> //It will use the pointer. .push_back(new TStringList());//OK igasan blog article, there is a detailed explanation.https://www.embarcadero.com/jp/cbfan/cpp-lang/12/02 A7Msan blog a</tstringlist*>…

C++Builder XE8 boost install

"C++Builder XE8" can be installed after the boost.The installation can be done from the IDE tools. I click on the "GetIt" in the Tools menu. Click on the install button so come out "boost" to the item. However, it installed fail in my PC e…

Convert to "std::wstring" from UnicodeString

"C++ Builder XE8" can I use the "UnicodeString", but want to use the "std::wstring". So, there is a need to convert from UnicodeString to "std::wstring". It is useful when using the reason is, "boost" Using the w_str() if it is stored in t…

DKフェスタ 2015(大阪)

第一興商さんが梅田の阪急ホテルでDKフェスタ2015してたので見てきました。 派手な演出で耳が疲れました。 妖怪ウォッチの着ぐるみと ドリーム5が歌って その後モンスターエンジンと元NMBの新喜劇の娘が来てました なぜかモンスターエンジンがカラオケ歌っ…

Unreal Engine 4が無料で使えるようになったのでインストールした

Unreal Engine はEPIC GAMES, INCさんが作ったゲーム用開発ツールです プログラムはC++言語を使います。 Unreal Engine 4 が2015年3月 無料で使えるようにしたみたいです。 1. Unreal Engineを使う為のユーザー登録 https://www.unrealengine.com/ja/what-is…

Android Duplicate id @+id/image, already defined earlier in this layout

Duplicate id @+id/image, already defined earlier in this layout Eclipseで上記のようなエラーが出た場合 Android Lint Preferencesの項目 DuplicateIdsとInstantiatableをWarningに変更して回避する ついでに「ble requires API level 21 」こんなエラー…

appmethod (TAmazonConnectionInfo + TAmazonStorageService) AWS S3

appmethod+Android(Nexus 6)で AWSのS3に接続しJPEGを取得する 1.TButtonとTImage, TAmazonConnectionInfoをFormに貼ります GoogleのNexus6をUSBに指すとappmethod上で認識できます 2. AmazonConnectionInfo1->AccountNameとAccountKeyを指定します 3.ボタン…

appmethod 1.15 (Free License)で Kindle HD Fire 6 を接続できません

appmethot 1.15(Free License)は C++で 6inch以下のAndroidだけが接続可能です Kindle Fire HD 6で 試して見ました 無理みたいでした「無償バージョンでは、Amazonデバイスは使用できません。画面の対角線サイズが6インチを超えています。」と丁寧に お断り…

Amazon Linux(ec2)環境に couchbase3.0.0をINSTALL

Amazon Linuxにcouchbase 3.0.0をINSTALLしてみる 1.couchbaseのサイトからダウンロード http://www.couchbase.com/downloads#download_form Redhat用です 2.rpm でINSTALLする sudo rpm -ivh couchbase-server-enterprise-3.0.0-centos6.x86_64.rpm INSTALL…

MacOSでAmazon CLIのINSTALL方法 (aws command)

1. IAMの設定(Identity and Access Management) 「Service」を選択後「IAM」を選択すると こんな画面が出るので 「Create New Users」をする ユーザーが出来たらそのユーザーを選択して「User policy」項目を選ぶ ここで操作できるpolicyを選択する参照だけ…

appmethod 15.0(C++)でAndroid CodeGear.Deployment.Targets(416,5): error MSB6006: "paclient" exited with code 1.

appmethod 15.0インストール後すぐに Androidデバイスを繋いで実行すると CodeGear.Deployment.Targets(416,5): error MSB6006: "paclient" exited with code 1. コンパイルは成功するんですが配置で下記のようなエラー出ます エラー: E2820 プログラムが見…