Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using MSFlexgrid in DLL

Status
Not open for further replies.

JBC1

Programmer
Oct 2, 2000
2
GB
Hi
I'm new to Borland Builder C++ coming from a Visual Basic Background.
I'm trying to find or use an equivalent to MSFlexgrid in a C++ DLL, since VB only produces ActiveX DLL's, however after compiling and linking, my user program (HTBASIC) crashes on loading the DLL which contains the C++ code and MSFlexgrid box

Subsequent investigation suggested its the use of CoInitialize and CoUnitialize that cause the problem,
any workarounds known, Using the Borland TStringGrid works OK , but can't (don't know how to) set Text alignment )columns) and Text color(cell by cell)

Cheers

John [sig][/sig]
 
Hi All
Before anyone gets too excited by this problem, I've found the solution

Contrary to the Borland Help CoInitialize and CoUnitialize were indirectly the problem, in that the conversion package that converts the Microsoft Flexgrid to a DLL project completely failed to call these routines therefore the COM library was failing to be initialized. This also explained why the function worked as an EXE. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top