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
|
The solver is provided as a DLL, and will be usable with most
|
||||||
Windows-based developement tools. Examples are provided:
|
Windows-based developement tools. Examples are provided:
|
||||||
|
|
||||||
in C/C++ - example.c
|
in C/C++ - CDemo.c
|
||||||
|
|
||||||
in VB.NET - VbDemo.vb
|
in VB.NET - VbDemo.vb
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ LIBOBJS = $(OBJDIR)\lib.obj \
|
|||||||
|
|
||||||
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib
|
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib
|
||||||
|
|
||||||
all: $(OBJDIR)/ctest.exe
|
all: $(OBJDIR)/CDemo.exe
|
||||||
@cp $(OBJDIR)/ctest.exe .
|
@cp $(OBJDIR)/CDemo.exe .
|
||||||
ctest.exe
|
CDemo.exe
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f obj/*
|
rm -f obj/*
|
||||||
@ -34,9 +34,9 @@ $(OBJDIR)/slvs.dll: $(SSOBJS) $(LIBOBJS) $(W32OBJS)
|
|||||||
@cp $(OBJDIR)/slvs.dll .
|
@cp $(OBJDIR)/slvs.dll .
|
||||||
@echo slvs.dll
|
@echo slvs.dll
|
||||||
|
|
||||||
$(OBJDIR)/ctest.exe: example.c $(OBJDIR)/slvs.dll
|
$(OBJDIR)/CDemo.exe: CDemo.c $(OBJDIR)/slvs.dll
|
||||||
@$(CC) $(CFLAGS) -Fe$(OBJDIR)/ctest.exe example.c $(OBJDIR)/slvs.lib $(LIBS)
|
@$(CC) $(CFLAGS) -Fe$(OBJDIR)/CDemo.exe CDemo.c $(OBJDIR)/slvs.lib $(LIBS)
|
||||||
@echo ctest.exe
|
@echo CDemo.exe
|
||||||
|
|
||||||
$(SSOBJS): ..\$(@B).cpp $(HEADERS)
|
$(SSOBJS): ..\$(@B).cpp $(HEADERS)
|
||||||
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj ..\$(@B).cpp
|
@$(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
|
#if 1
|
||||||
dbp("SolveSpace library initialized (evaluation version only).");
|
dbp("SolveSpace library initialized (evaluation version only).");
|
||||||
dbp("Built " __DATE__ " " __TIME__
|
dbp("Built " __DATE__ " " __TIME__
|
||||||
". Copyright 2009-2010 Useful Subset, LLC.");
|
". Copyright 2009-2011 Useful Subset, LLC.");
|
||||||
HWND h = GetForegroundWindow();
|
HWND h = GetForegroundWindow();
|
||||||
MessageBox(h,
|
MessageBox(h,
|
||||||
"This is an evaluation copy of SolveSpace. To purchase a license, please "
|
"This is an evaluation copy of SolveSpace. To purchase a license, please "
|
||||||
"contact info@solvespace.com.\r\n\r\n"
|
"contact info@solvespace.com.\r\n\r\n"
|
||||||
"Copyright 2009-2010 Useful Subset, LLC.",
|
"Copyright 2009-2011 Useful Subset, LLC.",
|
||||||
"SolveSpace", MB_OK);
|
"SolveSpace", MB_OK);
|
||||||
#endif
|
#endif
|
||||||
InitHeaps();
|
InitHeaps();
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Data structures and prototypes for slvs.lib, a geometric constraint solver.
|
// Data structures and prototypes for slvs.lib, a geometric constraint solver.
|
||||||
//
|
//
|
||||||
// See the comments in this file, the accompanying sample code (example.c)
|
// See the comments in this file, the accompanying sample code that uses
|
||||||
// that uses this library, and the accompanying documentation (DOC.txt).
|
// this library, and the accompanying documentation (DOC.txt).
|
||||||
//
|
//
|
||||||
// This code is provided for evaluation purposes only. To purchase a license,
|
// This code is provided for evaluation purposes only. To purchase a license,
|
||||||
// please visit:
|
// please visit:
|
||||||
|
Loading…
Reference in New Issue
Block a user