April 25, 2024, 03:26:07 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Powerful graphic engine but only for C++ ???

Started by RitchieF, November 09, 2011, 05:09:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RitchieF

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


LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

RitchieF

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

LarryMc

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

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

RitchieF

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