วิธี build win32 game ของ Cocos2D-X 3.6 บน Visual Studio 2015 RC [ย้ายมาจาก wordpress darkyuu]

หลังจาก สร้าง project (ด้วยคำสั่ง cocos new ใน command line) แล้วนั้น

1.ให้เปิด solution file (.sln) ที่อยู่ในโฟลเดอร์ proj.win32
2.เลือก tab solution explorer แล้วทำการคลิ๊กขวาที่ libCocos2d แล้วเลือก properties
3.ที่ข้อย่อย general ให้ปรับค่าของ Platform Toolset เป็น Visual Studio 2013 (v120)

4. ทำแบบข้อ 3 ซ้ำอีกครั้ง กับ libSpline และ อันที่เป็นชื่องานของคุณ (ในที่นี้ผมใช้ SandBox)

Visual Studio Solution กับการอ้าง path สุดมึนงง [ย้ายมาจาก wordpress darkyuu]

การอ้าง path เพื่อที่จะเข้าถึงไฟล์ที่ต้องการ สำหรับ VisualStudio solution
ต้นทางจะนับจาก path ที่มี .vcxproj นะครับ

eg. โครงสร้าง

BlaBlaBla (folder)
|-BlaBlaBla.vcxproj
src (folder)
|-assets (folder)
| |-abc.bmp
|-main.cpp
BlaBlaBla.sln

ตอนเขียน code ต้องเขียนเป็น
SDL_Surface* pTempSurface = SDL_LoadBMP(“../src/assets/abc.bmp”);

before share file folder printer on vista [ย้ายมาจาก wordpress darkyuu]

*ก่อนจะทำการ share file, folder หรือ printer สำหรับ vista

ให้ไปที่ network connection ของตัว network adapter ที่เราใช้อยู่ จากนั้นคลิ๊กที่ properties
แล้วไป ติ๊กเครื่องหมายถูกที่หน้า File and Printer Sharing for microsoft network ด้วยนะครับ

จากนั้นทำการ share folder หรือ printer ตามต้องการได้เลยครับ