can you try do a check against strCode if it = 0 ?
if (strCode <> 0) {
....
see if that helps.
A community discussion post from the original code:zIRON forum.
can you try do a check against strCode if it = 0 ?
if (strCode <> 0) {
....
see if that helps.
with this
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
can you post the whole of the code and i will compile and test the code?
okay , here is the entire 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
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
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.
can you please direct me to the correct address
http://www.freewebs.com/ogremagic/index.htm
done, sent in PM
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