Check in the VB.NET example for the SolveSpace library, and update
the documentation accordingly. Also rename the C example for consistency, and update copyright dates. [git-p4: depot-paths = "//depot/solvespace/": change = 2190]
This commit is contained in:
parent
b3bdadfeb8
commit
fc3dc68f83
@ -454,7 +454,7 @@ USING THE SOLVER
|
||||
The solver is provided as a DLL, and will be usable with most
|
||||
Windows-based developement tools. Examples are provided:
|
||||
|
||||
in C/C++ - example.c
|
||||
in C/C++ - CDemo.c
|
||||
|
||||
in VB.NET - VbDemo.vb
|
||||
|
||||
|
@ -22,9 +22,9 @@ LIBOBJS = $(OBJDIR)\lib.obj \
|
||||
|
||||
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib
|
||||
|
||||
all: $(OBJDIR)/ctest.exe
|
||||
@cp $(OBJDIR)/ctest.exe .
|
||||
ctest.exe
|
||||
all: $(OBJDIR)/CDemo.exe
|
||||
@cp $(OBJDIR)/CDemo.exe .
|
||||
CDemo.exe
|
||||
|
||||
clean:
|
||||
rm -f obj/*
|
||||
@ -34,9 +34,9 @@ $(OBJDIR)/slvs.dll: $(SSOBJS) $(LIBOBJS) $(W32OBJS)
|
||||
@cp $(OBJDIR)/slvs.dll .
|
||||
@echo slvs.dll
|
||||
|
||||
$(OBJDIR)/ctest.exe: example.c $(OBJDIR)/slvs.dll
|
||||
@$(CC) $(CFLAGS) -Fe$(OBJDIR)/ctest.exe example.c $(OBJDIR)/slvs.lib $(LIBS)
|
||||
@echo ctest.exe
|
||||
$(OBJDIR)/CDemo.exe: CDemo.c $(OBJDIR)/slvs.dll
|
||||
@$(CC) $(CFLAGS) -Fe$(OBJDIR)/CDemo.exe CDemo.c $(OBJDIR)/slvs.lib $(LIBS)
|
||||
@echo CDemo.exe
|
||||
|
||||
$(SSOBJS): ..\$(@B).cpp $(HEADERS)
|
||||
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj ..\$(@B).cpp
|
||||
|
1256
exposed/VbDemo.vb
Normal file
1256
exposed/VbDemo.vb
Normal file
File diff suppressed because it is too large
Load Diff
@ -66,12 +66,12 @@ void Slvs_Solve(Slvs_System *ssys, Slvs_hGroup shg)
|
||||
#if 1
|
||||
dbp("SolveSpace library initialized (evaluation version only).");
|
||||
dbp("Built " __DATE__ " " __TIME__
|
||||
". Copyright 2009-2010 Useful Subset, LLC.");
|
||||
". Copyright 2009-2011 Useful Subset, LLC.");
|
||||
HWND h = GetForegroundWindow();
|
||||
MessageBox(h,
|
||||
"This is an evaluation copy of SolveSpace. To purchase a license, please "
|
||||
"contact info@solvespace.com.\r\n\r\n"
|
||||
"Copyright 2009-2010 Useful Subset, LLC.",
|
||||
"Copyright 2009-2011 Useful Subset, LLC.",
|
||||
"SolveSpace", MB_OK);
|
||||
#endif
|
||||
InitHeaps();
|
||||
|
@ -1,8 +1,8 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Data structures and prototypes for slvs.lib, a geometric constraint solver.
|
||||
//
|
||||
// See the comments in this file, the accompanying sample code (example.c)
|
||||
// that uses this library, and the accompanying documentation (DOC.txt).
|
||||
// See the comments in this file, the accompanying sample code that uses
|
||||
// this library, and the accompanying documentation (DOC.txt).
|
||||
//
|
||||
// This code is provided for evaluation purposes only. To purchase a license,
|
||||
// please visit:
|
||||
|
Loading…
Reference in New Issue
Block a user