Re: Tcl and C++

From: Victor Wagner (vitus_at_45.free.net)
Date: 09/14/04


Date: Tue, 14 Sep 2004 10:33:37 +0000 (UTC)

Khamis Abuelkomboz <khamis@wellcode.com> wrote:
loadlibrary) from a c++
: shared library, you have loost. functions are named there cryptocally.

My experiences shows that code inside these functions look simularily
horrible.

: my experience on windows (only for functions) is to tell the linker to
: use the c export standard, so you can load the functions as like as c
: written functions.

It is only way to go. But thus you are loosing all advantages of C++
in the level between your shared library and calling code. And may well
end up with two copies of C++ runtime (which is BI-I-IG) linked into
your application.

Recently I've dropped tcom from my application and switched to optcl for
access to windows-specific things such as shortcut creation.

It saved me about 300K of distribution size just due to I no more need
to distribute MSVCP71.DLL with my app.

On Unix systems problem is even worse. There is system libc, which you
never need to distribute - it just sits here and works.
But C++ runtime is tightly tied to particular version of compiler.

If system has good package manager, such as Debian, you can just put in
correct dependency and let user worry about seven copies of C++ standard
library in his system. In most other cases you'll need either link
statically, or distribute particular version of runtime with your app.

Compare it with Tcl stubs mechanism.

-- 


Relevant Pages

  • Re: Replace standard WindowsCE desktop
    ... Do a search of the Windows CE newsgroups for ... beitman AT applieddata DOT net ... It is possible to just hide traybar and maximise app, ... hooked by standard ways. ...
    (microsoft.public.windowsce.embedded)
  • Re: REALbasic 5.5 free to VB6 Users Untili March 31 2005
    ... The Free to VB6 developer's version will not write an app. ... Standard Edition Windows version creates executables for Windows 98, NT, 2000 and XP. ... Only the Professional Version will create Linux apps. ...
    (microsoft.public.dotnet.general)
  • Magnifying a portion of the X screen
    ... The "standard" program `xmag` allows static capturing a portion of an ... for Microsoft Windows, it's badly crippled. ... One problem with the development of a really capable X window app is the ...
    (comp.os.linux.development.apps)
  • detect/intercept login event
    ... What is a standard way to determine if a user just logged on on a machine? ... My app start when the ... windows starts, I want to catch the login event somehow. ...
    (microsoft.public.platformsdk.security)
  • Re: Any comments?
    ... of "good experiences" for its users... ... Matai beer. ... dropped batteries, lost data, and, on one occasion I witnessed in Australia, ... I'd rather use Windows than have any of the above ...
    (comp.lang.cobol)