It is possible to write template in template.In that case, you can pass the "geho_<std :: vector>" class template directly to the template.
namespace my_
{
template <class T1, typename T2> struct hoge_{};
template<
template<typename, typename> class T,
typename T1, typename T2>
struct geho_
{
T<T1, T2> t_;
};
};
I put hoge_ in class geho_. It is typed in T template in geho_.So you can pass it like the fol...
毛利です。
Visual C++で作った64BitのDLLをC++Builderで試してみました。
まずVC++2017側のコードです。
・・・・
extern "C" CONSOLEAPPLICATION1_API int test1(int i1)
{
///This function only increments.
++i1;
return i1;
}
extern "C" CONSOLEAPPLICATION1_API void test2(int i1, wchar_t* a)
{
///Convert from int to wstring.
std::wstring s{};
s = std::to_wstring(i1);
///It is not valid to allocate the wchar_t in the Visual C++ DLL and then free it in C++ Builder.
///wchar_t *a = new wchar_t[s.length() + 1];
wcscpy(a, s.c_str());
///Finally cast to wchar_t* and return.
///return a;
}
ビルドするとDLLが作られます。(ConsoleApplication1.dll)
Made a DLL with Visual C++. And I tried to use it in C++Builder. Common is 64 bits.
First I will make a VC++ side DLL.
////
extern "C" CONSOLEAPPLICATION1_API int test1(int i1)
{
///This function only increments.
++i1;
return i1;
}
extern "C" CONSOLEAPPLICATION1_API void test2(int i1, wchar_t* a)
{
///Convert from int to wstring.
std::wstring s{};
s = std::to_wstring(i1);
///It is not valid to allocate the wchar_t in the Visual C++ DLL and then free it in C++ Builder.
/...
Make a barcode with C++Builder Firemonkey.
This time, I used DEKO-san library.
http://ht-deko.com/junkbox.html#BARCODE
When unpacking, there is a BARCODE.PAS file inside.
This BARCODE.PAS file needs to be rewritten a bit.
That's pretty simple. Just change String to AnsiString.
Next, I will make a new project. The project is C++Builder Firemonkey.
Add BARCODE.PAS to the project.
BARCODE.hpp will be created when building.And then design the screen.
In the...
With the addition of the 64-bit C++11 compiler in C++Builder XE3 update 1 (and RAD Studio XE3 update 1), there are a host of new 64-bit tools to go along with the compiler. Here is a list (with links to the Embarcadero DocWiki articles) of the new 64-bit tools that are part of the 64-bit Windows application development set.
bcc64.exe - the C++11 64-bit command line compiler - http://docwiki.embarcadero.com/RADStudio/XE3/en/BCC64.EXE,_the_C%2B%2B_64-bit_Windows_Compiler
Ilink64.exe - the 6...