symbian Open C and Open C++ 相关
nokia wiki:http://developer.symbian.org/wiki/index.php/Open_C_and_Open_C%2B%2B_Technical_Overview/zh-hans
symbian上开发openc时需要注意的问题
http://blog.csdn.net/sizhiguo/archive/2009/05/21/4206138.aspx
第一:如printf、sprint、文件操作、socket操作等,模拟器屏幕都会出现白屏等待,并且是一直下去。
解决方法:
1、修改配置文件c:/system/data/config.ini(模拟器路径),重定向stdio/stdout到文件。
具体如下:
config.ini(c:\system\data\)
[STDIO]
STDIN = MEDIA1
STDOUT = MEDIA4
[MEDIA1]
type = file
path = C:\system\data\in.txt
max size = 100
[MEDIA2]
type = serial
baud = 214
port = COMM::10
[MEDIA3]
type = console
width = -1
height = -1
[MEDIA4]
type = file
path = c:\system\data\out.txt
max size = 1000
2、上述办法之后还不行请关闭杀入软件,尤其是360软件!
真机上安装文件时需要首先安装如下文件,所在目录为c:\Symbian\9.2\S60_3rd_FP1\nokia_plugin\openc\s60opencsis
1)pips_nokia_1_3_SS.sis
2)glib.sis
3)ssl.sis
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sizhiguo/archive/2009/05/21/4206138.aspx
相关文档:
C输出格式总结 收藏
C输出格式总结
1 一般格式
printf(格式控制,输出表列)
例如:printf("i=%d,ch=%c\n",i,ch);
说明:
(1)“格式控制”是用双撇号括起来的字符串,也称“转换控制字符串”,它包括两种信息:
&nbs ......
引言
最近笔者一直在做JPEG的解码工作,发现用完全使用哈夫曼树进行解码比较费时,而使用表结构存储编码和值的对应关系比较快捷,但是也存在比较难处理的地方,比如解码工作通常是以位为单位的操作,这里必然会涉及到移位操作,而笔者之前对位的操作很少,经验很欠缺,经过这次历练终于发现了一个自己曾经忽视的东西,那就 ......
1.本章思维导图:
Example1:
char
*strcpy(char *target, const char *source) {
char *t = target;
// Copy the contents of source into target.
while(*source) *target++ = *source++;
// Null-terminate the
target.
*ta ......
函数名: abs 功 能: 求整数的绝对值
用 法: int abs(int i);
程序例:
#include <stdio.h>
#include <math.h>
int main(void)
{
int number = -1234;
printf("number: %d absolute value: %d\n", number, abs(number));
return 0;
}
函数名: atof
功 ......
通信
Server:
#pragma comment(lib, "ws2_32.lib")
#include <Winsock2.h>
#include <stdio.h>
void main()
{
//版本协商
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = MAKEWORD(1,1); //0x0101
err = WSAStartup ......