A testing repository
Go to file
daleclack e5d5afb45d Add gtk124 2022-02-05 14:26:09 +08:00
GCR_CMake@6ea69eca68 Add gtk115 2021-11-07 17:52:33 +08:00
Gtk2 Move test.c 2021-01-31 13:53:08 +08:00
Gtk3 Add gtk117 2021-11-13 21:42:19 +08:00
Gtk4 Add gtk121 2022-01-11 12:36:37 +08:00
Gtkmm3 Add gtk124 2022-02-05 14:26:09 +08:00
Gtkmm4 Update gtk92 and gtk93 2021-07-06 21:36:02 +08:00
Linux64 Update README.linux64 2020-09-16 08:18:24 +08:00
OpenCV_test Add OpenCV Test 2021-11-20 23:46:02 +08:00
c Add Tree and Update for gtk119 2021-12-26 13:31:00 +08:00
codeblocks Update filename-test 2021-01-02 22:39:59 +08:00
cpp Update gtk118 & add gtk119 2021-12-05 18:39:33 +08:00
ege Add ege5.cpp 2020-09-24 07:35:28 +08:00
gtk4-rs Update gtk118 & add gtk119 2021-12-05 18:39:33 +08:00
icon-install delete unused file 2021-07-02 23:11:44 +08:00
public_res Add Windows icons 2021-07-18 12:50:23 +08:00
public_src delete repeated files 2021-04-18 16:31:54 +08:00
rust_test Update gtk118 & add gtk119 2021-12-05 18:39:33 +08:00
termux Add unuseful script 2021-09-12 21:13:41 +08:00
win32 Add xerelease7 and add win32 exe files 2020-10-23 22:29:11 +08:00
.gitignore Update .gitignore 2021-12-29 22:53:44 +08:00
.gitmodules Add submodule 2021-10-21 20:49:20 +08:00
LICENSE Add LICENSE 2021-06-11 14:27:50 +08:00
README.Gtkmm3 Add README.Gtkmm3 2021-05-19 22:36:58 +08:00
README.md Add rust test code 2021-12-01 16:07:28 +08:00
README.xerelease Update README 2020-12-09 21:56:30 +08:00
README.xerelease-gtk3 Update README 2020-12-09 21:56:30 +08:00
cairo_scale.py Add image Scale for gtk119 2021-12-27 23:06:00 +08:00
csv_to_xls.py Add Config File Test 2021-08-10 12:32:02 +08:00
gtk3.6.4-runtime_win32.7z Add runtime for win32 2020-10-23 22:54:24 +08:00
run_code_as_root.sh Add script for vscode 2021-11-17 21:58:48 +08:00
vscode-background.sh Add vscode scripts 2021-09-13 18:31:25 +08:00

README.md

testing-repository

A testing repository

[Experimental]: The rust programming language is imported for some codes

[News]: After gtk112 and gtk113, the submodule GCR_CMake is imported

Thanks for the project author https://github.com/Makman2/GCR_CMake

(Actually, I forked the project for convenience)

These contents are outdated:

Note: To minimize the repeated files,I put the same files as public resource

The file name is above:

public_res<filename>_<file extension> or public_res<filename>_<file extension>

Please compile with g++ or gcc (Clang is also supported)

(Visual Studio may have issues)

Ege dircitory need ege 19.01 and above to complie

C/C++ code using gtk2 needs gtk 2.24.10

For Gtk3 codes:

before gtk17 supports Gtk3.6.4

gtk17 and above removed support for gtk3.18 and below

Win32 exe supports WinXP and above

The Sample Code to get current dir

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc,char ** argv){
    //argv[0] for full application running path
    const char * src = *argv;

    //Get Size and store the content
    int len = strlen(src); 
    char * tmp = malloc(len);

    //The Name of application is "args.exe" for windows
    //And named "args" for linux
#ifdef _WIN32
    strncpy(tmp,src,len-8);
    tmp[len-8]='\0';
#else
    strncpy(tmp,src,len-4);
    tmp[len-4]='\0';
#endif

    printf("%s\n",tmp);
    free(tmp);
    return 0;
}

Java version

public class Args{
    public static void main(String[] args){ 
        System.out.println(System.getProperty("user.dir"));
    }
}

Rust Version

fn main(){
    
}