INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Missing DEFDRIVE and DRSHELL functions when compile the decompiled source from the runnable app

Missing DEFDRIVE and DRSHELL functions when compile the decompiled source from the runnable app

Missing DEFDRIVE and DRSHELL functions when compile the decompiled source from the runnable app

(OP)
I have an CLIPPER application but not sync with the source.

I am trying to decompile this application and compile it again. The recompile notifies error: Missing function definition DEFDRIVE and DRSHELL.

- I am using RESCUE5 for decompiling
- CLIPPER5.2 with RTLINK
- Does anyone here about the DEFDRIVE and DRSHELL functions?
- I cannot understand why these functions missed because the application can run without error.

Please give me some ideas

I am a newbie in CLIPPER.

RE: Missing DEFDRIVE and DRSHELL functions when compile the decompiled source from the runnable app

It's been a while since I answered a Clipper question.

My guess would be that the original application had some additional code linked in for which there is no code - perhaps a commercial library of some kind or some kind of tool.

Without the original .obj (probably) files that had these functions you won't easily resolve this problem.

A shortcut would be to add some dummy code for those two functions to your existing decompiled work and make a guess as to what they expected as parameters and return values - then you might get a 'error on line xxx' kind of thing you could trace to the actual calls.

You could search your decompiled code for references to the functions to help make the guess more accurate.

Then all you need to do is mimic the functionality of the unknown code...


Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: Missing DEFDRIVE and DRSHELL functions when compile the decompiled source from the runnable app

Hi

DEFDRIVE() is an .asm function from James Occhiogrosso's Clipper Developer's Library (https://portal.dnb.de/opac.htm?method=simpleSearch...)

Use DISKNAME() from CA-Clipper Tools library instead http://www.ousob.com/ng/tools1-3/ng8fb44.php

Regarding DRSHELL(), certainly also a non-prg source function, it might be enough to exchange it for SWPRUNCMD() if you're using Blinker when relinking your de-/re- compiled sources http://www.ousob.com/ng/blinker/ng59ecc.php

The only trace on the web of DRSHELL() was here: http://computer-programming-forum.com/19-clipper/d... but I might be wrong assuming SWPRUNCMD() as an alternative

Perhaps look at the .prg's where DRSHELL() is _called_, it might shed some light smile

Hth,

lohen

RE: Missing DEFDRIVE and DRSHELL functions when compile the decompiled source from the runnable app

(OP)
@GIFFMG: Thanks for your great suggestion. I am following your way now and it is better.

@lohen: It is a good resource for these functions. Thank you very much.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close