The mydsn.dll should be used to build and remove 
DSN registry file for the MyODBC driver on Coldfusion
Applications.

To build the DLL you need VC++ 6.0 and set up the C++
environment for the compiler locates the CFAPI header file, cfx.h.
Then add the include path for your environment, like this:

\cfusion\cfx\include
 
To use the mydsn.dll you need to use the CFX Coldfusion administrator
to registry the custom tag as CFX_MYDSN.

You have two functions: ADD to adding an DSN and the REMOVE to remove
the DSN.

To add you use the following syntax:

<CFX_MYDSN ACTION="ADD" 
DSN="DSN=DSNname" SERVER="SERVER=ServerNameOrIPnumber"
DATABASE="DATABASE=DBname" USERNAME="UID=UserName" 
PASSWORD="PWD=UserPassword" PORT="PORT=3307"
OPTION="OPTION=12">

Notice that the Request OPTION is all the flags for MyODBC, in
the sample is showing two flags: Trace MyODBC (4) and Allow Big
Results (8) then 4+8 = 12. Then is this way you can select all 
the MyODBC flags using the table below:

FLAG_FIELD_LENGTH	 	1 // field_length instead of max_length
FLAG_FOUND_ROWS 		2 // Access wants can't handle affected_rows
FLAG_DEBUG 			4 // Put a debug log on C:\myodbc.log
FLAG_BIG_PACKETS 		8 // Allow BIG packets.
FLAG_NO_PROMPT 		16 // Don't prompt on connection even if driver request it
FLAG_OLD_ODBC_PROG 		32 // The program require ODBC 1.0 syntax
FLAG_NO_SCHEMA 		64
FLAG_NO_DEFAULT_CURSOR 	128
FLAG_NO_LOCALE 		256
FLAG_PAD_SPACE 		512 // Pad CHAR:s with space to max length.
FLAG_FULL_COLUMN_NAMES 	1024 // Extends SQLDescribeCol
FLAG_COMPRESSED_PROTO	 2048 // Use compressed protocol
FLAG_IGNORE_SPACE 		4096
FLAG_NAMED_PIPE 		8192
FLAG_NO_BIGINT 			16384
FLAG_NO_CATALOG 		32768
FLAG_USE_MYCNF 		65536 // Read my.cnf at start
FLAG_SAFE 			131072 // Try to be as safe as possible

To remove an DSN you should use:

<CFX_MYDSN ACTION="REMOVE" 
DSN="DSN=DSNname">

To work properly your environment needs the MDAC 2.0 or above. 

  
