Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gismo
  • Order by date
  1. gismo

    Multihread ansi C in visual Studio 6 on windows 7

    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...
  2. gismo

    [b]commctrl.h VC10 64bit[\b]

    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...
  3. gismo

    Calloc memory allocation

    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...
  4. gismo

    Calloc memory allocation

    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...
  5. gismo

    Calloc memory allocation

    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...
  6. gismo

    Calloc memory allocation

    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...
  7. gismo

    How do I read a csv file with missing values

    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...
  8. gismo

    How do I read a csv file with missing values

    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...
  9. gismo

    return array of type double from VC to VB

    I figured it out. I'm relatively new new to VB. Thanks again XWB and Lee
  10. gismo

    return array of type double from VC to VB

    Its a VB question so I'll post it in the VB forum. Thanks
  11. gismo

    return array of type double from VC to VB

    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...
  12. gismo

    return array of type double from VC to VB

    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...
  13. gismo

    return array of type double from VC to VB

    [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
  14. gismo

    return array of type double from VC to VB

    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...
  15. gismo

    return array of type double from VC to VB

    XWB that would work if I were passing an array from VB to C++. What I need is to pass a double array from a C dll not C++ to VB
  16. gismo

    return array of type double from VC to VB

    I am writing a C dll and need to know how to return an array of type double from visual C NOT C++ to Visual Basic. Both VC and VB are version 6.0.
  17. gismo

    Replace existing file with save

    I'm just an idiot sometimes(more times than I want to admit). Contents() was growing in size everytime I saved ttat was the reason my file size grew with each save. I wrongfully assumed that the file was appending. Thank's anyways guys and yeah I gave myself a kick. gismo
  18. gismo

    Replace existing file with save

    I was just checking that. It contains a string that is the full path and file name such as "d:\mystuff\myfile.jnk"
  19. gismo

    Replace existing file with save

    No error and no luck. I watch the file size increase with every save. I don't understand how that could not work. gismo
  20. gismo

    Replace existing file with save

    I need binary file format, I believe Ouput only supports an ascii file format. gismo

Part and Inventory Search

Back
Top