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
相关文档:
当尝试从文件读入字符时,getc()函数会返回EOF,所以程序会在下一次读取时才会发现文件结尾。此时程序在试图读取空文件,可能会发生一些问题。所以应当在循环入口处进行判断。
int ch;
FILE * fp;
fp = fopen ("test","r");
while ((ch = getc(fp) != EOF)
{
putchar (ch);
} ......
用VC++6.0编写了一个简单的dll,里面包含一个减法函数subtract(int a,int b),Dll命名为ff.Dll
代码如下:
1.ff.cpp:
// ff.cpp : Defines the entry point for the DLL application.
//
#include "StdAfx.h"
#include "ff.h"
BOOL APIENTRY DllMain( HANDLE hModule,
......
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 ......
上周老板分下来6个职位软件开发方面的职位给我,要我按职位要求寻找合适的人才。居然是C/C++!据我所知,在人才库中,JAVA 人才倒是应有尽有,学C的,还是嵌入式开发的可真的好少啊。我又不是女娲,难道我会造人才么?要求条件还这么高!
以下是大连软件园几家知名外企委托我们招聘的职位信息。
Position 1 软件开发工程师 ......
C/C++位操作
一、传统的C方式位操作:
1.基本操作:
使用一个unsigned int变量来作为位容器。
2.操作符:
| 按位或操作符:result=exp1|exp2;当exp1和exp2中对应位中至少有一个为1时,result中对应位为1,否则为0。
& 按位与操作符::result=exp1&exp2;当exp1和exp2中对应位全为1时 ......