64,152 Solved Topics
Remove Filter ![]() | |
Hello, I have got a problem with an initialization. [code] #define TAB 1000 int table_collision [][TAB]; void function() { for(int i=0;i<2;i++) { for(int j=0;j<TAB;j++) { table_collision[i][j] = 0; } } } [/code] When I look each value I see that the initialization doesn't work. For example table_collision[0][0]=20125560 table_collision[0][1]=20133568 table_collision[1][103]=1429512 there … ![]() | |
Hello All, I have two multi-select listboxes, 'listFrom' and 'listTo'. I want to be able to copy mulitple selections from 'listfrom' to 'listTo' and delete those selections from 'listfrom'. To copy over multiple items is no problem but when i introduce the 'removeitem' line to delete the selection, it deletes … | |
Calling any multi-thread wizards. Here is a copy of the relevant parts of my main function... [code] CWinApp theApp; [COLOR="Red"]//the application's handle? not sure...[/COLOR] using namespace std; UINT callProcessThread(LPVOID minutesSpent); //worker thread function, process output UINT initializeProgram(LPVOID flag); //worker thread function, load MCR void inputCalculateOutput(void); // function that sorts data … | |
Hi, I am wondering if anyone can help me with a small problem I am having. I am populating a gridview from an oracle DB. I only want some of these columns to be editable so I am using the code below to try and acheive this. As you can … | |
Greetings, I am writing a Delphi application that uses Absolute Database. When the user presses a button the application fills in some values in a second form and then displays the form. Last night I added a DBGrid to the second form to display a small Absolute Database table. Hitting … | |
Hi all, I need some help on creating a file with name from user input like from textbox. i have the following code with the filename in textBox2->Text but i dont know how i can get it done. [CODE]string::size_type j = line.find_first_of( " \t", iter ); string found; found = … | |
Hi all, Could not work out if this belonged in the c++ forum, or the python forum.... Basically, I am writing an application in c++ which embeds python. The annoying thing is that I have no way of knowing in advance what version of python will be installed on a … | |
Hi all. I have found some tutorials online, I believe they were from some university classes, and one from a guy named Juan Soulie. I seem to have solved the bulk of my issues, yet have one last one-- that I can identify. For some reason that I still don't … | |
hi, does anyone know how to check if certain character is contained in the argument? for example: > foo /home/myname how should I check if the argument contains a "/" character? thanks | |
my program is supposed to be an 11 X 11 grid where a mouse is placed on the center square. I am to count all the squares touched (or untouched) until the mouse has occupied every square. I also need to count the number of times the mouse touches the … | |
Hey All, I've been googling and phping (doesn't quite sound as good) and I can't seem to find any references or even what it is called. Here is my current situation: We have a webserver running at production.company.com In directories below that, we have web-applications such as production.company.com/timeTracker production.company.com/calculator production.company.com/geneticCloner … | |
I am almost finished making a black jack game and I was wondering how to solve this problem i have tried everything i know and it is all unsuccessful... I will copy and paste my code and show the problem see text below the code... Public Class Form1 Public YourCards … | |
Hi, I need to know how (if it is possible) to determine the sizeof a function... [code=c++] #include <iostream> using namespace std; int theFunction(); int theFunction() { int x = 0; return x; } int main() { cout << sizeof theFunction; cin.get(); return 0; } [/code] The above does not … | |
I have written code that is supposed to be an 11 X 11 grid. A mouse is placed on the center spot and until such time that it touches each and every square, the program will continue to run. I also need to count how many times the mouse touches … | |
Hi developers :) Actually, I'd like to introduce myself first, I'm Mohd. *Computer Engineer* still student :/ Actually, I really like this community, and I think I'll be active in the C++ section as I like it xDD back to my question :) Please can anyone help me doing this … | |
Hey guys... this is my first time working with assembler, so please be patient with me! I am currently taking a course in assembler and have had a couple of basic assignments so far (mainly number systems, adding subtracting, two's complements etc etc). This is my first major (you may … | |
Hi, this is my first post. Ive made a number game which is written in python 2.5 and have some problems with it: ------------------------------------- import random # You've got to guess 4 numbers between 0 and 30, if you one right the program will output "WINNER" and tell you the … | |
Hello, I have been writing a piece of code to pull a set of numbers out of a text file and store them in assorted int and double variables and int and double arrays. Currently my program does this and successfully stores all the values, however it returns a large … | |
Right now I have a page set up that inserts a record into a DB that a user enterd. I have it set up to take them to another page that shows the the information that they entered. but I also have a cfmail tag that e-mails the same information … | |
dear bunch of developers, i have this JTable and i'm contructing it with a model object extended from a DefaultTableModel. The way i'm passing the data to it is by means of a vector: [CODE]public void setData(List<Object> data) { myTableModel.setDataVector(data); }[/CODE] ...and in my table model i have something like … | |
My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up. void AmasiVillage() { CharacterLocationID = 1; system("cls"); cout << "\n"; cout << "\n"; cout << "\n"; … | |
Hi everyone and thanks for reading. I've been making a news section for a client's site and now I'm trying to make a little box for the front page to show the five latest stories. Everything is fine in that aspect; I know about using the LIMIT keyword in the … | |
Hello there, again! Well, once I solved the stupid bug I had in my first Python class ever, now I'm getting results I wasn't expecting. The problem is: I instantiated two objects of this class but, apparently, one of the objects is just a copy of the other. And if … | |
I have a login control, when user presses login I want to check if he exists in the table. I made a connection to database, and now how do I check if he exists? Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login1.Authenticate Dim sqlstring As String … | |
Hello, I am working on two separate programs because I was trying one differently. I got my other program’s issue solved but now I would like to complete this one. But I am little lost on the error because the data it is complaining about is part of the class. … | |
Hi all. I'm trying to write a "simple" program for a word game (something somewhat similar to Scrabble) and I got stopped by the task I tought to be easy enough to start with. I have a text file (Italiano.list) wich is a collection of italian words listed alphabetically as … | |
Hello, I have 3 major problems: 1) I am not sure if I am doing my static test method correctly. 2) I am not sure if the wagering class is actually checking the bankBalance and the wager 3) I have the following error, which I am not sure how to … | |
hi, i had a few unix questions that I am not sure about the answers. if anybody can give a try... that would be great. 1. In sed, when you do pattern matching, the largest pattern is always matched first, left to right. True or False 2. The command tr … | |
I need help to find a code that will hide the file location on the server, like instead of showing: [url]http://cbuy.webs.com/file.html[/url] I would want it to show: [url]http://cbuy.webs.com/[/url] for the whole site. can and will anyone help me please? | |
Hi all, I have done a word search within a text file and managed to find it on a particular line, but i dont know what to do so as to get the word/number directly after the searched word. e.g content with the text file sdakodjskfjsdkfjasook sample1. : ihavemakeit sdofjsdfjasfjsdkf … | |
[CODE] GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); FindWindow(NULL, szContact); break; [/CODE] once its found the window of szContact, how can i bring that window to the front | |
Hooked Procedure Early Return In/External Trigger Hello, I've hooked into an application succesfully using WH_CALLWNDPROCRET or WH_CALLWNDPROC both give the same issue detailed below. In the hooked callback function I trigger my code by waiting for a spceific window message. Once the hooked callback function receives this message, my code … | |
Hi, I have created a project in VB6. How can make it SETUP / INSTALL kit? I have added some refferences and components as well. Thanks | |
Hello! I'm studying Python and wrote a very simple class to work with bidimensional arrays - just as an exercise. Before writing te class I played around with functions and they worked fine. When I tried to do the same using a class, things became strange... Okay, I wrote this … | |
Hi there, I have had a script on my web site which opens a popup window when clicked. It works in Firefox and I am sure that it worked in IE6 - but it does not work in IE7. The javascript part is from Eric King who posted the script … | |
Hi everybody! Could you teach me how to get back the “primary key”: (“id”), from an “insert query”? * [code=coldfusion]<cffunction name="insertData" access="public"> <cfargument name="formData" type="struct" required="yes"> <cfquery name="qInsert" datasource="mydata"> INSERT INTO mytable (email, firstname, name) VALUES ('#formData.email#', '#formData.firstname#', '#formData.name#') </cfquery> </cffunction>[/code] * How could I get back the primary key:”id” … | |
I use a page that pulls the content from a database, including the title of the document. How can I make that title to also be the browser title (content in the title tag)? Thanks! | |
I know this is a really sad question to ask, but please tell me... how and when should I ever use extern? I recall an example that Narue showed me but even if I read through the definition from MSDN.com as well as other sources, I still can't quite understand … | |
Hi, [code] INSERT INTO table1 (supid, paid) VALUES ( (SELECT supid FROM def_1 WHERE id IN (SELECT id FROM def_2)), (SELECT paid FROM def_1 WHERE id IN (SELECT id FROM def_2)) [/code] This code returns more than 1 value, teherefore i can not execute it. Is there any other way … | |
Ok, I would like to use a regular expression that I create dynamically to search and replace words in a file. For instance: import re fl = re.compile('abc|def|ghi') ts = 'xyz abc mno def' n = fl.search(ts) print n How would I find all matches in the string? So far, … | |
can anyone please give me the code (or point me in the right direction) to be able to password protect a web page with javascript that gets the usernames and passwords from a database and displays a message if the entered password or username is wrong and points the user … | |
i have a header file and one of the function prototypes is [CODE]extern "C" LONGBOOL _stdcall LT360LIB_CmdValue(LONGINT Handle, LONGINT CmdID, char * ParamValue);[/CODE] and there is an example of using this code [CODE]z=LT360LIB_CmdValue(0, lt_Goto_CCW, "5.5");[/CODE] when i try this code it compile and builds correctly but when i run the … | |
I am making a Black jack game and i am trying to make it so that when my label which shows my current randomized valued which is "2,11" if this label = 10 then i would like it to randomize so that my picture box displays one of 3 randomized … | |
is it possible to pass custom eventargs in mouse click or double click eventhandler ? when i tried , it gave me an error about no overload method for double click in the designer. | |
how to put icon on php? in my index.php where i can put the code? heres my index. php <?php include("./include/auth.php"); include("./include/top_header.php"); ?> <table width="98%" align="center"> <tr> <td class="textArea"> <strong>You are now logged into <a href="about.php">Cacti</a>. You can follow these basic steps to get started.</strong> <ul> <li><a href="host.php">Create devices</a> for … | |
first of all, what can i do to make my command works like the "ls, cp, mv" ? I always do vi myScript.sh and then chmod +x myScript.sh and I have to execute it like ./myScript.sh ,,, simply typing $myScript at the command promp will not work. Second question for … | |
hi all, i try to make array here but i didn't know how to make it? please help me.. best regards.. | |
Please Check the code and reply what is wrong in the update code Try block is executed successfully........but it is not being updated. Public Class Form3 Dim cn As New Odbc.OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=attend_ap; User=root;Password=;") Dim cmd, cmd2 As Odbc.OdbcCommand Dim adp, adp2 As Odbc.OdbcDataAdapter Dim ds, ds2 As New … | |
I was wondering if anyone could recommend a powerful library for communicating with USB jump drives? My attempts to locate a solution on Google have not provided much in terms of usefulness. I would simply like to read and write to the drive, perhaps even find the size of the … |
The End.