199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shazzy99

Hi, I'm doing the following code to connect to Access Db. The db1.mdb is placed in c:\db1.mdb. It giving me error "couldn't find file" [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System; using System.Data.OleDb; namespace CustomerDB { class OleDbTest{ public static void Main() { //create the database connection …

Member Avatar for shazzy99
0
237
Member Avatar for BobFX

Hi, I have a stream server application written in C, that I need to incorporate in a GUI C++ managed new program, but I am having trouble finding the equivalent of the C sockets function calls. The C apps initialize this way: [code] /* * Init socket */ if ( …

Member Avatar for BobFX
0
475
Member Avatar for willmotil

Well i wrote out a example of the problem . im not sure what the best way to deal with this type of situation is or if the way i have it now is the best way. basically the problem is as follows Class A is the base class or …

Member Avatar for Momerath
0
161
Member Avatar for anirban1087

Hi, i am working on a billing page. Where the user will add item(s) to a bill, now the number of item(s) in a bill is not pre defined. So i am taking one input at a time, then adding them to a table in the same page. Now when …

Member Avatar for anirban1087
0
134
Member Avatar for slaidas

my program writes wasd123wasd123, but i dont know how to make it writing 1ws2aasd22ww. How to make random presser? Can someone help me? [CODE] #include <iostream> #include <windows.h> #include <stdlib.h> using namespace std; int main () { for(;;){ Sleep(1000); rand(); keybd_event(VkKeyScan('w'),0,0,0); Sleep(1000); rand(); keybd_event(VkKeyScan('a'),0,0,0); Sleep(1000); rand(); keybd_event(VkKeyScan('s'),0,0,0); Sleep(1000); rand(); keybd_event(VkKeyScan('d'),0,0,0); …

Member Avatar for WaltP
0
150
Member Avatar for qazplm114477

I have spent about a couple of hours trying to read the pcre regex syntax on the php.net manual but I can't for the love of god grasp the concept of it. If anyone can help me it would be greatly appreciated. I'm trying to split some strings into an …

Member Avatar for kekkaishi
0
108
Member Avatar for pcgamer2008

Hello World ! I want to move a rectangle from going one point to another point in openGl. I am reaching the position but movement is so fast when I execute the program..it already in reached state. how to add delay so that I can see moving rectangle.

Member Avatar for pcgamer2008
0
124
Member Avatar for virusisfound

how to disply last enter data of a particular name like table name = abc contents in the table : 1.abc 2.pqr 3.abc 4.xyz now in visual studio i want to search last enter data of abc

Member Avatar for virusisfound
0
160
Member Avatar for snehil_khanor

Is there any way to return the name of the control I click on in a window form application using C#? Using this pointer only returns form name.

Member Avatar for snehil_khanor
0
79
Member Avatar for didi00

Hi guys, I'm trying to use an individual CMS. But when I installed it it shows me this notice: NOTICE: UNDEFINED INDEX: _PAGE IN C:\WAMP\WWW\MYCMS.PHP ON LINE 16 The php file is this: [CODE] <?php if ($_SERVER["REQUEST_URI"]) { if (is_array($tmp = explode("?" , $_SERVER["REQUEST_URI"]))) { $tmp = explode("&" , $tmp["0"]); …

Member Avatar for didi00
0
204
Member Avatar for Nfurman

Hello again, I have a method: [CODE] public static void GetStudents(DropDownList list, Label lbl) { SqlConnection conn = new SqlConnection(Config.DbConnectionString); SqlCommand cmd = new SqlCommand("GetStudentsToDDL", conn); cmd.CommandType = CommandType.StoredProcedure; SqlDataReader reader; try { conn.Open(); reader = cmd.ExecuteReader(); while (reader.Read()) { ListItem item = new ListItem(); item.Text = reader["StudentName"].ToString() + " …

Member Avatar for Nfurman
0
102
Member Avatar for hobokook

Hi, I am having trouble writing a sentinel controlled loop in LC-3 assembly language. I know that you must store the sentinel somewhere in memory and that when the sentinel is detected, then the loop is done. However, how do you actually write this in LC-3 code. Lets say I …

Member Avatar for herpderp
0
2K
Member Avatar for rocco123123

Greetings everyone, I'm a noob here. I could use some help designing part of a MySQL database I'm working on. This is an event database, so think of say a conference. I have sessions and every session has a session_type. A session_type might be a Keynote speech or a Workshop. …

Member Avatar for BitBlt
0
689
Member Avatar for shyla

A file filter reads an input file, transforms it in some way, and writes the results to an output file. Write an abstract file filter class that defines a pure virtual function for transforming a character. Create one subclass of your file filter class that performs encryption, another that transforms …

Member Avatar for shyla
0
1K
Member Avatar for IndianaRonaldo

i need a command in c++ to scan the first keystroke the user enters ....(i.e) user doesnt have to press <enter> key...i need to scan as soon as he types....please help...thanks in advance....

Member Avatar for IndianaRonaldo
0
181
Member Avatar for harinath_2007

Hello, i am looking for creating a progess bar in c application.. I know how to create it in JAVA but i want it in C..

Member Avatar for Moschops
0
105
Member Avatar for RenanLazarotto

Hey guys! Its been a loooong while that I didn't come with any mess here :D I'm making a calculator app for a friend, and I want to make it the more complete that I can. I'm putting into it the basics: addition, subtraction, divison and multiplication. Also, I'm using …

Member Avatar for RenanLazarotto
0
131
Member Avatar for jimmymack

[CODE]// quote.cpp - Script 4.6 // We need the iostream file in order // to use out and cin. #include <iostream> // We need the string file // For the string functionality #include <string> // Start the main function. int main() { // Declare the necessary variables. std::string quote, speaker; …

Member Avatar for jimmymack
0
214
Member Avatar for kimbokasteniv

All I am really trying to do is create a textBox where non-contiguous segments of text can be highlighted at any given time. From the experimenting I have done, it would appear that the System.Windows.Controls.RichTextBox is a good fit for this when customized slightly. Extending RichTextBox and getting multiple pieces …

Member Avatar for kimbokasteniv
0
265
Member Avatar for gabb810

I am trying to implement this code for hash table in python and i don't understand why i and k are not used in the while loop. Can somebody help me please, [CODE] import random data = [] m = 10 t = [] for i in range(10): data.append(random.randint(0, 100)) …

Member Avatar for vegaseat
0
219
Member Avatar for ILIDAN

Can anyone help me to make a basic for loop using an array for example candy to candies not so complicated so I can simulate on my own help me and sorry for my bad English thanks :))

Member Avatar for ILIDAN
0
144
Member Avatar for shyla

Hello, i need help on how to create a JLabel as a status bar that display count representing the number of each shape display in addition i need to create a class called MyShape and make it a superclass this my code for for al shapes : [CODE]package Lab8; import …

Member Avatar for shyla
0
254
Member Avatar for ayan2587

Hi guyzz !! I have tried scouting the internet but could not get a suitable explanation. Please tell me with an example as to what are bit arrays and what are their applications. Any help would be greatly appreciated. Thanks

Member Avatar for mrnutty
0
124
Member Avatar for phpDave

Hello, I wrote a script to send out an email and it works except for the subject line. Not sure why. Anyone know? Is it the "" marks? [CODE] $to = ($_POST['e_mail']); if (!isset($_POST['e_mail'])) $subject = "Registration at MySite.com"; $message = "Welcome to MySite! Your user account has been created. …

Member Avatar for phpDave
0
93
Member Avatar for buster2209

I"m trying to determine if the user is root or not then prompt to become root user; [CODE]if os.geteuid() != 0: # If not root user... os.system("gksudo crack.py") # Open root password window else: # Do Nothing if os.geteuid() == 0: # If you are root user... os.system("You are now …

Member Avatar for buster2209
0
4K
Member Avatar for Xentiago

Hi, I have been left in the lurch with a few php scripts on my site and I'm the first to admit coding is not my strong point! I have managed to fix most of the issues, but I am stuck on the following. Basically, I want to query the …

Member Avatar for diafol
0
333
Member Avatar for eman 22

[CODE] list<int>* compare(){ list q; q.push_front(1); q.push_front(2); return &q; } [/CODE] this method returns a pointer to an empty list how can I do to return priority_queue contain 1,2.

Member Avatar for Moschops
0
128
Member Avatar for MUFC4life

Hello, my task is to create a basic game using Pygame. I decided to do the basic snake game like the one that was on all of the old mobile phones. However when inputing some of the basic code, i realised that once i have paused my game i have …

Member Avatar for griswolf
0
188
Member Avatar for RazorRamon

I'm trying to build a mortgage qualifying script for a company. My php code is working fine .. up until the if else statements. fyi I'm using wamp... heres the code. The code if very raw, i've only been working on it for a day or 2, but I can't …

Member Avatar for Insensus
0
184
Member Avatar for LWS

Hi, i had upload image to mySQL database... The problem is i unable to open or view the image that uploaded. May i know how display image from database by selectted id ??? the picture below is my "upload" table... Appreciate for you help

Member Avatar for trueedmar
0
2K
Member Avatar for Fo.katia

I have to creat a program that draws squares instead of circles. It also has to draw additional squares for each mouse click, and at the end print a message "Click again to quit" after the loop, and wait for a final clikc before closing the window. This is what …

Member Avatar for vegaseat
0
471
Member Avatar for rapture

I get the error test cannot be resolved to a type here [code] test[] arrayOftest = new test[ 3 ]; [/code] - ideas or help? [code] public class Test { public static void main( String args[] ) { Point point = new Point( 3, 3 ); Square square = new …

Member Avatar for AztecShaman
0
6K
Member Avatar for amirsanaii

Hi every one How are you my friends? I need your help I began to programming ruby for 2 weeks and now i want to work on ruby on rails and of course i need a good DBMS, so i decided to use a SQLServer for my work but with …

Member Avatar for waysys
0
229
Member Avatar for write2diba

I am a beginner in C programming language.I have seen many compilers around but I cannot understand which one will be better to use.Plz help me. Thanks....

Member Avatar for rubberman
0
2K
Member Avatar for hawita

Please help how do i do this program?? Write a program to read data from a large text file. Within the file, the data are arranged in two columns, separated by white space characters, and comprised of a variable number of rows of data, the last of which contains nine …

Member Avatar for rubberman
0
569
Member Avatar for ksj

Ok, I read other posts on the same topic, but i didn't get what i exactly wanted.. 1- i want to add JCheckboxes in one of the JTable columns 2- i want to handle events for it.. e.g adding new row when checkbox is clicked etc I referred the java …

Member Avatar for mKorbel
0
1K
Member Avatar for jonpadre

I am currently attempting to write a single [B]recursive[/B] method (per instruction) whereas the items in a binary tree are displayed in a horizontal hierarchical manner (level order traversal). The UML describes the method as: levelOrderTraversal(TreeNode<T> tree, Integer indent) - tree: a node in the binary tree - indent: describes …

Member Avatar for jonpadre
0
201
Member Avatar for vishalbhavsar

Hi friends, I am trying to develop a web application in which I have provided a facility for login and logout. I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and after that if he presses the browser's …

Member Avatar for javaAddict
0
69
Member Avatar for aaronmk2

I am trying to only have the words print out if they occur the same number of times as in the fibonacci sequence. If a words show up 1,2,3,5,8 etc then it will print up. I have gotten the program to print up the words based on how many times …

Member Avatar for vegaseat
0
102
Member Avatar for ashley11

when i browse data, will pop out an error which is index out of range.Must be non negative and less than the size of the collection. may i know wat error with my coding? my text file data are: 11 21 11 21 11 21 below are coding: [CODE] private …

Member Avatar for ashley11
0
108
Member Avatar for MackSwagga

I am trying to write a small program to keep track of my movie collection but I can't seem to get the streamwriter(I think thats what its called to work). Right now I am working on writing to a text file. I had a couple of questions though, will I …

Member Avatar for Momerath
0
170
Member Avatar for sj5536

hi i have to make tool which is similar to google search editor right know i only needed graphical help that is hot create that component according to me it is an drop down list with editable facility is there any way for that in java description when name enter …

Member Avatar for mKorbel
0
91
Member Avatar for OldDeveloper01

Hey i was wondering if it would be possible to have this as a security measure. I am in the middle of creating an admin page for my website. I want them to register though. However to register, in one of the fields they must provide a secret number which …

Member Avatar for diafol
0
100
Member Avatar for anirban1087

Hi, I have a php page to take user input. My page has 3 sections. [B]Section 1::[/B] I am taking some information from the user. [B]Section 2::[/B] I am again taking some input from the user, and [B]Section 3::[/B] I am displaying the data from section 2, in a table. …

Member Avatar for anirban1087
0
134
Member Avatar for sergent

I know I may not be ready for this but I want to make a client side application that will talk to a server and be able to inspect element. I know some Windows APIs and C++ but I am not sure how to log in the web-site with the …

Member Avatar for sergent
0
144
Member Avatar for Skeldave

Hi, I'm making a tv guide program and I'm letting the user select a start date and an end date and I need to output all the programmes which fall between those times. I'm using linq like this to filter the data [code]var result = from p in programmes where …

Member Avatar for Skeldave
0
107
Member Avatar for igho

I TRY TO MAKE CODE COUNTER WITH CODE [B]MR/IR/001[/B] IN MY APPLICATION USING VISUAL BASIC 2008, BUT WHEN THE CODE GET [B]MR/IR/999[/B] IT`S STUCK AND NOT INCREASING, I WANT TO MAKE THE CODE INCREASE TO : MR/IR/1000 MR/IR/1001 MR/IR/1002 MORE AND MORE ... FOR DATABASE I`M USING MS ACCESS 2007 …

Member Avatar for igho
0
194
Member Avatar for aragant

HEY i am trying to resolve my problem here is the code and the error [quote]2 [main] PA4 2768 exception::handle: Exception: STATUS_ACCESS_VIOLATION 2331 [main] PA4 2768 open_stackdumpfile: Dumping stack trace to PA4.exe.stackdump [/quote] Function [code] void BinarySearchTree::Insert(int val) { BSTNode *node, *p; cout<<node->GetLeftChild(); cout<<node->GetLeftChild(); p=root; node->setData(val); node->SetLeftChild(0); node->SetRightChild(0); if(p==0) { …

Member Avatar for mrnutty
0
195
Member Avatar for gman1991

[CODE]#include <stdio.h> #define CALORIES 150 #define WEIGHT 15 int main() { double beer; double money_spent; double total_spent; double total_beer_consumed; double total_calories_consumed; double weight_gain; printf("On average, how many beers will you consume each day?\n"); scanf("%lf\n", &beer); printf("On average, how much will you pay for each can of beer?\n"); scanf("%lf\n", &money_spent); // …

Member Avatar for gman1991
0
109
Member Avatar for bettybarnes

hi guys i would like to ask how do I subtract a value from my column Quantity(data type is integer = 18) in my inventory table if a customer will want to have 2 orders and of course 18 - 2 will be 16. how will i do this? please …

Member Avatar for debasisdas
0
265

The End.