c++builder

Threads in C++ builder [closed]

笑着哭i 提交于 2020-01-01 10:22:33
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am new to c++ builder and unfamiliar with the threading I was hoping someone could post an example or point me in the right direction. I have a form which loads the formShow() function in c++ builder. It does

Threads in C++ builder [closed]

时光总嘲笑我的痴心妄想 提交于 2020-01-01 10:22:28
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am new to c++ builder and unfamiliar with the threading I was hoping someone could post an example or point me in the right direction. I have a form which loads the formShow() function in c++ builder. It does

Expose an event handler to VBScript users of my COM object

梦想的初衷 提交于 2020-01-01 09:03:04
问题 Suppose I have a COM object which users can access via a call such as: Set s = CreateObject("Server") What I'd like to be able to do is allow the user to specify an event handler for the object, like so: Function ServerEvent MsgBox "Event handled" End Function s.OnDoSomething = ServerEvent Is this possible and, if so, how do I expose this in my type library in C++ (specifically BCB 2007)? 回答1: This is how I did it just recently. Add an interface that implements IDispatch and a coclass for

Builder C++ calling VC++ class

坚强是说给别人听的谎言 提交于 2019-12-31 05:15:47
问题 I have compiled a Hunspell DLL with VC++ which contains a class... Now I want to call that DLL in Builder C++ 2006 to use its functions...how I can do that? I tried with: typedef Hunspell * (CALLBACK *fpoint)(char *aff_file, char *dict_file); fp pHunspell = (fp)GetProcAddress(handle_Hunspell, "hunspell_initialize"); if (pHunspell) { Hunspell* obj = (Hunspell *)pHunspell("..\hunspelldic\en_US.aff", "..\hunspelldic\en_US.dic"); obj->add_dic("..\hunspelldic\it_IT.aff", "..\hunspelldic\it_IT.dic"

Builder C++ calling VC++ class

女生的网名这么多〃 提交于 2019-12-31 05:15:08
问题 I have compiled a Hunspell DLL with VC++ which contains a class... Now I want to call that DLL in Builder C++ 2006 to use its functions...how I can do that? I tried with: typedef Hunspell * (CALLBACK *fpoint)(char *aff_file, char *dict_file); fp pHunspell = (fp)GetProcAddress(handle_Hunspell, "hunspell_initialize"); if (pHunspell) { Hunspell* obj = (Hunspell *)pHunspell("..\hunspelldic\en_US.aff", "..\hunspelldic\en_US.dic"); obj->add_dic("..\hunspelldic\it_IT.aff", "..\hunspelldic\it_IT.dic"

Access remote database using DataSnap technology in C++ Builder 10.1 Berlin

会有一股神秘感。 提交于 2019-12-31 03:59:29
问题 How to query and get results from remote database using DataSnap technology in C++ Builder 10.1 Berlin ? I want to build a simple solution having two VCL Forms Applications, like client(1) and server(2), running on two different windows os computers, connected on same local network. But I cannot accomplish this simple task and this is what I tried to do: On the server application (2), I use: TSQLConnection *SQLConnection1; TSQLQuery *SQLQuery1; and I will load a SQLite database version 3: if

convert unicode to char

情到浓时终转凉″ 提交于 2019-12-30 11:33:10
问题 How can I convert a Unicode string to a char* or char* const in embarcadero c++ ? 回答1: "Unicode string" really isn't specific enough to know what your source data is, but you probably mean 'UTF-16 string stored as wchar_t array' since that's what most people who don't know the correct terminology use. "char*" also isn't enough to know what you want to target, although maybe "embarcadero" has some convention. I'll just assume you want UTF-8 data unless you mention otherwise. Also I'll limit my

Easy way to tell if unicode character is supported in current font?

六眼飞鱼酱① 提交于 2019-12-30 02:25:08
问题 I'm using Borland C++ Builder 2009 and I display the right and left pointing arrows like so: Button2->Hint = L"Ctrl+\u2190" ; Button3->Hint = L"Ctrl+\u2192" ; This works fine on Windows 7, the application uses font 'Segoe UI'. On XP I get a square instead of the arrows, I use font 'Tahoma' on XP. In other words mentioned Unicode characters are not present in Tahoma on XP. Is there an easy and fast way to simply check if the requested Unicode character is supported in the currently used font ?

Easy way to tell if unicode character is supported in current font?

我的梦境 提交于 2019-12-30 02:25:06
问题 I'm using Borland C++ Builder 2009 and I display the right and left pointing arrows like so: Button2->Hint = L"Ctrl+\u2190" ; Button3->Hint = L"Ctrl+\u2192" ; This works fine on Windows 7, the application uses font 'Segoe UI'. On XP I get a square instead of the arrows, I use font 'Tahoma' on XP. In other words mentioned Unicode characters are not present in Tahoma on XP. Is there an easy and fast way to simply check if the requested Unicode character is supported in the currently used font ?

Assigning events to a VCL control created dynamically at runtime

二次信任 提交于 2019-12-25 18:06:10
问题 I'm trying to create a dynamic VCL control at runtime and assign an event handler to it. I think I've tried everything to get this to work, but cannot (everything I try generates different errors). If you could help fill in the question marks in the code below, it would be of great help! Oh, in case you're wondering why it's in a namespace instead of a class , it's because this is actually a large library that I just kept adding to. When I change it to a class , you'd think it would be fine,