🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #345374

Re: Raspberry/Lazarus/FTDI - prośba o pomoc

#345374
From: Roman Tyczka
Date: Wed, 16 Nov 2016 13:03
21 lines
1845 bytes
On Wed, 16 Nov 2016 01:30:24 -0800 (PST), stchebel@gmail.com wrote:

>>  > a) W prototypie funkcji FT_Open mamy : External 'ftd2xx.so'
>>  > b) W Button1.Click, w ogóle nie wywołuję funkcji FT_Open i FT_Close

> Sytuacja jest taka, że wystarczy by prototyp funkcji był zadeklarowany:
> function FT_Open(PVDevice:Integer; ftHandle:Pointer ) : integer ; stdcall ; External 'ftd2xx.dll' name 'FT_Open'; 
> 
> i już forma się nie otwiera. Niezależnie czy w dalszej części programu jest polecenie wywołania tej funkcji czy nie.

Skoro w raspbianie używasz nie dllek (dynamic link library, to stricte 
windowsiany patent) tylko plików so (shared objects - to patent linuxowy) 
to powinieneś mieć deklarację:

function FT_Open(PVDevice:Integer; ftHandle:Pointer ) : integer ; stdcall ; 
External 'ftd2xx.so' name 'FT_Open'; 


-- 
pozdrawiam
Roman Tyczka
Technical Details
Message-ID: <1f64va96xhp2i.dlg@tyczka.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <0ab4624c-e38d-40b6-9d07-2f655cd846c3@googlegroups.com> <o0h2cf$toj$1@portraits.wsisiz.edu.pl> <o0h806$5vs$1@portraits.wsisiz.edu.pl> <34545a40-f879-4692-8d68-de3ff3a45c53@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Roman Tyczka <noemail@because.no>
Newsgroups: pl.comp.lang.delphi
Subject: Re: Raspberry/Lazarus/FTDI - prośba o pomoc
Date: Wed, 16 Nov 2016 14:03:36 +0100
Organization: ATMAN - ATM S.A.
Lines: 21
Sender: romek@tyczka.no.found
Message-ID: <1f64va96xhp2i.dlg@tyczka.com>
References: <0ab4624c-e38d-40b6-9d07-2f655cd846c3@googlegroups.com> <o0h2cf$toj$1@portraits.wsisiz.edu.pl> <o0h806$5vs$1@portraits.wsisiz.edu.pl> <34545a40-f879-4692-8d68-de3ff3a45c53@googlegroups.com>
NNTP-Posting-Host: 94.75.90.2
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1479301417 9849 94.75.90.2 (16 Nov 2016 13:03:37 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 16 Nov 2016 13:03:37 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.84
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit