How do i install .bprc , .oprc?
Hi i got a update to z22 that enable networking but i don´t know how to install it. it comes as .bprc and .oprc How do i do that? thanx -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Network prefs on Z22
Hi, How can i install this? they are .oprc i tryed to rename to .prc and isntall..but i go not network prefs Thank you -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to prevent Treo 650 from closing my app when ir recive a phone call?
i have a huge app ruing on Treo 650, and evertime it recives a phone call, my app closes and everthing the user was doing is lost, he gota get in my app again and stat over. is there a workaround? saving everthing on shutdown ll be too much work. gota change too many things. thanx a lot -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problem Creatign a PRC on Tungsten E2
Hi, I´m having a problem with a aplication hat reads a prc from a server and mount it on the device. the prob it that when i soft reset all prcs i tranfered with my app disapear from the device. But the pdbs i mount the same way don´t. whats wrong? the prcs work fine until i soft reset the device thanx. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Tungsten E2 Memory
Hi, a client is complaning about some freezes of our aplication in Tung E2 Do i have to change anything because of the NVFS memory? i saw something about sorting the databases gives a error.. but the client say it just freezes. and we are not sorting any database. Thanx -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Reciving Data in a Socket
Legal! sera q msotra qualquer pais? haha mudou de assunto hein lol :P Jeffry Loucks escreveu: Alexandre, Use socket notices. 1. Register to receive a notification, either procedural or app launch. 2. Prepare a socket to do what you need to do (stream or datagram). 3. Prime the socket to send a socket notice (notifications are the only type supported by OS5). 4. When data arrives (or an error or shutdown), a deferred notification will be sent by NetLib. 5. When you receive the notification, service the socket and then re-prime the socket (one notice per prime). A socket can be primed to send a notice on any combination of data receipt, inbound connect, error or shutdown. Unfortunately, outbound connect was overlooked. NOTES: 1. Socket notices use a deferred notification, meaning the notification will not be broadcast until the foreground app calls EvtGetEvent(). 2. Socket notices are one-shot and must be reset after each trigger. You can do it in the notification handler, if it is convenient. 3. The option argument passed in NetLibSocketOptionSet() in this case is the address of a void pointer which points to the NetSocketNoticeType. Kind of confusing. 4. There is sample socket notice code provided in the knowledge base, but it is not very clear. Try something like the following to prime the socket to send a notice: // Refer to NetMgr.h for socket notice options. Int16 AsyncSocketSetup(SOCKET sock, UInt32 condition) { NetSocketNoticeType notice; void *option; notice.condition = condition; // some combination of conditions from NetMgr.h notice.type = netSocketNoticeNotify; notice.notice.notify.notifyType = ; option = ¬ice; // note the address of the pointer is used if (NetLibSocketOptionSet( NetLibRefnum, sock, netSocketOptLevelSocket, netSocketOptSockNotice, &option, sizeof(option), NetLibTimeout, &NetLibErrno)) { TRACE("AsyncSocketSetup() cannot set socket notice: %x",NetLibErrno); return -1; } return 0; } Hope this helps. Jeff Jeff Loucks Work 425-284-1128 [EMAIL PROTECTED] Home 253-851-8908 [EMAIL PROTECTED] Mobile 253-691-8812 -Original Message----- From: Alexandre Barreto [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 5:38 AM To: Palm Developer Forum Subject: Re: Reciving Data in a Socket My friend Regis said i was a litle confusing in my post. what i want to know is How do I specify a function to be called automaticaly when there is data received on a socket (a call back or a notification) thanx Alexandre Barreto escreveu: Hi, I need to call a function evertime there is data on a socket. i can´t block my program wating for data there. i need the user to do other stuffs..and when data arrives this function read the socket and do stuffs. how can i do that? thank you, Alexandre -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Reciving Data in a Socket
Thank you very much Jeff. I ll try That! thanx again. Jeffry Loucks escreveu: Alexandre, Use socket notices. 1. Register to receive a notification, either procedural or app launch. 2. Prepare a socket to do what you need to do (stream or datagram). 3. Prime the socket to send a socket notice (notifications are the only type supported by OS5). 4. When data arrives (or an error or shutdown), a deferred notification will be sent by NetLib. 5. When you receive the notification, service the socket and then re-prime the socket (one notice per prime). A socket can be primed to send a notice on any combination of data receipt, inbound connect, error or shutdown. Unfortunately, outbound connect was overlooked. NOTES: 1. Socket notices use a deferred notification, meaning the notification will not be broadcast until the foreground app calls EvtGetEvent(). 2. Socket notices are one-shot and must be reset after each trigger. You can do it in the notification handler, if it is convenient. 3. The option argument passed in NetLibSocketOptionSet() in this case is the address of a void pointer which points to the NetSocketNoticeType. Kind of confusing. 4. There is sample socket notice code provided in the knowledge base, but it is not very clear. Try something like the following to prime the socket to send a notice: // Refer to NetMgr.h for socket notice options. Int16 AsyncSocketSetup(SOCKET sock, UInt32 condition) { NetSocketNoticeType notice; void *option; notice.condition = condition; // some combination of conditions from NetMgr.h notice.type = netSocketNoticeNotify; notice.notice.notify.notifyType = ; option = ¬ice; // note the address of the pointer is used if (NetLibSocketOptionSet( NetLibRefnum, sock, netSocketOptLevelSocket, netSocketOptSockNotice, &option, sizeof(option), NetLibTimeout, &NetLibErrno)) { TRACE("AsyncSocketSetup() cannot set socket notice: %x",NetLibErrno); return -1; } return 0; } Hope this helps. Jeff Jeff Loucks Work 425-284-1128 [EMAIL PROTECTED] Home 253-851-8908 [EMAIL PROTECTED] Mobile 253-691-8812 -Original Message----- From: Alexandre Barreto [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 5:38 AM To: Palm Developer Forum Subject: Re: Reciving Data in a Socket My friend Regis said i was a litle confusing in my post. what i want to know is How do I specify a function to be called automaticaly when there is data received on a socket (a call back or a notification) thanx Alexandre Barreto escreveu: Hi, I need to call a function evertime there is data on a socket. i can´t block my program wating for data there. i need the user to do other stuffs..and when data arrives this function read the socket and do stuffs. how can i do that? thank you, Alexandre -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Reciving Data in a Socket
My friend Regis said i was a litle confusing in my post. what i want to know is How do I specify a function to be called automaticaly when there is data received on a socket (a call back or a notification) thanx Alexandre Barreto escreveu: Hi, I need to call a function evertime there is data on a socket. i can´t block my program wating for data there. i need the user to do other stuffs..and when data arrives this function read the socket and do stuffs. how can i do that? thank you, Alexandre -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Reciving Data in a Socket
Hi, I need to call a function evertime there is data on a socket. i can´t block my program wating for data there. i need the user to do other stuffs..and when data arrives this function read the socket and do stuffs. how can i do that? thank you, Alexandre -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Any MD5 digest lib for palm os?
Ingbert Grimpe escreveu: On Fri, 06 May 2005 09:38:59 -0300, Alexandre Barreto <[EMAIL PROTECTED]> wrote: i need a implementation of MD5 digest for palm. is there any lib, source anithing i can use? PalmOS supports MD5 - it's just not documented, so use at your own risk ;) Check "Encrypt.h" in your CW installation; simply include it in your project to get MD5 and DES support. Thank you Ingbert, but i need a digest of 256 bit. this one does 128 it. if anyone knows another lib tell me plz thanx again -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Any MD5 digest lib for palm os?
i need a implementation of MD5 digest for palm. is there any lib, source anithing i can use? Thank you Alexandre -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
NetLibSocketOpen on the simulator
Hi, i´m having problems to open a socket in the simulator. i was using emulator before and it works fine.. then i had to change for OS 5 and now i get a error when i try to open the rockt..something about trying to read mem adress 0x000. what is wrong? i have sed the simulator to redirect netlib calls to TCP/IP Thanx -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Link Error???
I'm including then in both ways usein #include and by adding the files to the project if a mark the option use C++ compiler it compiles as C++ so i thiunk it works on the Lite but i need to use theis classes in the file in #includeing then... thnx Ben Combee wrote: At 06:19 AM 2/5/2004, you wrote: hi Ben, I tried to rename the files to .cpp and including then but it is not compiling then using c++ so i get error in the class declaration. any clues? You're using the Light/Demo version. That might not support C++; I don't remember about the limitations of something that old. By "including" them, do you mean "#including" or adding to the project. The first method is wrong, since the compilation type depending on the base source file. If you add it to the project as a C++ file, it should build as C++, unless that's been disabled in the demo. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Link Error???
hi Ben, I tried to rename the files to .cpp and including then but it is not compiling then using c++ so i get error in the class declaration. any clues? thnx -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
problem using SysGetROMToken.. i can't get the serial# in some devices(m125,zire
I made a simple function to get the plams erial number.. it works fine on a m515 but on zire 71, m125 and prob others it dosen't work insteade of the serial number i get a the number of ÿ is equal to the number of digits in the serial number. 12 digits. whats is worng? hw can i get the serial of ever palm? i'm just doing this: CharPtr bufP; UInt16 sizeP; Err errP; bufP = NULL; errP = SysGetROMToken (0, sysROMTokenSnum,&bufP, &sizeP); oh, by the way, how can i read old messagens of thsi list? since ou egroups in yahoo the msgs are not stored anymore. thnx a lot _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How can i set the name of the plam used in hotsync ?
Thnx a lot for the help guys the code in c fits perfect.. for what i need.. its just a backup action .. so its ok thanx a lot again _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How can i set the name of the plam used in hotsync ?
To set it from a backuped infromation a a card if for some reaons the plam loses everthing like hardreset so i can hot syinc again using a cel fone etc... we have a program here that make multiples hotsync at a server with palm has his name ( the hotsync one) for this operation if a user is in another city anothe rplace..he can still make his hotsync with the server if i restore the program and the plam name form a memory card thats why i need it any clues on how to do that? thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How can i set the name of the plam used in hotsync ?
I need to set the name of the plam inside a program... how can i do that? thanx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Help with sockets! plz!
I have asked this many times here but still no anwsers my progrman conectas many sockets but not at the same time ( there is just 4 sockets) so it conects do what it have to do and disconect it.. but after a while, 14 - 16 times i can't conect any other socket.. i ways get conection refused error the socket accept get to timeout.. no amther what timeout i put on it.. the prob is plam site... since the cliente is a ftp server i'm doing a active ftp i need a light on this plz thnx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Could Someone Help me on Resolving the prob of too many conections of NETLib??
Ok, i tryedeverthing that i could.. everthing that i know but no sucess, some ppl told me about Lingers and so on.. but i could find a way arround this can someone explain me waht i have to do, and give me a good direction? i'm getting frustraded on this thnx a lot _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Net Lib, Sockets and etc... Help Urgencie
The erros i get are sometimes after about 16 transfers like u said i get connection refused erro and after that all my trys of sending a file i get Error creating data connection:Mem(0x) other times during a transfer of a afile.. i stop reciving its dadata.. and after that no data arrives at the sockets i din't got what you mean by LINGER on do you know how to solve this problems? thanx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Net Lib, Sockets and etc... Help Urgencie
I'm Having problems reciving data overa socket it works fine on the emulator everthing goes ok but on palm i get erros after transmiting some data a trasnfer some files ..close te socket and reconect it for other transmition but after a while i stop recive data in the socket and sometimes i can't get a conection on it after some transfers..i'm away conectin on the same host i tryed change the size of the band using modens to debug on emulator even a 9600 modem i tried and works fine on the emulator but the plam can't handle it any clues? i need help n that.. i cant'find the erro.. and i already have losed 2 weeks on that thanx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to close a conection?
i need tahta my program close the conection after doing everthigng it is suposed to do but after doing everthing.. and close the sockets i'm still conect to my ISP how can i close that conection without have to quit my app and go to network prefs to click on DIsconect? thanx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
I need to compile a program writed for os 3.1
i'm using the old sources codes of Lftp to in a aplication thta needs to make ftp acesses to exchange data its worjking fine... but i had to use CW lite demo and there is a msg in the begining saying thta it can't be comercializated i tryed to compile it in Cw9 but i get too many erros because of the diferent versions of the OS how can i compile it? i tryed using "palmcompatibility.h" but it gives other erros tahta are nonsense for me in funcionos thta are ok.. someone help me out on this thnx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
NetLibSocketBind
I'm using this function and its is returning -1 so i checked the err param to see what error it was but the error don't mach with any of th ones especified in the reference if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)&A,sizeof(A),timeout,&errP) == -1){ WinDrawChars("Erro SockBind",13,5,135); if(errP == netErrParamErr) WinDrawChars("SockBind - ParamErr",19,3,125); if(errP == netErrTimeout) WinDrawChars("SockBind - Timeout",17,3,125); if(errP == netErrOutOfCmdBlocks) WinDrawChars("SockBind - 3",12,3,125); if(errP == netErrSocketClosedByRemote) WinDrawChars("SockBind - 4",12,3,125); if(errP == netErrSocketAlreadyConnected) WinDrawChars("SockBind - 5",12,3,125); if(errP == netErrSocketNotOpen) WinDrawChars("SockBind - 6",12,3,125); if(errP == netErrNotOpen) WinDrawChars("SockBind - 7",12,3,125); } it Drwas "Erro SOckBind" but none of the other ifs are true what can it be? thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to make a socket wait for a conection from a server
I'm making a ftp program i saw some exemples of netlib and everthing is going fine untill i got to the datasocket i need to make it listen...so the ftp server can conect on it. after a i send a PORT command but when i call NetLibSocketListen i get a -1 and errP says the erro is netErrParamErr can anyone help me on this? thnx here is the source NetSocketAddrINType A; Err errP; long timeout = SysTicksPerSecond()*25; char *novaopcao; char ip[16]; DataSock=NetLibSocketOpen(libRefnum,netSocketAddrINET, netSocketTypeStream,netSocketProtoIPTCP, timeout, &errP); if(DataSock < -1){ if(errP == netErrParamErr) WinDrawChars("Erro 2",6,5,135); if(errP == netErrNotOpen) WinDrawChars("Erro 3",6,5,135); if(errP == netErrNoMoreSockets) WinDrawChars("Erro 4",6,5,135); if(errP == netErrOutOfCmdBlocks) WinDrawChars("Erro 5",6,5,135); if(errP == netErrOutOfMemory) WinDrawChars("Erro 6",6,5,135); } if(NetLibSocketOptionSet (libRefnum,DataSock, netSocketOptLevelSocket, netSocketOptSockKeepAlive,novaopcao, sizeof(novaopcao),timeout, &errP)<-1){ WinDrawChars("Erro SetSocket",14,5,135); } A.family = netSocketAddrINET; A.port = NetHToNS(1024);//_pda_float_to_sdword(porta)); A.addr = NetLibAddrAToIN(libRefnum, "192.168.10.118"); //WinDrawChars(porta,sizeof(porta),5,140); if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)&A,sizeof(A),timeout,&errP)< 0){ //WinDrawChars("Erro SockBind",13,5,135); if(errP == netErrParamErr) WinDrawChars("SockBind - ParamErr",19,3,125); } errP = NULL; if(NetLibSocketListen (libRefnum,DataSock, 1,timeout, &errP)<0){ //WinDrawChars("Erro SockListen",15,5,135); if(errP == netErrParamErr) WinDrawChars("SockListen - ParamErr",21,3,125); } _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Where can i find a good FTP source code for Palm?
i need a ftp source code for palm a good one thnx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
open a Url form a plam app without calling the viewer.
Hi, i'm trying to make aprogram that will send data to ASP pages.. i can do that using the viewr but with the viewr i get locked on it until the user clicks on the back buton.. is there a way to open the ASp sending the parameters from the aplicatiion withou the viewer? or maybe a way to go back in the viewer or switch to may app without the user have to tap anything? i'm trying the following right now to acesse without opening the viewer... but nothing happens FormPtr frmP; UInt16 cardNo; LocalID dbID; UInt32 creator; int prefs; int Newprefs; UInt16 prefsSize; Int16 version; UInt16 prefID=0; Err err; UInt16 libRefNum; UInt16 indexP; MemHandle inetH; MemHandle *sockHP; INetConfigNameType InetCfgName; Char *url; Char *buffer; UInt32 actBytesP = 0; url = (char*)MemPtrNew(200); StrCopy(url,"http://theurl.com.br/thepage.asp";); err = SysLibFind("INet.lib", &libRefNum); StrCopy(InetCfgName.name,inetCfgNameDefault); err = INetLibConfigIndexFromName (libRefNum,&InetCfgName, &indexP); err = INetLibOpen (libRefNum, indexP,0, NULL,NULL, &inetH); err = INetLibURLOpen (libRefNum,inetH,(unsigned char*)url,NULL, sockHP,evtWaitForever,0); err = INetLibClose (libRefNum,inetH); thnx a lot _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
how to tretrive structs that have char* variables in their structure?
i need to retrive a record in the MailDB the struct of the record is the following: typedef struct { Boolean secret; Boolean signature; Boolean confirmRead; Boolean confirmDelivery; MailMsgPriorityType priority; UInt8 padding Char* subject; Char* from; Char* to; Char* cc; Char* bcc; Char* replyTo; Char* body; } MailAddRecordParamsType; so when i use email = (MailAddRecordParamsType*)MemHandleLock(recHandle); being email a MailAddRecordParamsType i get the first 6 variables of the struct but the ones that are char* i get a invalid pointer. whats the right way to retrive it? since the mail aplication does that. thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Help reading MailDB
I need to read the records of the MaliDB a pdb used in the mail program ''m using the struct MailAddRecordParamsType to get it mail = (MailAddRecordParamsType*)MemHandleLock(recHandle); the prbleme is that many of the variable sin this struct are of type char* the ones tahta are int, short, etc works fine i get invalid pointer on the char* variables how can i get the full record? thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Laucnhing a web clip form a prc
Finaly it works!!! thanx a lot for wvwerone that help me out on this question!! thnx Ben Combee,Chris Faherty and José Machado. could i use a litle more help form u guys? how can i pas parameter to my pqa.. so i can fill out fields in a form? i read something about using Get.. with html but its the same for pqa files?? thnx again _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Laucnhing a web clip form a prc
You're missing: if (!(parametros = MemPtrNew(sizeof(SysAppLaunchCmdOpenDBType { return sysErrNoFreeRAM; } i tried that but i keep geting the erro in compilation "ilegal implicit conversion from 'void *' to 'SysAppLaunchCmdOpenDBType *' on the MemPtrNew this is driving me mad hehe thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Laucnhing a web clip form a prc
i'm passing the name of the pqa as a parameter to this function so i use DmFindDatabase to get its ID the name i'm using was exemplo is "most.pqa" i'm passing like this with the extension because if i send it without i gets no ID ( remain in 0) is this right? because i don't have anymore clues on this thnx a lot for your help and thanx José :) vlw ai! :) _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Laucnhing a web clip form a prc
Ok, thnx a lot this is my function now: Err MostraClip (char *pqa) { Err err; DmSearchStateType searchState; UInt32 resultP; UInt16 cardNo; UInt16 flags = 0; LocalID dbID; SysAppLaunchCmdOpenDBType* parametros; LocalID ClipID; err = DmGetNextDatabaseByTypeCreator (true, &searchState, sysFileTApplication, sysFileCClipper, true, &cardNo, &ClipID); dbID = DmFindDatabase(0,pqa); parametros->cardNo = cardNo; parametros->dbID = dbID; MemPtrSetOwner(parametros, 0); err = SysUIAppSwitch(cardNo,ClipID,sysAppLaunchCmdOpenDB,parametros ); return err; // ErrNone (0) means no error } i debuged it and it is now passing the SysUIAppSwitch and calling the cliper but somewhere inside the clipper i got a Invalida card # error i'm using cardNo =0 for my parameter of the pqa file i'm realy bad at this thing hehe thanx again _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
: Re: Laucnhing a web clip form a prc
but in the companon it say u can call a web clipping and after it exits return to that point u called it in your program. how can i do that? thnx a lot for your help and patience _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Laucnhing a web clip form a prc
Thanx! i'm launching the clipper now passing the parameter SysAppLaunchCmdOpenDBType that is a struct with the carNo and DbId of the pqa. but now i got a erro telling me that the web clipping accessed a global variable after PilotMain was called witch a launch code that doe snot suport global. The last launch code sent to the application was "SysAppLaunchCmdOpenDB". someone give me a help her eplz! :) thx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Laucnhing a web clip form a prc
i'm trying to launch my pqa file from a aplaication but i'm getting a erro code when using SysAppLaunch in the function below the erro is sysErrParamErr whats wrong? thnx a lot Err MostraClip (char *pqa) { Err err; DmSearchStateType searchState; //parametrosP; UInt32 *resultP; UInt16 cardNo; UInt16 flags = 0; LocalID dbID; SysAppLaunchCmdOpenDBType *parametros; dbID = DmFindDatabase(0,pqa); parametros->cardNo = 0; parametros->dbID = dbID; err = SysAppLaunch(0,dbID,flags,sysAppLaunchCmdOpenDB,parametros ,resultP); return err; // ErrNone (0) means no error } _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: My PDB is showing wrong on the Palm device
I tought about that but i used other progs i made to puta a hole file into records in the pdb and it works fine i just got this prog and changed it and the weird thing is that in the emulator and simulator it works fine :( thnx for ur help _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
My PDB is showing wrong on the Palm device
I made a program taht reads txt files and make a pdb out of then i'm making 50k regs in this pdbs it works fine in the emulator and simulator but on the device it says the pdb have 350 regs only i tried with less ones like 30k , 20k, 10k they all show less records like 200 something the records are ok untill reg number 255 then they start to have jumps like 255 is the 510 record 256 is the 766.. and the other records are all mising i don't know what to do anymore anyone have a clue? thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
returning Strings from a C++ function to CASL main program
i'm programing a function in C++ to use in a casl program this function must return a string but when i return it ..nothing happens it pass nothing ("") i decalrede the fucntion as CASL_STRINGT i tried everthing i could.. but don't work what i have to do? thanx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to detect if a palm Screen is color or monocrome?
i need to make a function that detects if there is color or not on the palm is ther eany function that i can get that? i heard about WinScreenMode .. this can tell me this? thnx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Grey Sacale using WinSetForeColor
Thx Dan But my rotine drwas PCx images using windraw pixel so i need to make ond ein greysacle por os > 3.5.. so i couldn't find the funcition WInSetColors i use in my functon WinPalet to set the Palm palet to mach the one of the picture but my functon just work for colored or monocrome images in a palm not colored just mono works ofcurse.. but i want to make grey scale to work too thx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Grey Sacale using WinSetForeColor
i need to draw in a mono color Palm but WinSetForeColor just set the color to blakc no mather what number i use in the function how can i get grey scale to work? thnx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE:Emulator that suports Memory Sticks?
Thanx a lot for the information _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Emulator that suports Memory Sticks?
is there any? where can i get one? thnx _ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to read a record of a pdb in a memory stick?
I need to put some pdbs in a memory stick and my aplicantion must read a record in this pdbs how can i do that? thanx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
CallBack in SysNotifyRegister
i'm getting problems with the callback param at SysNotifyRegister it says its of invalida type ponter... whats wrong? thanx //** CASL_FLOATNUM TrataWU(void)//SysNotifyParamType *notifyParamsP) { Do some thing } /**/ CASL_FLOATNUM RegistraWU ( void ) { Err Erro; SysNotifyParamType *notifyParamsP; short cardNo; LocalID dbID; double *value; // Testa se existe o notification manager na versao do OS Erro = FtrGet(sysFtrCreator, sysFtrNumNotifyMgrVersion, &value); //se nao existir if(value==0) return 1; SysCurAppDatabase(&cardNo, &dbID); Erro = SysNotifyRegister (cardNo, dbID, sysNotifyLateWakeupEvent , &TrataWU , 0, NULL); if(Erro != errNone) { // Se o aplicativo ja estiver registrado if(Erro == sysNotifyErrDuplicateEntry) return 2; // se o a ID do programa for null if(Erro == sysErrParamErr) return 3; } } //** _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Variables Types
I need to make rotines to be used in CASL pro i'm having problems with types like Uint8, Uint16, Uint32 and some others Uint16 i think i ll work with type short but the rest i don't know what to do where can i declare this types in my c file? Uint32 i tried int but din't work i need to get this types working in my c file for casl pro thanx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Program to make pdbs in desktop
Hi, I need a program like PDBmake..that gets a binary file and put it in a record inside a pdb file but pdbmak just make um record.. and i need to put many files inside a pdb each record willl be a full binary file each record is a 4 byte saying how long is the record in bytes and after de 4 byte is the full binary file... if there is already a program thta do that ll cut me some time.. if someone knows one tell me.. thanks _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Turn off palm during a program
i need my program to show up a login screen when you get in teh program but my problem is...if the plam turn off during the prog..by using the power button or by time withou nothing happens when someone turns it on again it ll be in the program already i need to make a login again after it turns on inside the program how can i do that? is there a event for system wakeup something like that??? thnx _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Using a COdewarrior function in CASLPro
I need to use a function i developed in codewarrior on caslpro.. i don't know casl well i tried and i get errors in mayn .h files from the sdk i need to build it using the sdk 3.5 or supirior.. i'm trying to use de sdk 4 how can i do that? how can i make it works? help me giving me some exemple code plz thnx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Could this be a compilator problem? HELP
I made aprogram and it's working fine... now i want to make it a funcion... its a funcion to show images PCx the problem is that in the fuction there is a line that don;t work... and wen its is in the mainformhandle fuction ti works.. the part that don't work is this: img = DmOpenDatabaseByTypeCreator('IMGD','MOST',dmModeReadWrite); this part works fine..gets all the handles if (img == 0) return 1; //Pega um Handle para o registro especificado. recHandle = DmQueryRecord(img, registro); if (!recHandle) erro=DmGetLastErr(); But here is the problme ..when i run this next line...nothing happens..it pass trought it and do nothing //Pega um handle para os dados do registro. rec = (char*)MemHandleLock(recHandle); but this works fine hen my program is in the open event of the mainformhandle I'm realy stuck on that i need help :) thnks a lot _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Memory Stick and databases
How can i open a database in a memory stick? how can i specify where to lock for the database since the DmOpenDatabaseByTypeCreator don't specify nothing about memory sticks thanx a lot _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: How to set Custom Palette?
Thx a lot winpalette worked fine.. i got the table form my pcx and seted the table of palm the image plots right... but i have a new problem... when i change the palete.. it changes everthing on the form... like the labels, butons, the title, menus background... i just need the pic in the right palette and the rest in the default i canged the palet before drwan the image and set back to default after ploting it... but when i use WinPallet it refreshs everthing painted on the screeen for the new table... what can i do?? thx _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: How to set Custom Palette?
The reference is too simple... don't show any example and don't say much thing... its something using WinSetpattern() but i don't knoiw how to make it.. for set the color table tu mach my pic.. for exemple: color 21 is a dark grey but on default color table in plamOS its some pink.. how can i change it?... i mean get the right palette from any PCX and set the color table on palm to mach it? thnx a lot _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to set Custom Palette?
I made a function to drawn images PCX on the plam screen the problem is taht i get the colloer messed up... how can i set the palette i want to use from the pcx? thnx a lot _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Color palet on Plam
Hi , i made a program to show images on the palm.. but i'm having some troble with the diference form the desktop palet to the plam palet... can aynone help me on that? is ther any way to convert the pixels color form desktop to palm? i'm using 256 color imagens pcx format.. so each byte is a pixel color.. thnx alot _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
how to read a record in a database? help please
I'm tryigng to read the first record of a databse i tried many tims ad nothing work.. can someno explain me how to do that statrting form open the databse.. i'm new on palm programing i dit this: img = DmOpenDatabaseByTypeCreator('IMGD','MOST',dmModeReadWrite); // Get a handle for the first record. recHandle = DmGetRecord(img, 0); // Lock down the handle and get a pointer to the record data. recbyte = MemHandleLock(recHandle); // Allocate a new memory chunk that will contain a copy of the data. newHandle = MemHandleNew(StrLen(recbyte) + 1); // Lock down the handle and get a pointer to the memory chunk. memrec = MemHandleLock(newHandle); // Copy the data from the record to the new memory chunk. StrCopy(memrec, recbyte); // Unlock the new memory chunk. MemHandleUnlock(newHandle); MemHandleUnlock(recHandle); MemHandleUnlock(memrec); it was suposed to get all the first record in the memory area handled by memrec... can somenone tell me how to do that?? cause i need to read the record byte by byte thnx a lot _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How can i read a record in a database?
i knw this is a neebiew question...but i'm a newbie in palm programing :) i'm trying to read a record byte by byte...how can i do that i doing the following, but i'm doing it worng cause i'm reading the low memory instead of the record... img = DmOpenDatabaseByTypeCreator('IMGD','MOST',dmModeReadWrite); recHandle = DmGetRecord(img,0); ImagemP = MemHandleLock(recHandle); for(I=x;I<=x+14;I++) { for(J=y;J<=y+20;J++) { WinSetForeColor((int)ImagemP[Z]); WinDrawPixel(I,J); Z++; } } i get osme canot convert opaque sometimes... i just need to read the record i chose byte to byte ... maybe puting it on a vector duno.. how i do that? Thanx a lot _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/