Re: how to protect DLL



If your dll is a vfp web application, you might want to consider limiting
the IP where it can be used to http://localhost or http://127.0.0.1 for
trial usage and then take that out for unlimited usage. Otherwise,
something like Protection Plus (www.softwarekey.com) will work with a vfp
mtdll by time limiting its usage.
Also, the lowest level of ReFox will protect the source code of a vfp mtdll.
Not sure about the latest versions of ReFox - they may even be better...

Claude Fox
http://www.activevfp.com - free, open source foxpro web development

"Samir Ibrahim" <samir.ibrahim@xxxxxxxxxxx> wrote in message
news:uJFZwB1IHHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
VFP7 XPSP2

I have created a DLL that retreive information from the internet depends
on specific creteria, what i want to protect the dll or make a demo for
other user to test it and if they like it, they can buy the full version.
The only think i could think about it is to return the value of the dll is
a messagebox instead of variable EX:
cMyresult = mydll("search") , cMyresult will open a messagebox with the
value in it while in the real version, the value is stored in cMyresult.

I have seen a activex or dll when u initialize it with createobject(), a
popup menu appear telling you that you need to register ot remove this
popup. i tried to do this but i keep getting error and i dont know what is
wrong so a little help will be appreciated.
i want:
1- how and where to call the second class (ABOUT) which is a form, when
class1 is initialized, I mean when : oMyobject =
createobject("mmm.class1") is entered. i tried to
2- is there a better way of protecting DLL?

Thanks for your help in advance


DEFINE CLASS class1 AS Custom OLEPUBLIC

*omyabout = createobject(about) : if this line is exist, when i compile
the dll it give 0 error, but when i try to use it with createobject, an
unspecified error occur.

FUNCTION class1_SEARCH
RETURN cANSWER
ENDFUNC

FUNCTION class1_GET_ADDRESS
RETURN cANSWER
ENDFUNC


HIDDEN PROCEDURE INIT
ENDPROC

HIDDEN PROCEDURE ADDOBJECT
ENDPROC

HIDDEN PROCEDURE AddProperty
ENDPROC

HIDDEN PROCEDURE Destroy
ENDPROC

HIDDEN PROCEDURE NewObject
ENDPROC

HIDDEN PROCEDURE ReadExpression
ENDPROC

HIDDEN PROCEDURE ReadMethod
ENDPROC

HIDDEN PROCEDURE RemoveObject
ENDPROC

HIDDEN PROCEDURE ResetToDefault
ENDPROC

HIDDEN PROCEDURE SaveAsClass
ENDPROC

HIDDEN PROCEDURE ShowWhatsThis
ENDPROC

HIDDEN PROCEDURE WriteExpression
ENDPROC

HIDDEN PROCEDURE WriteMethod
ENDPROC

HIDDEN PROCEDURE Error
ENDPROC

ENDDEFINE

DEFINE CLASS OK AS CommandButton
Caption = "Understood"
FontName = "Bookman old style"
height = 23
left = 100
top=140
width=85
PROCEDURE CLICK
THISFORM.RELEASE
ENDPROC
ENDDEFINE

DEFINE CLASS ABOUT AS Form
ADD OBJECT lb1 as label WITH;
Caption = 'This DLL is a part of ',;
Autosize = .f.,FontName = "Bookman old style",Height =
19,LEft=0,Width=128,TOP=4

ADD OBJECT lb2 as LABEL WITH caption = "MMC Software",;
LEFT=128,TOP=5,WIDTH=96,height=16,autosize=.t.,fontbold=.t.,FontName =
"Bookman old style"

ADD OBJECT LB3 AS LABEL WITH;
autosize=.t.,CAPTION = "Only",Fontname = "Bookman old style",;
height=19,left=0,top=24,width=30

ADD object lb4 as label with autosize=.t.,CAPTION = "GET_ADDRESS",Fontname
= "Bookman old style",;
Height=16,Left=32,Top=25,width=107,Fontbold=.t.

ADD OBJECT lb15 as label WITH;
Caption = 'Function is Working ',;
Autosize = .t.,FontName = "Bookman old style",Height =
19,LEft=144,Width=120,TOP=24

ADD OBJECT cb as OK

PROCEDURE INIT
THIS.AutoCenter = .T.
THIS.BorderStyle = 2
THIS.Caption = "About DLL"
this.ClipControls= .F.
this.Closable= .F.
this.ControlBox= .F.
this.HalfHeightCaption=.t.
this.Height=167
this.TitleBar = 1
this.Width = 294
this.Show
this.modal = 1
RETURN
ENDPROC

PROCEDURE RELEASE

ENDPROC
ENDDEFINE



.



Relevant Pages

  • how to protect DLL
    ... I have created a DLL that retreive information from the internet depends on ... what i want to protect the dll or make a demo for other ... HIDDEN PROCEDURE ADDOBJECT ... ADD OBJECT lb1 as label WITH; ...
    (microsoft.public.fox.programmer.exchange)
  • Re: FoxPro public variable problem in multithreaded VB.NET app
    ... I assumed it was "shared friend" because when I compiled the VFP DLL ... when you compile the dll as a single threaded ... classes insantiated that refer to several PUBLIC variables and it ...
    (microsoft.public.dotnet.framework.interop)
  • Re: VFP Objects for a beginner - help!
    ... My "stuff" is all large external DB manipulation and reporting ... (reporting via VFP functions that write and publish the html/java script on ... another app. ... VB guy would set a reference to the DLL in his project and then could ...
    (microsoft.public.fox.programmer.exchange)
  • Ree: Alternative COBOL "telco" source program
    ... values for W-S the actual W-S and L-S is created in the run-unit's ... If two separate run units on the same machine both call the same .dll ... or .so each run-unit has a new freshly created W-S etc in ... "If the USAGE clause is not specified .. ...
    (comp.lang.cobol)
  • Re: Problem creating VFP COM object in IIS on Win 2003 64 bit server
    ... the IIS manager as well as from script. ... VFP front end to retrieve procedures and things to do from the server then ... Runtime VFP files are on a Server 2003 and the dll has been ...
    (microsoft.public.fox.programmer.exchange)