Search code examples
visual-studio-2015winobjc

iOS app converting into Windows app using WinObjC


I am using WinObjC to convert Apple Tableview sample code to windows app to try it out how exactly it is working. I successfully converted it to vs project, opened in windows 10 visual studio. When I run it in a local machine, I get error as in attached file.

enter image description here

I am stuck with this. I m not sure how to proceed, have anyone faced this issue and know how to resolve it. Thanks!


Solution

  • I am assuming that you're referring to the sample code in project 1 here: https://developer.apple.com/library/ios/samplecode/TableViewSuite/Introduction/Intro.html

    Obviously there's a reference to UIKit.h, but in checking out a VS Import of Project 1, I don't see the typelib header (.tlh) file in the directory you mention.

    I do not see that particular error appear using WinObjC's most recent build of the SDK release's VSImporter on the 1_SimpleTableView directory, as I believe you did. (2016-01-07 - https://github.com/Microsoft/WinObjC/releases/tag/0.1.0.160107), followed by an build in VS 2015.

    I dislike telling you 'try the newest one', but it does appear that the version that I've got does build the TableSample successfully.