Symbian mobile os - how to write C applications?
I want to write a C application that runs on Symbian mobile OS. I don't know where to start. Is there any library files available or any SDK or IDE available for it? ...
I want to write a C application that runs on Symbian mobile OS. I don't know where to start. Is there any library files available or any SDK or IDE available for it? ...
I will break down this question in to sub questions. I am confused if I should ask them separately or in one question. So I will just stick to one SO question. What are generally the steps to analyze and improve performance of C applications? Do these steps change if I am developing for an embedded system? What tools are out there whic...
How do I transform the following code in C#. My C is a little bit rusty (well... very very rusted): short CalcCrc(char *str,int len) { short crc=0; for(int i=0;i<len;i++) crc ^= (short)((unsigned char)str[i]) << (i%9); return crc; } Thank you! ...
how to wrtie hai boot loader i know c and c++ please help me out ...
I want to read serial COM port and to write the data to a file in LINUX. Actually I'm sending data from hyperterminal from other PC. The problem is without while loop I can write only one line. But with while(1) loop I can't write anything to file. Or else I have to send BIG file, then application exits/terminates and writes to the fi...
I have encountered a problem where even after my server side close()-ed the socket, the client side still can do a single write(), only the second write() will return SIGPIPE, this causes me to loose data as I do not have application level handshake and solely relying on the return value of write(). Is there a way for me to get SIGPIPE s...
Take VirtualBox's virtual disk as example:if VirtualBox didn't avoid the buffer mechanism from FileSystem in host os,the FileSystem in guest os would move data from memory to meory. In fact ,I want to write a filesystem in user space(put all directorys and files in a single big file). But if I use c api such fread and fwrite ,the FileS...
Hi, I have some difficulties grasping some concepts. Grateful for help. Let's say you have the following piece of code: int *intPtr; // creates a pointer int count = 10; // initiates an intiger variable intptr = &count; // ?? The & operator gives the address to a variable, in this case the integer count. The address is then assig...
I have looked at some resources to tell me how -> and . are different, but they seem to do the same thing. Does -> act like a dot operator on a struct? ...
I'm trying to figure out how to do this. Essentially I have points A and B which I know the location of. I then have point C and point D which I only know the coordinates of C. I know the length of C-D and know that C-D must be parallel to A-B. How could I generally solve for D given A,B,C and length of C-D. Thanks ...
Hi, I tried to test the "Examining a Message Queue" example in this page: http://msdn.microsoft.com/en-us/library/ms644928(VS.85).aspx In order to test it I created a simple window with an edit control and some buttons, but it doesn't work as I expected, It should Display repeatedly the string "Some Text" in the EditControl until I ...
I am writing a fastcgi application for my site in C. Don't ask why, leave all that part. Just help me with this problem- I want to replace spaces in the query string with %20. Here's the code I'm using, but I don't see 20 in the output, only %. Where's the problem? Code: unsigned int i = 0; /* * Replace spaces with its hex %20 * It...
A very strange error: if I add some specific code to my project, any textures I use contain nothing but 0. Even when I'm not running any of the code that was added. The specific code here is the kernels of an nVidia CUDA sample [1], the Bicubic Texture Filtering sample, in specific the CatMulRom kernel. I've traced it down to one of the...
I'm trying to design a macro to produce several related data structures related to things that need initialization. The code has to compile under both C and C++. The goal is to have something like: MUNGE_THING(struct1); MUNGE_THING(array1); turn into something equivalent to munge_thing((void*) munge_thing((void*)array1, s...
My understanding was that one could not control the file descriptor (integer) assigned by the OS when opening a new file using open(). How then is it possible in a bash shell to assign a specific file descriptor using a command like exec 5>&1 (I suppose I could find out by reading the bash sources...) ...
I want to start making cellphone apps with Android as first choice but not the only one. I have 10 years of experience with Java, C#, C++ in commercial applications and I know that many things and practices for this applications are not valid for cellphones. Where do I start reading? How do I adapt my way of thinking to this new environm...
I am studying Intel Protected Mode. I found that Call Gate, Interrupt Gate, Trap Gate are almost the same. In fact, besides that Call Gate has the fields for parameter counter, and that these 3 gates have different type fields, they are identical in all other fields. As to their functions, they are all used to transfer code control into...
As the title says, keep getting this error when trying to compile. From Googling this error people have said that it is not declared in the header file but my function is static and it is not in a header file, I prototyped it.` #include <recGbl.h> #include <devSup.h> #include <devLib.h> #include <drvIpac.h> #include <dbScan.h> #include ...
Hello, I want to write MJPEG picture internet stream viewer. I think getting jpeg images using sockets it's not very hard problem. But i want to know how to make accurate streaming. while (1) { get_image() show_image() sleep (SOME_TIME) // how to make it accurate? } Any suggestions would be great. ...
Possible Duplicate: Static variable initialization? why global variable in C takes zero as initial value? ...