IonicWind Software

IWBasic => Games and Graphics => Topic started by: RitchieF on November 09, 2011, 05:09:38 AM

Title: Powerful graphic engine but only for C++ ???
Post by: RitchieF on November 09, 2011, 05:09:38 AM
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

Title: Re: Powerful graphic engine but only for C++ ???
Post by: LarryMc on November 09, 2011, 06:21:20 AM
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
Title: Re: Powerful graphic engine but only for C++ ???
Post by: RitchieF on November 09, 2011, 04:13:48 PM
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
Title: Re: Powerful graphic engine but only for C++ ???
Post by: LarryMc on November 09, 2011, 09:52:17 PM
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
Title: Re: Powerful graphic engine but only for C++ ???
Post by: RitchieF on November 10, 2011, 03:39:37 AM
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