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

Search:

Type: Posts; User: turgenev

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Re: Why are there so many complie warning when I use STL class such as map?

    It works. Thanks a lot!
  2. Why are there so many complie warning when I use STL class such as map?

    When I use STL class (for example, map), there are always a lot of complie warning. They have NO relation with my program, for example, the following compile warning.

    "C:\program files\microsoft...
  3. Replies
    5
    Views
    792

    Re: Can design pattern solve this problem?

    Suppose a more complicated case:

    class SimpleGA
    {
    void Step();
    virtual bool done() = 0;
    virtual int ObjectiveFun() = 0;
    }

    class SteadyStateGA
  4. Replies
    5
    Views
    792

    Can design pattern solve this problem?

    I developed two classes, which represents two kinds of algorithm, like the following:

    class SimpleGA
    {
    void Step();
    virtual int ObjectiveFun() = 0;
    }

    class SteadyStateGA
    {
  5. Re: Which API can be used to draw circle rotated in 3-dimension?

    Suppose the circle rotates around X-axis for 30 degree, then rotates around Y-axis for 45 degree, then rotates around Z-axis for 75 degree. VC can NOT provide API to draw an ellipse whihc reflects...
  6. Re: Which API can be used to draw circle rotated in 3-dimension?

    Do you mean VC can NOT implement rotation in 3D space?
  7. Which API can be used to draw circle rotated in 3-dimension?

    I draw a circle in the screen. After I rotate this circle around X-axis or Y-axis (in 3-dimension), it will be an ellipse in the screen. Does VC provide API to drawn such kind of circle? For...
  8. Does VC have a function to let user input text in a message box?

    In VB, we have a function named InputBox() to let user input text in a message box. Does VC have the corresponding function? Thanks.
  9. Re: How to make one button in the dialog invisible?

    Thanks a lot!
  10. How to make one button in the dialog invisible?

    There are three buttons in the dialog. In the runtime, I want to make one of them invisible when some codition is met, and visible again when other condition is met. But I can NOT find a member...
  11. Replies
    5
    Views
    2,441

    Re: How to get IP address by host name

    >>For IP address searches, the machine will first look in the local "hosts" file. If it >>can't find it there, it will query the DNS server for the address.

    You are quite right. What I want to do...
  12. Replies
    5
    Views
    2,441

    Re: How to get IP address by host name

    Actually, it is quite possible that IP address of host name is wrong in hosts file. For example, IP address of host A is saved in hosts file previously, then host A changes IP address. Now IP...
  13. Replies
    5
    Views
    2,441

    How to get IP address by host name

    Normally API gethostbyname() can get IP address by host name. But this API has a serious problem: it retrieves IP address from file WINDOWS\system32\drivers\etc\hosts firstly. It will search...
  14. Re: How to debug ISAPI extension program and service program?

    nobody knows the solution?
  15. How to debug ISAPI extension program and service program?

    I use Visual C++ 6.0 to write an ISAPI extension program and a service program. There are some bugs in them, but I don't know how to debug such kind of program. I want to set a break point in the...
  16. How to watch string with UNICODE in Debug Window?

    Here is my program. Program arguments is "test".

    #include <tchar.h>

    int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
    {
    for(int i=1; i<argc; i++){
    _tprintf(_T("%s"), argv[i]);
    }
  17. How to step into the function of parent class?

    I am trying to dubug a program. I have the source code of both parent class and child class, but they are in different Workspace. I press F10 to follow the execution flow, and when I meet a...
  18. I see. Thank you very much.

    I see. Thank you very much.
  19. ClassA.h template class...

    ClassA.h

    template <class T, int n> class ClassA
    {
    public:
    ClassA() {size = 0; }
    virtual ~ClassA() {}
    void Insert(T x);

    private:
  20. Help: template causes unresolved external symbol error

    I want to use template in my program.

    First, I define a class.

    template <class T, int n> class ClassA
    {
    public:
    ClassA() {size = 0; }
    virtual ~ClassA() {}
    void Insert(T x);
  21. Sure, we can ignore the error. But isn't there a...

    Sure, we can ignore the error. But isn't there a method to detect whether the user close the Word doc not not?
  22. No, what I mean is how to know whether the user...

    No, what I mean is how to know whether the user close the Word doc or not. You see, in the Command1_Click() event I use automation to open the Word doc. After the user read it, he may close the...
  23. When use Automation to open Word file, how to know whether the user close the file?

    I use following code to open Word file:

    Dim objWD As Word.Application
    Set objWD = CreateObject("Word.Application")
    objWD.Visible = True
    objWD.Documents.Open FileName, , True

    Then use...
  24. Thanks! I just want to know how many lines my...

    Thanks!
    I just want to know how many lines my code has:)
  25. How to know the current line number of the code?

    Sometimes when I am writing the code, I want to know the current line number. How to make the Visuall Basic editor show the line number? Thanks.
Results 1 to 25 of 58
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured