Skip to content

Article Writing

Discuss writing articles, add your requests for articles here, or search for ideas for a new article.

This category can be followed from the open social web via the handle article-writing@forum.codeproject.com

5.4k Topics 12.4k Posts
  • HTML Syntax Highlighting

    c++ help html question
    3
    0 Votes
    3 Posts
    2 Views
    U
    There is a very good Open Source project which do that and many other interesting things: Scintilla and SciTE by Neil Hodgson, Look at: http://www.scintilla.org Hope this help, Jran-Claude
  • have COM book+CD?

    com question learning
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • CExcelClass

    com workspace
    2
    0 Votes
    2 Posts
    4 Views
    T
    There's an article on working with excel com objects in the April 2000 edition of C/C++ Users Journal - looks like there are workbook and worksheet interfaces that would do what you need and more.
  • internet explorer history

    question database linux
    2
    0 Votes
    2 Posts
    3 Views
    M
    Look up FindFirstUrlCacheEntry() and the related functions. Here's some code for a console app that prints all history item to stdout. The history view you see in Explorer is generated by a namespace extension. #define WIN32_LEAN_AND_MEAN #include <afxwin.h> #include <tchar.h> #include <wininet.h> #include <iostream> using namespace std; int main(int argc, char* argv[]) { HANDLE hFind; BYTE byBuffer[16384]; INTERNET_CACHE_ENTRY_INFO* pInfo = (INTERNET_CACHE_ENTRY_INFO*) &byBuffer[0]; DWORD dwSize = sizeof(byBuffer); pInfo->dwStructSize = sizeof(INTERNET\_CACHE\_ENTRY\_INFO); hFind = FindFirstUrlCacheEntry ( \_T("visited:"), pInfo, &dwSize ); if ( NULL != hFind ) { do { cout << "lpstrSourceUrlName = " << pInfo->lpszSourceUrlName << endl << "Times visited = " << pInfo->dwHitRate << endl << "Last time visited = "; CTime t ( pInfo->LastAccessTime ); cout << (LPCTSTR) t.Format( "%b %d, %Y at %H:%M:%S" ) << endl << endl; dwSize = sizeof(byBuffer); } while ( FindNextUrlCacheEntry ( hFind, pInfo, &dwSize )); FindCloseUrlCache ( hFind ); } return 0; }
  • Child windows for Browsers

    com help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • ActiveX control to serialise to SVG

    com tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Design Patterns

    architecture c++ asp-net design regex
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Makro's (#define)...different Variable names

    5
    0 Votes
    5 Posts
    2 Views
    U
    Ich danke vielmals.
  • clrscr() and gotoxy() in Visual C++

    c++ question
    2
    0 Votes
    2 Posts
    2 Views
    T
    I think you'll bugcheck on 98 with an _asm int 21; Here's some code that might help: The clrscr can be had with system("cls"); The more powerful way us to get a handle to the console and use the console api calls. The MS Knowledge base has a good article on clearing the screen - Q99261 - first, you need a handle though... // with this handle, article Q99261 HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); // call a console API just to test handle CONSOLE_SCREEN_BUFFER_INFO csbi; // just to test // wow! hConsole is NULL! But this works! Go figure... GetConsoleScreenBufferInfo(hConsole, &csbi); // now we can gotoxy with SetConsoleCursorPosition COORD coord; coord.X = 0; coord.Y = 0; SetConsoleCursorPosition(hConsole, coord); That should move the cursor to the top of the screen without clearing it. See Q99261 for the clear screen.
  • ActiveX Controls

    tutorial com
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Synchronizing Access database using CDaoDatabase

    database tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • OLE-DB Access to SQL Server 7

    database sql-server com sysadmin algorithms
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • CStringArray/CStringList to Buffer...

    question
    2
    0 Votes
    2 Posts
    3 Views
    M
    Check out my article CShellFileOp - Wrapper for SHFileOperation. I convert a CStringList (I think, maybe it's an array, I haven't looked at the code in a while) to a double-null-terminated TCHAR buffer. I'm not guaranteeing that this is the most efficient, though. :) Just one way of doing it.
  • Request of patcher

    question
    6
    0 Votes
    6 Posts
    2 Views
    L
    I'll check it... and if it works good, maybe I'll write an article :-) Thank you. BTW: These API are not documented (apart in the PatchApi.h header) :-(
  • Request of patcher

    question
    6
    0 Votes
    6 Posts
    5 Views
    L
    I'll check it... and if it works good, maybe I'll write an article :-) Thank you. BTW: These API are not documented (apart in the PatchApi.h header) :-(
  • IE CommBand with Html View

    html question
    3
    0 Votes
    3 Posts
    2 Views
    S
    Can u send me this code ? My e-mail: solo@dore.miem.edu.ru
  • Redirecting console output

    c++ help question
    2
    0 Votes
    2 Posts
    2 Views
    P
    Pipes are the easy way to do it. There are many sample codes in the MSDN to show you how to. You can also take a look at the following... http://codeguru.earthweb.com/misc/redirect.shtml http://codeguru.earthweb.com/misc/RedirectOutputToPipe.shtml You need further help? get back. Regards, Paul.
  • windows string comparing alghorhitm

    help tutorial question com windows-admin
    3
    0 Votes
    3 Posts
    5 Views
    L
    oops, maybe misunderstanding i do not need how to call system string comparing function(s) but how to improve them f.e. make in-ms-excel sorting working properly (for my language) t!
  • Category Data Structure Code in C

    c++ algorithms tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Inside MAPI - or any MAPI source...

    com help learning
    3
    0 Votes
    3 Posts
    2 Views
    A
    I ca get you the complete source you need for the mapi book. Its mostly in C++ which are just wrappers around your c stuff. Do you have any interesting code ?? i like c myself ?