topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday August 1, 2021, 2:54 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Davidtheo [ switch to compact view ]

Pages: [1]
1
Developer's Corner / SQlite + Php 5.2.9 + Apache2.2
« on: July 19, 2009, 09:20 PM »
Can someone please help me with sqlite.

I am using SQlite + Php 5.2.9 + Apache2.2.

I can create a table using "CREATE TABLE startup (row_id INTEGER PRIMARY KEY"

But when I try to use "CREATE TABLE startup IF NOT EXISTS (row_id INTEGER PRIMARY KEY" or "CREATE TABLE IF NOT EXISTS startup (row_id INTEGER PRIMARY KEY" I am getting this error.

"Error in query: SQL logic error or missing database"

Does anyone know if the "IF NOT EXISTS" statement can be used with SQlite, Php 5.2.9 + Apache2.2. or is there an other way of checking if a table does exists before trying to create it.

2
Developer's Corner / Help C# ASPX Database/dropdown error
« on: May 18, 2009, 01:39 AM »
I have a drop Download list that is being filled from a database:

My ASPX.cs file
        myDataAdapter.Fill(myDataSet, "country,country_id");

        DropDownList1.DataSource = myDataSet;
        DropDownList1.DataValueField = "country_id";
        DropDownList1.DataTextField = "country";
        DropDownList1.DataBind();

my APSX File
<asp:ScriptManager ID="ScriptManager1" runat="server">
                                </asp:ScriptManager>
                                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                    </asp:DropDownList><br /><br />
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                       
                                        Adderss: label stuff
                                        Adderss: label stuff
                                    </ContentTemplate>
                                    <Triggers>
                                        trigger stuff
                                    </Triggers>
                                </asp:UpdatePanel>

when I select something from the drop down list a access the database again but no matter how many items are in the dropdown I get return a value of 1 from this code
My ASPX.cs file
database stuff
        int place = Convert.ToInt32(DropDownList1.SelectedValue);
        String strSQL = database select using place

Can someone please help me?

3
Developer's Corner / PHP Database help.
« on: May 11, 2009, 11:05 PM »
I am trying to create a php page that has 2 drop down lists and a search box, the drop down list are filled via database.

for exmlpe My database can be something like.

Table 1
Subject ID
Subject

Table 2
Subject ID
paper ID
Paper

Table 3
Subject ID
Paper ID
Title
Des

Drop down box 1 will be filled from Table 1 (subject)
Drop down box 2 is filled from Table 2 based on what subject is selected in Drop down box 1
when a search word is entered into the search box then table 3 is searched based on the search box and what is selected in down down boxes 1 and 2
the search result is displayed in a different page as links, the link when clicked  displays the Full record that is in table 3.

Can someone please tell me how to or help me do this?

Thanks

4
C / C++ / Static Text Control Font Size
« on: March 03, 2009, 02:28 AM »
Hi,

Can some one please tell me a easy way to make these to static text label controls in MFC, MS Visual Studio have a larger text font.

I would like.

IDC_Words to have a font size of 70.
IDC_Answer to have a font size of 50.

I have tried GetDlgItem(IDC_Word)->SetWindowTextW(); and IDC_Answer::FONTSIZE(50); but both do not work.

Thanks

5
Developer's Corner / Visual C++ Help please (Vector<>)
« on: February 20, 2009, 02:56 AM »
OK I have written this small program that helps me learn Chinese and it works in C++ but I want to have a GUI for it current no GUI, So I am transferring it over to Visual C++ making changes as I need too. I have come to a problem with my Vectors.

Error
Code: C++ [Select]
  1. errorC2923:'std::vector' : 'words' is not a vaild template type argument for parameter '_Ty'


the error is happening here.

Code: C++ [Select]
  1. // Chinese learning.cpp : main project file.
  2.  
  3. #include "stdafx.h"
  4. #include "Form1.h"
  5. #include "words.h"
  6. #include <vector>
  7. #include <string>
  8. #include <fstream>
  9.  
  10. using namespace Chineselearning;
  11.         //functions
  12.         void split(std::string, std::vector<std::string>&);
  13.         int checkword(std::vector<words>&, std::string);
  14.         void getword(std::vector<words>&, std::string);
  15.         void getfile(std::vector<words>&, std::vector<words>&);
  16.         //void outfile(std::vector<words>&, std::vector<words>&);
  17.         void print(std::vector<words>&);
  18.         int getrand(int);
  19.         void display(std::vector<words>&);
  20.  
  21.         // TODO: Add extra initialization here
  22.         std::vector<words> vecWords;
  23.         std::vector<words> vecWordsTemp;
  24.         std::vector<std::string> words;
  25.     int input = 0;
  26.     int index = 0;
  27.         std::string lineIn;
  28.        
  29.         //start
  30.        
  31. [STAThreadAttribute]
  32. int main(array<System::String ^> ^args)
  33. {
  34.         // Enabling Windows XP visual effects before any controls are created
  35.         Application::EnableVisualStyles();
  36.         Application::SetCompatibleTextRenderingDefault(false);
  37.  
  38.         // Create the main window and run it
  39.         Application::Run(gcnew Form1());
  40.  
  41.         getfile(vecWords, vecWordsTemp);
  42.         return 0;
  43. }
  44. //ERROR happening on this line std::vector<words>& vecTemp
  45. int checkword(std::vector<words>& vecTemp, std::string word)
  46. {
  47.  int index = -1;
  48.  if(vecTemp.size() != 0)
  49.  {
  50.   for(std::vector<int>::size_type ix = 0; ix != vecTemp.size(); ++ix)
  51.   {
  52.    if(vecTemp[ix].getNewWord() == word)
  53.    {
  54.    return ix;
  55.    }//end if                              
  56.   }//end forloop
  57.  }//end if
  58.  return index;    
  59. }//end checkword

words is a class not a template.

I am also getting some other error message that I have not looked at yet.

As I am learning Visual C++ please do not change the code and send it back to me. I would like to know what I am doing wrong and How to fix it.

Thanks.

6
Developer's Corner / Check boxes
« on: January 08, 2009, 03:15 AM »
Ok I have a small problem.

I need the text on the second line of each checkbox to line up with the first line, I have tried using a div but it just puts the text on the line below and I do not want to use the space &nbs... command.

Does anyone have any ideas or will I have to use the space code.

Checkbox this is the text here that is
over two lines
Checkbox this is the text here that is
over two lines
Checkbox this is the text here that is
over two lines


7
Living Room / GPS and Google earth
« on: December 30, 2008, 01:08 AM »
I would like to get my hands on a GPS that can record where I have been, save it and then I can put my route on Google earth but I think Google earth uses one kind of format. I would also like this GPS to have maps I can load into it so I can plot my traveling and find myself if (when) I get lost, I perfer Google maps but any kind would do as long as the maps cover areas like China, Japan and other areas and not only the USA.

Can anyone tell me a GPS that would do this, the name and model number.


8
Announce Your Software/Service/Product / Powerword 2009 released
« on: November 10, 2008, 09:29 PM »
Hi all

Just through I'll let you know Kingsoft has released Powerword 2009 (English-Chinese and Chinese-English translation software)

You can Download from here http://cp.iciba.com/2009/index2.shtml (page in Chinese)

If you would like this product and can't read Chinese please let me know at the Kingsoft Support forum

30 day trial download (exe download)

I have been testing Powerword 2009 and it has a lot of improvements on 2007 including working with Firefox 3, Pinyin, English version and voice over in English and Chinese.

Edit: Added 30 day trial link

9
Hi all,

Just thought I would let you know we have extend the promotion Offer for KSO09 for one more month, please visit Kingsoft Office 2009 Promotional Offer for more details about getting 30% off KSO09.

Also I am hoping to have some more information on the free KSO07 version by the middle of this month, when I get this information I will post it for you.


10
Living Room / microsofts anti piracy measures in china
« on: October 29, 2008, 02:17 AM »
Would you class this is spending malware? Microsoft makes computer screens turn black.

Kingsoft reacts to microsofts anti piracy measures in china

The question I am asking is "Does Microsoft putting software on computers that make the screens turn black without the user knowing or knowledge count as malware" the legal software industry in china is NOT part of the question.



EDITED: to make the question clearer.

12
General Software Discussion / which Linux version for my laptop
« on: October 22, 2008, 02:31 AM »
Hi

I am thinking about installing Linux on my laptop can anyone give me any ideas of which one I should instill. I have heard Ubuntu is good.  :D

Is there a version of MSN that will run on Linux or will I need to change my Messenger program too. (Hoping I do not but knowing I may have too)  :(


13
Kingsoft is giving away 6 month serial keys for Kingsoft Internet Security (KIS9). If any one would like to try this software email me asking for a "6 month serial number for KIS9" at [email protected] and download KIS9 from here /downloads/KIS_International_9_Online_ENG_RTM_20080613.EXE or here http://www.brothersoft.com/download-kingsoft-internet-security-28996.html  :Thmbsup:

14
Found Deals and Discounts / Kingsoft Office Promo
« on: October 05, 2008, 10:41 PM »
Hi all

Kingsoft has a deal until the end of October 2008 where you can get Kingsoft office for only 49 USD was 69.95 USD

Just request the promo code from here /forum/viewtopic.php?f=7&t=245

I am the International support person for the company, if you have any questions on this deal please ask.


15
General Software Discussion / Kingsoft Office
« on: September 27, 2008, 01:58 AM »
Hi

Just want to know if anyone has tried Kingsoft Office 2009. They have just released the finial Version and it is now compatible with Office 2007 formats.

http://www.kingsoftresearch.com/



Pages: [1]