Datatypes supported in iPhone programming

Discussion in 'iOS Programming' started by shweta13, Aug 13, 2008.

  1. shweta13 macrumors member

    Joined:
    Aug 7, 2008
    #1
    Hi all,

    Which all data types are supported on iPhone (Objective C) ?
    Since Object C is a layer on C...are the types like DWORD, HRESULT etc also supported ?

    Or rather which r the datatypes tht r not supported on iPhone applications?

    Please help.

    Thanks in advance for ur help :)
     
  2. SwampThingTom macrumors member

    Joined:
    Jul 12, 2008
    Location:
    Fairfax, VA
    #2
    DWORD and HRESULT are not standard C types. They are Microsoft-defined types included in Microsoft's header files for interfacing with their APIs.

    If you wanted, you could certainly create your own header files that define those types and use them in your software. Why you would want to do this is beyond me, though.

    Tom
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    I occasionally run into code meant for Win32. Usually as long as it's not using crazy Win32 APIs it's not too difficult to port over :)
     
  4. shweta13 thread starter macrumors member

    Joined:
    Aug 7, 2008
    #4

    Actually I am porting a windows mobile application to iphone. That is why i need to convert the Windows specific data types to iphone specific.
    And I dont know how to do it...
     
  5. newb16 macrumors regular

    Joined:
    Feb 27, 2008
    #5
    They should not extend too deeply into business logic, that is not windows-dependent and is supposed to be portable. And non-portable, Windows-dependent parts are two be rewritten anyway. If they store hWND ( or what is handle for a window ) in businesss logic layer and use it to access controls, views, etc - change to appropriate NS*** ( or is it UI* ) object.
     
  6. SwampThingTom macrumors member

    Joined:
    Jul 12, 2008
    Location:
    Fairfax, VA
    #6
    This section of the MSDN documentation describes each Windows data type and its underlying implementation.

    http://msdn.microsoft.com/en-us/library/cc230309.aspx

    Converting the data types will be the least of your worries in porting a Windows Mobile app to the iPhone.

    Tom
     
  7. admanimal macrumors 68040

    Joined:
    Apr 22, 2005
    #7
    Porting Windows Mobile apps to the iPhone makes Steve cry. :(
     

Share This Page