手机操盘手免费体验火热进行
20万人已抢先免费使用
624MHz CPU极速智能HKC G920震憾登场
夏新智能手机专区
主流智能手机音乐播放软件横向评测 最新手机电影
发新话题
打印

[编程] pocketC 無法做出prc說要 creator_ID

pocketC 無法做出prc說要 creator_ID

我想把  電線桿座標的 C  code, 使用 pocketC 做成一個 prc file
http://jidanni.org/geo/taipower/programs/contrib/index.html
但是 卻碰到  沒有 creator ID
要如何宣告 creator ID ?

我使用如下
一開頭 使用 //  後面加上
Code:
    @cid "TriA";
    @ver "1.0";
    @name "MyName";
    @dbname "MyDB";
    @licon8 "large8.bmp";
    @sicon8 "small8.bmp";

question 1  :    但是 pocketC  desktop 端使用   compile 說 找不到 large8.bmp
我把他和  C 放同一目錄  ,  
是否要使用 include 把 file 叫進來 ? 還是要如指定


question2 :  還有 pocketC  desktop compiler好像看不懂 中文
那能 compiler 出有中文的  prc 嗎 ?


thank you
找到這
有說 好像要使用

http://www.trajectorylabs.com/Palm_Hello_New_World.html

// app declaration
@app myApp {
creator = "HELN"; // creator id
name = "HelloWorld"; // display name
dbname = "HelloWorld-HELN"; // name of .prc database
}

--> 有 assign creator ID  但是
但是我直接拿來 好像一樣無法compiler 出 PRC file
find

使用 可能是老的 pocketC  是如下
@app myApp {
creator = "HELN"; // creator id
name = "HelloWorld"; // display name
dbname = "HelloWorld-HELN"; // name of .prc database
}

但是新的  
新版 pocketC 是使用
//  
@cid  "test"; // creator id
@name  "TaiwanPowerPole"; // display name
@dbname  "PowerPole-GPS"; // name of .prc database
@licon8 "power1.bmp";
@sicon8 "power2.bmp";

不須要在 code 內使用 include BMP file  剛檔名搞錯
compiler 後 上傳一下

我在  POSE + CJKOS 下
發覺  無法顯示中文

而且先前 我有 使用 32x22  bmp  &  9*5 當 small icon 都沒有正確顯示出 ICON

還有 原來 int main() {  .. }  
int 都要拿掉

附件


普通下载:pkuo.rar (25.75 KB)

2006-9-22 18:20, 下载次数: 9

pocketC 發展商 homepage
http://www.orbworks.com/architect/langapi.html

這個是 orbworks  好像 有分  OrbC     PocketC Architect]  pocketC_aplm  pocketC_WINCE
是否 都算 c  但寫法不太相同
但是 pocketC architectur 不是 pocketc嗎  ??  

The OrbC language is similar in style to C - using the same control constructs, expressions, and function style. The language supports four basic types (int, char, float, string), arrays, pointers, structs, objects, and interfaces. Although based on C, there are many differences that make the OrbC language easier to learn and use, and more efficient to work with.


To ease the transition from PocketC to PocketC Architect, applications can be written using the classic PocketC model with a main() function and event loops. With the inclusion of compatibility headers, your classic PocketC application can be compiled by PocketC Architect with little modification:
// Triangle

@app myApp { creator = "TriA"; name = "Triangle"; dbname = "Triangle"; }#include "pc_most.oc" // compat headerint tx[3], ty[3], x, y; main() {   int i, r;   tx[0] = 80;  ty[0] = 24;   tx[1] = 10;  ty[1] = 150;   tx[2] = 150; ty[2] = 150;   r = random(3);   x = tx[r]; y = ty[r];   graph_on();   title("Sierpinsky's Triangle");   while (true) {      r = random(3);      x = (x + tx[r])/2;      y = (y + ty[r])/2;      line(1, x, y, x, y);   }}可以 我在 pocketc desktop 6.66 使用 @app myApp { creator = "TriA"; name = "Triangle"; dbname = "Triangle"; }會說 error 但是使用@cid  "test"; // creator id
@name  "TaiwanPowerPole"; // display name
@dbname  "PowerPole-GPS"; // name of .prc database
@licon8 "power1.bmp";
@sicon8 "power2.bmp";
可以 compiler 出 prc  有人知道 為何 會如此嗎   應該只有 palm 須要creator id那是版本問題嗎  還是 ?   

[ 本帖最后由 andy2000a 于 2006-9-28 21:30 编辑 ]
地圖漫談.台電電力座標系統《解讀》
http://www.sunriver.com.tw/grid_taipower.htm

附件


普通下载:Tw pwrGrid.rar (25.8 KB)

2006-10-4 19:26, 下载次数: 13

真的牛,双手赞成,谢谢了
发新话题