c++ - Sending data from client to SQL database (MoSync) -


i sincerely apologize if has been asked before, unable find suitable answer appeared similar current situation. developing app mosync using maui because of same appearance across platforms. running issues understanding mahandles, how go sending sqlite information web address. sqlite commands converted mysql commands using redbean php script, , sent permanent database.

my biggest concerns 2 items:

1.declaring connections usable through mahandles (i have gotten sqlite commands working without using mahandles, declaring database address in resources.lstx still evades me)

2.declaring mahandles in general.

also, understand strings more effective, disregard fact due age of maui , it's capabilities appear smoother when using char arrays.

i can provide additional clarification if needed can speed process up.

thank ahead of time, , others trying hands @ mosync's immaculate product.

i have no experience sqlite whatsoever, i'm assuming handling sqlite commands job of server-side application. clear, sending sqlite commands mobile app server-side app via url, correct? if need on should search "cgi". cgi way execute server-side application arguments via http:// request.

this means app should have manager constructs url right sqlite commands based on input events sent mobile app (buttons, text fields, etc).

as far mosync goes, mahandles can used many things including downloading.

take @ mautil::downloadlistener class on mosync's doxygen pages. see there full descriptions of 5 pure virtual functions need implement. bulk of code in finisheddownloading( downloader* dl, mahandle data ). here mahandle "data", point beginning of data segment downloaded.

i read data char* since downloading text.

here's snippet:

void mainscreen::finisheddownloading( downloader* dl, mahandle data ) {     char* mdata = new char[ magetdatasize( data ) + 1 ];     memset( mdata, 0, magetdatasize( data ) + 1 );     mareaddata( data, mdata, 0, magetdatasize( data ) );      // destroy store     madestroyobject( data );      // mdata;   } 

here's 1 example of setting font of nativeui::widget text using mahandle:

mahandle font = mafontloaddefault( font_type_serif |                         font_type_monospace |                         font_style_normal, 0, dimensions::dim_list_elem_font_size );  listviewitem* items = new listviewitem(); items -> setfont( font ); 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -