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

Search:

Type: Posts; User: Zim327

Page 1 of 14 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: Consume an RSS feed using syndicationobjects

    ok, I'm not certain, but I think I'm being blocked by design.
    I found a thread that says robots.txt is blocking me from reading a feed programmatically.
    Can anyone confirm this?

    I tried putting...
  2. Consume an RSS feed using syndicationobjects

    I'm trying to consume a RSS feed using the syndicationobject. (I'm using VS 2008)
    my version is very similar to this example here:...
  3. Re: How to close an application from one of its views?

    try overriding the views OnClose function and then in it add
    PostQuitMessage(WM_CLOSE);
  4. Replies
    0
    Views
    867

    Slow or incomplete page loading

    Hi,
    First of all, I just like to say Thank you to everyone at CG. I love this web site and I use it all the time. I greatly appreciate all the guidance I've received here over the years.
    ...
  5. I need to find a better way to change thousands of computer names

    Hi all,
    We had a huge re-org and thousands of pc's need to have their names changed.
    I created 2 exe's that sort of automate the process. There are 2 exe's because the are 2 reboots in the process...
  6. Replies
    15
    Views
    28,105

    Re: How to convert CString to long?

    try atoi (ascii to int)
  7. Thread: Junky CStrings

    by Zim327
    Replies
    6
    Views
    954

    Re: Junky CStrings

    Instead of using MFC's CString class
    you can use the STL string class. Just #include <string>

    and you do something like this



    string x;
    x = " Hi there! ";
    cout << x.c_str();
  8. Thread: File i/o

    by Zim327
    Replies
    6
    Views
    850

    Re: File i/o

    each row in the txt file will contain 1 persons data, and you have to separate it all using a delimiter like a comma (,) or a pipe (|)
    each line also ends with a "\n" you can use this as the...
  9. Re: CRecordSet and stored procedure that returns a recordset

    from the msdn:
    ExecuteSQL does not return data records. If you want to operate on records, use a recordset object instead.

    so you can't use ExecuteSQL to return a recordset.
    You should use the...
  10. Thread: File i/o

    by Zim327
    Replies
    6
    Views
    850

    Re: File i/o

    you could use a database instead of a text file to store the data and then just query the db with the info the user supplied
    Or
    you could read the whole file into an array of strings (one line per...
  11. Replies
    6
    Views
    962

    Re: How I can check file for existance?

    I prefer to use GetFileAttributes to check the existence of a file.
    And cilu's absolutely correct: you should always search CG and Google well before you post. :thumb:
  12. Replies
    10
    Views
    3,986

    Re: enum domain & computers in a network

    Hi ovidiucucu, thanks for replying,

    with max_preferred_length set it NEVER returns ERROR_MORE_DATA.
    it only returns ERROR_MORE_DATA if I change the value to greater than or less than...
  13. Replies
    0
    Views
    578

    BHO to allow cookies for a web site

    Hi all,
    First of all, I assure you I need this for the good of all mankind.

    I have a satisfaction survey that employees/customers from all over the world must take.
    However, if cookies are not...
  14. Re: How can I execute another program programmaticly......

    Try this FAQ
    http://www.codeguru.com/forum/showthread.php?t=302501
  15. Replies
    10
    Views
    3,986

    Re: enum domain & computers in a network

    Hi,
    my program using NetServerEnum is not getting all of the workstations on the network the MSDN states:
    ERROR_MORE_DATA More entries are available. Specify a large enough buffer to receive all...
  16. Replies
    0
    Views
    1,303

    problem with NetRenameMachineInDomain

    I'm trying to automate the renaming of hundreds of pc's on a domain.
    I've tried using NetRenameMachineInDomain, NetJoinDomain and SetComputerNameEx.
    These functions all succeed in the debugger...
  17. Replies
    1
    Views
    1,138

    Re: SetComputerNameExA undeclared identifier

    Okay I fixed it.
    I just moved the winver definitions to the top of StdAfx.h
  18. Replies
    1
    Views
    1,138

    SetComputerNameExA undeclared identifier

    Hi,
    I can't get my compiler to see SetComputerNameEx.
    I included windows.h, kernel32.lib and I set the winver like so:


    #define _WIN32_WINNT 0x0501
    #define WINVER 0x0501

    I installed the...
  19. Replies
    4
    Views
    742

    Re: Obtain System Time

    use COleDateTime::GetCurrentTime()
    and you can Format it to display however you wish, check the msdn for the options
    create a control variable for the text box and dump the time as a string into it...
  20. Replies
    2
    Views
    644

    Re: Automatic update of database

    From SQL 2000 Enterprise Manager go to the Tools menu and select replication.
    You can also read about replication in the sql help files (Books Online).
    If you only have read access to DB1 and DB2...
  21. Replies
    16
    Views
    2,143

    Re: Why does it crash?

    because you have to use the new command before you delete it
    in other words, you created the string on the stack and then delete tries to delete str on the heap which doesn't exist there...
  22. Re: What's the ID of the cursor with an arrow and a plus sign?

    Hi I found this one, it's close to the one you want.
    HTH,
  23. Replies
    12
    Views
    2,258

    Re: SHFileOperation question

    If Unicode is enabled then you won't see the contents of any of the strings in the debugger.
    you must add the string to the watch window and then add ,su after it and then
    you can see the contents....
  24. Replies
    12
    Views
    2,258

    Re: SHFileOperation question

    wait there's more!
    to use wild cards *.* you must use this flag FOF_FILESONLY

    And you should be able to load the bstr into a CString and then use operator LPCTSTR. again unicode must be enabled.
  25. Replies
    12
    Views
    2,258

    Re: SHFileOperation question

    Unicode must be enabled

    shDelete.pFrom = (LPCTSTR)pathWild.operator BSTR( );

    or you could load the bstr into a TCHAR buf[255];

    I got these suggestions here:...
Results 1 to 25 of 327
Page 1 of 14 1 2 3 4





Click Here to Expand Forum to Full Width

Featured