Alaska Software Inc. - Preprocessor: Unknown result marker
Username: Password:
AuthorTopic: Preprocessor: Unknown result marker
Osvaldo RamirezPreprocessor: Unknown result marker
on Fri, 20 Dec 2019 13:08:43 -0700
Hello guys

Suddenly today I have this error: Preprocessor: Unknown result marker
at the moment when I try to compile, and some project include the dll.ch

This is the offense code
 DLLFUNCTION command
#command  DLLFUNCTION <Func>([<x,...>]) ;
                 USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
                  FROM <(Dll)> ;
        => ;
              FUNCTION <Func>([<x>]);;
                 LOCAL nDll:=DllLoad(<(Dll)>);;
                 LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
                 DllUnLoad(nDll);;
                RETURN xRet

I am using the most recent version of Xbase++ 2.0

I dont know where is my error.

I will appreciate your help

Thanks in advance

Best Regards
Osvaldo Ramirez
Andreas Gehrs-Pahl
Re: Preprocessor: Unknown result marker
on Sat, 21 Dec 2019 03:19:23 -0500
Osvaldo,

>Suddenly today I have this error: Preprocessor: Unknown result marker
>at the moment when I try to compile, and some project include the dll.ch

What is the actual code that you want to compile (or pre-process)?

Without your code, nobody can even take a guess at why you get an error.

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web:   http://www.AbsoluteSoftwareLLC.com
[F]:   https://www.facebook.com/AbsoluteSoftwareLLC
Osvaldo RamirezRe: Preprocessor: Unknown result marker
on Sat, 21 Dec 2019 07:45:00 -0700
Sorry Andres, Yesterday I cant attach an image

This is my image:

I take alaska samples code from ..\source\samples\basic\splitbar.

and at the moment when I try to compile show me the error.

I un-install severals times, remove environments paths, installs
olds updates and a new one updates with out results.

My current development machines is on Windows 10 on virtualbox.
I have running some years with this kind on of environment

Today I will install a fresh copy of windows 10 on VirtualBox, and the
install Xbase++, anyway thanks a lot.

Thanks in advance

Best Regards
Osvald Ramirez


with some olds

On 21/12/19 1:19, Andreas Gehrs-Pahl wrote:
> Osvaldo,
> 
>> Suddenly today I have this error: Preprocessor: Unknown result marker
>> at the moment when I try to compile, and some project include the dll.ch
> 
> What is the actual code that you want to compile (or pre-process)?
> 
> Without your code, nobody can even take a guess at why you get an error.
> 
> Andreas
>


Screen Shot 2019-12-20 at 15.55.51.png
Anand GuptaRe: Preprocessor: Unknown result marker
on Sat, 21 Dec 2019 11:11:14 +0100
Hi Osvaldo,

I added your define in a dummy function in Xbase++ 1.9, it gave same error,

Xbase++ (R) Compiler 1.90.355 Apr  9 2009 
Copyright (c) Alaska Software. All rights reserved.
1 error(s) found in file e:\Appl\Alaska\Apps\Ace10\EditEntry.prg!
e:\Appl\Alaska\Apps\Ace10\EditEntry.prg(384:0): error XBT0516: Preprocessor: Unknown result marker

Below is the dummy function,

//********************************************************************
func Dummy()
local i,cSel,lOk

#command  DLLFUNCTION <Func>([<x,...>]) ;
                 USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
                  FROM <(Dll)> ;
        => ;
              FUNCTION <Func>([<x>]);;
                 LOCAL nDll:=DllLoad(<(Dll)>);;
                 LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
                 DllUnLoad(nDll);;
                RETURN xRet


#command DEFAULT <p> TO <val> [,<pn> TO <valn>] ;
		  => <p> = iif(<p> = NIL, <val>, <p>) ;
		  [;<pn> = iif(<pn> = NIL, <valn>, <pn>)]


return lOk

It looks like the error is in "<sys:CDECL" declaration
You can check it from your backup code.

Regards,

Anand


Osvaldo Ramirez wrote in message news:2e21bbcf$600768b9$7945c@news.alaska-software.com...
>Hello guys
>
>Suddenly today I have this error: Preprocessor: Unknown result marker
>at the moment when I try to compile, and some project include the dll.ch
>
>This is the offense code
>// DLLFUNCTION command
>#command  DLLFUNCTION <Func>([<x,...>]) ;
>                 USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
>                  FROM <(Dll)> ;
>        => ;
>              FUNCTION <Func>([<x>]);;
>                 LOCAL nDll:=DllLoad(<(Dll)>);;
>                 LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
>                 DllUnLoad(nDll);;
>                RETURN xRet
>
>I am using the most recent version of Xbase++ 2.0
>
>I dont know where is my error.
>
>I will appreciate your help
>
>Thanks in advance
>
>Best Regards
>Osvaldo Ramirez
Osvaldo RamirezRe: Preprocessor: Unknown result marker
on Sat, 21 Dec 2019 08:03:08 -0700
Thanks Anand
Let me try to remove this.

Best Regards
Osvaldo Ramirez

On 21/12/19 3:11, Anand Gupta wrote:
> Hi Osvaldo,
> 
> I added your define in a dummy function in Xbase++ 1.9, it gave same error,
> 
> Xbase++ (R) Compiler 1.90.355 Apr  9 2009
> Copyright (c) Alaska Software. All rights reserved.
> 1 error(s) found in file e:\Appl\Alaska\Apps\Ace10\EditEntry.prg!
> e:\Appl\Alaska\Apps\Ace10\EditEntry.prg(384:0): error XBT0516: Preprocessor: Unknown result marker
> 
> Below is the dummy function,
> 
> //********************************************************************
> func Dummy()
> local i,cSel,lOk
> 
> #command  DLLFUNCTION <Func>([<x,...>]) ;
>                   USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
>                    FROM <(Dll)> ;
>          => ;
>                FUNCTION <Func>([<x>]);;
>                   LOCAL nDll:=DllLoad(<(Dll)>);;
>                   LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
>                   DllUnLoad(nDll);;
>                  RETURN xRet
> 
> 
> #command DEFAULT <p> TO <val> [,<pn> TO <valn>] ;
> 		  => <p> = iif(<p> = NIL, <val>, <p>) ;
> 		  [;<pn> = iif(<pn> = NIL, <valn>, <pn>)]
> 
> 
> return lOk
> 
> It looks like the error is in "<sys:CDECL" declaration
> You can check it from your backup code.
> 
> Regards,
> 
> Anand
> 
> 
> Osvaldo Ramirez wrote in message news:2e21bbcf$600768b9$7945c@news.alaska-software.com...
>> Hello guys
>>
>> Suddenly today I have this error: Preprocessor: Unknown result marker
>> at the moment when I try to compile, and some project include the dll.ch
>>
>> This is the offense code
>>  DLLFUNCTION command
>> #command  DLLFUNCTION <Func>([<x,...>]) ;
>>                  USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
>>                   FROM <(Dll)> ;
>>         => ;
>>               FUNCTION <Func>([<x>]);;
>>                  LOCAL nDll:=DllLoad(<(Dll)>);;
>>                  LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
>>                  DllUnLoad(nDll);;
>>                 RETURN xRet
>>
>> I am using the most recent version of Xbase++ 2.0
>>
>> I dont know where is my error.
>>
>> I will appreciate your help
>>
>> Thanks in advance
>>
>> Best Regards
>> Osvaldo Ramirez
Andreas Gehrs-Pahl
Re: Preprocessor: Unknown result marker
on Sat, 21 Dec 2019 19:18:03 -0500
Osvaldo,

Anand wrote:

>>It looks like the error is in "<sys:CDECL" declaration

And you responded:

>Let me try to remove this.

The issue has nothing to do with this declaration!

The problem is the upper case "FUNC" -- instead of "Func" -- in this line:

	LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;

The #command uses a mixed case "Func" in:

	#command  DLLFUNCTION <Func>([<x,...>]) ;

so the "result marker" must be the same, as they are case sensitive:

	LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(Func)>[,<x>]);;

The question is: does your original "dll.ch" file of Xbase++ Version 
2.00.1176 has this upper case "FUNC", or is that something that is in 
your own code?

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web:   http://www.AbsoluteSoftwareLLC.com
[F]:   https://www.facebook.com/AbsoluteSoftwareLLC
Osvaldo RamirezRe: Preprocessor: Unknown result marker
on Sat, 21 Dec 2019 18:07:49 -0700
On 21/12/19 17:18, Andreas Gehrs-Pahl wrote:
> Osvaldo,
> 
> Anand wrote:
> 
>>> It looks like the error is in "<sys:CDECL" declaration
> 
> And you responded:
> 
>> Let me try to remove this.
> 
> The issue has nothing to do with this declaration!
> 
> The problem is the upper case "FUNC" -- instead of "Func" -- in this line:
> 
> 	LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
> 
> The #command uses a mixed case "Func" in:
> 
> 	#command  DLLFUNCTION <Func>([<x,...>]) ;
> 
> so the "result marker" must be the same, as they are case sensitive:
> 
> 	LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(Func)>[,<x>]);;
> 
> The question is: does your original "dll.ch" file of Xbase++ Version
> 2.00.1176 has this upper case "FUNC", or is that something that is in
> your own code?
> 
> Andreas
> 


Thanks Andres.

I already installed a Xbase++ 2.0 886 fresh copy, then I opened dll.ch
This is part of this file:


 DLLFUNCTION command
#command  DLLFUNCTION <Func>([<x,...>]) ;
                 USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
                  FROM <(Dll)> ;
        => ;
              FUNCTION <Func>([<x>]);;
                 LOCAL nDll:=DllLoad(<(Dll)>);;
                 LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
                 DllUnLoad(nDll);;
                RETURN xRet

#command  STATIC DLLFUNCTION <Func>([<x,...>]) ;
                 USING <sys:CDECL,OSAPI,STDCALL,SYSTEM> ;
                  FROM <(Dll)> ;
        => ;
              STATIC FUNCTION <Func>([<x>]);;
                 LOCAL nDll:=DllLoad(<(Dll)>);;
                 LOCAL xRet:=DllCall(nDll,__Sys(<sys>),<(FUNC)>[,<x>]);;
                       DllUnLoad(nDll);;
                RETURN xRet

Then I change the "FUNC" for "Func", and the split projecto work.


Righ now I am trying to update and but maybe the Alaska server it down.

[2019-12-21T17:55:53.942][Error] Error(504) Unexpected result.
[2019-12-21T17:55:53.942][Info] Open internet subsystem
[2019-12-21T17:55:53.942][Info] Create connection to 
upd2.alaska-software.net
[2019-12-21T17:55:53.942][Info] Request created: 
updateservice/ListAvailableUpdates?cPK=.....P-GLB3TL&cBID=886
[2019-12-21T17:55:53.943][Info] Send request
[2019-12-21T17:55:59.366][Error] Error(504) Unexpected result.
[2019-12-21T17:55:59.368][Warning] Build number does not match in 
update-list.xml
[2019-12-21T17:55:59.368][Error] Error getting update-list.xml or file 
not found in update-list.xml
[2019-12-21T17:55:59.368][Info] asget exit failure
[2019-12-21T17:55:59.368][Info] No request for workbench restart


And Yes to your question, the original dll.ch has FUNC in upper.

But My question, how it changed?, when or who, I not remember that I 
change that file.


Thanks in advance.

Best Regards
Osvaldo Ramirez