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 IamaSherpa 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: *

  1. anand102

    implementing substring in C

    actually i am looking for version of tpye : substr(str, pos1,pos1) which return me substring between pos1 and pos1 in orinignal string str. thnaks
  2. anand102

    implementing substring in C

    hi, i want to implement substr function in C for getting substring. if somebody has already done so then pls give me your code. thanks
  3. anand102

    how to handle C++ forward referencing in C

    hi i am converting C++ code in to C and trying to keep it close to c++ as much as possible. I have a class declaration in a.h as : class B ; class A { B xyz(); }; which is a case of forward referecing. i have conveerted A and B to structs. thats ok. but how to handle this forward...
  4. anand102

    OO programming in C

    hi, i am looking for tips on OO programming(C++) in C . could you pls give me some poniters on things like polymorphism,inhetiance etc. Thanks
  5. anand102

    how to convert C++ class in to C struct ??

    thanks Yogesh and Mani, so what is deal here ...should i declare function pointers also within Struct as Mani said or I should just have data members in Struct declaration and code functions out side of struct and pass pointer to structs with in function arguments ?? thanks
  6. anand102

    mapping C++ virtual function to corresponding C function

    hi, I have class A which has virtual fn xyz() and class C, class B extend class A. i am converting this C++ code into C code. how should I map the virtual function xyz() in to C bcoz in C we dont have virtual function ?? Should i copy this function xyz() into to the C programs corresponding...
  7. anand102

    how to convert C++ class in to C struct ??

    hi, I have existing C++ classes and I have to create corresponding "structs" in C for them. how do we do that: for e.g. i have one class as class Anand { private: ClassA a; public: static const char * b; Anand() { }; ~Anand() { }; virtual int getxyz() { //return...
  8. anand102

    C wrapper for C++

    that's fine. but i want the header to be visible from C compiler also. for that i was thinking about something like #if defined(C_PLUS_PLUS) class xxx { public: xxx* functionX(); }; #else...
  9. anand102

    C wrapper for C++

    thanks, but i am talking for 100% pure C code where i cant use classes. what about writng extern "C" functions ?? what is there limitations ??
  10. anand102

    C wrapper for C++

    hi, i want to write C wrappers around exisitng C++ code. any suggestions on how to do that. in what situations wrappers can be used and in what situations we should avoid writing the wrappers ? thnaks
  11. anand102

    calling C++ classes/functions from C program

    hi, i am new to this so pls pardon my mistakes, I have a client requirement which says that they want to wrap their existing C++ apis within C programs and users will access C++ functionality thru C, in essencce users are not aware of any C++ presence. now my question is how do i call C++...

Part and Inventory Search

Back
Top