cppcms-users Mailing List for CppCMS C++ Web Framework (Page 111)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Abhishek K. <abh...@gm...> - 2011-08-07 13:35:48
|
Hi, Could you please explain me these differences regarding the message board example application?: forums::forums(cppcms::service &srv) : master(srv) { dispatcher().assign(".*",&forums::prepare,this,0); mapper().assign("{1}"); // with id mapper().assign(""); // default } AND flat_thread::flat_thread(cppcms::service &s) : thread_shared(s) { dispatcher().assign(".*",&flat_thread::prepare,this,0); mapper().assign("{1}"); } I have referred the doxygen documentation, but still failed to make out much meaning regarding this particular problem. could you tell me as to why in forums constructor it was possible to have 2 mapper().assign() one for "" and other for "{1}" whereas, in flat_thread, it has only 1 mapper().assign() statement and thats "{1}". What conditions tell us that it would require 2 or 1 assign statements? I fully understand the dispatcher but this mapper, I am unable to. Hope you understand my problem. Please let me know if I am missing the basics of anything, i will refer it. Thanks in advance for your reply. |
From: Artyom B. <art...@ya...> - 2011-08-07 06:35:49
|
Hello Allan, There are may be several reasons: 1. File was not uploaded by user and you hadn't set non_empty() option so it is validated. In such case you need to check if the file was actually uploaded by calling set() member function of file widget. 2. You hadn't specified enctype="multipart/form-data" in your form HTML part and you also hadn't set non_empty() option. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ >From: Allan SIMON <all...@su...> >To: cpp...@li... >Sent: Sunday, August 7, 2011 2:12 AM >Subject: [Cppcms-users] [uploading file] Caught exception [File was not loaded] > >I'm trying to use the widgets::file to upload images > >but when I try to have access to the uploaded file using .value, this >exception is raised > >2011-08-06 23:04:31 GMT; cppcms, error: Caught exception [File was not >loaded] > >I use the following code > > > forms::my_profile::ChangeAvatar form; > form.load(context()); > > if (form.avatar.validate()) { > > > std::istream& data = form.avatar.value()->data().seekg(0); > > >Thanks in advance. > >Regards, > >Allan > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >The must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Allan S. <all...@su...> - 2011-08-06 23:13:14
|
I'm trying to use the widgets::file to upload images but when I try to have access to the uploaded file using .value, this exception is raised 2011-08-06 23:04:31 GMT; cppcms, error: Caught exception [File was not loaded] I use the following code forms::my_profile::ChangeAvatar form; form.load(context()); if (form.avatar.validate()) { std::istream& data = form.avatar.value()->data().seekg(0); Thanks in advance. Regards, Allan |
From: 陈抒 <csf...@gm...> - 2011-08-05 13:19:55
|
I am sorry I didn't see this email.I will try it soon. Thanks. 陈抒 Best regards http://blog.csdn.net/sheismylife On Fri, Jul 29, 2011 at 3:32 AM, Artyom Beilis <art...@ya...> wrote: > > To: cpp...@li... > >Sent: Thursday, July 28, 2011 5:21 PM > >Subject: Re: [Cppcms-users] How to call MySQL store procedure > > > > > >It seems that CPPDB doesn't support store procedure for now. Any plan for > this? > >I have to use MySQL++ now. > >陈抒 > >Best regards > >http://blog.csdn.net/sheismylife > > > > > > > Do you have any specific problems calling stored procedures? > > See: http://dev.mysql.com/doc/refman/5.5/en/call.html > > I don't see something specific that would prevent from executing > > "CALL " statement or query. > > This example from the site: > > mysql_query(mysql, "SET @increment = 10"); > mysql_query(mysql, "CALL p(@version, @increment)"); > mysql_query(mysql, "SELECT @version, @increment"); > result = mysql_store_result(mysql); > row = mysql_fetch_row(result); > mysql_free_result(result); > > Can be executed as; > > > sql << "SET @increment = 10" << cppdb::exec; > sql << "CALL p(@version, @increment)" << cppdb::exec; > cppdb::result r = sql << "SELECT @version, @increment"; > > By default CppDB uses prepared statements, if you want unprepared onces > (I don't know if mysql requires unprepared statements for such things) > you may call > > sql.create_statement("SET @increment = 10").exec(); > sql.create_statement("CALL p(@version, @increment)").exec(); > cppdb::result r = sql.create_statement("SELECT @version, @increment"); > If you have any specific problems using CALL syntax tell > exactly what you are doing and probably provide a simple > use case that shows the problem. > > > Artyom > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: 陈抒 <csf...@gm...> - 2011-08-05 13:15:31
|
Yes,you can add. Our company's name is Lifeix,Chinese name is 立方网. www.l99.com is our web site. 陈抒 Best regards http://blog.csdn.net/sheismylife On Fri, Jul 29, 2011 at 3:34 AM, Artyom Beilis <art...@ya...> wrote: > I'm glad to hear. > > So would you be so kind to add your company to this list: > > http://art-blog.no-ip.info/wikipp/en/page/who_uses > > Artyom > > ------------------------------ > *From:* 陈抒 <csf...@gm...> > *To:* cpp...@li... > *Sent:* Thursday, July 28, 2011 5:27 PM > *Subject:* [Cppcms-users] We are using CPPCMS now > > Hello,Artyom: > I read your email from here: > > http://sourceforge.net/mailarchive/forum.php?thread_name=138910.91788.qm%40web36707.mail.mud.yahoo.com&forum_name=cppcms-users > > Yes,we are using CppCMS.I just created one C++ team to develop our own > restful web services.I am a team leader from Lifeix(www.l99.com) in > China.I am about to replace some existing web services(developed by Java) > with CppCMS to retrieve the best performance. > Thanks for your great work and hope the 1.x comming soon. > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: kpeo <sla...@ya...> - 2011-08-05 13:02:45
|
<div>may be it will be helpful for others - example of my project.conf for nginx (localhost):</div><div> </div><div>server {</div><div> listen 8090;</div><div> listen [::]:8090 default ipv6only=on;</div><div> server_name localhost;</div><div> access_log /var/log/nginx/localhost.access.log;</div><div> error_log /var/log/nginx/localhost.error.log info;</div><div> set $path_info "";</div><div> if ( $fastcgi_script_name ~ ^(.*)$ ) {</div><div> set $path_info $1;</div><div> }</div><div> root /var/www/project;</div><div> location /media {</div><div> alias /var/www/project/media;</div><div> }</div><div> location ~ ^(?!.*(?:media).*)^[a-zA-Z0-9/]+ { # <- all except static files in media</div><div> fastcgi_pass unix:/tmp/project.sock; # <- application create it</div><div> fastcgi_param QUERY_STRING $query_string;</div><div> fastcgi_param REQUEST_METHOD $request_method;<br /> fastcgi_param CONTENT_TYPE $content_type;<br /> fastcgi_param CONTENT_LENGTH $content_length;<br /><br /> fastcgi_param SCRIPT_NAME /project; #<- set it for application<br /> fastcgi_param PATH_INFO $path_info;<br /> fastcgi_param REQUEST_URI $request_uri;<br /> fastcgi_param DOCUMENT_URI $document_uri;<br /> fastcgi_param DOCUMENT_ROOT $document_root;<br /> fastcgi_param SERVER_PROTOCOL $server_protocol;<br /><br /> fastcgi_param GATEWAY_INTERFACE CGI/1.1;<br /> fastcgi_param SERVER_SOFTWARE nginx;<br /><br /> fastcgi_param REMOTE_ADDR $remote_addr;<br /> fastcgi_param REMOTE_PORT $remote_port;<br /> fastcgi_param SERVER_ADDR $server_addr;<br /> fastcgi_param SERVER_PORT $server_port;<br /> fastcgi_param SERVER_NAME $server_name;</div><div> }</div><div> error_page 500 502 503 504 /50x.html;</div><div> location = /50x.html {</div><div> root html;</div><div> }</div><div>}</div><div> </div><div>welcome! :)</div><div>05.08.2011, 16:25, "陈抒" <csf...@gm...>:</div><blockquote><div>I took some hours to learn how to use nginx. Yes,it works and I believe your idea is very good.</div><div>Thanks again!</div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a><br /> <br /><br /><div>On Fri, Aug 5, 2011 at 7:28 PM, kpeo <span dir="ltr"><<a href="mailto:sla...@ya...">sla...@ya...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><div>for starting site in production - web-frontend is highly recommended (nginx/lighttpd/apache/etc..).</div><div>for me - it helps overwrite script-name (<a href="http://site.org/script/" target="_blank">http://site.org/script/</a> -> <a href="http://site.org/" target="_blank">http://site.org/</a>) and usefull for fast processing of static files.</div><div> </div><div>even for starting site in development mode - i use nginx + project as fastcgi application. so all you need - just restart application after compiling, while nginx-server runs.</div><div>05.08.2011, 14:41, "陈抒" <<a href="mailto:csf...@gm..." target="_blank">csf...@gm...</a>>:</div><div><div> </div><div><blockquote><div>Thanks.</div><div>Do you mean that I should build up a static file(*.css,*.jpg,etc.) server using nginx?</div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a><br /> <br /><br /><div>On Fri, Aug 5, 2011 at 6:09 PM, kpeo <span dir="ltr"><<a href="mailto:sla...@ya..." target="_blank">sla...@ya...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><div>Hello,</div><div> </div><div><span lang="en"><span>maybe it</span> <span>will help:</span></span></div><div> </div><div>when you put <img src="/resources/images/logo.gif"/> - web-frontend use url with current URL (<a href="http://site.org/resources/images/logo.gif" target="_blank">http://site.org/resources/images/logo.gif</a>)</div><div>and get file relatively of your document-root in web-frontend (nginx/lighttpd/apache - usually /var/www) - so path is: /var/www/resources/images/logo.gif</div><div> </div><div>As for code:</div><div>You can use project.resource from configuration:</div><div>{</div><div> "project" : {</div><div> "resource" : "/resource",</div><div> }</div><div>}</div><div> </div><div>in code of page:</div><div>void page::init(content::page &c){</div><div>c.resource = settings().get<std::string>("project.resource");</div><div>}</div><div> </div><div>in template:</div><div><img src="<% resource %>/img/test.jpg" /></div><div> </div><div>so your final path is - <a href="http://project.org/resource/img/test.jpg" target="_blank">http://project.org/resource/img/test.jpg</a> (it can be overwrited by web-frontend like nginx/lighttpd to /img/test.jpg)</div><div> </div><div>directory /resource must exist in your document-root of web-frontend.</div><div> </div><div>in css it may be like (/resource/css/style.css):</div><div>background: white url(../img/test.jpg) no-repeat;</div><div>05.08.2011, 12:50, "陈抒" <<a href="mailto:csf...@gm..." target="_blank">csf...@gm...</a>>:</div><blockquote><div><div> </div><div>Hello,<div> I want to show some images in my web page ,but I don't know where I should put my image file?</div><div><br /><div> <img src="resources/images/logo.gif"/></div><div>Any document or example?</div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a></div></div></div><p>------------------------------------------------------------------------------<br />BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br />The must-attend event for mobile developers. Connect with experts. <br /> Get tools for creating Super Apps. See the latest technologies.<br />Sessions, hands-on labs, demos & much more. Register early & save!<br /><a href="http://p.sf.net/sfu/rim-blackberry-1" target="_blank">http://p.sf.net/sfu/rim-blackberry-1</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li..." target="_blank">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote><br />------------------------------------------------------------------------------<br /> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br /> The must-attend event for mobile developers. Connect with experts.<br /> Get tools for creating Super Apps. See the latest technologies.<br /> Sessions, hands-on labs, demos & much more. Register early & save!<br /> <a href="http://p.sf.net/sfu/rim-blackberry-1" target="_blank">http://p.sf.net/sfu/rim-blackberry-1</a><br /> _______________________________________________<br /> Cppcms-users mailing list<br /> <a href="mailto:Cpp...@li..." target="_blank">Cpp...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></blockquote></div><br /><p>------------------------------------------------------------------------------<br />BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br />The must-attend event for mobile developers. Connect with experts. <br /> Get tools for creating Super Apps. See the latest technologies.<br />Sessions, hands-on labs, demos & much more. Register early & save!<br /><a href="http://p.sf.net/sfu/rim-blackberry-1" target="_blank">http://p.sf.net/sfu/rim-blackberry-1</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li..." target="_blank">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote></div></div><br />------------------------------------------------------------------------------<br /> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br /> The must-attend event for mobile developers. Connect with experts.<br /> Get tools for creating Super Apps. See the latest technologies.<br /> Sessions, hands-on labs, demos & much more. Register early & save!<br /> <a href="http://p.sf.net/sfu/rim-blackberry-1" target="_blank">http://p.sf.net/sfu/rim-blackberry-1</a><br />_______________________________________________<br /> Cppcms-users mailing list<br /> <a href="mailto:Cpp...@li...">Cpp...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a><br /> </blockquote></div><br /><p>------------------------------------------------------------------------------<br />BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br />The must-attend event for mobile developers. Connect with experts. <br />Get tools for creating Super Apps. See the latest technologies.<br />Sessions, hands-on labs, demos & much more. Register early & save!<br /><a href="http://p.sf.net/sfu/rim-blackberry-1">http://p.sf.net/sfu/rim-blackberry-1</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li...">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote> |
From: 陈抒 <csf...@gm...> - 2011-08-05 12:25:32
|
I took some hours to learn how to use nginx. Yes,it works and I believe your idea is very good. Thanks again! 陈抒 Best regards http://blog.csdn.net/sheismylife On Fri, Aug 5, 2011 at 7:28 PM, kpeo <sla...@ya...> wrote: > for starting site in production - web-frontend is highly recommended > (nginx/lighttpd/apache/etc..). > for me - it helps overwrite script-name (http://site.org/script/ -> > http://site.org/) and usefull for fast processing of static files. > > even for starting site in development mode - i use nginx + project as > fastcgi application. so all you need - just restart application after > compiling, while nginx-server runs. > 05.08.2011, 14:41, "陈抒" <csf...@gm...>: > > Thanks. > Do you mean that I should build up a static file(*.css,*.jpg,etc.) server > using nginx? > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > On Fri, Aug 5, 2011 at 6:09 PM, kpeo <sla...@ya...> wrote: > > Hello, > > maybe it will help: > > when you put <img src="/resources/images/logo.gif"/> - web-frontend use url > with current URL (http://site.org/resources/images/logo.gif) > and get file relatively of your document-root in web-frontend > (nginx/lighttpd/apache - usually /var/www) - so path is: > /var/www/resources/images/logo.gif > > As for code: > You can use project.resource from configuration: > { > "project" : { > "resource" : "/resource", > } > } > > in code of page: > void page::init(content::page &c){ > c.resource = settings().get<std::string>("project.resource"); > } > > in template: > <img src="<% resource %>/img/test.jpg" /> > > so your final path is - http://project.org/resource/img/test.jpg (it can > be overwrited by web-frontend like nginx/lighttpd to /img/test.jpg) > > directory /resource must exist in your document-root of web-frontend. > > in css it may be like (/resource/css/style.css): > background: white url(../img/test.jpg) no-repeat; > 05.08.2011, 12:50, "陈抒" <csf...@gm...>: > > > Hello, > I want to show some images in my web page ,but I don't know where I > should put my image file? > > <img src="resources/images/logo.gif"/> > Any document or example? > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: kpeo <sla...@ya...> - 2011-08-05 11:28:45
|
<div>for starting site in production - web-frontend is highly recommended (nginx/lighttpd/apache/etc..).</div><div>for me - it helps overwrite script-name (http://site.org/script/ -> http://site.org/) and usefull for fast processing of static files.</div><div> </div><div>even for starting site in development mode - i use nginx + project as fastcgi application. so all you need - just restart application after compiling, while nginx-server runs.</div><div>05.08.2011, 14:41, "陈抒" <csf...@gm...>:</div><blockquote><div>Thanks.</div><div>Do you mean that I should build up a static file(*.css,*.jpg,etc.) server using nginx?</div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a><br /> <br /><br /><div>On Fri, Aug 5, 2011 at 6:09 PM, kpeo <span dir="ltr"><<a href="mailto:sla...@ya..." target="_blank">sla...@ya...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><div>Hello,</div><div> </div><div><span lang="en"><span>maybe it</span> <span>will help:</span></span></div><div> </div><div>when you put <img src="/resources/images/logo.gif"/> - web-frontend use url with current URL (<a href="http://site.org/resources/images/logo.gif" target="_blank">http://site.org/resources/images/logo.gif</a>)</div><div>and get file relatively of your document-root in web-frontend (nginx/lighttpd/apache - usually /var/www) - so path is: /var/www/resources/images/logo.gif</div><div> </div><div>As for code:</div><div>You can use project.resource from configuration:</div><div>{</div><div> "project" : {</div><div> "resource" : "/resource",</div><div> }</div><div>}</div><div> </div><div>in code of page:</div><div>void page::init(content::page &c){</div><div>c.resource = settings().get<std::string>("project.resource");</div><div>}</div><div> </div><div>in template:</div><div><img src="<% resource %>/img/test.jpg" /></div><div> </div><div>so your final path is - <a href="http://project.org/resource/img/test.jpg" target="_blank">http://project.org/resource/img/test.jpg</a> (it can be overwrited by web-frontend like nginx/lighttpd to /img/test.jpg)</div><div> </div><div>directory /resource must exist in your document-root of web-frontend.</div><div> </div><div>in css it may be like (/resource/css/style.css):</div><div>background: white url(../img/test.jpg) no-repeat;</div><div>05.08.2011, 12:50, "陈抒" <<a href="mailto:csf...@gm..." target="_blank">csf...@gm...</a>>:</div><blockquote><div><div> </div><div>Hello,<div> I want to show some images in my web page ,but I don't know where I should put my image file?</div><div><br /><div> <img src="resources/images/logo.gif"/></div><div>Any document or example?</div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a></div></div></div><p>------------------------------------------------------------------------------<br />BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br />The must-attend event for mobile developers. Connect with experts. <br /> Get tools for creating Super Apps. See the latest technologies.<br />Sessions, hands-on labs, demos & much more. Register early & save!<br /><a href="http://p.sf.net/sfu/rim-blackberry-1" target="_blank">http://p.sf.net/sfu/rim-blackberry-1</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li..." target="_blank">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote><br />------------------------------------------------------------------------------<br /> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br /> The must-attend event for mobile developers. Connect with experts.<br /> Get tools for creating Super Apps. See the latest technologies.<br /> Sessions, hands-on labs, demos & much more. Register early & save!<br /> <a href="http://p.sf.net/sfu/rim-blackberry-1" target="_blank">http://p.sf.net/sfu/rim-blackberry-1</a><br />_______________________________________________<br /> Cppcms-users mailing list<br /> <a href="mailto:Cpp...@li..." target="_blank">Cpp...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a><br /> </blockquote></div><br /><p>------------------------------------------------------------------------------<br />BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br />The must-attend event for mobile developers. Connect with experts. <br />Get tools for creating Super Apps. See the latest technologies.<br />Sessions, hands-on labs, demos & much more. Register early & save!<br /><a href="http://p.sf.net/sfu/rim-blackberry-1">http://p.sf.net/sfu/rim-blackberry-1</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li...">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote> |
From: 陈抒 <csf...@gm...> - 2011-08-05 10:41:49
|
Thanks. Do you mean that I should build up a static file(*.css,*.jpg,etc.) server using nginx? 陈抒 Best regards http://blog.csdn.net/sheismylife On Fri, Aug 5, 2011 at 6:09 PM, kpeo <sla...@ya...> wrote: > Hello, > > maybe it will help: > > when you put <img src="/resources/images/logo.gif"/> - web-frontend use url > with current URL (http://site.org/resources/images/logo.gif) > and get file relatively of your document-root in web-frontend > (nginx/lighttpd/apache - usually /var/www) - so path is: > /var/www/resources/images/logo.gif > > As for code: > You can use project.resource from configuration: > { > "project" : { > "resource" : "/resource", > } > } > > in code of page: > void page::init(content::page &c){ > c.resource = settings().get<std::string>("project.resource"); > } > > in template: > <img src="<% resource %>/img/test.jpg" /> > > so your final path is - http://project.org/resource/img/test.jpg (it can > be overwrited by web-frontend like nginx/lighttpd to /img/test.jpg) > > directory /resource must exist in your document-root of web-frontend. > > in css it may be like (/resource/css/style.css): > background: white url(../img/test.jpg) no-repeat; > 05.08.2011, 12:50, "陈抒" <csf...@gm...>: > > Hello, > I want to show some images in my web page ,but I don't know where I > should put my image file? > > <img src="resources/images/logo.gif"/> > Any document or example? > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: kpeo <sla...@ya...> - 2011-08-05 10:09:44
|
<div>Hello,</div><div> </div><div><span lang="en"><span>maybe it</span> <span>will help:</span></span></div><div> </div><div>when you put <img src="/resources/images/logo.gif"/> - web-frontend use url with current URL (http://site.org/resources/images/logo.gif)</div><div>and get file relatively of your document-root in web-frontend (nginx/lighttpd/apache - usually /var/www) - so path is: /var/www/resources/images/logo.gif</div><div> </div><div>As for code:</div><div>You can use project.resource from configuration:</div><div>{</div><div> "project" : {</div><div> "resource" : "/resource",</div><div> }</div><div>}</div><div> </div><div>in code of page:</div><div>void page::init(content::page &c){</div><div>c.resource = settings().get<std::string>("project.resource");</div><div>}</div><div> </div><div>in template:</div><div><img src="<% resource %>/img/test.jpg" /></div><div> </div><div>so your final path is - http://project.org/resource/img/test.jpg (it can be overwrited by web-frontend like nginx/lighttpd to /img/test.jpg)</div><div> </div><div>directory /resource must exist in your document-root of web-frontend.</div><div> </div><div>in css it may be like (/resource/css/style.css):</div><div>background: white url(../img/test.jpg) no-repeat;</div><div>05.08.2011, 12:50, "陈抒" <csf...@gm...>:</div><blockquote>Hello,<div> I want to show some images in my web page ,but I don't know where I should put my image file?</div><div><br /><div> <img src="resources/images/logo.gif"/></div><div>Any document or example?</div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a></div><p>------------------------------------------------------------------------------<br />BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA<br />The must-attend event for mobile developers. Connect with experts. <br />Get tools for creating Super Apps. See the latest technologies.<br />Sessions, hands-on labs, demos & much more. Register early & save!<br /><a href="http://p.sf.net/sfu/rim-blackberry-1">http://p.sf.net/sfu/rim-blackberry-1</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li...">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote> |
From: 陈抒 <csf...@gm...> - 2011-08-05 08:50:30
|
Hello, I want to show some images in my web page ,but I don't know where I should put my image file? <img src="resources/images/logo.gif"/> Any document or example? 陈抒 Best regards http://blog.csdn.net/sheismylife |
From: Abhishek K. <abh...@gm...> - 2011-08-05 08:14:59
|
Thanks for your reply Artyom, but as see, I have pasted the message_board app's url mapping code in my second post, and I have been going thru the reference for url_mapper too. but this word is not enough for me "url mapper is opposite of dispatcher" as I am not able to understand what the opposite could be. I am more keen about what exactly the void cppcms::url_mapper::assign function does with any simple example. I have seen the usage of this function in the message_board application, but I am not able to understand the exact purpose of it, as to what difference did it make. What change does this void cppcms::url_mapper::assign brings to the application. As I have mentioned already, I fully understand the dispatcher's assign function, but couldnt make any clue about mapper's assign function. thanks Abhishek |
From: Artyom B. <art...@ya...> - 2011-08-05 04:33:21
|
> > >Who can tell me how to write an regular expression for the following URL? >http://localhost/search/village?x=1&y=2 > > >? is a big problem,I tried \\?,but it doesn't work. > You don't! Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_tut_url_mapping > >陈抒 >Best regards >http://blog.csdn.net/sheismylife > > > >On Fri, Aug 5, 2011 at 3:21 AM, Artyom Beilis <art...@ya...> wrote: > >----- Original Message ----- >> >>> From: Abhishek Kaushik <abh...@gm...> >>> To: cpp...@li... >>> Cc: >>> Sent: Thursday, August 4, 2011 5:22 PM >>> Subject: Re: [Cppcms-users] What exactly url_mapper does? >>> >>> >>> >>> For Example: >>> >>> >>> flat_thread::flat_thread(cppcms::service &s) >>> : thread_shared(s) >>> { >>> dispatcher().assign(".*",&flat_thread::prepare,this,0); >>> mapper().assign("{1}"); >>> } >>> >>> Here I am not able to understand the role of >>> mapper().assign("{1}") I able to understand >>> dispatcher().assign() >>> is trying to assign the matched urls >>> to prepare function of flat thread with 0th parameter. >>> >>> Is mapper().assign() ignorable here? >>> >>> Please enlighten :( >>> thanks >>> Abhishek Kaushik >>> >>> >> >>Generally mapper is opposite of dispatcher: >> >>dispatcher: URL -> application >>mapper: "application" (by name) -> URL >> >> >>Read this: >> >> http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details >> >>Unfortunately there is no url mapping tutorial yet, but the reference >>documentation of this feature should be quite full. >> >>Also take a look on message board example in the sources for use >>of URL mapper. >> >>Ask again if you have further questions after reading this. >> >>Artyom >> >>------------------------------------------------------------------------------ >>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> >>The must-attend event for mobile developers. Connect with experts. >>Get tools for creating Super Apps. See the latest technologies. >>Sessions, hands-on labs, demos & much more. Register early & save! >>http://p.sf.net/sfu/rim-blackberry-1 >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > >------------------------------------------------------------------------------ >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >The must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: 陈抒 <csf...@gm...> - 2011-08-05 03:42:19
|
Who can tell me how to write an regular expression for the following URL? http://localhost/search/village?x=1&y=2 ? is a big problem,I tried \\?,but it doesn't work. 陈抒 Best regards http://blog.csdn.net/sheismylife On Fri, Aug 5, 2011 at 3:21 AM, Artyom Beilis <art...@ya...> wrote: > ----- Original Message ----- > > > From: Abhishek Kaushik <abh...@gm...> > > To: cpp...@li... > > Cc: > > Sent: Thursday, August 4, 2011 5:22 PM > > Subject: Re: [Cppcms-users] What exactly url_mapper does? > > > > > > > > For Example: > > > > > > flat_thread::flat_thread(cppcms::service &s) > > : thread_shared(s) > > { > > dispatcher().assign(".*",&flat_thread::prepare,this,0); > > mapper().assign("{1}"); > > } > > > > Here I am not able to understand the role of > > mapper().assign("{1}") I able to understand > > dispatcher().assign() > > is trying to assign the matched urls > > to prepare function of flat thread with 0th parameter. > > > > Is mapper().assign() ignorable here? > > > > Please enlighten :( > > thanks > > Abhishek Kaushik > > > > > > Generally mapper is opposite of dispatcher: > > dispatcher: URL -> application > mapper: "application" (by name) -> URL > > > Read this: > > > http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details > > Unfortunately there is no url mapping tutorial yet, but the reference > documentation of this feature should be quite full. > > Also take a look on message board example in the sources for use > of URL mapper. > > Ask again if you have further questions after reading this. > > Artyom > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2011-08-04 19:21:59
|
----- Original Message ----- > From: Abhishek Kaushik <abh...@gm...> > To: cpp...@li... > Cc: > Sent: Thursday, August 4, 2011 5:22 PM > Subject: Re: [Cppcms-users] What exactly url_mapper does? > > > > For Example: > > > flat_thread::flat_thread(cppcms::service &s) > : thread_shared(s) > { > dispatcher().assign(".*",&flat_thread::prepare,this,0); > mapper().assign("{1}"); > } > > Here I am not able to understand the role of > mapper().assign("{1}") I able to understand > dispatcher().assign() > is trying to assign the matched urls > to prepare function of flat thread with 0th parameter. > > Is mapper().assign() ignorable here? > > Please enlighten :( > thanks > Abhishek Kaushik > > Generally mapper is opposite of dispatcher: dispatcher: URL -> application mapper: "application" (by name) -> URL Read this: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details Unfortunately there is no url mapping tutorial yet, but the reference documentation of this feature should be quite full. Also take a look on message board example in the sources for use of URL mapper. Ask again if you have further questions after reading this. Artyom |
From: Abhishek K. <abh...@gm...> - 2011-08-04 14:23:14
|
For Example: flat_thread::flat_thread(cppcms::service &s) : thread_shared(s) { dispatcher().assign(".*",&flat_thread::prepare,this,0); mapper().assign("{1}"); } Here I am not able to understand the role of mapper().assign("{1}") I able to understand dispatcher().assign() is trying to assign the matched urls to prepare function of flat thread with 0th parameter. Is mapper().assign() ignorable here? Please enlighten :( thanks Abhishek Kaushik |
From: Abhishek K. <abh...@gm...> - 2011-08-04 13:48:38
|
Hi, I have been going with the examples and documentations. I fully understand the functionlity of url_dispatcher, like how it links to applications functions filtering it from regex and passing the filtered value as parameters (I am referring the dispatcher.assign() function here). I am still not able to make any clue about url_mapper (mapper.assign() actually). I have been seeing it to be used in with dispatcher function, is it mandatory? does the mapper function as to be used along with dispatcher? Can you explain in the very simplest term & example, what exactly url_mapper does? and how can it be similar and different from dispatcher? Thanks Abhishek Kaushik |
From: Daniel V. <chi...@gm...> - 2011-08-01 18:58:06
|
Hello Daniel, I don't understand exactly what you need. CRUD = Create, read, update and delete. With MySQL or with any SQL database we can do: INSERT statements for create. SELECT statements for read. UPDATE statements for update. DELETE statements for delete. In cppdb documentation there are examples for executing statements like insert, select, update and delete. http://art-blog.no-ip.info/sql/cppdb/ Good bye. On Fri, 2011-07-29 at 19:54 -0400, Daniel Rios wrote: > Hello there! > > > Where I can find a CRUD example using MySQL ??? The actual examples > are ok but there's missing a CRUD one !! > > > Daniel > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Daniel R. <dan...@li...> - 2011-07-29 23:54:41
|
Hello there! Where I can find a CRUD example using MySQL ??? The actual examples are ok but there's missing a CRUD one !! Daniel |
From: Artyom B. <art...@ya...> - 2011-07-28 19:34:32
|
I'm glad to hear. So would you be so kind to add your company to this list: http://art-blog.no-ip.info/wikipp/en/page/who_uses Artyom >________________________________ >From: 陈抒 <csf...@gm...> >To: cpp...@li... >Sent: Thursday, July 28, 2011 5:27 PM >Subject: [Cppcms-users] We are using CPPCMS now > > >Hello,Artyom: > I read your email from here:http://sourceforge.net/mailarchive/forum.php?thread_name=138910.91788.qm%40web36707.mail.mud.yahoo.com&forum_name=cppcms-users > > > Yes,we are using CppCMS.I just created one C++ team to develop our own restful web services.I am a team leader from Lifeix(www.l99.com) in China.I am about to replace some existing web services(developed by Java) with CppCMS to retrieve the best performance. > Thanks for your great work and hope the 1.x comming soon. > >陈抒 >Best regards >http://blog.csdn.net/sheismylife > >------------------------------------------------------------------------------ >Got Input? Slashdot Needs You. >Take our quick survey online. Come on, we don't ask for help often. >Plus, you'll get a chance to win $100 to spend on ThinkGeek. >http://p.sf.net/sfu/slashdot-survey >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2011-07-28 19:32:58
|
To: cpp...@li... >Sent: Thursday, July 28, 2011 5:21 PM >Subject: Re: [Cppcms-users] How to call MySQL store procedure > > >It seems that CPPDB doesn't support store procedure for now. Any plan for this? >I have to use MySQL++ now. >陈抒 >Best regards >http://blog.csdn.net/sheismylife > > Do you have any specific problems calling stored procedures? See: http://dev.mysql.com/doc/refman/5.5/en/call.html I don't see something specific that would prevent from executing "CALL " statement or query. This example from the site: mysql_query(mysql, "SET @increment = 10"); mysql_query(mysql, "CALL p(@version, @increment)"); mysql_query(mysql, "SELECT @version, @increment"); result = mysql_store_result(mysql); row = mysql_fetch_row(result); mysql_free_result(result); Can be executed as; sql << "SET @increment = 10" << cppdb::exec; sql << "CALL p(@version, @increment)" << cppdb::exec; cppdb::result r = sql << "SELECT @version, @increment"; By default CppDB uses prepared statements, if you want unprepared onces (I don't know if mysql requires unprepared statements for such things) you may call sql.create_statement("SET @increment = 10").exec(); sql.create_statement("CALL p(@version, @increment)").exec(); cppdb::result r = sql.create_statement("SELECT @version, @increment"); If you have any specific problems using CALL syntax tell exactly what you are doing and probably provide a simple use case that shows the problem. Artyom |
From: Artyom B. <art...@ya...> - 2011-07-28 19:22:43
|
I don't see anything that prevents from you to execute a statement "CREATE DATABASE". So what you can do with sqlite API should be doable, if the statement fails it would throw if succeeds it would work. Artyom >________________________________ >From: Klaim - Joël Lamotte <mj...@gm...> >To: cpp...@li... >Sent: Thursday, July 28, 2011 3:51 PM >Subject: [Cppcms-users] [CPPDB] Creating SQLite3 databases > > >Hi, > > >I'm interested in using CPPDB as C++ wrapper to manipulate SQLite3 databases for an embedded application. > > >It's not clear from the documentation (or I probably missed something) if there is a way to create the database file on connection. >Is there a way? I understand that it's a SQLite-specific feature. >Do we have to create the database with the C interface first, then connect to it with CPPDB? >Or maybe connecting to a file that don't exists and executing "CREATE DATABASE" will work? >Am I correct in thinking that connecting to a database that don't exist will just throw an exception? > > >Joël Lamotte >------------------------------------------------------------------------------ >Got Input? Slashdot Needs You. >Take our quick survey online. Come on, we don't ask for help often. >Plus, you'll get a chance to win $100 to spend on ThinkGeek. >http://p.sf.net/sfu/slashdot-survey >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: 陈抒 <csf...@gm...> - 2011-07-28 14:27:48
|
Hello,Artyom: I read your email from here: http://sourceforge.net/mailarchive/forum.php?thread_name=138910.91788.qm%40web36707.mail.mud.yahoo.com&forum_name=cppcms-users Yes,we are using CppCMS.I just created one C++ team to develop our own restful web services.I am a team leader from Lifeix(www.l99.com) in China.I am about to replace some existing web services(developed by Java) with CppCMS to retrieve the best performance. Thanks for your great work and hope the 1.x comming soon. 陈抒 Best regards http://blog.csdn.net/sheismylife |
From: 陈抒 <csf...@gm...> - 2011-07-28 14:22:11
|
It seems that CPPDB doesn't support store procedure for now. Any plan for this? I have to use MySQL++ now. 陈抒 Best regards http://blog.csdn.net/sheismylife On Wed, Jul 20, 2011 at 4:04 PM, 陈抒 <csf...@gm...> wrote: > Hello, > I didn't find any document that describes this feature. > Can anybody tell me how to do this? > > > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > |
From: Klaim - J. L. <mj...@gm...> - 2011-07-28 12:51:28
|
Hi, I'm interested in using CPPDB as C++ wrapper to manipulate SQLite3 databases for an embedded application. It's not clear from the documentation (or I probably missed something) if there is a way to create the database file on connection. Is there a way? I understand that it's a SQLite-specific feature. Do we have to create the database with the C interface first, then connect to it with CPPDB? Or maybe connecting to a file that don't exists and executing "CREATE DATABASE" will work? Am I correct in thinking that connecting to a database that don't exist will just throw an exception? Joël Lamotte |