64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for &rea

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 …

Member Avatar for jencas
0
80
Member Avatar for memnac

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 …

Member Avatar for memnac
0
357
Member Avatar for ninjaneer

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 …

Member Avatar for ninjaneer
0
464
Member Avatar for mcgarry101

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 …

Member Avatar for mcgarry101
0
149
Member Avatar for Graham_Saint

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 …

Member Avatar for Graham_Saint
0
301
Member Avatar for integer*09

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 = …

Member Avatar for integer*09
0
166
Member Avatar for klay.martens

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 …

Member Avatar for klay.martens
0
169
Member Avatar for sushilchandu
Member Avatar for sreein1986
0
127
Member Avatar for SteveDB

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 …

Member Avatar for SteveDB
0
254
Member Avatar for k2k

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

Member Avatar for k2k
0
150
Member Avatar for wcmport

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 …

Member Avatar for wcmport
0
82
Member Avatar for unixmonkey

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 …

Member Avatar for ShawnCplus
0
286
Member Avatar for Gold dragon

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 …

Member Avatar for morrock
0
139
Member Avatar for Brent.tc

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 …

Member Avatar for Duoas
0
96
Member Avatar for wcmport

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 …

Member Avatar for wcmport
0
110
Member Avatar for Q8iEnG

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 …

Member Avatar for Q8iEnG
0
118
Member Avatar for tones1986

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 …

Member Avatar for tones1986
0
198
Member Avatar for LaurenceB

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 …

Member Avatar for LaurenceB
0
90
Member Avatar for Greyspectre

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 …

Member Avatar for Greyspectre
0
125
Member Avatar for Stewie

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 …

Member Avatar for creative72
0
598
Member Avatar for evaristo

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 …

Member Avatar for evaristo
0
148
Member Avatar for cam875

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"; …

Member Avatar for ninjaneer
0
120
Member Avatar for antwan1986

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 …

Member Avatar for nav33n
0
2K
Member Avatar for marcosjp

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 …

Member Avatar for marcosjp
0
154
Member Avatar for plusplus

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 …

Member Avatar for bala24
0
172
Member Avatar for QuantNeeds

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. …

Member Avatar for QuantNeeds
0
2K
Member Avatar for mrboolf

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 …

Member Avatar for mrboolf
0
595
Member Avatar for QuantNeeds

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 …

Member Avatar for QuantNeeds
0
305
Member Avatar for k2k

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 …

Member Avatar for masijade
1
533
Member Avatar for curtranhome

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?

Member Avatar for Luckychap
0
132
Member Avatar for integer*09

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 …

Member Avatar for integer*09
0
340
Member Avatar for FTProtocol

[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

Member Avatar for FTProtocol
0
109
Member Avatar for n00b3

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 …

Member Avatar for n00b3
0
129
Member Avatar for veledrom

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

Member Avatar for veledrom
0
125
Member Avatar for marcosjp

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 …

Member Avatar for marcosjp
0
315
Member Avatar for thompa

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 …

Member Avatar for thompa
0
356
Member Avatar for Hercf

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” …

Member Avatar for cmhampton
0
134
Member Avatar for jstama

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!

Member Avatar for cmhampton
0
137
Member Avatar for Alex Edwards

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 …

Member Avatar for Alex Edwards
0
5K
Member Avatar for veledrom

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 …

Member Avatar for tesuji
0
87
Member Avatar for s7plc

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, …

Member Avatar for sneekula
0
6K
Member Avatar for curtranhome

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 …

Member Avatar for stephen84s
0
90
Member Avatar for mike issa

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 …

Member Avatar for mike issa
0
344
Member Avatar for Gold dragon

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 …

Member Avatar for Gold dragon
0
83
Member Avatar for emilio

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.

Member Avatar for yilmazhuseyin
0
106
Member Avatar for darcee

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 …

Member Avatar for sDJh
0
129
Member Avatar for k2k

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 …

Member Avatar for k2k
0
142
Member Avatar for Vega_Knight

hi all, i try to make array here but i didn't know how to make it? please help me.. best regards..

Member Avatar for Clive29
0
135
Member Avatar for prasu

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 …

Member Avatar for prasu
0
158
Member Avatar for dmanw100

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 …

Member Avatar for dmanw100
0
167

The End.