Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

adddsn.c File Reference


Detailed Description

DSN creation utility for Win32.

Id
adddsn.c,v 1.2 2003/10/24 16:37:39 chw Exp chw

Copyright (c) 2003 Christian Werner <chw@ch-werner.de>

See the file "license.terms" for information on usage and redistribution of this file and for a DISCLAIMER OF ALL WARRANTIES.

Definition in file adddsn.c.

#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
#include <winver.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>

Go to the source code of this file.

Functions

BOOL ProcessErrorMessages (char *name)
 Handler for ODBC installation error messages.
int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
 Main function of DSN utility.


Function Documentation

BOOL ProcessErrorMessages char *  name  )  [static]
 

Handler for ODBC installation error messages.

Parameters:
name name of API function for which to show error messages

Definition at line 32 of file adddsn.c.

Referenced by InUn(), and WinMain().

int APIENTRY WinMain HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpszCmdLine,
int  nCmdShow
 

Main function of DSN utility.

This is the Win32 GUI main entry point. It (un)installs a DSN.

Example usage:

add[sys]dsn "SQLite ODBC Driver" DSN=foobar;Database=C: rem[sys]dsn "SQLite ODBC Driver" DSN=foobar

Definition at line 66 of file adddsn.c.

References ProcessErrorMessages().


Generated on 8 Nov 2004 by doxygen.
Contact: chw@ch-werner.de