I have an application written using C++ Builder 5 that uses the TDocument class. This class is part of the Preview ActiveX control, and uses shimgvw.dll.
It is automatically added as an option in the Borland "Import ActiveX Control" dialog in XP, however it is not an option in Windows 7.
How can I use this class with Windows 7?
This is not a C++Builder problem. C++Builder is merely displaying a list of the currently registered COM objects, whatever they happen to be. If you are not seeing the Document object in the list, then shimgvw.dll is not registered/installed on Windows 7, that's all. On my Windows 7 machine, C++Builder XE2 does not display any kind of Document Preview object being present, so it is not related to C++ Builder 5 specifically.
Related
There seems to be a compatibility issue between Delphi 10 Seattle and Delphi 2010
I've written a school project using Delphi 10 Seattle but my teacher still uses Delphi 2010. When I transferred and opened the source code in Delphi 2010 it gave errors.
I've installed 2010 on my PC to replicate the error (screenshot below)
"File not found Vcl.Forms.dcu"
Any thoughts how to get this to work, the marking/moderating takes place with Delphi 2010.
Unit scope names were added in Delphi XE2. Vcl.Forms does not exist in older versions of Delphi. Instead, it should just be Forms.
The reason is because of the introduction of the Firemonkey framework in Delphi XE2. With Firemonkey also came the necessity to differentiate Vcl.Forms from Fmx.Forms. The same applies with many other units, such as Graphics. Delphi 2010 did not have Firemonkey, so it did not yet enforce this prefix.
If you need code to compile in Delphi 2010 and Delphi 10 Seattle, specify only the base unit names in your uses clause (Forms, Graphics, etc), and make sure your Delphi 10 Seattle project has the necessary scope(s) (Vcl, Winapi etc) setup in Project > Options > Delphi Compiler > Unit scope names. By default, new projects should already have this. If not, you can add Vcl and any other prefixes you need. This will make sure the compiler can find Vcl.Forms even when you specify only Forms in code.
I am using intraweb 14.1.5 in Delphi xe5. Default Intraweb application with TIWStart.Execute(true) command works properly, it show default server GUI but when I am using IWstandaloneserver component and button on VCL form and at button onclick event call standaloneserver.run that time it open browser but not showing Intraweb page, it show "Internet Explorer cannot display the webpage". Same project when I try in delphi 2007 with intraweb 10 version it work properly with using IWStandaloneServer component . Is there any extra property need to be set in server controller page in delphi XE5? bec some properties are missing in new intraweb version as compare to older version.
Is there some possibility to use Delphi xe7 form in Delphi 7 project, without create DLL file? I found "Monkey-Mixer" which allows to use FMX form in VCL project, and I wonder is there same tool for use new VCL forms in older versions of Delphi?
Is there some possibility to use Delphi XE7 form in Delphi 7 project, without creating DLL file?
No there is not. You cannot link code from different versions of Delphi into the same executable.
I recently switched from Borland Delphi 7 to Embarcadero Delphi XE6 and I find it very difficult to install a library with components. I wish to install the Microsoft Speech Library.
I have searched on the web for tutorials and guides, but non of them have helped me.
Can someone please help me by giving a step by step tutorial. I asked two of my friends which also uses Delphi XE6 and they switched from Delphi 7 and Delph 2010. They also do not know how to do it.
I do not have Delphi XE6 anymore. I'm now using Delphi 10.1 Berlin Update 1, but I did struggle to import a Type Library in XE6 as it was a bit different to Delphi 7. Anyway I can't remember how I managed to do it in XE6, but I'm assuming it is the same in Berlin. So here:
Go to 'Component' in the main menu.
Choose 'Import Component'.
Choose 'Import a Type Library' and click on Next.
Choose the library you wish to install.
Choose a name for it and where/how you want to install it.
Just follow the rest of the steps. It will then compile and install it into your IDE.
Be aware that the type library importer in XE6 is broken. I've found at least one instance where the resultant unit has several interfaces with the parameter declared incorrectly as a const type instead of a var type. Delphi 2010 imports the same library correctly.
Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application.
My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously need the IdHTTP.Post();. If not, is there a way to do this in FireMonkey?
I have been googling for quite awhile now, not finding anything. :S
VCL means Visual Component Library. There's nothing about Indy that is "visual" (meaning "seen at runtime"), meaning that "VCL components are useless in a FireMonkey application" has no relevance to Indy.
You can create a new FireMonkey HD application in Delphi XE2, target OS X, and the Indy component pages are still available in the IDE, meaning that they are compatible with supported FireMonkey cross-platform targets. They're also available for FireMonkey HD Windows targets (32 and 64 bit).
Indy ships with the IDE (and has since D6) so there is nothing extra to buy if you already have XE2 installed. Also, Indy is open-source, so you can upgrade an Indy installation using source code from Indy's public access SVN server or mirror.
Regarding FireMonkey, Indy does work in FireMonkey. Indy uses whatever the native socket API is on a given platform (WinSock on Windows, Posix on Mac, libc on Kylix, etc).
The only known gotcha with Indy under FireMonkey at the moment is the TIdAntiFreeze component is not available at design-time. The IDE cannot resolve it correctly due to the non-standard way it is packaged (to be adressed in Indy 11). You can instantiate it programmably in code at run-time, though.
I made a client server example using tcp indy http://www.freelancecode.net/community/viewtopic.php?f=35&t=246
The Components Not Used in iOS Apps DocWiki page for Delphi XE2 lists most of the Indy classes:
The following list is the set of components (along with the used
units) that might be available in the Tool Palette for iOS
applications, but are not supported for iOS applications.