Hi all,
found a powerful graphic engine designed for C++ for free with demos and sample code.
So I downloaded it , copied the dll into the Windows/system32 directory, created the import library for it and tried to compile it .
But I receive always a unresolved external error.
Any help appreciated
Thanks
Richard
Here you get the software : http://www.geometros.com/sgcore/review.htm
This is my program :
$MAIN
'$USE "sgCore.lib" ; tried this uncommented, doesn't work
DEF w as WINDOW
def run : int
DECLARE cdecl EXTERN sgInitKernel()
sgInitKernel() ; as the manual tells
OPENWINDOW w,0,0,640,200,@SIZE|@MINBOX|@MAXBOX,0,"sgCoreTest",&main
SETFONT w, "Ariel", 80, 700
CENTERWINDOW w
run = 1
WAITUNTIL run = 0
CLOSEWINDOW w
END
you have to have the $USE "blah.lib" statement.
uncomment the $USE and recompile and post the contents of the build window.
You really going to buy the $500 graphics package?
LarryMc
Larry,
no I won't buy the package for $500. If you click on the download button of this site you will find a free version with some restrictions .
Uncommented the $Use line and got this :
QuoteCompiling...
IWBASIC3.iwb
File: G:\Boolean\sgCoreIWB\IWBASIC3.iwb (11) Warning: Argument 9 (main) does not match the declaration of IWBWNDPROC
Different return type: none, should be int
File: C:\Program Files (x86)\iwbdev\bin\iwbstd.incc (10) Warning: See previous declaration of IWBWNDPROC
File: G:\Boolean\sgCoreIWB\IWBASIC3.iwb (26) Warning: See previous declaration of main
Linking...
IWBasic Linker v1.11 Copyright © 2011 Ionic Wind Software
Unresolved external sgInitKernel
Error: G:\Boolean\sgCoreIWB\IWBASIC3.o - Unresolved extern sgInitKernel
Error(s) in linking sgCoreIWB.exe
Richard
I downloaded the library and tried all the ways I knew of to make it work with no success.
You might want to read this (http://www.ionicwind.com/forums/index.php?topic=3289.msg26646#msg26646)
LarryMc
Thanks, Larry for your efforts.
Had a look into sgCore.dll with PEExplorer which shows for sgInitKernel the following :
Undecorated C++ Function:
bool __cdecl sgInitKernel(void)
Perhaps this is a help for you ?
Thanks
Richard