Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Microsoft Windows

using SDK without MFC

Windows DX9/OpenGL 2 Standalone Apps

using SDK without MFC

Postby fernans » 12 Nov 2009, 13:49

Hi there!

Im trying to do my first app, using the Shiva-SDK.

I'm using Visual Studio 2008 Express edition (so, I dont have MFC access)
so, I can't compile & test the "sample" included in the SDK.

With the .Net (Windows::Forms), the SDK dont play.
Now Im trying with GTK (exactly GTKmm for win32), but it doesn't play.

I just get playing it, with "classical" windows creation (through szRegClass registering, and implementing the WndProc manually)
But, in this way is too difficult to make a good GUI.

...

Please, help about make the SDK run. :kiss:



(attached a GTKmm version .cpp code)
(it runs all smoothly, except than Shiva never render a Frame)

> with all the test I get the same result.
> Dll loads (as shown in the output console, and then Log created)
> but "S3DClient_RunOneFrame" allways returns False [file name=gtkmm.zip size=995]http://www.stonetrip.com/developer/forum/images/old/files/gtkmm.zip[/file]
fernans
Junior Boarder
Junior Boarder
 
Posts: 29
Location: Spain

Re:using SDK without MFC

Postby todd » 12 Nov 2009, 15:23

I was able to get the SDK working with Borland CPP builder.

I have noticed that you do not have any event hooks defined. I suspect that you need at least one input event hook defined for either mouse or keyboard input.

That really is the only thing different between your code and mine for getting the sample app to work.

Code: Select all
S3DClient_InstallCurrentUserEventHook   ( "TEST_SDK", "onMouseMove", MyMouseMoveCallback, this ) ;
todd
Expert Boarder
Expert Boarder
 
Posts: 124

Re:using SDK without MFC

Postby fernans » 12 Nov 2009, 17:27

thanks for your help

including or not the event handler doesn't change anything.
but, thankyou anyway.

Finally I get it working.
The Issue was in the Hwnd
(I get it before the windows was showed -have a woriking hwnd-)
[the object "window" was created, but in memory... not in then windows-system]
(it was issues about my "new-comming" in then GDKmm library)

I get the same problem with Windows::Forms... so, (just for try)
I change the event to "OnShow"... but NOP...
Finally, it doesn't works on .NET (or I'm not able to get that)

I will continue the development using GTKmm...


P.D.: As curisity: how do you "design" your GUI in Borland CPP ?
(it includes some designer & classes library for that? (like Windows:Forms or MFC) ?
?
fernans
Junior Boarder
Junior Boarder
 
Posts: 29
Location: Spain

Re:using SDK without MFC

Postby todd » 12 Nov 2009, 18:11

Actually the GUI design in Borland CPP is really easy and uses VCL which is very much like designing using .Net. There is a forms build and is quite quick with automatically inserting code when you double click an event type. It is probably the quickest to code GUI apps in cpp from any thing else I have seen.

They used to have a public version called Borland CPP Builder Turbo that was freely downloadable, but borland sold the product and it is no long available. you may be able to fnd it on the net somewhere though. Here is the original link:

http://www.turboexplorer.com/
todd
Expert Boarder
Expert Boarder
 
Posts: 124

Re: using SDK without MFC

Postby fernans » 14 Feb 2012, 17:33

Hi again (with similar topic, 2 years later)

I got app development with gnu gcc compiler,
and linking with the S3DClient.lib (using S3DClient.dll)


Nowadays, with the Unified Authoring Toolkit (UAT) that got out.
Now: You have a static lib to link to. (Im working just for windows)

My current problem:
That .lib is not a "standard"-one. It only works with Microsoft Visual Studio.
My old projects must be ported to MSVC, but there is some libraries that just doesnt works fine with MSCC.

:idea: Please: Can you (stonetrip) publish an "standard" .LIB (for non-MS-Compilers)? :roll:
Thanks.
fernans
Junior Boarder
Junior Boarder
 
Posts: 29
Location: Spain

Re: using SDK without MFC

Postby Kummiseta » 06 Mar 2012, 17:29

I would like also a mingw compabtible .a or .lib file. And please compile it with the option -O6 to get even faster speed than with -O3. Some -mtune and -march settings would be also nice to have, to run it at maximum speed on each PC.
ShiVa3D Advanced Galaxy S2 GTX 570 OC XF8 Cubase 6.5 Blender 2.6 UU3D 3.6 GIMP 2.8 WavePad 4.2
User avatar
Kummiseta
Senior Boarder
Senior Boarder
 
Posts: 78


Return to Microsoft Windows

cron