gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MS VC6.0 GNOKII DLL for Windows platform


From: Marcus Godehardt
Subject: MS VC6.0 GNOKII DLL for Windows platform
Date: Sun, 9 Feb 2003 08:25:01 +0100

Here is my patch list for gnokii, i created a real native DLL from gnokii
sources. I got may warnings and used #pragma warning to disable them. Most
of them are conversion warnings like unsigned/signed mismatch or calling a
function with a int as parameter when u need a short. People should care
more about those problems, but the biggest from was the snprintf thing and i
made a patch for it, that snprintf no prototype found assuming return type
int can lead to serious problems !

The following files are new ( i dunno how i should post it here so i do in
plain text ). Please remove gnokii.dsw and gnokii.dsp those
files were a little buggy and i replaced them 100%. Config.1 was removed and
replaced by config.h ( these file must be copied to include
dir when u compile under Win32 ). At the moment only Debug Mode is working
do not try Release. Also copy gnokiirc to gnokii_vc6 dir when
u try to execute it. When u compile dllgnokii subproject it will copy
gnokii.dll to gnokii_vc6 dir ( DLL names must be 8.3 in Windows )

Ok next part comes in next posting it will contain modifications i made to
gnokii to get it compiled with this projects files, if u have any problems
with these project files mail me please.

===================================================================
RCS file: /cvsroot/gnokii/gnokii/win32/gnokii_vc6/config.1
REMOVED
===================================================================
RCS file: /cvsroot/gnokii/gnokii/win32/gnokii_vc6/config.h
NEW FILE
/*

  $Id: config1,v 1.3 2002/08/28 15:53:12 pkot Exp $

  G N O K I I

  A Linux/Unix toolset and driver for Nokia mobile phones.

  Copyright (C) 1999, 2000 Hugh Blemings & Pavel Janík ml.

  Released under the terms of the GNU GPL, see file COPYING for more
details.

*/

/* DO EDIT MANUALLY !!! This is not auto generated. */
#undef VERSION
#define VERSION "0.5.0pre6"

/* Define if you have the following headers */
#undef HAVE_UNISTD_H
#define HAVE_STRING_H 1
#undef HAVE_STRINGS_H
#define HAVE_CTYPE_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STDARG_H 1

/* Define if your compiler supports long long */
#undef HAVE_LONG_LONG

/* Define if your compiler supports long double */
#undef HAVE_LONG_DOUBLE

/* Define if you have timersub() */
#undef HAVE_TIMEOPS

/* Define if you have gettimeofday() */
#undef HAVE_GETTIMEOFDAY

/* Define if you have tm_gmtoff field in tm structure */
#undef HAVE_TM_GMTON

/* Define if you have cfsetspeed, cfsetispeed, cfsetospeed, c_ispeed and
c_ospeed in struct termios */
#undef HAVE_CFSETSPEED
#undef HAVE_CFSETOSPEED
#undef HAVE_TERMIOS_CSPEED

/* Define both if you have ISO C99 compliant snprintf */
#define HAVE_SNPRINTF
#undef HAVE_C99_SNPRINTF

/* Define both if you have ISO C99 compliant vsnprintf */
#define HAVE_VSNPRINTF 1
#undef HAVE_C99_VSNPRINTF

/* Define if you have asprintf */
#define HAVE_ASPRINTF 1

/* Define if you have vasprintf */
#define HAVE_VASPRINTF 1

/* Define if you have strsep */
#undef HAVE_STRSEP

/* Define debug level */
#undef DEBUG
#undef XDEBUG
#undef RLP_DEBUG

/* Define debug level */
#ifdef _DEBUG
#   define      DEBUG
#endif

/* Decide if you want security options enabled */
#define SECURITY

/* Define if you have XPM components */
#undef XPM

/* Define if you want NLS */
#undef ENABLE_NLS

/* Define if you want to use Unix98 PTYs */
#undef USE_UNIX98PTYS

/* Define if struct msghdr has msg_control field */
#undef HAVE_MSGHDR_MSG_CONTROL

/* FIXME: Disable some odd warnings, comment these lines if u wanna fix the
bad code lines */
#pragma warning(disable : 4244) // conversion from 'int ' to 'float ',
possible loss of data
#pragma warning(disable : 4761) // integral size mismatch in argument;
conversion supplied
#pragma warning(disable : 4018) // signed/unsigned mismatch
#pragma warning(disable : 4305) // truncation from 'const int ' to 'char '
===================================================================
RCS file: /cvsroot/gnokii/gnokii/win32/gnokii_vc6/gnokii.dsw
NEW FILE
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!

############################################################################
###

Project: "dllgnokii"=.\dllgnokii\dllgnokii.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

############################################################################
###

Project: "gnokii"=.\gnokii.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

############################################################################
###

Global:

Package=<5>
{{{
}}}

Package=<3>
{{{
}}}

############################################################################
###
===================================================================
RCS file: /cvsroot/gnokii/gnokii/win32/gnokii_vc6/gnokii.dsp
NEW FILE
# Microsoft Developer Studio Project File - Name="gnokii" - Package
Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Console Application" 0x0103

CFG=gnokii - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "gnokii.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "gnokii.mak" CFG="gnokii - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "gnokii - Win32 Release" (based on "Win32 (x86) Console
Application")
!MESSAGE "gnokii - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE

# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe

!IF  "$(CFG)" == "gnokii - Win32 Release"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D
"_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D
"_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x407 /d "NDEBUG"
# ADD RSC /l 0x407 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib  kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib /nologo /subsystem:console /machine:I386

!ELSEIF  "$(CFG)" == "gnokii - Win32 Debug"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "_MBCS" /YX /FD /GZ  /c
# ADD CPP /nologo /MDd /W3 /Gm- /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "_MBCS" /FD /GZ  /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x407 /d "_DEBUG"
# ADD RSC /l 0x407 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib  kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386
/pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386
/pdbtype:sept

!ENDIF

# Begin Target

# Name "gnokii - Win32 Release"
# Name "gnokii - Win32 Debug"
# Begin Group "Source Files"

# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File

SOURCE=..\..\common\compat.c
# End Source File
# Begin Source File

SOURCE=..\..\getopt\win32\getopt.c
# End Source File
# Begin Source File

SOURCE=..\..\gnokii\gnokii.c
# End Source File
# End Group
# End Target
# End Project
===================================================================
RCS file: /cvsroot/gnokii/gnokii/win32/gnokii_vc6/dllgnokii/dllgnokii.dsp
NEW FILE
# Microsoft Developer Studio Project File - Name="dllgnokii" - Package
Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102

CFG=dllgnokii - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "dllgnokii.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "dllgnokii.mak" CFG="dllgnokii - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "dllgnokii - Win32 Release" (based on "Win32 (x86) Dynamic-Link
Library")
!MESSAGE "dllgnokii - Win32 Debug" (based on "Win32 (x86) Dynamic-Link
Library")
!MESSAGE

# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe

!IF  "$(CFG)" == "dllgnokii - Win32 Release"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"
/D "_MBCS" /D "_USRDLL" /D "DLLGNOKII_EXPORTS" /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D
"_MBCS" /D "_USRDLL" /D "DLLGNOKII_EXPORTS" /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x407 /d "NDEBUG"
# ADD RSC /l 0x407 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib /nologo /dll /machine:I386

!ELSEIF  "$(CFG)" == "dllgnokii - Win32 Debug"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D
"_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLGNOKII_EXPORTS" /YX /FD /GZ  /c
# ADD CPP /nologo /MDd /W3 /Gm- /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D
"_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GNOKIIDLL_EXPORTS" /FD /GZ  /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x407 /d "_DEBUG"
# ADD RSC /l 0x407 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib /nologo /dll /incremental:no /debug /machine:I386
/out:"Debug/gnokii.dll" /pdbtype:sept

!ENDIF

# Begin Target

# Name "dllgnokii - Win32 Release"
# Name "dllgnokii - Win32 Debug"
# Begin Group "Source Files"

# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File

SOURCE=..\..\..\common\phones\atbosch.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\links\atbus.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\ateric.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\atgen.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\atnok.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\atsie.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\links\cbus.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\cfgreader.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\compat.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\dc2711.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\device.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\fake.c
# End Source File
# Begin Source File

SOURCE="..\..\..\common\links\fbus-3110.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\links\fbus-phonet.c"
# End Source File
# Begin Source File

SOURCE=..\..\..\common\links\fbus.c
# End Source File
# Begin Source File

SOURCE=..\..\..\common\phones\generic.c
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-api.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-bitmaps.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-call.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-common.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-encoding.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-error.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-filetypes.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-networks.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-ringtones.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-sms.c"
# End Source File
# Begin Source File

SOURCE="..\..\..\common\gsm-statemachine.c"
# End Source File
# End Group
# End Target
# End Project
===================================================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]