Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: c/c++ differences


  • Subject: Re: lug-bg: c/c++ differences
  • From: firedust@email.domain.hidden (Stanislav Lechev [AngelFire])
  • Date: Fri, 4 Jul 2003 15:07:42 +0300


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 04 July 2003 13:00, Stratsimir Kolchevski wrote:
<em class="quotelev1">>
<em class="quotelev1">> zashto ne pazish masiv s pointeri kum funktsiite ti
<em class="quotelev1">> naprimer:
<em class="quotelev1">>
<em class="quotelev1">> typedef struct _funcs {
<em class="quotelev1">> 	char *fname; //imeto na funktsiata
<em class="quotelev1">> 	void (*handler)(); //pointer kum neia
<em class="quotelev1">> } funcs;
<em class="quotelev1">>
towa sym go naprawil no za da izwadq pointer-a na f-ciqta mi trqbwa pyrwo 
imeto i
a imenno nego neznam :)

   plugins->main = (InitPluginHandler)dlsym(plugins->handle, PLUGIN_FUNC_PREF 
"plugin_main" PLUGIN_FUNC_SUFF);

eto go reda ot kojto wadq pointera na funkciqta
no za celta kakto zabelqzwash mi trqbwa imeto plugin_main
i syotwetnite DEFINE-s sys prefix-a i suffix-a :)))

<p><em class="quotelev1">> sled tova si pravish svurzan spisak s tip na dannite "funcs",
<em class="quotelev1">> i vseki plugin, koito si compiliral da si dobavia sam funktsiite
<em class="quotelev1">> kum tozi spisak. taka shte imash dinamichen spisak s imenata na vsichki
<em class="quotelev1">> funktsii, koito imash i suotvetnite ukazateli kum tiah.
<em class="quotelev1">>
<em class="quotelev1">> do kolkoto si spomniam PHP izpolzvaha neshto takova za da zarejdat
<em class="quotelev1">> modulite.
imenno taka e naprawena programata mi ...
a i ne wivdam drug razumen nachin da si naprawish 
plugin based programa pri polovenie che broq na pluginite
winagi e dinamichen :)
shtesh neshtesh si prawish takawa struktora w koqto da dyrvish
imena, handleri i kwo li oshte ne ...

10x za answera :)

- -- 
- -=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-
  Regards,                                            AngelFire  
      Stanislav Lechev                    <firedust_at_vega.bg>     
     PGP Key: http://firedust.vega.bg/pgp/StanislavLechev.asc    
   Vega Internet Service Provider (tm)  --  http://www.vega.bg   
- -=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-

<p>-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/BW4O8RPXBhiMqewRAsFUAJ9dqz7dssk13HbV6NWPTWGFCdZPVgCfRnCi
3SKG/aYSaMIsS2gb9toumjg=
=VeUG
-----END PGP SIGNATURE-----
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.