René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Virtuawin | ||
Version 2.9
Getting the sourceCompilingChanging the makefile
INCLUDEPATH=c:\tools\mingw.3.1.0\Include CFLAGS=-I$(INCLUDEPATH) LINKFLAGS=-mwindows CC=gcc.exe TARGET=VirtuaWin.exe OBJS = VirtuaWin.res VirtuaWin.o DiskRoutines.o SetupDialog.o ModuleRoutines.o LIBS = -l shell32 -l comctl32 $(TARGET): $(OBJS) Makefile gcc $(LINKFLAGS) -o $(TARGET) $(OBJS) $(LIBS) VIRTUAWIN_RC=\ $(INCLUDEPATH)\windows.h \ $(INCLUDEPATH)\limits.h \ $(INCLUDEPATH)\stdarg.h \ resource.h \ VirtuaWin.res: $(VIRTUAWIN_RC) VirtuaWin.rc rem lrc -Ic:\VirtuaWin -Ic:\lcc\include VirtuaWin.rc windres -O coff VirtuaWin.rc VirtuaWin.res VIRTUAWIN_C=\ VirtuaWin.h \ Resource.h \ $(INCLUDEPATH)\windows.h \ $(INCLUDEPATH)\limits.h\ $(INCLUDEPATH)\stdarg.h\ $(INCLUDEPATH)\shellapi.h\ $(INCLUDEPATH)\stdio.h\ $(INCLUDEPATH)\stdlib.h\ $(INCLUDEPATH)\stddef.h\ $(INCLUDEPATH)\string.h\ $(INCLUDEPATH)\commctrl.h\ $(INCLUDEPATH)\math.h\ $(INCLUDEPATH)\io.h\ $(INCLUDEPATH)\sys\stat.h\ VirtuaWin.o: $(VIRTUAWIN_C) VirtuaWin.c $(CC) -c $(CFLAGS) VirtuaWin.c DiskRoutines.o: $(DISKROUTINES_C) DiskRoutines.c $(CC) -c $(CFLAGS) DiskRoutines.c SetupDialog.o: $(SETUPDIALOG_C) Setupdialog.c $(CC) -c $(CFLAGS) Setupdialog.c ModuleRoutines.o: $(MODULEROUTINES_C) ModuleRoutines.c $(CC) -c $(CFLAGS) ModuleRoutines.c clean: @rm $(OBJS) all: clean $(TARGET) Changing SetupDialog.c and VirtuaWin.c
Add #include <commctrl.h> at a convinient place.
Compiling with MinGWMakingInstalling
After compiling Virtuawin and trying to execute it, the following
Error Message will be generated:
VirtuaWin is not correctly installed, try to reinstall. If you still have problems, send a mail to XXXX@yyyy.zz (address hidden to protect against spam)
From looking at the code, it turns out, that
/Software/VirtuaWin/Settings must be created.
Therein, a string value is needed with the name path whose value points to the configuration files (*.cfg) that came with the downloaded source.
Now, if virtuawin is started, it will bark something about not properly configured files due to something, but it will create those. However, you're going
to loose the current applications
Other virtual desktops
|