diff --git a/cpp/MessageBox-test/Makefile.win b/cpp/MessageBox-test/Makefile.win new file mode 100644 index 0000000..a405dcf --- /dev/null +++ b/cpp/MessageBox-test/Makefile.win @@ -0,0 +1,28 @@ +# Project: MessageBox +# Makefile created by Dev-C++ 5.11 + +CPP = g++.exe +CC = gcc.exe +WINDRES = windres.exe +OBJ = main.o +LINKOBJ = main.o +LIBS = -L"C:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -L"C:/Dev-Cpp/gtk+/lib" -static-libgcc -lgtk-3 -lgdk-3 -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lpangocairo-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lm -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -mwindows -m32 +INCS = -I"C:/Dev-Cpp/MinGW64/include" -I"C:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pango-1.0" -I"C:/Dev-Cpp/gtk+/include/atk-1.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pixman-1" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/freetype2" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/gdk-pixbuf-2.0" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/glib-2.0" -I"C:/Dev-Cpp/gtk+/lib/glib-2.0/include" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0/gtk" +CXXINCS = -I"C:/Dev-Cpp/MinGW64/include" -I"C:/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include" -I"C:/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pango-1.0" -I"C:/Dev-Cpp/gtk+/include/atk-1.0" -I"C:/Dev-Cpp/gtk+/include/cairo" -I"C:/Dev-Cpp/gtk+/include/pixman-1" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/freetype2" -I"C:/Dev-Cpp/gtk+/include" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/gdk-pixbuf-2.0" -I"C:/Dev-Cpp/gtk+/include/libpng15" -I"C:/Dev-Cpp/gtk+/include/glib-2.0" -I"C:/Dev-Cpp/gtk+/lib/glib-2.0/include" -I"C:/Dev-Cpp/gtk+/include/gtk-3.0/gtk" +BIN = MessageBox.exe +CXXFLAGS = $(CXXINCS) -m32 +CFLAGS = $(INCS) -m32 +RM = rm.exe -f + +.PHONY: all all-before all-after clean clean-custom + +all: all-before $(BIN) all-after + +clean: clean-custom + ${RM} $(OBJ) $(BIN) + +$(BIN): $(OBJ) + $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) + +main.o: main.cpp + $(CPP) -c main.cpp -o main.o $(CXXFLAGS) diff --git a/cpp/MessageBox-test/MessageBox.dev b/cpp/MessageBox-test/MessageBox.dev new file mode 100644 index 0000000..7228660 --- /dev/null +++ b/cpp/MessageBox-test/MessageBox.dev @@ -0,0 +1,62 @@ +[Project] +FileName=MessageBox.dev +Name=MessageBox +Type=0 +Ver=2 +ObjFiles= +Includes= +Libs= +PrivateResource= +ResourceIncludes= +MakeIncludes= +Compiler= +CppCompiler= +Linker= +IsCpp=1 +Icon= +ExeOutput= +ObjectOutput= +LogOutput= +LogOutputEnabled=0 +OverrideOutput=0 +OverrideOutputName= +HostApplication= +UseCustomMakefile=0 +CustomMakefile= +CommandLine= +Folders= +IncludeVersionInfo=0 +SupportXPThemes=0 +CompilerSet=10 +CompilerSettings=0000000100000000000000000 +UnitCount=1 + +[VersionInfo] +Major=1 +Minor=0 +Release=0 +Build=0 +LanguageID=1033 +CharsetID=1252 +CompanyName= +FileVersion= +FileDescription=Developed using the Dev-C++ IDE +InternalName= +LegalCopyright= +LegalTrademarks= +OriginalFilename= +ProductName= +ProductVersion= +AutoIncBuildNr=0 +SyncProduct=1 + +[Unit1] +FileName=main.cpp +CompileCpp=1 +Folder= +Compile=1 +Link=1 +Priority=1000 +OverrideBuildCmd=0 +BuildCmd= + diff --git a/cpp/MessageBox-test/MessageBox.layout b/cpp/MessageBox-test/MessageBox.layout new file mode 100644 index 0000000..5847ce5 --- /dev/null +++ b/cpp/MessageBox-test/MessageBox.layout @@ -0,0 +1,8 @@ +[Editors] +Order= +Focused=0 +[Editor_0] +CursorCol=5 +CursorRow=10 +TopLine=8 +LeftChar=4 diff --git a/cpp/MessageBox-test/main.cpp b/cpp/MessageBox-test/main.cpp new file mode 100644 index 0000000..fabe10c --- /dev/null +++ b/cpp/MessageBox-test/main.cpp @@ -0,0 +1,15 @@ +#include +#include + + +/* The 'main' function of Win32 GUI programs: this is where execution starts */ +int WINAPI WinMain(HINSTANCE hInstance, + HINSTANCE hPrevInstance, LPSTR lpCmdLine, + int nCmdShow) +{ + char str[20]; + int rel=640; + sprintf(str,"Xeinit LTS Version:5.2.%d",rel); + MessageBox(NULL,str,"hello",MB_OK|MB_ICONINFORMATION); + return 0; +} diff --git a/cpp/MessageBox-test b/cpp/MessageBox-test~fd006edebac8478a236b903538e173957f435ed4 similarity index 100% rename from cpp/MessageBox-test rename to cpp/MessageBox-test~fd006edebac8478a236b903538e173957f435ed4 diff --git a/testing-repository b/testing-repository new file mode 160000 index 0000000..fd006ed --- /dev/null +++ b/testing-repository @@ -0,0 +1 @@ +Subproject commit fd006edebac8478a236b903538e173957f435ed4 diff --git a/win32/MessageBox.exe b/win32/MessageBox.exe new file mode 100644 index 0000000..b8a77f3 Binary files /dev/null and b/win32/MessageBox.exe differ diff --git a/win32/xerelease7.exe b/win32/xerelease7.exe new file mode 100644 index 0000000..f917084 Binary files /dev/null and b/win32/xerelease7.exe differ