c++builder

use JNI to start JVM Builder C++

强颜欢笑 提交于 2020-01-06 18:57:06
问题 in this post How to use JNI to start JVM in builder C++ application i converted jvm.lib from Coff to Omf. i used it to link JNI_CreateJavaVM() function. But it crash . I used another code to start JVM from Builder C++ application. When i load the jvm.dll. It work!! the JVM is created when i load jvm in java directory but not when i copy this file(jvm.dll) in another directory and call it from this directory.Can you explain why i can't use a copy of jvm.dll to creat my JVM? This is my Code :

Create Win32 application in C++Builder XE5

好久不见. 提交于 2020-01-06 14:04:30
问题 In older version of Borland C++Builder you used the Console Wizard to start off a Win32 program. That is now gone from XE5! How do I start?? 回答1: The wizard you are looking for is located at: File > New > Other ... > C++Builder Projects > Console Application However, the wizard dialog has been broken since XE2 and is still not fixed in the latest version (XE7 at the time of this writing). The dialog has a drop-down list to select a "Target Framework". If you set this to "None", you may get

Create Win32 application in C++Builder XE5

≯℡__Kan透↙ 提交于 2020-01-06 14:03:37
问题 In older version of Borland C++Builder you used the Console Wizard to start off a Win32 program. That is now gone from XE5! How do I start?? 回答1: The wizard you are looking for is located at: File > New > Other ... > C++Builder Projects > Console Application However, the wizard dialog has been broken since XE2 and is still not fixed in the latest version (XE7 at the time of this writing). The dialog has a drop-down list to select a "Target Framework". If you set this to "None", you may get

Selection of Forms just after program execution

拈花ヽ惹草 提交于 2020-01-06 12:43:39
问题 My Environment: C++ Builder XE4 on Windows7 pro(32bit) I would like to select two forms automatically just after the user execute the software. I have two forms as follows. FormStart : normally this shows up after program execution FormOther : this shows up when user specify run-time-parameter (e.g. /useOther) When FormOther is shown, FormStart is not necessary to be shown. I added following code in FormShow() of the TFormStart TFormStart::FormShow(TObject *Sender) { if (useOther) { FormOther

Dynamically linked DLL is loaded immediately after starting the application

筅森魡賤 提交于 2020-01-06 10:20:51
问题 I've dynamically linked libhunspell.dll (HunSpell) to my application. It works, but there is a dumb problem which I don't know why it happens. Even before I use LoadLibrary("path\\to\\libhunspell.dll"); to load it and use it, on the start of the application it attempts to load the library by itself. If I place the libhunspell.dll into the path where my main executable resides, it can load it, otherwise it reports an error, immediately after starting the application - This application has

Dynamically linked DLL is loaded immediately after starting the application

。_饼干妹妹 提交于 2020-01-06 10:16:12
问题 I've dynamically linked libhunspell.dll (HunSpell) to my application. It works, but there is a dumb problem which I don't know why it happens. Even before I use LoadLibrary("path\\to\\libhunspell.dll"); to load it and use it, on the start of the application it attempts to load the library by itself. If I place the libhunspell.dll into the path where my main executable resides, it can load it, otherwise it reports an error, immediately after starting the application - This application has

Variables in c++ builder XE2 not initializing when unit was called by component

社会主义新天地 提交于 2020-01-06 07:24:20
问题 I have a unit (WebFunctions.h) with the declaration String RawURLAllowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~.-_"; This unit works well in the app. But when I add a component which also declares WebFunctions.h , the initialization of RawURLAllowedChars does not occurs ( RawURLAllowedChars = NULL ). To get the app back to work, plus remove the class declaration of the component is still necessary delete the WebFunctions.obj file. Note: Any declarations in .cpp file,

How to store values from an SQL query into a ComboBox component?

眉间皱痕 提交于 2020-01-06 06:36:32
问题 I have a problem with the TComboBox component in Borland C++Builder 6. In the ComboBox, I want to insert the result of an SQL query, eg: ID value --------- 1 one 2 two 3 three I want to display the values of the value column to the user, e.g. one , two , three , but reference the values of the ID column. Can anyone help me? Google did not say a lot about this to me. 回答1: apologize forgot to put in some code ComboBox1->AddItem("one", (TObject *) 1); ComboBox1->AddItem("two", (TObject *) 2);

How to store values from an SQL query into a ComboBox component?

懵懂的女人 提交于 2020-01-06 06:35:21
问题 I have a problem with the TComboBox component in Borland C++Builder 6. In the ComboBox, I want to insert the result of an SQL query, eg: ID value --------- 1 one 2 two 3 three I want to display the values of the value column to the user, e.g. one , two , three , but reference the values of the ID column. Can anyone help me? Google did not say a lot about this to me. 回答1: apologize forgot to put in some code ComboBox1->AddItem("one", (TObject *) 1); ComboBox1->AddItem("two", (TObject *) 2);

Using Static & Dynamic Libraries In Embarcadero C++ Builder

孤街浪徒 提交于 2020-01-05 17:58:24
问题 I have an iOS static library (.a & .h file) and would like to know how to implement it into a C++ Builder project. The documentation cover's how to import a Java library in some detail but does not touch on a third party iOS library at all. Nor are there any blog posts or video's from Embarcadero about doing so. The closest post I have found is: Checking for an internet connection on mobile devices with Delphi XE5 However, it is not clear how to link in the .a file and then how to access the