Register | Login
Forum Index > Requests and Feedback > data section.
Author Message
Pages: 1 2 3 4 5 6 7 8 9 10 11
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[644] - posted: 2011-11-11 23:15:29
can you try do a check against strCode if it = 0 ?

Code:
if (strCode <> 0) {
....


see if that helps.

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
[646] - posted: 2011-11-12 08:24:45
with this
Code:
if (strCode <> 0) {


there is no access violation in masm.dll but have this Error

PlugSys: Emit plugin has loaded!
PlugSys: Masm plugin has loaded!
[6,3]: Unknown Identifier "." in [testprg.zir]
Code:
.DATA

i think this error mean that no change take place at all !!!!!

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[647] - posted: 2011-11-12 13:27:10
can you post the whole of the code and i will compile and test the code?

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
[648] - posted: 2011-11-12 17:20:37
okay , here is the entire code
Code:
//******************************************************//
//                                                      //
//                                                      //
//                 Masm plugin                          //
//               By  Emil Halim                         //
//                 11/11/2011                           //
//                                                      //
//******************************************************//

plugins off;

program WIN32DLL 'Masm PLUGIN';

#include 'zirplug/framework.zir';
#include 'strings.zir'

//////////////////////////////

const strLoaded = 'Masm plugin has loaded!';

//////////////////////////////


function event_Data() {
  uses edi;
  boolean Flg = true;  
  
  if(Flg)
   {
      Ziron_ShowMessage(Ziron_GetStringValue());       
      return true;
   }
  else
   {   
      return false;                           // let Ziron handle the line  
   }  
}

procedure FileEntry(DWord handle; char* strCode) {
  if (strCode <> 0) {
     eax = strOffset(strCode, '.DATA');
     while (char[eax] <> 0) {
            char[eax] = "_";
            eax = strOffset(eax, '.DATA');
     }
   }  
}

function InitPlugin(pointer pGetF) {
  Ziron_LoadAll(pGetF); //use framework utility function to load all

  //register our keyword
  Ziron_RegisterKeyword('_Data', @event_Data);
  
  return strLoaded;
}

entry function DLLMain(DWord iDLL; DWord iReason; Pointer iResult) {
  if (iReason == DLL_PROCESS_ATTACH) {
    return true;
  }

  return false;
}

exports InitPlugin, FileEntry;


test program
Code:
program WIN32CUI 'Masm Syntax test';

#include 'console.zir';


.DATA  var      DB 64     

wait_key(nil);
ExitProcess(0);


error code

PlugSys: Emit plugin has loaded!
PlugSys: Masm plugin has loaded!
[6,3]: Unknown Identifier "." in [testprg.zir]
Code:
.DATA var DB 64


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[650] - posted: 2011-11-12 17:49:42
i'm guessing you still did not download the latest package, because i've just compiled both of your codes exactly as you pasted, and i have no issue with them.



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
[651] - posted: 2011-11-12 17:53:46
can you please direct me to the correct address

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[654] - posted: 2011-11-12 17:57:09
done, sent in PM

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
[655] - posted: 2011-11-12 18:03:06

oh nooooooow, the same error , the same things

what could be the problem here , i will lose my mind.



http://www.freewebs.com/ogremagic/index.htm
Pages: 1 2 3 4 5 6 7 8 9 10 11
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 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