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

Search:

Type: Posts; User: gfzhang

Search: Search took 0.04 seconds.

  1. Replies
    0
    Views
    964

    SSL configuration in IIS5

    Hi, All.

    I set up a test website by WinXP+IIS5+ASP.NET3.5+VB.NET
    Now, I want to set my website to be accessed only by https://192.168.11.20/... in local intranet, not http://...
    So, I create a...
  2. Replies
    1
    Views
    3,438

    How to gray out DataGridViewButtonCell?

    I put a DataGridViewButtonCell in the cell of DataGridView.
    Sometimes, I want the DataGridViewButtonCell can not be clicked and become gray,
    How I can do?

    Just like a button in Form, when I set...
  3. How can support multiple versions Excel in VS2003

    Hi, all

    I want to write an excel file in my VC program developed by VS2003.
    Now I import the excel in the header file like this:


    #import "C:\Program Files\Common Files\Microsoft...
  4. Replies
    10
    Views
    1,611

    Re: Problem with ofstream...

    It is "recommend", but not necessary.
    A good manner of coding, I think.
    Open it before using it, close it after using it.
    Otherwise, sometime in a big program, if another function want to access...
  5. Replies
    10
    Views
    1,611

    Re: Problem with ofstream...

    fouttrans.close();
    foutmaster.close();

    is enough.

    However, recommends you to use ofstream like this:


    ofstream foutmaster;
    foutmaster.open("master.data", ... );
  6. Replies
    2
    Views
    512

    Re: Hash Table help

    What is your problem?
    It didn't work?
  7. Replies
    10
    Views
    1,611

    Re: Problem with ofstream...

    The "master" which you defined is an array of struct record.
    So, if you want to print the every element of master, I think you must do it like this:
    fourmaster << master[i].name <<...
  8. Replies
    6
    Views
    1,133

    Re: How to generate a xml file in VC code?

    Thank you very much!
  9. Replies
    6
    Views
    1,133

    Re: How to generate a xml file in VC code?

    >It sounds like you are trying to build a recorder that records everything that the user does.
    Almost it is, for example, like QTP.
    But in my application, I just want to output the actions(...
  10. Replies
    6
    Views
    1,133

    Re: How to generate a xml file in VC code?

    Yes, any image format is OK.
    I just want to develop an application, it executes another target GUI application, and record the
    operations(like keyboard input, layout and so on) of the target...
  11. Replies
    6
    Views
    1,133

    How to generate a xml file in VC code?

    Hi, All

    I want to create a xml file in VC dialog application, and write something to it.
    For example, the main dialog of my application.
    How can I write the image of main dialog to the...
  12. Replies
    6
    Views
    1,127

    Re: Problem with hash_map

    Thanks to Carlos:
    I agree with you.
    In my code, the key of the hash_map is K*, and the argument of hash_map::find(..) is const key_type&.
    Replace the key_type with K*,
    that is const (K*) &,...
  13. Replies
    6
    Views
    1,127

    Re: Problem with hash_map

    Thanks to reply.
    stdext::hash_map::find is derived form stdext::_Hash<_Traits>::find
    Its definition is like this:
    //+++++++++++++++++++++++++++++++++++++++++++++++++++
    iterator find(const...
  14. Replies
    6
    Views
    1,127

    Problem with hash_map

    Hello all. I got a problem when using hash_map::find().
    My self-defined code is like this:

    //+++++++++++++++++++++++++++++++++++++++++
    #include <functional>
    #include <hash_map>

    template...
  15. Re: A problem about Call gzip by CreateProcess(.)

    I modified the code like this:

    strcpy( szCommand, "cmd.exe /c gzip -acd D:\gzip\sig.txt.gz > D:\gzip\sig.txt" );
    bRes = CreateProcess( NULL,
    ...
  16. Re: A problem about Call gzip by CreateProcess(.)

    Yes, I have recoglized it after I submit the reply:)

    But I have also try like that, It still can not decompress the file!
    The return value of createprocess is 1.

    By the way, it seems that the...
  17. Re: A problem about Call gzip by CreateProcess(.)

    To Eli,

    I have made a try follow your advice:
    The code I modified:

    strcpy( szCommand, "gzip -acd D:\\gzip\\sig.txt.gz > D:\\gzip\\sig.txt" );

    BOOL bRes = CreateProcess( "D:\\Program...
  18. Re: A problem about Call gzip by CreateProcess(.)

    Yes, I have add the path of the gunzip.exe to the environment PATH.
    The return value of createprocess() is 1.

    By the way, if the szCommand is :
    "gunzip -a D:\\test.txt.gz"
    the process works...
  19. A problem about Call gzip by CreateProcess(.)

    The code:

    strcpy( szCommand, "gunzip -ac D:\\test.txt.gz > D:\\test.txt" );
    BOOL bRes = CreateProcess( NULL, szCommand,
    NULL,
    NULL,
    TRUE,
    //DETACHED_PROCESS, ...
  20. Replies
    1
    Views
    1,207

    Re: CArchive exception: badClass!

    Then, if I use the code directly, instead of making them into a DLL, the problem will not existed.
  21. Replies
    1
    Views
    1,207

    CArchive exception: badClass!

    Hi all,

    I have created a DLL in which I defined a class whose name is ClassAA, ClassAA is derived from ClassBB which is derived from CObject.

    In the definition of ClassBB, I use...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured