dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Xiaolei Shang

Page 1 of 8 1 2 3 4

Search: Search took 0.32 seconds.

  1. Re: How to know the member varibles/functions types in a class?

    That is really cool. thank you very much. I will have a go for it.
  2. How to know the member varibles/functions types in a class?

    Hi all:

    I want to create a template. In the template, it should be able to tell the public member functions' types of the passed class.

    For example:
    If I defined a custom class


    class...
  3. Replies
    11
    Views
    1,295

    Re: problem for defining template class

    Sorry for the late response. Thank you all. All your suggestions are valueable for me. Based on your suggestions, I figured out the solution like the following:


    struct value_tag {};
    struct...
  4. Replies
    11
    Views
    1,295

    Re: problem for defining template class

    Hi Paul:

    Thank you very much for the detailed explanation. I really appreciate for this. I also get some idea about this.

    I notice that in your main() function, you tell the template to use...
  5. Replies
    11
    Views
    1,295

    Re: problem for defining template class

    Thank you D_Drmmr. But I don't quite get your idea. In your first option, when you say "overloading the member function", do you mean I may do following like normal class overloading functions?

    ...
  6. Replies
    11
    Views
    1,295

    problem for defining template class

    Hi all:

    I tried to define a template class which contains a member function. This member function has an argument whose type is the typename T.


    template <typename T1>
    class A
    {
    public:
    ...
  7. Re: How to know a function/varible name of a class at outside the class?

    Right. Let me make a bigger picture.

    I have quite many properties class, like legendProperties class. Each class has a few member variables. For each member variable, I need to set a unique Id,...
  8. Re: How to know a function/varible name of a class at outside the class?

    Thank you for the replying.

    What I really mean is: once I get the name of the function, I will use it to create a id to refer the corresponding variables in the class. Still taking the above...
  9. How to know a function/varible name of a class at outside the class?

    Hi all:

    After I define an object of a class, is there a function/method to know the function names in the class when I use the object?

    For example:


    class AClass
    {
    public:
  10. Replies
    3
    Views
    622

    Re: "Impossible case" happening, why?

    Obviously, you did not use #ifdef LIVEDEBUG and #endif to cover the line
    liveAssert(thelib, "How did I get a callback with no library?");
    where you called the variable "thelib" which depends on...
  11. Replies
    6
    Views
    622

    Re: Is this possible?

    You may overload operator "||". But it is not recommanded.
  12. Re: Does someone help me to corect my ultoa function

    Thank you for pointing out the problem, Paul. I solved the problem. Thank you guys very much.
  13. Re: Does someone help me to corect my ultoa function

    My current codes as this:

    void myultoa( unsigned long l, char* pStr, int base)
    {
    char tempUse[1];
    unsigned long remainer;
    if(l<base)
    {
    sprintf(tempUse, "%1d", l);...
  14. Re: Does someone help me to corect my ultoa function

    Thank you very much. I changed it to %1l now. The runtime error was solved. However, there is no value is printed out from the pointer pStr. Any ideas? Thank you.
  15. Does someone help me to corect my ultoa function

    Hi guys:

    I want to write the function ultoa(unsigned long l, char* pStr, int base), which is to convert any unsigned long number to string of base "base". The code that I wrote as following:
    void...
  16. Replies
    5
    Views
    1,320

    Re: How to convert int to bit?

    Thank you very much.

    I have another question: if I want to realise an integer +1 without using + or -, only using bitwise operators, how can I do that? Or some ideas?

    Thank you very much.
  17. Replies
    5
    Views
    1,320

    How to convert int to bit?

    Hi guys:

    I wan to do do calculation using binary. So I have to convert all integer numbers to bits. How can I realise that?
    For example:
    int Integer1=5, Integer2=3;
    To realise...
  18. Replies
    11
    Views
    1,401

    Re: Problem with getline

    Does your file name m_strPCA containing a correct extension?
  19. Replies
    2
    Views
    944

    convert **char to *char[]

    Hi all:

    There is a function which only can use the argument as *char[].( just like the argument "argv" in main function: main(int argc, char* argv[])).
    I tried to defined a double pointer **char...
  20. Replies
    5
    Views
    831

    Re: A strange compiling error

    Does someone else meet the problem?
  21. Replies
    5
    Views
    831

    Re: A strange compiling error

    I used OPC and Delta3D. So my program depends on many files. Even though I give you my codes, there must be a lot of errors when you compile it. But I still can try to do that later.

    To JVene:...
  22. Replies
    5
    Views
    831

    A strange compiling error

    Dear all:

    When I do a program, I meet a very strange internal compiling error. It said:
    c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MsXml.h(9594) : fatal error...
  23. Replies
    1
    Views
    5,962

    OPC Server source

    Hi all:

    I want to apply OPC to access a program which is only an executable program and can be accessed through OPC. Does anyone know any OPC source code can be a OPC server to be used to access...
  24. Re: how to cut off IISC codes at the end of a string

    Is it possible to have an example? Thank you.
  25. how to cut off IISC codes at the end of a string

    Hi all:

    I get a string as shown below. How can I cut off IISC codes and only keep the valid text through using string methods.
    Thank you very much.

    {"mycodes屯屯屯屯屯?}
Results 1 to 25 of 200
Page 1 of 8 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)