Search results

  1. dila

    Release YARA GUI by Dila

    YARA GUI is a free open-source tool for the YARA pattern matching scanner. YARA GUI Homepage: http://sigint9.github.io/yaragui/ The tool was written in C++ using the Qt framework. The main features are: Directory scanning Compiled rule cache Favorite/recent rule menu View strings and meta...
  2. dila

    Embed C++ Code

    Hi Storm, I tried this but some of the text for the C/C++ highlight is very dark or black text that is not readable with the site theme. Possible bug report.
  3. dila

    Embed C++ Code

    Thanks! I will try next time.
  4. dila

    Embed C++ Code

    How do I embed C or C++ code in a post? The drop-down box for the code option in the editor just has TEXT/PHP/HTML options, but I've seen some posts have C, so it must be possible. Thanks, dila :)
  5. dila

    Tutorial Conversion of int to string

    I discovered that std::stringstream can also be used to parse to integer again. Attached is a small program that reads a bunch of integers from the command line, adds them together, and prints the result. #include <iostream> #include <sstream> #include <vector> #include <numeric> int...
  6. dila

    Tutorial Qt JavaScript Bridge

    Hi StormShadow, glad you think it will be useful :p The only downside is that the Qt WebKit DLL is very big. But if you are not worried about the size of your binaries, then it's great :)
  7. dila

    Tutorial Qt JavaScript Bridge

    In Qt, you can create a QWebView widget, which is a Webkit web page control. Here you can display arbitrary HTML, either using the webView->setHTML(...) method, or using webView->setUrl(...) method and load content from the internet or local file system. In your HTML you can write JavaScript...
  8. dila

    Tutorial Conversion of int to string

    This is really simple, and most people would recommend boost::lexical_cast for this purpose, which is nice if you have boost (apart from the mess of handling the exceptions), but if you just have straight c++ you can still do it without any special utility routines like this: #include...
  9. dila

    Simple File Encrypter

    I noticed that because each character is enciphered separately you can generate a 256-byte lookup table and avoid the cost of the operations for each byte: #include <stdint.h> // for uint8_t type uint8_t table[256]; for (int i = 0; i < 256; ++i) { table[i] = encryptchar(i); } And then...
  10. dila

    Qt Built in Resources

    Finding nice artwork for your UI is a pain, especially if you want a consistent look. But Qt DLL's have a bunch of icons (also known as "pixmaps" in the Qt world) built in. They are there, so you might as well use them: #include <QPushButton> #include <QStyle> QPushButton* button = new...
Top