Products
CDBF - DBF Viewer and Editor
DBF Viewer/Editor, text-mode
DBF Viewer/Editor for Linux
DBF Viewer/Editor for DOS
DBF reanimator
CDBFlite
CDBFAPI
DBF Script
CDBFinfo
CDBFShell
CDBFview
DBF to CSV Converter
CSV to DBF Converter
DBF to XLS Converter
¤ XLS to DBF Converter
DBF to MDB Converter
MDB to DBF Converter
DBF to SQL Converter
DBF to XML Converter
DBF to DBF Converter
MDB to XLS Converter
CSV to XLS Converter
DBF to HTML Converter
DBF to PDB Converter
PDB to DBF Converter
Excel Library
Access Recovery
Excel Recovery
Online Database Converter
DBF Converters' Shell
WhiteTown Software CD

XLS to DBF Converter DLL

 
////////////////////// sample1.cpp ////////////////////////////
//parameters in the command line
//
//sample1.exe source.xls c:\target\ ...
//
 
#include <windows.h>
#include <stdio.h>
 
typedef int (APIENTRY *Converter)(HWND, UINT, CHAR**);
 
int main(int argc, char* argv[])
{
	int	retval;
	HMODULE	h;
	Converter f;
 
	h = LoadLibrary("xls2dbf_d.dll");
	if (!h) retval = 200;
	else
	{
	f = (Converter)GetProcAddress(h, "XLStoDBF_Converter");
	if (!f) retval = 300;
	else	retval = f(NULL, argc, argv);
	}
	FreeLibrary(h);
 
	printf("ret = %d\n", retval);
	return retval;
}
//
////////////////////// sample1.cpp ////////////////////////////

 

 
////////////////////// sample2.cpp ////////////////////////////
//parameters in the source code
//
//sample2.exe
//
 
#include <windows.h>
#include <stdio.h>
 
typedef int (APIENTRY *Converter)(HWND, UINT, CHAR**);
 
int main(int argc, char* argv[])
{
	int	retval;
	HMODULE	h;
	Converter f;
 
	int	n=0;
	char	*params[10];
 
	params[n++]=strdup(__argv[0]);
	params[n++]=strdup("nophones.xls");
	params[n++]=strdup("c:\\tmp\\");
	params[n++]=strdup("/ansi");
	params[n++]=strdup("/overwrite=1");
 
	h = LoadLibrary("xls2dbf_d.dll");
	if (!h) retval = 200;
	else
	{
	f = (Converter)GetProcAddress(h, "XLStoDBF_Converter");
	if (!f) retval = 300;
	else	retval = f(NULL, n, params);
	}
	FreeLibrary(h);
 
	printf("ret = %d\n", retval);
	return retval;
}
//
////////////////////// sample2.cpp ////////////////////////////
Related Links
Command line
Using DLL
Video tutorials
Online demo

Copyright © WhiteTown Software, 1996-2012 | Privacy policy | Site map