Is it possible to multi thread an ansi C console application on a 32 bit windows 7 platform using _beginthread. Also is the entire application subject to the 2 gig memory/application of windows or can each thread allocate 2 gigs memory. I already have the 32 bit app but don't want to rewrite for...
I have a C program that compiles fine in 32 bit but when I try and compile in 64 bit I get the error: error LNK2019: unresolved external symbol __imp_InitCommonControls referenced in function ProgressBar. I've included windows.h and commctrl.h. In the project \properties\VC++ Directories\Include...
ArkM, I'll try your suggestion Monday I'm not in the office today. Previously I have tried to allocate the 48.75 MB at the beginning of the program and carry it through to the end of the program only to receive a pointer error, cannot write to .... when I use files that allocate more than 10 MB...
My fault for not making my initial post more clear. The program creates many 2d arrays of ints and doubles prior to the final call to calloc which is for a 1D array of pointer to char a = calloc(rc, sizeof( char));. To check to see if I was just getting "lucky" with smaller files, I isolated...
All 2d array calls of calloc prior to a = calloc(rc, sizeof( char)); are sizeof(int) or sizeof(double) and all are freed. I have tried malloc and get the same results. The syntax is correct since smaller files do run correctly. Watching the usage on the taskbar I have about 1.5 GB of free memory...
I have a program that has many calloc allocations for 2D arrays and finally a calloc call a = calloc(rc, sizeof( char)); The program runs fine for smaller file sizes but when file sizes get larger this calloc returns a pointer to NULL; I have freed all previous calls to calloc before this last...
Dian, thanks for your reply. I took the NULL return into consideration as you can see, I check to see
if (s1 == NULL)one[i]=-9;
s1=strtok(line,sx);
if (s1==NULL) one[i]=-9;else
one[i]=atoi(s1);
I have since moved on to trying to use strsep instead of strtok. Its not a...
I need to read a csv file that has missing values. The program is suppose to assign the values from the csv to 5 arrays. The program works fine when all fields have values. The problem is when the program encounters ,, instead of a value it skips the pointer assignment. When it encounters a...
I had originally printed to a file from C to check the values. In VB I was displaying the numbers in a control array of text boxes. After reading your response I printed to a file from VB and sure enough the values are in scientific notation. Is there an easy way to convert from scientific...
Just when I thought I was out of the woods I found a problem. Some of the values are shifting the decimal. below is the actual value and the value returned. Does anyone have a clue as to what is going on. I printed the array to a file to make sure the values in the array are correct and they...
[b]THANKS GUYS I FINALLY GET IT[\b] since the array address was set in VB when the array was dimensioned and only the address was passed to C, I can use the the array in VB after the function call and the C modifications will have been applied. I'm a little slow. Thanks Again
Once again I reiterate that the code by XWB passes a double array from visual basic [b]to[\b] C. I need to pass a double array from a C dll to VB. There is no return specified in the C code to return anything. The VB code doesn't specify anything being returned to it. My guess is that a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.