rejetto forum
May 23, 2012, 11:22:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Write plugins in C: some resources  (Read 4900 times)
0 Members and 1 Guest are viewing this topic.
TC
Tireless poster
****
Offline Offline

Posts: 117


56979793
View Profile Email
« on: May 24, 2002, 06:28:13 PM »

At the address http://www.ebcorp.org/devel/&rq/ there are some docs and resources about writing C plugins for &rq 0.9+.
I think that my work can be helpful for others potential C-developers...
now some docs are in Italian; I'm working on translations in eng.
I'm also working on pluginUtils pack: I want expand it with a rich set of functions.

Greetings, TC <tc@yesis.com> - #56979793
Logged

Quando digitai in command.com la prima volta 'ls' invece di 'dir', capii cosa mi stava succendendo...
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11824


View Profile
« Reply #1 on: May 25, 2002, 09:00:59 PM »

many thanks, and keep up Smiley
Logged
Gilmour
Experienced poster
***
Offline Offline

Posts: 30


32405502
View Profile
« Reply #2 on: June 28, 2002, 02:02:59 PM »

The sample plugin doesn't work... i can't take this for example... Sad
It may be that there is a problem with the new version released?
Logged

Se le persone che parlano male di me sapessero cosa dico io di loro... parlerebbero peggio!
Jim Morrison
Vaulter
Guest
« Reply #3 on: January 09, 2004, 07:55:25 AM »

i write plugin (on VC++ 6.0)
part:

Code:
case PE_INITIALIZE:           // plugin initialization, issued only by &RQ
_irqver ver;
currpos+=readfrombuff(comm,currpos,&ver,sizeof(ver));
if(ver.api_version!=APIversion)
{
//api error
return 0;
}
int UIN;
int strlen;
char RQ_path[MAX_PATH];memset(RQ_path,0,MAX_PATH);
char user_path[MAX_PATH];memset(user_path,0,MAX_PATH);
//
currpos+=readfrombuff(comm,currpos,&strlen,sizeof(int));
currpos+=readfrombuff(comm,currpos,RQ_path,strlen);
currpos+=readfrombuff(comm,currpos,&strlen,sizeof(int));
currpos+=readfrombuff(comm,currpos,user_path,strlen);
currpos+=readfrombuff(comm,currpos,&UIN,sizeof(int));
MessageBox(0,lstrcat(lstrcat(RQ_path,"\n"),user_path),"",0);

result+=(char)PM_DATA;
result+=(BYTE*)_istring("Test plugin");
result+=(BYTE*)_int(APIversion);
break;
then i send packet:
Code:
LPSTR retpacket=(LPSTR)LocalAlloc(LPTR,result.size()+sizeof(int));
len=result.size();
memcpy(retpacket,&len,sizeof(int));
if(len)memcpy(retpacket+sizeof(int),result.c_str(),len);
return retpacket;

there is access violation of memory exeption in &RQ!!!

but i saw the packet byte by byte - all right!
what the problem?[/code]
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page Today at 12:40:39 AM
anything