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

the8bitwizard

macrumors newbie
Original poster
Jun 15, 2007
2
0
I have a whole load of projects made in Visual Studio and was wondering how to make them run in Xcode. Does it use a slightly different set of commands? (I tried to just copy the code into a C++ tool in Xcode, but it came up with something like 18 errors).

also, in Visual Studio there are things like random.h, but I tried including that in a #include statement, but it couldn't find random.h

one more thing. in MVS, you type

void main()
{
}

but in Xcode, do you have to type

int main(void)
{
}

?
 
I have a whole load of projects made in Visual Studio and was wondering how to make them run in Xcode. Does it use a slightly different set of commands? (I tried to just copy the code into a C++ tool in Xcode, but it came up with something like 18 errors).

also, in Visual Studio there are things like random.h, but I tried including that in a #include statement, but it couldn't find random.h

one more thing. in MVS, you type

void main()
{
}

but in Xcode, do you have to type

int main(void)
{
}

?

you might want to just create a new project in xcode (C++ project) and after you have that setup, just take the code for the VS project and copy and paste it in the xcode project.

not sure if that will work or not. i've done this with C#, and i could just take the .cs file and add it to my xcode project and it would work fine
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.