Thread: TDateTime breaks because Borland unable to locate cc3250mt.dll

  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    2

    TDateTime breaks because Borland unable to locate cc3250mt.dll

    The title kinda says it all but I am working with ye old Borland C++Builder 5 to view the source code for an old .dll my company uses. it seems the .dll is breaking on a line that is a simple creation of a TDateTime.
    More precisely:
    TDateTime dummy2(sysTime.wHour, sysTime.wMinute, sysTime.wSecond, sysTime.wMilliseconds);

    this is pretty basic code. I have stumbled upon a fix by adding cc3250mt.dll (obtained in the (BCB5)\bin folder) to the application directory. I would think it would automatically know to link any necessary .dll when compiling the program. What am I not understanding? Thanks.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    I'd suspect that something is corrupt or incorrectly configured in your project settings.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  3. #3
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Shouldn't a dll like that be "installed" in the system directory?

  4. #4
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Actually it depends on link type. And also on what you mean by "breaking"

    If you are using GetProcAddress to access the function - application will start without target dll being present. and will break or if implemented correctly - notify the user - if the desired dll is missing, or the searched function if not present in the dll (due to wrong version).

    If you have "linked" your application with the lib file containing dll exports and application starts without problem - looks like dll is found in the local dir or PATH.

    IF application fails when trying to make a call to some function that suppose to be present in the dll - it means the dll found is older version.

    In this case putting correct version dll into the local folder will "fix" the problem - since local folder is searched first.
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  5. #5
    Registered User
    Join Date
    Jul 2013
    Posts
    2
    Quote Originally Posted by vart View Post
    Actually it depends on link type. And also on what you mean by "breaking"

    ...

    IF application fails when trying to make a call to some function that suppose to be present in the dll - it means the dll found is older version.

    In this case putting correct version dll into the local folder will "fix" the problem - since local folder is searched first.
    By breaking I mean it throws an EInvalidOp error and closes the program when it tries to execute that line of code.

    so far as I have found there is only one version of the file on my computer so it isn't like I am using an updated version to make it work. It just can't find the file unless it is in the application directory.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. unable to execute my program in borland c
    By AkaneNatsumi in forum C Programming
    Replies: 4
    Last Post: 04-25-2013, 01:58 AM
  2. Replies: 1
    Last Post: 07-26-2010, 10:21 AM
  3. Unable to locate txt file for ifstream opening
    By Swerve in forum C++ Programming
    Replies: 2
    Last Post: 04-19-2008, 11:55 AM
  4. unable to locate the errors (maybe trouble with arrays)
    By Moose2Sue in forum C++ Programming
    Replies: 2
    Last Post: 11-07-2002, 03:52 PM
  5. Borland/CC3250MT.DLL
    By jester in forum Windows Programming
    Replies: 5
    Last Post: 01-16-2002, 07:16 PM

Tags for this Thread