Search:

Type: Posts; User: chico1st

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: tifftopnm

    by chico1st
    Replies
    6
    Views
    1,771

    wow I've never seen that before... is that a c++...

    wow I've never seen that before... is that a c++ thing?
  2. Thread: tifftopnm

    by chico1st
    Replies
    6
    Views
    1,771

    so is -alphaout={alpha-filename,-} the...

    so is
    -alphaout={alpha-filename,-} the outputfile name?

    How do i make it not print gibberish?
  3. Thread: tifftopnm

    by chico1st
    Replies
    6
    Views
    1,771

    tifftopnm

    I am having issues using tifftopnm
    Tifftopnm User Manual

    By issues I mean I would like to send in an image and get out another image but i just get gibberish to my screen

    the manual for this...
  4. Thread: 0 vs Null

    by chico1st
    Replies
    5
    Views
    8,027

    0 vs Null

    I am a little confused about the difference between zeros and nulls in C. My programming friend (who uses C++ if that matters) says that in C they are the same thing. But if i was reading values out...
  5. Replies
    2
    Views
    2,574

    Run dos program invisibly?

    Is there a way to execute a program through dos without making it visible?

    I run an exe in dos which opens another program with a window. I would like to be able to keep the second window hidden,...
  6. Replies
    8
    Views
    2,882

    so that means using win32 is better than using...

    so that means using win32 is better than using bios.h etc... the MSDN article is very good. im enjoying it so far
  7. Replies
    8
    Views
    2,882

    This sounds pretty intense

    This sounds pretty intense
  8. Replies
    8
    Views
    2,882

    windows xp i have found termio.h and bios.h but...

    windows xp
    i have found termio.h and bios.h but i will take any advice or direction you can give
  9. Replies
    8
    Views
    2,882

    Serial communication

    Is there a way to perform serial communication using c?
    I have an RS232 output from a AD converter, i was wondering if any one knows of links or even ways of interacting with the serial port.
    ...
  10. Thread: testing array

    by chico1st
    Replies
    6
    Views
    1,929

    would this work to find the end of an array......

    would this work to find the end of an array... assuming there are no '\0' in the array


    uInt8 *image = NULL;


    FunctionICantSeeInsideOf((void *) &image);

    for(i=0; i<(10000000); i++){...
  11. Thread: testing array

    by chico1st
    Replies
    6
    Views
    1,929

    ooo i can just use if (array[i] != NULL) ...

    ooo i can just use
    if (array[i] != NULL)

    EDIT: oh .. nvm
  12. Thread: testing array

    by chico1st
    Replies
    6
    Views
    1,929

    testing array

    is there any way to test to see if an element of an array exists in c?

    I am passing an array into a function in c and i want to make sure that I am writing to an existing element.
  13. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    would that work in c? EDIT: lets say i had ...

    would that work in c?
    EDIT:
    lets say i had

    int foo(uInt8 *passed)
    uInt8 array[320*240];
    passed = array;
    return 0;
  14. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    but if another program is calling this library...

    but if another program is calling this library cant i then return the global variable.

    what is if passed the array in by reference and then made the pointer reference the global variable?
  15. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    will this return all of image1D? right now I...

    will this return all of image1D?

    right now I cannot index through image1D in original program.. there is only one value in image1D
  16. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    ok ill settle with you... i am trying to do this...

    ok ill settle with you... i am trying to do this because when i make function calls to this matlab code every once and a while i get an assertion error.. which means that the arrays are being written...
  17. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    uInt8 *image1D; *image1D = (uInt8*) malloc...

    uInt8 *image1D;
    *image1D = (uInt8*) malloc (320*240*sizeof(Int8));

    error C2371: 'image1D' : redefinition; different basic types

    what is up with this?
  18. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    ok i am getting this error from my global...

    ok i am getting this error from my global variable definition


    error C2099: initializer is not a constant


    uInt8 image1D = (uInt8*) malloc (320*240*sizeof(Int8) );
  19. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    this is a library which is called on by another...

    this is a library which is called on by another program.. which also calls on another library.. so i will try this and see what happens
  20. Thread: global array

    by chico1st
    Replies
    18
    Views
    3,853

    global array

    hey there I want to define an array globally, send it into a function, and use it as a return value.

    I have this


    image1D = (uint8*) malloc (320*240*sizeof(int8) );

    int main(void){
    ...
  21. Thread: Extern C

    by chico1st
    Replies
    9
    Views
    7,188

    I changed some things around in my : ...

    I changed some things around in my :


    #include "niimaq.h"

    // Error display function
    extern "C" __declspec(dllexport) void DisplayIMAQError(Int32 error);

    // Callbacks
    extern "C"...
  22. Thread: MATLAB error

    by chico1st
    Replies
    1
    Views
    4,920

    MATLAB error

    I got this crazy error out of my matlab code and i know you guys dont know matlab nessasarily but i have bolded the interesting part. I was just wondering if you had any insight.

    what i did was...
  23. Thread: Extern C

    by chico1st
    Replies
    9
    Views
    7,188

    i know matlab needs it for C++ dll's and i...

    i know matlab needs it for C++ dll's and i currently cannot input my library into matlab so I thought this might do the trick.
  24. Thread: Extern C

    by chico1st
    Replies
    9
    Views
    7,188

    but do i do that in the definition file or the...

    but do i do that in the definition file or the source code or both?

    I am writing the code in C and calling it in MATLAB.

    So would it be like:

    #include "niimaq.h"
    #include "stdint.h"
    //...
  25. Thread: Extern C

    by chico1st
    Replies
    9
    Views
    7,188

    Extern C

    I am making a .dll
    where do i add the extern C command?

    here is the prototype definitions of me source code, do i add it here?:

    void DisplayIMAQError(int32_t error);
    int...
Results 1 to 25 of 171
Page 1 of 7 1 2 3 4