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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ralphtan

  1. ralphtan

    adding new algo or function

    Can I add my own algo or function into PSP7 myself?
  2. ralphtan

    #define FNAME

    Thanks guys.
  3. ralphtan

    #define FNAME

    Hi, recently I encounter some of my ex-colleagues codes that use this: my question is what is the usage of #define FNAME "ABC" in this case? Thanks. /********/ #define FNAME "ABC" void ABC(int a, float b){ ... } #undef FNAME /*********/
  4. ralphtan

    rteurning control...

    I have a programming which has this process.. a command button is depressed and a ".dll" process is invoked. the ".dll" process will communicate with a hardware and monitor its status. However, the button is "dim" and the program is to be "hanged" but...
  5. ralphtan

    vectorised bilinear operation

    I have a large 2-d arrays which i need to perform biliear interpolation. Is there a way to vectorised the computation?
  6. ralphtan

    type conversion

    Hi, if I have a char ptr with data and I want to convert to float, how can I do it? eg char* data="10000"; float F; F = *data; /* this way */
  7. ralphtan

    Q: type cast

    Anyone know how can I perfrom a type cast where float ptr; short ptr2; ... ptr2 = ptr; can I do this way? if not, what is the proper way to do it? Thanks
  8. ralphtan

    A question here... Can I dynamicall

    Thanks guys. Just another qustion... how can i pass pointer into a function by refernce? say... int* ptr; g(ptr); /* this way? */
  9. ralphtan

    Display image

    Hi all, if I have my own image format, how can i display it using VB? What the object should I use? Thanks.
  10. ralphtan

    A question here... Can I dynamicall

    I still got error... /***********/ #include <math.h> #include <stdlib.h> #include <stdio.h> typedef struct{ int *a; int len; } vect; int mcalc(vect *ptr); int main(){ vect data; data.len = 10; mcalc(&data); return 0; } int mcalc(vect *ptr){ int x=0...
  11. ralphtan

    A question here... Can I dynamicall

    Hi, I have used that. But there is compiling error. My ideas is to have a struct say... typedef struct{ int len; int *ptr; } vect; void main(){ vect a; /*** allocate memory ***/ vect_allocate(a); ... ... free (a.ptr); } void vect_allocate(vect a){ a.ptr =...
  12. ralphtan

    A question here... Can I dynamicall

    A question here... Can I dynamically allocate memory to a pointer in main() by calling a function that do allocation of memory. eg codes: /*******************/ #include <math.h> #include <stdlib.h> #include <stdio.h> int mcalc(int* vect); int main(){ int* ptr; int i...
  13. ralphtan

    HELP: Displaying an Image

    My image file is a just a binaries files. Can I just do that as well... using the loadPicture function? The X and Y dimension is in another file. The bnaries file contain only values of the intensity.
  14. ralphtan

    HELP: Displaying an Image

    Anyone knows how to display an image using VB6? The image data are in gray level with x and y dimension. Thanks.
  15. ralphtan

    HELP: Network Bridge

    Anyone can teach me on what is a network bridge? And how can I implement it using a cisco router 2620?

Part and Inventory Search

Back
Top