Jump to content

Dave Nottage

Members
  • Content Count

    65
  • Joined

  • Last visited

Community Reputation

13 Good

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dave Nottage

    GExperts module to make the Components structure view PERMANENT

    I expect this may be rather difficult to be implemented in an expert without having it totally separate from the Structure View itself, because there is only one TVirtualStringTree which reloads, dependent on whether Code or Design is selected.
  2. Dave Nottage

    Compiling code originally for VS in C++Builder

    Neither of those compile, giving the same error: Declaration terminated incorrectly. It compiles OK omitting: extern "C", however the Load function is not exported, either. Could this be due to the .lib not being linked? I can name Load as Loadx instead, and the project still compiles. I'm using ObjConv from here: https://agner.org/optimize/ to convert the original .lib file to OMF format. C++Builder does not complain about the file being linked, however I'm wondering whether it is sufficient for it to use.
  3. Please specify what version of Delphi (if different to your tagged version of 10.2 Tokyo), Xcode, iOS SDK, and iOS on the device.
  4. Dave Nottage

    Compiling code originally for VS in C++Builder

    Having trouble with the declaration: extern "C" __declspec(dllexport) int Load(pLink: PDLLLINK); Gives: Declaration terminated incorrectly.
  5. Dave Nottage

    Compiling code originally for VS in C++Builder

    Yes, so we'll give that a shot; thanks!
  6. Dave Nottage

    Compiling code originally for VS in C++Builder

    The trick here is that the function that needs to be exported from the DLL is actually in the .lib. Is it possible to use extern "C"' and __declspec(dllexport) with it?
  7. Dave Nottage

    Compiling code originally for VS in C++Builder

    OK, we're a step closer. The DLL compiles, however now I need to export a function contained in the .lib, namely: Load. I've created a .def from a VS C DLL that I know works: LIBRARY WSCTX.DLL EXPORTS Load @1 ; Load ..and added it to the project, however I now receive this error: [ilink32 Error] Invalid command line switch for "ilink32". Parameter "ItemSpec" cannot be null. Either my Google-fu has once again disappeared, or I seem to be alone in ever receiving it using C++Builder?
  8. Dave Nottage

    Compiling code originally for VS in C++Builder

    First one is: "[bcc32c Error] Api_HpcCallTable.h(181): pasting formed '->Hpc_Trace_AddClassId', an invalid preprocessing token" for this code: int HPC_CALL_TABLE_STUB( Hpc_Trace_AddClassId, (char* pszClassName), pszClassName); Where HPC_CALL_TABLE_STUB is defined as: #define HPC_CALL_TABLE_STUB( FuncName, ParamType, ...) \ __inline static FuncName##_Stub ParamType \ { \ if(g_pHpcCallTable && NULL != g_pHpcCallTable->##FuncName) \ { \ return( (g_pHpcCallTable->##FuncName)(__VA_ARGS__)); \ } \ \ return( 0); \ } Great questions. I am using C++Builder 10.3.1 Community Edition. Am I able to choose a different compiler depending on the situation? If so, how? As advised, I created a DLL project and chose C as the language. I have extremely limited experience with C++Builder That seems logical to me. The issue here is that C++Builder will not link to the .lib file as-is, and I assume it's because it's in COFF format. I tried to use COFF2OMF to convert it, however that does not appear to produce a .lib that contains all the required code
  9. My Google-fu seems to be off at the moment. I have a DLL project that was originally for Visual Studio that I'm attempting to port to C++Builder. I'm struggling to find any tips on making this migration, other than apparently some time ago C++Builder had a method of importing Visual C++ projects. Does any method exist for importing such a project, or perhaps a site that gives tips about it? I've created a C-based DLL project in C++Builder and am attempting to include the original VS (C-based) code, however I'm receiving a bunch of compiler errors, which are different each time I load the project and hit "Build". The motivation for moving it from VS is to have the ability to include Delphi code in the project. Additional issue: I have a .lib file that is used in the VS project, but no corresponding .dll, so that I can use implib to import a .lib that C++Builder will link to. Is there a way I can create a .dll in VS so that everything in the .lib is imported?
  10. Dave Nottage

    10.3.2 as next or waiting for 10.4?

    https://community.embarcadero.com/article/news/16638-rad-studio-august-2018-roadmap That was the last roadmap published. If unchanged, there are things slated for 10.3.x that were not included in 10.3.1, so they may end up in a 10.3.2 release, e.g: macOS 64
  11. Dave Nottage

    Erro 10.3.1 java.lang.IllegalStateException

    Thanks! Given the code in TAndroidHTTPClient.DoExecuteRequest, it would seem that somehow a connection is being made before DoExecuteRequest is executed, because setRequestProperty is definitely called before connect (and it is the only place connect is called). It might be that DoExecuteRequest is somehow being called twice, however I could not say without a test project.
  12. Dave Nottage

    Erro 10.3.1 java.lang.IllegalStateException

    I referred to the callstack, not the actual code. The Callstack window is the one in the very top left of your first picture. It's possible to copy/paste what is inside that window.
  13. Dave Nottage

    Erro 10.3.1 java.lang.IllegalStateException

    When the crash occurs as per your first image, can you click "Break", so that the callstack shows, please? Then present here what the callstack actually shows (preferably paste the text, rather than a picture)
  14. Dave Nottage

    "Gotchas" when calling from a C DLL to a Delphi DLL?

    What else might it be doing, if the call to the Delphi DLL does not return "properly"?
  15. Dave Nottage

    "Gotchas" when calling from a C DLL to a Delphi DLL?

    Thanks for the other tips. For this one, I still don't know whether or not I have coded the exception handler correctly, or is it just the IntToStr thing that's a problem?
×