[OSRS-PROJ] proj.4 in VB
Alexander Weidauer
alex.weidauer at huckfinn.de
Fri Jun 27 06:54:50 EDT 2003
Hi Christopher,
May be it is sensefull to write a ocx control for the proj library?
Has anybode sutch a control in C++ because I writing in Delphi and
it seem to be wrong to use a DLL written in C set on top a API in Delphi
and write a OCX to get it for visual basic ?
Bye Alex
Christopher Pouliot schrieb:
> Hello,
>
> I have downloaded the proj.dll file (v4.4.6) and am trying
> unsuccessfully to use it in Visual Basic. The simple initialization
> code below causes a fatal error in VB and crashes the program. My
> experience working with external DLLs is limited so any assistance or
> sample VB code would be greatly appreciated.
>
> Private Declare Function pj_init Lib "c:\software\proj\bin\proj.dll"
> (ByVal argc As Integer, ByRef argv() As String) As String
>
> Private Sub Command1_Click()
> Dim anArr(2) As String
> Dim aResponse As String
>
> anArr(0) = "proj=utm"
> anArr(1) = "zone=11"
> anArr(2) = "ellps=GRS80"
>
> aResponse = pj_init(3, anArr)
> End Sub
>
>
> Thank you,
>
> Chris
> ----------------------------------------
> PROJ.4 Discussion List
> See http://www.remotesensing.org/proj for subscription, unsubscription
> and other information.
>
----------------------------------------
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.
More information about the Proj
mailing list