Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Reading and setting Environment variables
How to ping a remote site using ICMP API calls
Creating a clipping region from the path selected into the device context of a form
Mapping and disconnecting network drives
How to view icons stored in executable files (Icon Viewer) - II
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Using File Mapping for enumerating files opened by Visual FoxPro
Displaying OS Memory Status
How to generate GUID values
How to make application automatically close all documents it opened
Reading security permissions for NTFS files and folders
Retrieving list of files on the FTP directory
Retrieving the name of the primary domain controller (PDC) and join status information
Starting an external application in VFP using WinExec
Displaying the associated icons and descriptions for files and folders
Attaching menu to a top-level form
Drawing icons associated with the VFP main window
Sending email messages with Simple MAPI
How to create non-blocking Winsock server
How to download a file from HTTP server using URL Monikers functions
How to put a vertical text scrolling on the form (a movie cast)
Converting command-line string to a set of Unicode argument strings
FindText -- the hopeless and useless Common Dialog
GDI+: how to make VFP controls visually shake and shudder
Winsock: connecting to a news server (NNTP, port 119)

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
This sample shows how to retrieve a list of newsgroups stored on a news server. The base class contains practically all methods to extend this code for reading and posting messages to a newsgroup.

The code connects to NNTP server Any other NNTP server can be used.
  Members area. Log in to view this example.
  User name:
  Forgot your password?
  Sign up for
the Membership

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
9824 bytes  
Created: 2003-02-23 10:42:07  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 88  
Listed functions:
Printer friendly API declarations
My comment:
Some useful links:
  • RFC977. Network News Transfer Protocol
  • Network News Transfer Protocol on
  • How to use Winsock Control in order to build Internet applications

    #kwd: sln_winsock.
  • Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
    User Contributed Notes: | 2006-05-15 15:39:40
    This example does not work. WS_Connect cannot find entry point in dll
    A.M. | 2006-05-15 16:11:30
    Replace line
    nResult = ws_connect(hSocket, @cBuffer, Len(cBuffer))

    DECLARE INTEGER WSAConnect IN ws2_32;
        INTEGER s, STRING @sname, INTEGER namelen,;
        INTEGER lpCallerData, INTEGER lpCalleeData,;

    nResult = WSAConnect(hSocket, @cBuffer, Len(cBuffer), 0, 0, 0, 0)

    It may work better.

    Copyright 2001-2015 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    11 sec.Function: 'WSACloseEvent'
    Function group: 'Windows Sockets 2 (Winsock)'
    27 sec.Function: 'CryptHashData'
    Function group: 'Cryptography Reference'
    59 sec.Function: 'GdipGetDpiX'
    3 day(s)Example: 'Printing Image File, programmatically set print page orientation to landscape'
     Function: 'CeOpenDatabase'
    Function group: 'Remote Application Programming (RAPI)'
     Function: 'SetFilePointerEx'
    Function group: 'File Management'
     Function: 'CloseHandle'
    Advertise here!