I want to create a Firefox extension using c++ XPCOM component which in turn uses javascript XPCOM component. Is there any framework that allows test driven development of C++ XPCOM component/firefox extension ?
You could copy what Mozilla uses to test native code. You just have to make sure you link with libxul (which may require that you build Firefox).
An example file that uses TestHarness.h can be found here.
In addition to sdwilsh's suggestion, you could use another test framework mozilla uses - xpcshell tests. This is also the easiest to setup if you build Firefox.
Related
I am investigating the option of using chromium embedded framework in C++ desktop application to implement new HTML views.
The issue is all the GUI are implemented using QT Framework.
so can chromium embedded framework be used with QT ?
I want some of the views to be implemented using QT while others using Chromium Embedded framework.
First I considered the option of using QTWebEngine but license is not free for commercial use however Chromium embedded framework is an open source
Just have a look at this project,
https://cefview.github.io/QCefView/
QCefView encapsulates CEF and works for all desktop platforms
I am working on an embedded systems project using ACE Framework and all the development is done using eclipse IDE. I am looking for a good testing framework.
Basically the project involves parsing of incoming data and I am searching for a unit testing framework which suits my project. What are my options here?
I recommend you try out Catch or doctest, which are quite similar.
Try ceedling: It is UT framework from throw the switch,
from http://www.throwtheswitch.org/ceedling
I have to create an application for testing that is relatively simple. If a user plugs in a device into a USB (hid library), the form will say "Pass". If no device is detected, it will say "Fail".
I want to create the app to run on WinXP+. It must be a forms application as it needs to be visual and have colors. The biggest requirement for me is that it must be stand-alone (a user just double clicks, the file and it opens, no installation). I need to avoid installing any extra .dll files and want to avoid the .net framework all together. It has to be written in C++.
So my question is, what are my options? I am new to Forms applications and the only forms application I have written required the .net framework.
From my research, Visual C++ seems out of the question as it requires .net for Forms apps. What about Turbo C++ by Borland? It seems outdated, but can it do the job?
I would suggest Borland C++ Builder 5 or 6. Visual C++ lacks the functionality to create C++ form apps, if we dismiss MFC
I'd say Visual C++ would probably still be your best option. A standard simple Win32 C/C++ program using only the native API will should suite your needs just fine. If you're targeting XP+, then the only dependency would be "msvcrt.dll" which is included with Windows by default.
Edit: This article on MSDN should get you started in the right direction.
What you're talking about is C++/CLI, it's microsoft's dialect of C++ that requires a .Net framework. Please distinguish it from real (native) C++, which can be used to create what you want to. Visual C++ is perfectly fine, just make sure you don't create a .Net project.
Forms are a .NET library. It's not Windows or anything like that, you can use the native GUI libraries in Win32 with no problem or any native wrapping of them. You can implement this in native C++ easily in Visual Studio.
If you're looking to create the application in a rapid fashion (i.e. stock UI components that you can drag and drop onto forms), my experience is that Embarcardero C++ Builder effectively solves that problem space.
I like Visual C++ but it's not a great environment for rapidly creating forms based applications. I want to emphasize that I'm referring to Rapid Application Development (RAD) tools. There are plenty of great C++ IDEs and libraries for creating forms based applications and all of them should be able to create standalone exes.
Here is a list of related questions that might help in your decision:
https://stackoverflow.com/q/1754020/4916
https://stackoverflow.com/q/93326/4916
Best C++ IDE or Editor for Windows
I want to build a DLL plugin for a 3rd party MFC-based application. The "official" way to do this is to build the plugin using MFC as well. I'm looking to see if it's possible to use any other gui toolkits to ease my development. I've played around with Qt's MFC Migration Framework (http://doc.qt.nokia.com/solutions/4/qtwinmigrate/) for which I have had some success but I've run into a road block with it. Now I'm considering alternatives. Does wxWidgets have any support for building a DLL that will integrate with an MFC host application?
Normally there is no need to build a plugin using MFC even if the main application does use it so I'm not sure what are your exact requirements. All I can say is that it is possible to use wxWidgets and MFC together as the mfc sample included in wxWidgets distribution shows. But it's still better to avoid mixing two different frameworks if you can.
I'm wondering if there are any projects like Watin available for C++ (on Windows), or if I just have to use QtWebkit.
Does anyone know of any good IE automation libraries that work well in C++ and provide a nice layer above MS's WebBrowser control?
Thanks.
You could try using Mozilla's Gecko/FireFox engine in C++.
https://developer.mozilla.org/en/Embedding_Mozilla
You can use IRobotSoft Visual Web Scraper. It has an ActiveX control for C++ in its package.
For automation take a look at VOLE - A Neat C++ COM/Automation Driver.
For C++ Web development see:
CppCMS — C++ Web Development Framework
Wt - A C++ Web Toolkit
You can and should also look at alternatives like Watir and Selinium.