Register | Login
Forum Index > Source Help > import undecorated c++ function
Author Message
Pages: 1 2 3
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1274] - posted: 2012-12-22 21:42:48
you downloaded the beta package?

here?

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1275] - posted: 2012-12-22 21:45:05

yes , using ziron ver 1.1.38.1

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1276] - posted: 2012-12-22 21:45:41
can you open the changelog and paste what is the top line?

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1277] - posted: 2012-12-22 21:49:09

Ziron Assembler 1.1.38.1


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1278] - posted: 2012-12-22 21:51:28
then you did not download the beta package..... see the "here?" link

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1279] - posted: 2012-12-22 21:55:07

ok downloaded and works fin. thanks.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1285] - posted: 2012-12-25 19:43:13
Hi , Mr Colin.

I am really going to mad , i have a simple test program that uses my MagicPro library.
it crashed when testing in Ziron , and works fine with MSVC++2010.

here is the Ziron version
Code:
//****************************************//
//           ************                 //
//      ***MagicPro library***            //
//           ************                 //
//****************************************//
program WIN32GUI 'MagicPro Test #1';

#include 'console.zir';
#include 'ch.zir';

const KC_ESCAPE = 0x01;


imports('MagicPro.dll') 
{  
  procedure z_init = ('_z_init@4')(char* Titel); cdecl; 
  procedure Graphics3D = ('_Graphics3D@20')(Dword Width,Height,depth; boolean fullScrn,VSync);  cdecl;
  procedure z_setAmbientLight = ('_z_setAmbientLight@12')(single red,green,blue); cdecl;  
  procedure setMediaDir = ('_setMediaDir@8')(char* name;boolean recursive); cdecl;
  function  OIS_isKeyDown = ('_OIS_isKeyDown@4')(int32 key): boolean; cdecl;
  procedure RenderWorld = ('_RenderWorld@4')(); cdecl;
  procedure Sync(); cdecl;
  procedure EndGraphics = ('_EndGraphics@0')(); cdecl;
}  

    z_init('MagicPro Test #1');
    Graphics3D(800,600,32,false,false);

    z_setAmbientLight(30,30,50);

    setMediaDir('ZipMedia.zip',true);
    setMediaDir('media',true);
    
    
    while(!OIS_isKeyDown(KC_ESCAPE))
     {
        
        RenderWorld();
      Sync();
     }
 
    EndGraphics(); 
ExitProcess(0);


and here is the MSVC++2010 version
Code:
//****************************************//
//           ************                 //
//      ***MagicPro library***            //
//           ************                 //
//****************************************//

#include "Magic.h"

using namespace Bogre;
using namespace OIS;

int WINAPI WinMain (HINSTANCE  hInst,HINSTANCE  hPrev,LPSTR CmdLine,int CmdShow)
{
  z_init("MagicPro Test #1");
  Graphics3D(800,600,32,false,false);

  z_setAmbientLight(30,30,50);

  setMediaDir("ZipMedia.zip",true);
  setMediaDir("media",true);


  while(!OIS_isKeyDown(KC_ESCAPE))
   {

      RenderWorld();

    Sync();
   }

  EndGraphics();
}


so what can be the problem with ziron?

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1286] - posted: 2012-12-26 00:36:38
Can you paste the c include header so i can compare?

judging by the mangled name

Code:
procedure RenderWorld = ('_RenderWorld@4')(); cdecl;


RenderWorld expects 1 param

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1 2 3
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 8 user(s) online. 0 member(s) and 8 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd