Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to enumerate, add and delete shares on the local computer (WinNT/XP)
How to load a user profile
How to prevent users from accessing the Windows Desktop and from switching to other applications
Adding a background image to VFP report (VFP9, ReportListener)
Splash Screen for the VFP application
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
How to put a vertical text scrolling on the form (a movie cast)
Passing data records between VFP applications via the Clipboard
Form Magnifier
Using Month Calendar Control (VFP9, Comctl32.dll)
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Placing On-screen Alert on top of all windows
Accessing Adobe Reader 7.0 main menu from VFP application
How to change the name and the size of the font in the MessageBox dialog
Switching between keyboard layouts
Using Font and Text functions
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Pocket PC: custom RAPI class for operating with the System Registry
Enumerating printer drivers installed
How to display the Properties dialog box for a file (ShellExecuteEx)
How to print picture stored in enhanced-format metafile (*.emf)
Using EnumPrinters function to enumerate locally installed printers
Creating irregularly shaped FoxPro form using transparency color key
GDI+: Creating thumbnails to preview images in a directory
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: 125  
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-2016 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.6.33), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    1.2 min.Function: 'MonitorFromWindow'
    12.39 hrs.Example: 'Displaying the main Dial-Up Networking dialog box'
     Example: 'How to make application automatically close all documents it opened'
    12.41 hrs.Function: 'DeleteObject'
    12.45 hrs.Example: 'Retrieving the state of your Internet connection'
    1 day(s)Solution: 'ContextMenu ActiveX Control'
    2 day(s)Function: 'StartService'
    Function group: 'Shell Lightweight Utility APIs -- misc. functions'
    Function group: 'Error Handling'
     Example: 'How to retrieve adapter information for the local computer (including MAC address)'
    Advertise here!