Discussion:
[Swig-devel] HandleRef issue in windows 8.1
Emre Metin
2015-05-28 13:14:22 UTC
Permalink
​We want to use c++ methods at our c# project. In order to do that we try to generate c# equivalents of c++ methods. Swig uses HandleRef which is own structure of .NET Framework. We do not get any errors if generated files exists in ClassLibrary Project. However we have to use PortableLibrary in order to support multiple platforms such as desktop and Windows Mobile 8.1. HandleRef which generated into PortableLibrary project and is used in c# files, does not recognized by the system and we get the error below.
The type or namespace name 'HandleRef' could not be found​.

Have you got any ideas or solution for this problem?
Thanks for your help.​



Emre Metin
Stajyer Yazılım MÌhendisi

Univera Bilgisayar Sistemleri San. ve Tic. A.Ş.
Merkez:Univera Center, Anadolu Cad. Şemikler Mh. No.687/A, Karşıyaka - İZMİR
• +90 (232) 445 94 70
7 +90 (232) 441 89 09

www.univera.com.tr<http://www.univera.com.tr>
[cid:***@7fea652137b811ed-e0]
________________________________
Bu elektronik posta ve onunla iletilen bÃŒtÃŒn dosyalar sadece göndericisi tarafından alması amaçlanan yetkili gerçek ya da tÃŒzel kişinin kullanımı içindir.Eğer söz konusu yetkili alıcı değilseniz bu elektronik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir. UNİVERA A.Ş. bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görÌşler yalnızca gönderen kişiye aittir ve UNİVERA A.Ş.'nin görÌşlerini yansıtmayabilir. Bu e-posta bilinen bÃŒtÃŒn bilgisayar virÃŒslerine karşı taranmıştır.
________________________________
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted. UNIVERA A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of UNIVERA A.S. This e-mail has been scanned for all known computer viruses.
________________________________
William S Fulton
2015-06-04 06:37:15 UTC
Permalink
Post by Emre Metin
​We want to use c++ methods at our c# project. In order to do that we
try to generate c# equivalents of c++ methods. Swig uses HandleRef which is
own structure of .NET Framework. We do not get any errors if generated
files exists in ClassLibrary Project. However we have to use
PortableLibrary in order to support multiple platforms such as desktop and
Windows Mobile 8.1. HandleRef which generated into PortableLibrary project
and is used in c# files, does not recognized by the system and we get the
error below.
The type or namespace name 'HandleRef' could not be found​.
Have you got any ideas or solution for this problem?
Thanks for your help.​
This was a recent Github question to which I added some info. Please see
https://github.com/swig/swig/issues/423.

William

Loading...