I've searched in google but I don't seem to find a way to read Excel files from Objective-C. The only answers I find are to first convert to CSV and then read as a text file, but I don't want that.
I know there must be a way, while I used many times the PHP modules to read/write Excel files, so I'm supposing there's also a C library to ...
I have a GtkLabel and a GtkDrawingArea within a VBox, I want to center the label relative to a X-coordinate of the GtkDrawingArea (which is below of the label in the VBox), how can I tell GTK to center that label relative to that "anchor" point ? This point should be the center of the label.
...
Possible Duplicate:
opening a rar file by c
I have to extract a rar file using c code. First I tried out to find the libraries. I got it from http://www.unrarlib.org/. But it was built in 2002. So it do not support the current rar format. Then I checked http://www.rarlabs.com/rar_add.htm. It have libraries but in c++. I don't ...
I've got a good grasp on C, my first programming language. I know a reasonable number of tricks and techniques and have written quite a few programs, mostly for scientific stuff. Now I'd like to branch out and understand OOP, and Python seems like a good direction to go.
I've seen several questions on how to learn Python, but most of th...
First of all, I'm running in C on a Windows 32 bit system compiled with Visual Studio 2008. I'm running in debug mode. My code essentially is this:
execvp( *argv, argv );
Where argv has three entries and looks like this:
argv[0] = "pgserv";
argv[1] = "pgserv";
argv[2] = NULL;
Yes, I am aware that that calls the pgserv application ...
So I have a C program to interface with an i2c device. I need to interface to that device from python. I'm just wondering if it's worth porting the program into a python module or if the amount of effort involved in porting won't outweigh just executing the program using subprocess. I know I'm sure it's different for every application, b...
I have written a Python extension library in C and I am currently using distutils to build it. I also have a Python script that generates a .h file, which I would like to include with my extension.
Is it possible to setup a dependency like this with distutils? Will it be able to notice when my script changes, regenerate the .h file, and...
What can a programmer (one person) get from providing the community with opensourse (more or less) video transcoding library\wrapper? (I know we have Tao but it is not good for 2010...)
I think of video transcoder based on FFMpeg. simple wraper which would simplify FFmpeg bringing to C# such functions like ReadFrame(bytearray, framenum...
Let's say I'm writing a "DayData" class, containing the ivars
NSString *symbol; //such as "AAPL"
NSString *currency; //such as "USD"
NSDate *day;
double open;
double high;
double low;
double close;
The last four ivars are the open,high,low,close prices of that stock for that day.
Say I'm using this class as the fundamental building-...
I am allocating memory in a C program using malloc. It's possible for my program to allocate more memory than the system has room for, at which point the program crashes. For my purposes it would be better if malloc would just return NULL (like it's apparently supposed to), so I can catch the error. Instead what it does is it throws an e...
Hello,
gcc 4.4.3 c89
I am wondering why I can't allocate the size of the array when initializing an array of pointers to char.
I get the following error:
variable-sized object may not be initialized
This works ok. However, the sizeof of will return 4 bytes as a char * is 4 bytes in size. Which is no good, as its not the actual size...
All thread create methods like pthread_create() or CreateThread() in Windows expect the caller to provide a pointer to the arg for the thread. Isn't this inherently unsafe?
This can work 'safely' only if the arg is in the heap, and then again creating a heap variable
adds to the overhead of cleaning the allocated memory up. If a stack...
So, I'm having a bit of pointer issues.
I'm writing a function that stores memory addresses in a[].
These memory addresses point to actual data values in b[].
I'm having trouble getting the memory address from b to store in a.
// Assume these are initialized to 0 outside of this snippet
char a[100];
char b[100];
b[0] = 42; // Some valu...
Hello,
I have list of 5 elements. I get first element of this list. How can i kwno what's the data type of this element char* or int*?
Thank you
...
I am having troubles using objdump in windows command prompt for a C program. I want to display the machine code of a specific function and lines. For example, in Linux I would enter:
objdump -D x.out | grep -A20 main.:
What would the equivalent be in windows?
I am just digging into understanding machine code, so forgive me if my as...
#include<stio.h>
main()
{
int *p,i;
p = (int*)malloc(sizeof(int));
printf("Enter:");
scanf("%d",p);
for(i=1;i<3;i++)
{
printf("Enter");
scanf("%d",p+i);
}
for(i=0;i<3;i++)
{
printf("No:%d\n",*(p+i));
}
getch();
return 0;
}
In this C program memory is accessed without allocation.The program works.Wi...
for example:
(test)rrr(/test) -> (ll)rrr(/ll)
regexp: ( (test)(.*?)(test) )
...
I would like to be able to compute the inverse of a general NxN matrix in C/C++ using lapack.
My understanding is that the way to do an inversion in lapack is by using the dgetri function, however, I can't figure out what all of its arguments are supposed to be.
Here is the code I have:
void dgetri_(int* N, double* A, int* lda, int*...
Possible Duplicates:
Can the Size of Pointers Vary Depending on whats Pointed To?
Are there are any platforms where pointers to different types have different sizes?
Is it possible that the size of a pointer to a float in c differs from a pointer to int? Having tried it out, I get the same result for all kinds of pointers.
...
The subroutine Rule_Tn in the Fortran library CUBPACK needs a parameter Integrand describing the integrated vector function. It's a
INTERFACE
FUNCTION Integrand(NF,X) RESULT(Value)
USE Precision_Model
INTEGER, INTENT(IN) :: NF
REAL(KIND=STND), DIMENSION(:), INTENT(IN) :: X
REAL(KIND=ST...