Alaska Software Inc. - aGetAdapterInfo
Username: Password:
AuthorTopic: aGetAdapterInfo
Zdenko BielikaGetAdapterInfo
on Tue, 29 Mar 2011 19:31:25 +0200
Hi Pablo,

I just found in my archiv next code, but when I tried compile it, it doesn't 
work.
Where is problem? I think I have most current ot4xb version of your lib.


function aMacAddresses()
local aCards := _aGetAdapterInfo(.F.,.T.)
local a := Array(Len(aCards),2)
aEval(a, {|o,n| (a[n][1] := o:cAdapterAlias) , (a[n][2] := o:cMacAddress )})
return a


TIA & Regards
                         Zdeno
Pablo BotellaRe: aGetAdapterInfo
on Wed, 30 Mar 2011 09:19:44 +0200
Hi,

_aGetAdapterInfo() was not inside ot4xb, was published first as a separate dll ( before ot4xb) and later rewrited as an example prg
http://www.xbwin.com/download/

Just published an updated version in the ot4xb.examples NG
http://news.xbwin.com/newsgroups.php?art_group=ot4xb.examples&article_id=39

Regards,
Pablo Botella
Zdenko BielikRe: aGetAdapterInfo
on Wed, 30 Mar 2011 11:09:06 +0200
Hi Pablo,

> Just published an updated version in the ot4xb.examples NG
many thanks for info and updated example, but when I tried compile it, it 
can't find some external symbols.


xpp /n /m /w /wi /wl /p @C:\DOCUME~1\user_200\LOCALS~1\Temp\03306176.tmp

alink @C:\DOCUME~1\user_200\LOCALS~1\Temp\03306203.tmp
Alaska 32-Bit Linker Version 1.90.355
Copyright (c) Alaska Software 1997-2009. All rights reserved.

IPCFG.obj: error ALK2102: unresolved external symbol IP_ADAPTER_INFO
IPCFG.obj: error ALK2102: unresolved external symbol IP_ADDR_STRING
IPCFG.obj: error ALK2102: unresolved external symbol IP_PER_ADAPTER_INFO
ALINK: fatal error ALK4102: 3 external symbols unresolved

Processing time:      0.31 secs.




And second(separate) example error:


xpp /n/m/w/p/wi /wl /dll /dll 
@C:\DOCUME~1\user_200\LOCALS~1\Temp\03307306.tmp
XBT0027: Ignoring unknown command line option /n/m/w/p/wi

xppfilt @C:\DOCUME~1\user_200\LOCALS~1\Temp\03307314.tmp -f:IPCFG.DEF
Alaska XppFilt Version 1.90.355
Copyright (c) Alaska Software 1997-2009. All rights reserved.
Dump public and/or external symbols.
Processing file IPCONFIG.OBJ
Processing file _DYNIPCONFIG.OBJ

aimplib IPCFG.DEF /oIPCFG.LIB
Alaska Import Library Utility Version 1.90.355
Copyright (c) Alaska Software 1997-2009. All rights reserved.
Create COFF import library from .DEF file.

Processing file IPCFG.DEF

alink @C:\DOCUME~1\user_200\LOCALS~1\Temp\03307325.tmp
Alaska 32-Bit Linker Version 1.90.355
Copyright (c) Alaska Software 1997-2009. All rights reserved.

ALINK: fatal error ALK4001: cannot open file "ADVAPI32.LIB"

Processing time:      0.20 secs.



my ot4xb versions are 1.5.16.238 or 1.5.16.210



Regards,
                Zdeno
Pablo BotellaRe: aGetAdapterInfo
on Wed, 30 Mar 2011 16:35:50 +0200
Hi,
There are 3 diferent aproaches of the same stuff, probably my fault to not explain before

The http://www.xbwin.com/download/IPCfg.zip stuff was very old, before ot4xb was started and require some C import libraries
This version is still ussable but I think new aproaches are more simple, maybe better to archive it.
---------------
Later I was published another version of the same stuff this time in a prg using an early version of ot4xb
http://www.xbwin.com/download/ot4xb/samples/IpConfig/
This version is still usable
---------------

Since ot4xb version 1.5.12 I was added most common windows structures inside ot4xb, and to avoid conflicts with stuff  on existing applications was prefixed the class functions with "WAPIST_"
Inserting #define _OT4XB_MAP_WAPIST_FUNC_ before  #include "ot4xb.ch"  will add the corresponding #pragma Map to use this stuff on new PRGs

The latest version I 've published today use this new stuff 
http://news.xbwin.com/newsgroups.php?art_group=ot4xb.examples&article_id=39

So be sure lib/dll and CHs point to the latest public 1.5.16.210  ot4xb version.Even  I think I was sent you some weeks ago the latest internal build ( you can use this also )
-----------

Regards,
Pablo







I suspect you have mixed
<Zdenko Bielik> escribió en el mensaje news:2143d199$36a548b0$1c171@news.alaska-software.com...
> Hi Pablo,
> 
>> Just published an updated version in the ot4xb.examples NG
> many thanks for info and updated example, but when I tried compile it, it 
> can't find some external symbols.
> 
> 
> xpp /n /m /w /wi /wl /p @C:\DOCUME~1\user_200\LOCALS~1\Temp\03306176.tmp
> 
> alink @C:\DOCUME~1\user_200\LOCALS~1\Temp\03306203.tmp
> Alaska 32-Bit Linker Version 1.90.355
> Copyright (c) Alaska Software 1997-2009. All rights reserved.
> 
> IPCFG.obj: error ALK2102: unresolved external symbol IP_ADAPTER_INFO
> IPCFG.obj: error ALK2102: unresolved external symbol IP_ADDR_STRING
> IPCFG.obj: error ALK2102: unresolved external symbol IP_PER_ADAPTER_INFO
> ALINK: fatal error ALK4102: 3 external symbols unresolved
> 
> Processing time:      0.31 secs.
> 
> 
> 
> 
> And second(separate) example error:
> 
> 
> xpp /n/m/w/p/wi /wl /dll /dll 
> @C:\DOCUME~1\user_200\LOCALS~1\Temp\03307306.tmp
> XBT0027: Ignoring unknown command line option /n/m/w/p/wi
> 
> xppfilt @C:\DOCUME~1\user_200\LOCALS~1\Temp\03307314.tmp -f:IPCFG.DEF
> Alaska XppFilt Version 1.90.355
> Copyright (c) Alaska Software 1997-2009. All rights reserved.
> Dump public and/or external symbols.
> Processing file IPCONFIG.OBJ
> Processing file _DYNIPCONFIG.OBJ
> 
> aimplib IPCFG.DEF /oIPCFG.LIB
> Alaska Import Library Utility Version 1.90.355
> Copyright (c) Alaska Software 1997-2009. All rights reserved.
> Create COFF import library from .DEF file.
> 
> Processing file IPCFG.DEF
> 
> alink @C:\DOCUME~1\user_200\LOCALS~1\Temp\03307325.tmp
> Alaska 32-Bit Linker Version 1.90.355
> Copyright (c) Alaska Software 1997-2009. All rights reserved.
> 
> ALINK: fatal error ALK4001: cannot open file "ADVAPI32.LIB"
> 
> Processing time:      0.20 secs.
> 
> 
> 
> my ot4xb versions are 1.5.16.238 or 1.5.16.210
> 
> 
> 
> Regards,
>                Zdeno 
> 
>