athanasios13
Technical User
Hello!
After posting to another thread (for pascal) as i was "mis-informed" about the language of the program i finally write to the right topic..
I had this program in a computer since 1996 which run in dos platform.
The problem is that i want to upgrade to another pc and the program is locked to the first computer...
I tried to copy the files into a new pc but i got a screen saying that the programm is locked to the first computer..When i started searching the files of the programm i found one file called "UNLOCK.cpp"
I thought that if i could compile the "UNLOCK.cpp" into a UNLOCK.exe i could probabbly unlock the program and copy it to my new pc..
the first lines of this cpp file are:
#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
#include <txtutils.h>
int unlock=TRUE;
void Wrong()
{
View v(40,4,4);
v.BothCenter();
v.FillBox();
v.Print(1,2,"locked");
delay(5000);
unlock=FALSE;
}
int System(FILE *fp)
{
int j1,j2;
asm int 0x11
asm mov j2,ax
fread(&j1,2,1,fp);
return (j1==j2);
}
int OverMem(FILE *fp)
{
int j1,j2;
asm mov ah,0x88
asm int 0x15
asm mov j2,ax
fread(&j1,2,1,fp);
return (j1==j2);
}
The file has not a main() function in it..
Can anyone tell what this
asm mov ah,0x88
asm int 0x15
asm mov j2,ax
mean?I guess that you type in dos "unlock.exe myprogram.exe"
and it writes somes values in it. Am i right?
Any help?
thanx in advance
After posting to another thread (for pascal) as i was "mis-informed" about the language of the program i finally write to the right topic..
I had this program in a computer since 1996 which run in dos platform.
The problem is that i want to upgrade to another pc and the program is locked to the first computer...
I tried to copy the files into a new pc but i got a screen saying that the programm is locked to the first computer..When i started searching the files of the programm i found one file called "UNLOCK.cpp"
I thought that if i could compile the "UNLOCK.cpp" into a UNLOCK.exe i could probabbly unlock the program and copy it to my new pc..
the first lines of this cpp file are:
#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
#include <txtutils.h>
int unlock=TRUE;
void Wrong()
{
View v(40,4,4);
v.BothCenter();
v.FillBox();
v.Print(1,2,"locked");
delay(5000);
unlock=FALSE;
}
int System(FILE *fp)
{
int j1,j2;
asm int 0x11
asm mov j2,ax
fread(&j1,2,1,fp);
return (j1==j2);
}
int OverMem(FILE *fp)
{
int j1,j2;
asm mov ah,0x88
asm int 0x15
asm mov j2,ax
fread(&j1,2,1,fp);
return (j1==j2);
}
The file has not a main() function in it..
Can anyone tell what this
asm mov ah,0x88
asm int 0x15
asm mov j2,ax
mean?I guess that you type in dos "unlock.exe myprogram.exe"
and it writes somes values in it. Am i right?
Any help?
thanx in advance