_VFP.AutoYield = .F. initiates re-install of Foxpro program for non-admin users Windows Server 2008 R2 - activex

VFP 9 program with ActiveX controls on Windows Server 2008 R2, running via Remote Desktop connection, works ok for administrators but when non-admin users load a form with an ActiveX control that has the line "_VFP.AutoYield = .F.", the Windows installer tries to re-install the program with a message about files in use.

If this is a third-party ActiveX control, do you have the required licenses for it?
The case may be that the developer (or default) license allows the administrator account to run the control, but not using any other user accounts without the required license.

Related

Can I use Delphi 10.3 or 10.4 Professional to connect to a remote Firebird database using FireDAC?

I would like to upgrade my XE5 Professional to 10.3 or 10.4 Professional, but I've a doubt. Using a Professional edition and FireDAC components, can I connect to Firebird 2.5 on a server in my intranet? The feature-matrix document says "Connect to local databases...".
See https://www.embarcadero.com/products/delphi/product-editions
With my XE5 Professional, I can connect, and a few months ago I tried the Community edition of 10.3 and even with that edition I had the opportunity to connect.
It is probably not what you are able to do, but rather what you are allowed to do. The relevant part of the license says (emphasize by me):
Subject to the terms and conditions of this Agreement, Licensor grants
to Licensee as the licensed user of the Product the limited right to
use those portions of the Product identified as "dbExpress" and
“FireDAC”, in executable form only, to access a local database
installed on the same machine as the Work. Licensee may not use that
portion of the Product identified as "dbExpress" or “FireDAC” in
association with a database located on a different machine other than
the machine on which the Works are installed.
In your case this limits the connections to Firebird servers running on the same machine your program is running on. Simply the Firebird server being in the local intranet is not sufficient.
Software License and Support Agreement

Connection String Help Microsoft Jet 4.0 Paradox

I am trying to connect to a server in PowerPivot. I am running across a few problems. Here is the connection string:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\accounting001\Accounting\TimeSlips2014\Databases\Philadelphia\;Extended Properties=Paradox 5.x.
It uses NT authentication as the password. I have read all about the problems with MS Jet 4.0. I am running 64x on 64x office apps. I receive the not registered on local computer error. Can anyone help me connect. I already installed the Access 2010 DB engine however I wasn't able to get it to connect. Thanks!
The Microsoft OLE DB Provider for Jet and the Jet ODBC driver are available in 32-bit versions only. You can't run them in 64 bit mode.
The Solution
If you run a program in a 64 bit environment and need to utilize jet to open an Access, Excel or text file there are several options to make this work.
Run the program in WoW64 mode (emulates 32-bit on 64 bit systems). This will make the 32 bit drivers work.
If the application is an web app hosted on IIS 7 you can choose to configure the web sites application pool to run in 32-bit mode.
With Office 2010, there are new drivers, the 2010 Office System Driver, which will be provided in both 32-bit and 64-bit versions. You can use these drivers to let your application connect to Access, Excel and text files in a 64 bit environment utilizing the new 64-bit drivers. The provider name is "Microsoft.ACE.OLEDB.12.0". You don't need to buy or install the Office suite, the components are available as a separate download. http://www.microsoft.com/downloads/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en
Summary
It is possible to open Excel, Access and text files on 64 bit systems. You can either configure your app to go 32-bit or you can change your application to use the new 64 bit drivers.
See the original link for this information here.

Delphi 2007 supports Windows 2008 R2?

A client runs our Delphi 2007 app on Windows 2008 R2 via Citrix XenApp.
He's been facing an issue where the file open dialog crashes sometimes. He's applied latest updates for windows and Citrix.
I've seen many articles on the net where similar issue occurs for various apps other than Delphi like MS Office apps, VS 2008, Adobe PDF etc.
The client doesn't face this on any other application and thus is blaming our application.
If the our app's "Compatibility Mode" is "Windows XP SP3" then all is fine. Hence, client has raised a question stating if our Delphi app is Windows 2008 R2 certified.
What changes are required if we have to make our Delphi 2007 app certified for Windows 7/2003/2008/2008 R2 ?
We have fixed lots of strange Delphi (2009) app crashes on Windows 2008 R2 64 Bit Terminal Server environment with these additional lines in the DPR:
// make it Terminal Server Aware (app without installer writing to ini files / registry)
{$SetPEOptFlags IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE}
Note: to compile, it requires the Windows unit
The crashes appeared in many unexpected places like open dialogs. With the excellent madExcept tool we found that apps crashed within operating system routines in some Windows DLLs, and disappeared when we added the "terminal server aware" flag.
I am not a Delphi developer but a Google Search for Delphi 2007 System requirement took me to this page http://edn.embarcadero.com/article/36573#requirements
The following Windows platforms are supported:
Microsoft® Windows 2000 Professional or Windows 2000 Server (SP4 or higher and security updates are recommended)
Microsoft Windows XP Professional (SP2)
Microsoft Windows Vista™
Microsoft Windows Server 2003 (SP1)
The latest service packs and security updates are recommended for all platforms
Microsoft Internet Explorer 6.0 SP1 or later
I don't see Windows 2008 here.
Its not uncommon for the following:
It would be up to you to determine and test how your app functions under 2008. Knowing that a number of things as always change with each release of windows let alone server/workstation.
You tell them under what senarios YOU will support your application being run.
If you require your app to be run as compatbility mode with xp sp3, and tell them that, and tell them YOU dont support it outside that configuration. If you wont support it under a virtual environment.. then you tell them that.
Obviously the better answer would be to test it on 2008 R2, and check all your functionality and say you will support it running in a natural state.

Host a ASP.Net MVC3 application on my own 2008 server with IIS 7.0

This seems to be so easy that it is documented nowhere.... I have finished my first MVC3 project and now I want to host it on my own IIS7 (W2008) server. How is it done?
There are two options. If you have control of the server and can install on it, the easiest is to install the ASP.NET MVC 3 Framework on it and then install and configure the MVC app as any other web application.
If the runtime cannot be installed on the server, option called Bin Deployment can be used.
This is what I did to install get MVC running on Windows 7 Professional or greater. For Windows Server 2008, please see this link. The IIS management component should be the same for Windows 7 / Server 2008. The install process will be a little different.
Start > Control Panel > Programs and Features > Turn Windows features on of off
Expand Internet Information Services and check off all that you need (FTP, World Wide Web)
Specifically I use FTP (FTP Service), and WWW Services with Application Development (.NET Extensibility, ASP, ASP.NET, ISAPI Extensions, and ISAPI Filters) enabled. Under security you should at least enable Basic Authentication.
After this is done, go to here to get the Web Platform Installer, which will allow you to easily install .NET 3.5/4.0, MVC, and other features you might need such as MS SQL Express.
Once this is done, go to Start > Control Panel > Administrative Tools > Internet Information Services Managger
Expand COMPUTERNAME, expand sites, right click Default Web Site (unless you want to use a different folder, if so, right click sites and click "Add New"), whichever site you choose, you can right click and choose "Add FTP Publishing". From there just follow the prompts, and allow access to whichever users you want. Now you can FTP in from Microsoft visual Studio 2010 (Using Publish).
In Visual Studio - right click the MVC application you want to publish, go to Publish, enter the ftp site settings (most likely ftp://localhost if its a local install), user, password, and whether or not to replace or delete files. You can save this profile so you don't have to re-enter this information every time.
This question/answer might even be more geared toward serverfault, or superuser, not sure? If so I'm sure it will be moved.

Use Team Foundation Server in Delphi 7?

I'm a .NET developer and use VS2008/TFS2008. Recently, another developer has left our company and now I have to maintain his code. He was a Delphi developer (Delphi 7 mostly, but also Delphi 2007) and he didn't use any source control.
Is there a way to put his code in Team Foundation Server? Integration in the Delphi IDE is a big plus.
To get IDE integration with TFS in Delphi 7, you need can use the MSSCCI provider for TFS in conjuction with SourceConnexion which gives MSSCCI support to Delphi. You will need to install the following on your machine if you do not have them already:
Microsoft Team Explorer 2008 (The TFS Client)
The Microsoft MSSCCI provider for TFS 2008
SourceConnexion
You need to ensure that you have TFS client access licenses for any of the Delphi folks connecting to TFS and get them a license for the SourceConnexion plug-in.
As you already have VS2008 installed on your machine talking to TFS2008 you probably only need to install items 2 and 3.
See Eyal's blog post for more information (a little out of date but stil valid).
We use SourceConnexion (3rd party plugin) with D2007:
http://www.epocalipse.com/scx.htm
(Works nice with SCC api plugin of Plastic SCM, which has better branching support than TFS :-) )
I realize that this is an old thread but during my reserach on how to use TFS2012 with Borland Delphi 2006 the posts here helped me a lot, so I wanted to share my experience.
To use TFS2012 or TFS2010 with Borland Delphi 2006 please follow these steps.
Download and install Microsoft Team Explorer 2010.
Download and install TFS MSSCCI provider TFS2010 (make sure you download the 32-bit version even if on a 64-bit machine!).
Download and install SourceConnexIon.
Open Borland Delphi 2006, click on the Source Control menu item and follow the configuration wizzard.
You must follow this order or SourceConneXion won't detect TFS.

Resources