Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shweta13

macrumors member
Original poster
Aug 7, 2008
38
0
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 :)
 

SwampThingTom

macrumors member
Jul 12, 2008
37
0
Fairfax, VA
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
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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
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 :)
 

shweta13

macrumors member
Original poster
Aug 7, 2008
38
0
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


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...
 

newb16

macrumors regular
Feb 27, 2008
100
0
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...

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.
 

SwampThingTom

macrumors member
Jul 12, 2008
37
0
Fairfax, VA
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...

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.