Hi, anyone knows a manual (online) how to start programming with Clipper? It is to make an exe file out of several dBase program files. And no, I'm no programmer, nor have any experience. All help is welcome.
Hm, it has snippits etc, usefull, but me as newbee I dunno how to compile and use Clipper (or any other compiler). I hope for a link with step by step example or things like that. And, how to compile the *.prg files from dBase to a complete .exe file. Coz that is the target...
Found also a decompiler (Valkyrie), but after changing it's unknown to make it .exe again... But thank you for reply, any help is welcome!
-Valkyrie I've tried it but didn't really help us. Thanks.
- >4. Existing data type, if any. Explain? About the dbf records? dBase is the answer.
- for where you are now the 5.2 help files will be just fine. They'll come in handy if you get the hang of this...
OK, it looks like you've got an existing clipper app that uses dbase tables to store your data; a very common environment.
You should have a folder with files that have a .prg extension. That is your source code.
In that folder, hopefully, are some files with a .lnk extension. Tell me if you have these and if there are only one or two post their contents and file names on here, otherwise just post their file names. Then, in the same folder, see if there are any .bat files. If so post them too.
Some developers keep the source in the working folder or they may be elsewhere on the computer. Look things over and see if you can find the .lnk files and .prg files that seem to be the source of this app.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
In dBase dir, there is a dir that stores the .prg files and the .dbf files.
In the clipper, there is only the Clipper program.
The disassembler is program, not used, this must do a disassemle a .exe file that was made by clipper..
Nothing found with a .lnk extension.
In Clipper\Bin\cl.bat:
---
clipper %1
if not errorlevel 1 rtlink file %1
---
Rest are .exe files. Most popup a dos window, then come with a list, or just do 'nothing'.
Since you don't have any custom .lnk files there is a good chance you don't have the source code to your application...
Maybe that is why you have a copy of Valkyrie. If you did decompile the .exe's the complexity of the resulting code would surely overwhelm you as a beginner. I've been coding in clipper for 17 years and have never successfully salvaged an application with a decompiler.
You need to make an all out effort to locate the source code. It will be in .prg file(s).
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
Running dBase, then called in dBase the main program with 'do program.prg'. From that point the program runs. However, it is not possible to run without the dBase installed. The exe file could change that.
Hope you did the search for .lnk files with a dos-prompt, as the Search function of Windows id *never* going to show any of them. Any shortcut really has a .lnk extension, so you should at least find a few ;-)
Try a dos-prompt at C:\ (or the disk that holds the Clipper-stuff) and type
Code:
dir /s/b *.lnk
that should reveal all .lnk files. You probably can't edit them with notepad, so the old Edit program should probably used (edit yourfile.lnk).
Ofcourse there are some *.lnk files in the windows stuff, but these are not related to the programs used by Clipper, I guess the .lnk files we must have are information files to link one file/library/whatever to the other thing while compiling.
The programming and DOS related software are also stored on a complete different disk.
Didn't know that windows had a search option ;o) (it never had anything found for me nor was it usefull for other things so I stopped using that rubbish years ago..)
Tnx for reply.
I think it's settled. You are running a dBase only program. If you want to post the content of one or two of them I’ll look at them and provide some feedback.
Most likely the system relies on dBase interactive commands such as "edit", "Browse" and others that are not compliable in Clipper. You are, most likely, facing a significant education challenge to duplicate the functionality of your dBase application(s) in Clipper.
That said, in my opinion, your efforts would be better spent developing a solution using a more modern tool, many of which can read and write your existing database files.
Either MS Access or Excel would probably do just fine. There are many others as well.
I suspect, at some point, someone bought Clipper hoping to compile this dBase application into an executable and found the task too daunting. I've taken over many projects in that early stage of development.
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.