64,152 Solved Topics
Remove Filter ![]() | |
Hi, If I have a stored procedure that creates a table of 4 rows (recommended products for a given product). What's the best way to create a cached table of these 4 recommended products for EVERY product in a products table. (Cached table being 4 times bigger than product table) … | |
I am learning how to make Windows in C++, and I have a problem: [code=c++] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MessageBox(NULL, L"Hello World!", L"TEST", MB_ICONEXCLAMATION | MB_OK); return 0; } [/code] I get this error: [icode]Error 1 error C2664: 'MessageBoxA' : cannot … | |
Hi I am trying to use onclick to add text to a textarea, the function I am using is: [CODE]function addtxt(input,add) { var obj=document.getElementById(input) var txt=document.createTextNode(add) obj.appendChild(txt) }[/CODE] and the line that I use to call the function - through php- is: [CODE]<a onclick=\"addtxt('post','$code');\"> <img src=\"smiles/$smile\" alt=\"$smilename\" border=\"0\" style=\"cursor: pointer;\"></a>[/CODE] … | |
i got an exercise in which i've to write a code that does: when you enter the day of the month (f.e. 21th) and the day (f.e. Sunday) and the month (f.e. august) will display if in the given month there is a 13th Friday. so i made a prog. … | |
When printing output to a terminal in C++, should i use "\n", or "endl"??? Is one lighter, faster, or industry standard? | |
Question: Prompt user to enter ten two digit number. The program should compute the sum of all positive values and print the sum of values added. Over here what I had done is: Chosen list to store initial all the ten numbers. First I have to initialize the list with … | |
Hello All. This is my first post here, and I'm hoping that it's my first of many. I'm just starting out in C#. I did a really small project in VB.NET, but other than that, my experience in any programming language is highly limited. I'm working on a project for … | |
I have tried to delare the List Incr outside the if-statment and then inside the if-statement I declare a new instance of the List but when doing this I get a compilerror that says: [I]left of '.Add' must have class/struct/union[/I] [code] List<int>^ Incr; if( textBox1->Text != "" ) { Incr … | |
I need help with an isometric tile-building program I'm making. The user has many different tile images to choose from to put on a isometric map (ex. Grass, Dirt, Wall). I wanted an easy way to store all these image so I put them in resx file in a satellite … | |
I've searched through the threads and I can't find what I am looking for exactly. I apologise if I'm posting something already resolved for someone else. I have a page for browsing the contents of a database. An option for each of those records is to update/edit. The user clicks … | |
I'm quite new too C++ but finally my experience is good enough to actually create something, that's what I thought... So I triedto make this easy Tic Tac Toe Game and I think i got it all right but obviously not cause when I try to choose somewhere to put … | |
Hello World! i want to write a program that generates 100 random numbers. the program should do the following tasks: ** store these 100 random numbers in a file called totalFile.txt ** read these numbers one by one from totalFile.txt and store the even numbers in a file called evenFile.txt … | |
Hello i got trouble to add data i got error saying: OleDbException was unhandled here's the code: [code=vb.net]Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click Dim com As New OleDbCommand com.Connection = con com.CommandText = "insert into Watches values(" & txtWatchId.Text & ",'" & txtWatchBrand.Text & … | |
This is driving me nuts!!! I am passing a text array from a form to another file and trying to display the data. I have reduced the process to it's simplest form and still can not make it work. FormSend.php: [code] <?php echo '<form method="post" action="FormRecieve.php" name="Activate"> <input type="text" name="fruit[]" … | |
Hello, I currently have a sample WCF service that has the following classes: [CODE]using System; namespace SampleWCFService { [Serializable] public class BaseClass { public string someText; public BaseClass(string someText) { this.someText = someText; } } } using System; namespace SampleWCFService { [Serializable] public class ExtendedClass : BaseClass { public int … | |
Hello, I am new to the Python language and I am having difficulty with the print statement. For example, when I type print 4, or print "Hello", i get an error. The error message is: [CODE]SyntaxError: invalid syntax (<pyshell#2>, line 1)[/CODE] When I use python on other computers, the print … | |
Hi. I just got started using wxPython and I was wondering how to create a button which transferred the user from one screen to another. To kind of illustrate what I mean, I created two files, 'main.py' and 'newgame.py'. I've made a button called 'New Game' in the main.py file, … | |
Write a program to read a list of non-negative integers, and to display the largest integer, the smallest integer, and the average of all the integers. The user indicates the end of the list by entering a negative sentinel value (use -1) that is NOT used in the calculations. The … | |
Hi, I have a data object named dataCounter and a MSFlexGrid named gridCounter. I am trying to set the gridCounter.datasource to the dataCounter Dim dbMyDB As Database Dim rsMyRS As Recordset Set dbMyDB = OpenDatabase(App.Path & "\Counter.mdb") Set rsMyRS = dbMyDB.OpenRecordset("CounterTable", dbOpenDynaset) Set gridCounter.DataSource = dataCounter I keep getting a … | |
Hi, all: I got a form where some checbox fields will hide or show as user clicks specific choices. Problem is, if one mistakenly checks one of these checkboxes and then hides it, it still does retain the checked value, even if hidden. How can I make sure that the … | |
I'm having small issue with drawing on panel. Neither image or text appears, however background is set correctly therefore it has to be due some issue inside my paintComponent() method. [code=Java] import java.awt.Graphics; import java.awt.Color; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO ; import javax.swing.JPanel; public class … | |
Hi All, Actually i want to dispaly the results of a select statement in a TextBox. Pls anyone give me an idea how to do it. Thanks | |
Hello there! can anybody here point me to any GUI programming in Linux tutorials. Been googling around but no good hits. Thanks. | |
if using tomcat with eclipse plugin everything works fine through the eclipses built-in browser. is it suffice to say if i copied the eclipses project to tomcats webapps it should work as well? heres how my eclipse project looks like: [URL="http://i40.tinypic.com/315e713.jpg"]http://i40.tinypic.com/315e713.jpg[/URL] invoking html is in WebContent\ WelcomeServlet.html proccesing .class in … | |
I am REALLY new to SQL. Teaching myself C#; downloaded SQL Express 2008. (Not sure of the terminology either...) Successfully created several tables for my desktop customer database. I am not able to populate the database yet... Do I have to create my own application to add data to the … | |
How do you close a QTabWidget? I have the code but when I click on the close button nothing happens. | |
I know how to store data into a database if I know the value of what I am storing. For example: [CODE]sql="INSERT INTO nameDatabase (name) Values('Joe')"[/CODE] However, I want to be able to store data that I do not know the value of into my database. So I can prompt … | |
the following is a simple program that fragments standardized name consisting of 3 letters and 2 numbers then prints the full word, for instance spa11 print spanish eleven. Why is it not working? [code=c] char sname[4]; char snum[3]; // void strnumCpy(char *dest, char *source) { // NOT ACCURATE void strNumCpy(char … | |
hi all ..how are u ? i have a security project in java ...i have to implement the DES cipher and the Stream cipher ...with GUI ..where can i find a working source code for these ciphers ...can someone help plz ...and thnx in advance? | |
I am running into a baffling problem with my code. I am supposed to write a program to average the test scores for an entire class of students. In each case, the student should have taken 5 tests. You are to average the 5 tests. The program run should look … | |
[code]double F_Ite() { //Main Function Start //Locally Data_type Declaration And Initialization : int numElement =20; double *a,*b,*c,*d,*Fc,*Fd; a = new double[numElement]; b = new double[numElement]; c = new double[numElement]; d = new double[numElement]; Fc= new double[numElement]; Fd= new double[numElement]; for(int k=1;k<(NI-1);k++) { //Main 'for' Loop Start std::cout <<"\n"; system("pause"); std::cout … | |
Im new at C++ and am trying to teach myself. I want to ask the user of the program why they are feeling a certain way, but not do anything with the sentece. So its like -how are you feeling?- user -good- -why are you feeling good?- user- blah blah … | |
I need write simple script,but I just started and don't know how to do this at all. And I need it before tomorrow. This is what I need. 1) Create a directory FileData and place four files into the directory. This part, I already did, but second still exist. 2) … | |
Hello I am doing an C++ exercise and the task is to write a program that prints all INT values between 32 to 255 and the corresponding ASCII characters. I have declared the variables to store the ASCII character and the INT like this: [code] unsigned char unchar; int i; … | |
I can't figure out how to write a program that can play multiple sounds at the same time. I tried doing some pretty complex things with the Beep function but I finally gave up. Is there any function or something to that extent out there that will let me play … | |
Hello I'm making a program where the user will be able to organise their orders so they see which ones are complete and incomplete. I want to allow the user to be able to delete an entry from a file (*.txt) as this will be used in two ways: 1. … | |
Im kind confuse about how PostQuitMessage works.. Im using like this: [CODE=cplusplus] case WM_CLOSE : DestroyWindow( hWnd ); break; //send WM_DESTROY case WM_DESTROY : CleanUp(); gsp_quit = true; PostQuitMessage( 0 ); //send WM_QUIT break;[/CODE] That is on my WndProc function. My message loop is like that: [CODE=cplusplus] while ( !gsp_quit … | |
I'm having trouble using my homemade .h files in my multi-source projects. If I I only include the .h in one of the sources I can't use it in the others. But if I include it other sources it's considered redefining the include and it won't compile. Other .h's besides … | |
let say i have a very small functionality in one of the classes of a very big windows application project. i want to use that functionality or let say variable from a class library project, since the functionality i want to hire is not even 1/1000 of the who windows … | |
[code] import os import csv ifile = open("C:/Python26/testdata.csv", "r") [/code] here is the error i get: Traceback (most recent call last): File "C:/Python26/06_June_2009/testhenry.py", line 4, in <module> ifile = open("C:/Python26/testdata.csv", "r") IOError: [Errno 2] No such file or directory: 'C:/Python26/testdata.csv' I have no clue what to do. I can't read … | |
Hi, I just would like to ask if there is a benefit regarding this type of relationship between tables. Say I have a table named Student. I usually relate a table (one-to-one) to extend it. What I mean is so as to not put too much columns in Student table … | |
Hi Every one. i have three timespan t1 =00:10 t2=1:20; and t3. where t3=t1.Add(t2); now t3=1:30 how i can convert this to 1:30Am or 1:30PM Please any one to help me....... Thnx in advance | |
Good Evening All Am amazed that i cant use the Replace Function , its Probably the long that i had. i have the Following code [CODE] String Username = "Vuyiswa"; String Password = "secret"; String strBody = @"<p>Thank you for using !obooking System <br><br> Username:(Username)<br><br>Password:(Password)<br<br>Kind Regards !oBooking</p>"; strBody = Regex.Replace(strBody,Username,"(Username)"); … | |
hi I am badly stuck with inserting and retrieving Date in SQL DB from C#. I have a C# application which needs to save date in SQL 2008 Database for various purposes. The format in DB is DateTime for my DateColumn and i am using Datetime Picker in my c# … | |
I'm writing a query to summarize survey results. There are two tables... 1) The Profiles table contains the users' answers. There are four columns: ProfileID (for the unique key), QuestionID (a number representing canned questions from another table), Answer (a number representing multiple choice answers from another table), and UserID. … | |
Is there a better way to do a search within an array of associative arrays? :) Basically a way to replace the function that I did that works, but was wondering if there's a better way. [ICODE]<?php $employee = array(); $employee [] = array("name" =>"Chris Apple", "company" => "Acme inc.", … | |
Id like to edit a file. At first i thought this was going to be easy, but now it appears quite complex. As i understand it there is no standard way to delete part of a file? im storing data on different lines in the file, and want to target … | |
Hi Every one. I have an MS access database table in which i have stored a data type of date/time in short time format. When i access the table from c# and diplay it into a data grid view the column in short time format diplay as long time format … | |
I am new to writing assembly in linux and I need help with the sys_read call. I am using nasm and I would like to read input from the keyboard. I know how to set the call up but what do I use for the file descriptor. I can not … | |
I need to change a character inside of a string in a list ex horizontal=2 across=2 List=['abcdefg', 'hijklmno', 'pqrstuv',] I would want to change just one character like the third character in the third string(but I don't know that the program will know using horizontal and across) to 'd'. if … |
The End.