wow I've never seen that before... is that a c++ thing?
Type: Posts; User: chico1st
wow I've never seen that before... is that a c++ thing?
so is
-alphaout={alpha-filename,-} the outputfile name?
How do i make it not print gibberish?
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...
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...
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,...
so that means using win32 is better than using bios.h etc... the MSDN article is very good. im enjoying it so far
This sounds pretty intense
windows xp
i have found termio.h and bios.h but i will take any advice or direction you can give
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.
...
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++){...
ooo i can just use
if (array[i] != NULL)
EDIT: oh .. nvm
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.
would that work in c?
EDIT:
lets say i had
int foo(uInt8 *passed)
uInt8 array[320*240];
passed = array;
return 0;
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?
will this return all of image1D?
right now I cannot index through image1D in original program.. there is only one value in image1D
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...
uInt8 *image1D;
*image1D = (uInt8*) malloc (320*240*sizeof(Int8));
error C2371: 'image1D' : redefinition; different basic types
what is up with this?
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) );
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
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){
...
I changed some things around in my :
#include "niimaq.h"
// Error display function
extern "C" __declspec(dllexport) void DisplayIMAQError(Int32 error);
// Callbacks
extern "C"...
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...
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.
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"
//...
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...