No problem, I'll send you. But give me two days. I'm a little bit in a hurry.
↧
New Post: location of activevfp.dll
↧
New Post: Where is all the Source Code
Hi
I am looking for all the source code but cannot find it. I found a bunch of "xaml" files on this site but that is not what I am looking for. Where do I find the code that produced the activevfp.dll and where is the complete documentation for activevfp? The documentation I have says things like "here are SOME of methods" of this or that class. I am trying to wrap my mind around the way activeVFP works vs web-connection which I have used for years and know inside and out. So reading the source code would certainly help me switch to the activeVFP way.
Thanks,
Simon
I am looking for all the source code but cannot find it. I found a bunch of "xaml" files on this site but that is not what I am looking for. Where do I find the code that produced the activevfp.dll and where is the complete documentation for activevfp? The documentation I have says things like "here are SOME of methods" of this or that class. I am trying to wrap my mind around the way activeVFP works vs web-connection which I have used for years and know inside and out. So reading the source code would certainly help me switch to the activeVFP way.
Thanks,
Simon
↧
↧
New Post: Where is all the Source Code
The source code zip files are on the Downloads page on the right side:
http://activevfp.codeplex.com/releases/view/53030
You'll see:
AVFP6.03sourceonly
and
AVFP5.53sourceonly
Combine either one with the regular production release and you'll have the complete project.
They used to let me put the Source Code zip files on the Source Code page but now I guess they want to force people to use their system. I haven't delved into using it yet - looks sort of complicated but we'll see..
The biggest differences between WWC and AVFP, apart from AVFP being completely open source, is the use of VFP MTDLL technology in AVFP which will allow your vfp web apps to perform faster and scale better than EXE based servers. (I know they say wwc will do mtdll servers but as soon as anybody actually wants to do one in wwc they tell them they should do an EXE instead!)
Secondly, you can host your VFP web apps on far more cheap ($5/mo) commercial web hosts, even the big ones like GoDaddy.
The fact that AVFP is a community project also means that this project will likely be continuously updated with new and interesting ideas from the VFP community -something you probably won't see in commercial products for one reason or another.
http://activevfp.codeplex.com/releases/view/53030
You'll see:
AVFP6.03sourceonly
and
AVFP5.53sourceonly
Combine either one with the regular production release and you'll have the complete project.
They used to let me put the Source Code zip files on the Source Code page but now I guess they want to force people to use their system. I haven't delved into using it yet - looks sort of complicated but we'll see..
The biggest differences between WWC and AVFP, apart from AVFP being completely open source, is the use of VFP MTDLL technology in AVFP which will allow your vfp web apps to perform faster and scale better than EXE based servers. (I know they say wwc will do mtdll servers but as soon as anybody actually wants to do one in wwc they tell them they should do an EXE instead!)
Secondly, you can host your VFP web apps on far more cheap ($5/mo) commercial web hosts, even the big ones like GoDaddy.
The fact that AVFP is a community project also means that this project will likely be continuously updated with new and interesting ideas from the VFP community -something you probably won't see in commercial products for one reason or another.
↧
New Post: Wrong Page Displayed
Hi
I am just deploying my first ActiveVFP project and when I use the following URL
http://www.kardallfinancialservices.com/pivotal/kfsmaster.avfp
It actually displays the results from defaultp.avfp. Can someone expalin why? If anything I would have expected an error as I am still developing the code.
I guess I should say I am using ver 6.03 on Windows Server 2008.
Thanks
Simon
I am just deploying my first ActiveVFP project and when I use the following URL
http://www.kardallfinancialservices.com/pivotal/kfsmaster.avfp
It actually displays the results from defaultp.avfp. Can someone expalin why? If anything I would have expected an error as I am still developing the code.
I guess I should say I am using ver 6.03 on Windows Server 2008.
Thanks
Simon
↧
New Post: Where is all the Source Code
Thank-you I do not know why I did not see it I guess I just focused on the header items.
↧
↧
New Post: Versão do ActiveVFP para Windows Server 2008 R2
Goodnight everyone,
I'm using google translator, sorry for any incorrect translation
I would like to take a course with you.
I already have a version of ActiveVFP very old and works perfectly in IIS 6 but IIS is now 7 and my system is experiencing errors Request.
I can rebuild my project in this new version of ActiveVFP 6:03 without having to change the source code?
hugs
Fabio Mascarenhas
I'm using google translator, sorry for any incorrect translation
I would like to take a course with you.
I already have a version of ActiveVFP very old and works perfectly in IIS 6 but IIS is now 7 and my system is experiencing errors Request.
I can rebuild my project in this new version of ActiveVFP 6:03 without having to change the source code?
hugs
Fabio Mascarenhas
↧
New Post: Versão do ActiveVFP para Windows Server 2008 R2
6.03 is a more radical change from the older versions. You may want to try 5.53 instead, at least to begin the transition. 5.53 has most of what 6.03 offers but serves it up via the old default.aspx which should be more similar to your older version.
I would advise you to look at some of the new samples. Scripting is primarily in .avfp pages now while your scripts may have been just .htm files and/or main.prg. Rename your .htm files to be .avfp files and, any vfp code you had in your old main.prg, put in the new main.prg (5.53 version). Keep everything else in the 5.53 main.prg the same.
You now are encouraged to do all or most of the coding in the .avfp script files (contains vfp code and html) just like how it's done in PHP. You can have centralized VFP function libraries and classes that will be called the same way from your scripts as is done in normal foxpro (see docs or inline code documentation in the examples).
(Version 6.03 allows the creation of VFP Controllers as an alternative to putting a lot of code in .avfp files)
I would advise you to look at some of the new samples. Scripting is primarily in .avfp pages now while your scripts may have been just .htm files and/or main.prg. Rename your .htm files to be .avfp files and, any vfp code you had in your old main.prg, put in the new main.prg (5.53 version). Keep everything else in the 5.53 main.prg the same.
You now are encouraged to do all or most of the coding in the .avfp script files (contains vfp code and html) just like how it's done in PHP. You can have centralized VFP function libraries and classes that will be called the same way from your scripts as is done in normal foxpro (see docs or inline code documentation in the examples).
(Version 6.03 allows the creation of VFP Controllers as an alternative to putting a lot of code in .avfp files)
↧
New Post: Wrong Page Displayed
In main.prg, if it doesn't find your script it will default to the demo. You can easily change this in the OTHERWISE of the case statement. It's also programmed to look for yourscript.avfp automatically so don't change that code.
↧
New Post: Wrong Page Displayed
The script is in the correct folder the problem appears to be that the oProp.Action="Favicon" and the oProp.Ext="ico".
↧
↧
New Post: Wrong Page Displayed
I do not know what caused the strange action value but restructuring my directories and a couple of code changes resulted in everything working as expected.
Simon
Simon
↧
New Post: Why is my website URL triggering ActiveVFP?
Hi
On my website (www.KardallFinancialServices.com) I want the index.htm to be displayed when the user first goes to the site however the I am getting the following error:
Caught .NET exception, source: MAIN.PRG 00005kx5001a err#= 1 line= 45 File does not exist.1 File does not exist. .NULL. .NULL. .NULL. .NULL. .NULL. d:\kardtech\customers\kardallfs\Pivotal\activevfp.dll message: d:\kardtech\customers\kardallfs\Pivotal\activevfp.dll
However, if I use (www.KardallFinancialServices.com/index.htm) I get the proper home page. I have set the default document in IIS to "index.htm" so I am wondering what is triggering activeVFP to run when it should not.
Thanks,
Simon
On my website (www.KardallFinancialServices.com) I want the index.htm to be displayed when the user first goes to the site however the I am getting the following error:
Caught .NET exception, source: MAIN.PRG 00005kx5001a err#= 1 line= 45 File does not exist.1 File does not exist. .NULL. .NULL. .NULL. .NULL. .NULL. d:\kardtech\customers\kardallfs\Pivotal\activevfp.dll message: d:\kardtech\customers\kardallfs\Pivotal\activevfp.dll
However, if I use (www.KardallFinancialServices.com/index.htm) I get the proper home page. I have set the default document in IIS to "index.htm" so I am wondering what is triggering activeVFP to run when it should not.
Thanks,
Simon
↧
New Post: How to retrieve a file uploaded to the server?
Hi
How do I retrieve a file uploaded from a form using method="POST" enctype="multipart/form-data"?
Thanks,
Simon
How do I retrieve a file uploaded from a form using method="POST" enctype="multipart/form-data"?
Thanks,
Simon
↧
New Post: Versão do ActiveVFP para Windows Server 2008 R2
First I want to thank the prompt response to my question.
Claude, in the Main.prg my project is set as the Default file for compilation and initiated as follows:
**
Define Class Server As ActiveVFP OlePublic
**
...
Not found in the Main.prg FONT available for download to have as a basis for study.
My default.asp is in the following form:
<%
Set oServer = Server.CreateObject ("cdweb.server")
Set oServer oServer.GetDebugObject = ()
Response.Write (oServer.Main ())
'Set oServer = nothing
%>
The fact that I would have to change to work in this new version?
Can you give me more tips?
Thanks in advance,
hugs
Claude, in the Main.prg my project is set as the Default file for compilation and initiated as follows:
**
Define Class Server As ActiveVFP OlePublic
Function Main
Local LCHTMLOUT, LCHTMLFILE
OREQUEST = This.OREQUEST
OSESSION = This.OSESSION
ORESPONSE = This.ORESPONSE
OPROP = Newobject('AVFPproperties')
OHTML = Newobject('AVFPhtml')
OCOOKIE = Newobject('AVFPcookie')
OSESSIONTABLE = Newobject('AVFPsessiontable')
OUPLOAD = Newobject('AVFPhttpUpload')
This.AVFPINIT
OPROP.ACTION = OREQUEST.QUERYSTRING("action")
If Isnull(OSESSIONTABLE.Value("authenticated"))
LCPASTA = OPROP.APPSTARTPATH
OTOHTML = Createobject("to_html.RpttoHtml")
LCRETORNO = OTOHTML.VALIDA_INI("Quebra", "Habilita", LCPASTA)
If LCRETORNO="1"
LCRETORNO = OTOHTML.VALIDA_INI("Quebra", "Oculta", LCPASTA)
OTOHTML = .Null.
If LCRETORNO="1"
This.CODIGOSENHA()
Else
This.RAMAL()
Endif
Else
OTOHTML = .Null.
This.RAMAL()
Endif
Endif
Do Case
Case OPROP.ACTION=='listaramais'
LCR1 = OREQUEST.Form("R1")
LCCODIGO = OREQUEST.Form("codigo")
If Empty(LCCODIGO) .Or. Isnull(LCCODIGO)
LCCODIGO = OSESSIONTABLE.Value("oCodigo")
Else
OSESSIONTABLE.Value("oCodigo", Padr(LCCODIGO,6," ") )
Endif
LCPAR = OREQUEST.QUERYSTRING("ramal")
LCHTMLOUT = This.LISTARAMAIS(LCPAR, LCCODIGO)
Case OPROP.ACTION=='valida_acesso'
LCHTMLOUT = This.VALIDA_ACESSO()
Case OPROP.ACTION=='ramal'
LCHTMLOUT = This.RAMAL()
Case OPROP.ACTION=='codigosenha'
LCHTMLOUT = This.CODIGOSENHA()
Case OPROP.ACTION=='contadetalhada'
LCHTMLOUT = This.CONTADETALHADA()
...
Enddefine **
...
Not found in the Main.prg FONT available for download to have as a basis for study.
My default.asp is in the following form:
<%
Set oServer = Server.CreateObject ("cdweb.server")
Set oServer oServer.GetDebugObject = ()
Response.Write (oServer.Main ())
'Set oServer = nothing
%>
The fact that I would have to change to work in this new version?
Can you give me more tips?
Thanks in advance,
hugs
↧
↧
New Post: Versão do ActiveVFP para Windows Server 2008 R2
Just download AVFP 5.53 and start playing with the examples. You'll have to run the examples and see how they work for yourself. Then you should be able to figure out how to get your existing vfp application code to work fairly rapidly. Once you're comfortable with that, place your existing code in a .AVFP file in the HTML directory and try to get that to work. Don't worry so much about the underlying technology as it should be similar enough to the version you're on to not be a big problem...
↧
New Post: How to retrieve a file uploaded to the server?
You should be able to access the file that you uploaded from your code. The default for where it's uploaded is \temp but that can be changed. The following info is returned with the upload (from the demo):
1 File(s) Uploaded!
The first file is c:\avfp6\temp\FLL2012 Certificate Generic (2).ppt, Size: 630784, Original Name: FLL2012 Certificate Generic (2).ppt
The second file is , Size: , Original Name:
The third file is , Size: , Original Name:
The 1st value you entered is:
The 2nd value you entered is:
The 3rd value you entered is:
File1 extension and stem are: .ppt and c:\avfp6\temp\FLL2012 Certificate Generic (2)
File1 elapsed time for upload: 0
File2 elapsed time for upload:
1 File(s) Uploaded!
The first file is c:\avfp6\temp\FLL2012 Certificate Generic (2).ppt, Size: 630784, Original Name: FLL2012 Certificate Generic (2).ppt
The second file is , Size: , Original Name:
The third file is , Size: , Original Name:
The 1st value you entered is:
The 2nd value you entered is:
The 3rd value you entered is:
File1 extension and stem are: .ppt and c:\avfp6\temp\FLL2012 Certificate Generic (2)
File1 elapsed time for upload: 0
File2 elapsed time for upload:
↧
New Post: How to retrieve a file uploaded to the server?
Hi
I saw in the code that it went to the temp folder but I wondered how I would know the name of the file. I f I just look in the temp folder I could be grabbing files from different users and not the one I want.
Simon
I saw in the code that it went to the temp folder but I wondered how I would know the name of the file. I f I just look in the temp folder I could be grabbing files from different users and not the one I want.
Simon
↧
New Post: How to retrieve a file uploaded to the server?
You can always have the user log in and pass that info (or any other text fields like in the example form) along with the upload. All of that info is associated with the upload. The code for getting the file name is in that sample app (from http://70.174.157.27:444/avfp6/upload2.avfp ):
* do the upload
lnFiles = oUpload.HttpUpload(oProp.AppStartPath+'temp')
%>
<tr>
<td width="149%">
<%= oUpload.lnfCount %> File(s) Uploaded!
<p>The first file is <%=oUpload.getfilename('FILE1')%>,
Size: <%=oUpload.getfilesize('FILE1')%>, Original Name:
<%=oUpload.getfileorig('FILE1')%></p>
<p>The second file is <%=oUpload.getfilename('FILE2')%>,
Size: <%=oUpload.getfilesize('FILE2')%>, Original Name:
<%=oUpload.getfileorig('FILE2')%></p>
<p>The third file is <%=oUpload.getfilename('FILE3')%> ,
Size: <%=oUpload.getfilesize('FILE3')%>, Original Name:
<%=oUpload.getfileorig('FILE3') %></p>
<p>The 1st value you entered is: <%=oUpload.getmform('test')%></p>
<p>The 2nd value you entered is: <%=oUpload.getmform('test2')%></p>
<p>The 3rd value you entered is: <%=oUpload.getmform('test3')%></p>
<p>File1 extension and stem are: <%=oUpload.getfileex('FILE1')+[ and ]+oUpload.getfilestem('FILE1')%></p>
<p>File1 elapsed time for upload:<%=oUpload.getelapsedtime('FILE1')%></p>
<p>File2 elapsed time for upload:<%=oUpload.getelapsedtime('FILE2')%>↧
↧
New Post: How to SET PROCEDURE TO?
I cleared all contents of ActvieVFP examples and started rom scratch.
Basicaly all I have is main.prg and get_vars.prg. What I need is to SET PROCEDURE TO get_vars
Contents of main.prg:
, source: MAIN.PRG 00002rs9004a err#= 1 line= 16 File 'get_vars.prg' does not exist.1 File 'get_vars.prg' does not exist. get_vars.prg .NULL. .NULL. .NULL. .NULL. C:\Inetpub\proba\activevfp.dll
message: C:\Inetpub\proba\activevfp.dll
I even tried to set procedure with full path manualy entered in code and I stili get the same error. This is really strange.
What I am doing wrong?
Basicaly all I have is main.prg and get_vars.prg. What I need is to SET PROCEDURE TO get_vars
Contents of main.prg:
LOCAL lchtmlout
lcHTMLout = ""
lcHTMLout = lcHTMLout + "<br>oProp.AppStartPath:" + oProp.AppStartPath
SET DEFAULT TO oProp.AppStartPath + "prg\"
SET PATH TO oProp.AppStartPath + "prg\" ADDITIVE
SET PROCEDURE TO get_vars ADDITIVE
RETURN lcHTMLout
Although path is correctly set, all I get is error Caught .NET exception, source: MAIN.PRG 00002rs9004a err#= 1 line= 16 File 'get_vars.prg' does not exist.1 File 'get_vars.prg' does not exist. get_vars.prg .NULL. .NULL. .NULL. .NULL. C:\Inetpub\proba\activevfp.dll
message: C:\Inetpub\proba\activevfp.dll
I even tried to set procedure with full path manualy entered in code and I stili get the same error. This is really strange.
What I am doing wrong?
↧
New Post: How to SET PROCEDURE TO?
Hmm... I had to compile get_vars.prg to make this works.
Why is that?
And why should I complie manualy. Isn't it logical that ActiveVFP compiles every PRG it loads?
Why is that?
And why should I complie manualy. Isn't it logical that ActiveVFP compiles every PRG it loads?
↧
New Post: How to SET PROCEDURE TO?
I hope you kept a copy of the examples somewhere so you can refer to them."I cleared all contents of ActvieVFP examples and started rom scratch. "
Is get_vars.prg compiled??"What I am doing wrong?"
In the simplelist.avfp example, prg\pages is used. So try:
SET PROC to oProp.AppStartPath+'prg\pages' ADDITIVE &&we know this works because the simplelist.avfp example uses it
and see if that works. If it works, put get_vars.fxp and get_vars.prg in prg\pages too and see if it works.
BTW, if you intend to actively modify your function library in the development process, you'll need to release it at the end of the routine like:
RELEASE PROCEDURE oProp.AppStartPath+'prg\pages'
↧