64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Zermoth

is there a way to disconnect a user/s from a database and/or display a msgbox to the users telling them that there are about to be disconnected? ms access 2003

0
84
Member Avatar for vikingGirl

I have an image that I have created using the new image draw functions, but I need to have separate areas of the image as links to other pages. I know that the html map tag can be used to do this, but the problem is I can only get …

Member Avatar for vikingGirl
0
82
Member Avatar for TriceD

Hi all, I'm fairly new to programming as a whole and so I would be grateful if you can help me out. I'm trying to write a program in VC++ or C++ that would intercept print jobs from another program and save this information in another file(to be formatted later). …

Member Avatar for TriceD
0
503
Member Avatar for gamer12223

Hey guys, I am tying to get my program to work, I don't have any errors but I cant get an output from it. I am supposed to output the second set of three from the nine inputs. Thanks to those who reply. [code]#include <iostream> using namespace std; class TMoney …

Member Avatar for Murtan
0
162
Member Avatar for dmanw100

I was trying to find ways to improve the loading time of an application that I'm working on. It uses SDL to handle graphics and sound which brought up a question: which takes longer to load? If I want to load either graphics or sound into memory during the application …

Member Avatar for MosaicFuneral
0
82
Member Avatar for imput1234

Hey, I'm trying to only read the int's and the symbol - (negative) from the file. right now my code is where m,d, and y are dates. Everything works fine. Except I do not read the - symbol. Any one know how to solve this? [ICODE] fin.open(ifile.c_str()); fin >> m1 …

Member Avatar for imput1234
0
162
Member Avatar for designingamy

This may seem like a dumb question...well, it probably is. I am trying to write code for form validation. I wrote the code to check the information and then if everything looks okay, to use header ("Location....... and send them to the next page, but of course I get the …

Member Avatar for designingamy
0
82
Member Avatar for kruglok

I got first part by creating it using for loop. But got stuck on while loop. Would you see what I'm doing wrong. # Calculating number of vowels using for loop count = 0 word = raw_input("Please enter a phrase: ") for letter in word: if letter in "aeiou": count …

Member Avatar for jlm699
0
17K
Member Avatar for didi00

hello,can someone help me? I must make a program which contains: Deck (the data in it must be integer(numbers)),(if possible,in header file). Sort the elements by the method of Shell Find the elements that can be divided by 5, and smaller then the largest number that can be divided by …

Member Avatar for didi00
0
153
Member Avatar for clutchkiller

[url]http://www.e-learningcenter.com/c_programming.htm[/url] Looks like it might be a pretty useful course and for only 69$. Before i spend the money, what do you guys think. Im not worried about the monetary value, but what kinda benefits i may get. I even noticed that thier copyright is up to date so this …

Member Avatar for clutchkiller
0
66
Member Avatar for spodder

I have a problem with the MoveFile() function of the Win32 API. I cant move files which are in the same directory as the exe file,if i specify the pathname,it dosent work.I dont know how this function works.Need urgent help....... [code] # include<windows.h> # include<iostream.h> int main() { MoveFile("C:\File1.txt","C:\New Folder\File2.txt"); …

Member Avatar for Freaky_Chris
0
139
Member Avatar for praetorian20

Hi, I'm using FindFirstFile and FindNextFile functions to get a list of files from a path specified by the user. Let's say the current directory has a sub-directory named 'subDir1' which has a file named 'file1.txt'. myDir <- pwd |_ subDir1 |_ file1.txt Now, if the user enters 'subDir1\*' as …

Member Avatar for praetorian20
0
643
Member Avatar for trtcom1

Hi, I need somebody to have a look at my code below and help to see what I have done wrong. I have 3 tables:[B]Student[/B] [I][COLOR="Red"](studentNum,firstName,lastName)[/COLOR][/I], [B]course[/B] ([COLOR="Red"][I]courseID,courseTotalCapacity[/I][/COLOR]), [B]course_allocation[/B] ([I][COLOR="Red"]studentNum,courseID[/COLOR][/I]). The AIM is to allocate students to 2 classes (courses 101 and 102) as long as there is available space …

Member Avatar for trtcom1
0
168
Member Avatar for Filipe11

When I debug my program, if I maximize my form, i dont know how to align the center all my butons!!!The butons stay in the corner... Someone can help me!!

Member Avatar for ddanbe
0
71
Member Avatar for namehere05

Im trying to make this Hash Table to work, but I get these errors on linking time main.obj : error LNK2019: unresolved external symbol "public: __thiscall List::~List(void)" (??1List@@QAE@XZ) referenced in function "public: __thiscall HTable::~HTable(void)" (??1HTable@@QAE@XZ) StringTable.obj : error LNK2001: unresolved external symbol "public: __thiscall List::~List(void)" (??1List@@QAE@XZ) HashTable.obj : error LNK2019: …

Member Avatar for namehere05
0
243
Member Avatar for andyT

Hello, I'm trying to find some help with code that I've been maintaining and currently trying to modify. Basically, I am working with a single array of length "m", call it the "max" array. Other than knowing that each entry in the "max" array is nonnegative, I have no other …

Member Avatar for andyT
0
117
Member Avatar for ryan311

how can i delete the record in my Sold To table if the quantity is = 0 heres my code in my command button [CODE]Set cn = New ADODB.Connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\Inventory System\PharmacyInventory.mdb;Jet OLEDB:System Database=system.mdw;", "admin", "" Set rs = New ADODB.Recordset cn.Execute "INSERT INTO CustomerReturn (cno, pcode, …

Member Avatar for ryan311
0
85
Member Avatar for jt_murphree

Hello all. This past semester I took assembly programming. The programs in class were done on windwos machines and now I am trying to write some assembly on my linux machine, which has an intel 64bit processor. I am having a problem converting integers to ascii for output. I am …

Member Avatar for jt_murphree
0
199
Member Avatar for asameh99

I already added the path of my installed java, but the problem is I cannot compile my codes. here is my path. . %SystemRoot%\system32;%SystemRoot%;C:\Program Files\Java\jdk1.6.0_10 and then this is what happens when I compile. . Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Carlo>e: E:\>cd nerd's …

Member Avatar for verruckt24
0
127
Member Avatar for karang

HI I have a class className which is an abstract class. I am attaching the definition in the code snipet below. when I am writing the line I am getting an error error C2259: 'className' : cannot instantiate abstract class From this error I have understood that we cannot create …

Member Avatar for grumpier
0
252
Member Avatar for adam291086

I am trying to print out a dictionary result. The dictionary is made from a database search. I have tried to print it in every possible way here is the code [CODE]#!/usr/bin/python import elementtree.ElementTree as ET import urllib import MySQLdb print "Content-type: text/html\n" info={} def find_text(element): if element.text is None: …

Member Avatar for adam291086
0
121
Member Avatar for Traicey

Guys I have a dropdownlist control with categories so when I select something from ddlCategory I wana display all the products fall under that category in a datagrid but I dont seem to get that right... here is the bit I have done [CODE=C#] protected void Page_Load(object sender, EventArgs e) …

Member Avatar for Traicey
0
206
Member Avatar for C0rey

Hello all, I'm new to VB .Net, I found this open source file editor. Its can read unicode text fine, but its doesn't save unicode and its read only ITST01 and not QEST01. How to make its detect both and save as unicode? Here is the file format. [CODE] BSTR …

0
77
Member Avatar for PhiberOptik

Hey folks, I am working on a getBalance method that retrieves a balance from a CSV file. I keep getting: [ICODE][COLOR="Red"]java.lang.NullPointerException at java.util.StringTokenizer.<init>(StringTokenizer.java:182) at java.util.StringTokenizer.<init>(StringTokenizer.java:204) at atmEngine.getBalance(atmEngine.java:100) at atmEngine.<init>(atmEngine.java:81) at Launcher.main(Launcher.java:12)[/COLOR] [/ICODE] I can't figure this one out! I threw in some console print outs to make sure it was …

Member Avatar for PhiberOptik
0
1K
Member Avatar for Micko

Hello, I'm writing a simple calculator in C. The main problem is I need to parse string to evaluate for example 1+2*(3-1)/2.5. However writing such parses is a very hard task. This is a trivial thing Python using this code: [code] s = raw_input('Please enter expression:') try: x = eval(s) …

Member Avatar for hunkaboy2003
0
4K
Member Avatar for chasee

I'm trying to create an array that can be resized, and automatically renumbered, at the moment, what I have works for up to a 3x3 array, but anything larger than that doesn't work. I've tried doing this with int instead of char for the type or the array, but then …

Member Avatar for chasee
0
280
Member Avatar for Yaserk88

alright. I have this file that lists about 3000 coordinates in this way. -90.0000 0.0000 220.7533 -90.0000 5.0000 220.7533 -90.0000 10.0000 220.7533 -90.0000 15.0000 220.7533 I'm trying to open this file in my program, but I'm having no luck at all. I've tried reading numerous threads on doing so, but …

Member Avatar for Ancient Dragon
0
97
Member Avatar for PhiberOptik

Hey guys, I am working on my final project, and I was wondering, I am designing the GUI and if you look at the buttons I want the green and red buttons to appear 3D like the rest of them but with a colour overlay is it possible to do …

Member Avatar for PhiberOptik
0
323
Member Avatar for chasee

I'm working on a program that has a class Board, and two inherited classes that will implement different games, but I'm having problems with setting up the initial Board class. The problem is that I don't know how to make it so the board array in the protected section of …

Member Avatar for mahlerfive
0
131
Member Avatar for J4YP33

I am trying to open a file after getting its path from the user. here is the code. [CODE]#include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; void main(){ const char* filepath; string input, input2; char lines[110]; ifstream infile; cout << "Enter filename (including path): "; getline (cin, …

Member Avatar for J4YP33
0
240
Member Avatar for clueless101

[quote] My code asks a user for a password. To properly validate the user's entry, it must include the following requirements: 1)have a length of 5 2)have an uppercase character 3)have a lowercase character 4)have a digit My loop only works for the lowercase and length of 5 requirements. Can …

Member Avatar for clueless101
0
129
Member Avatar for JD2000

I'm currently working on implementing a small game in C++, but when trying to compile, I get this error: [CODE]..quadtree.h:125: error: no matching function for call to 'Fleet::Ship::overlaps(const Fleet::Ship*&)' ..ship.h:40: note: candidates are: bool Ship::overlaps(const Rectangle&) const ..ship.h:85: note: bool Ship::overlaps(const Ship&) const ..ship.h:32: note: bool Ship::overlaps(const Point&) const[/CODE] So …

Member Avatar for JD2000
0
135
Member Avatar for Grub

Hi is there a way of getting a file creation Date for a file class object? I am trying to do so on a mac. Many thanks

Member Avatar for Grub
0
369
Member Avatar for sfrider0

How do I save a string? Say I type in "sfrider0." How do I store that then retrieve it later? I've been messing around with it for a while and the most I can get it to do is tell me how many characters are in it. Any help?

Member Avatar for sfrider0
0
163
Member Avatar for serkan sendur

i have a training application which incorporates c/c++ and raima database(a database system written in c) i was able to insert some data in it but i cant read from it. the files are as follows: Books.cpp : [CODE]#include "Booksh.h" #include <iostream> #include <string> using namespace std; info bookrec; Books::Books(void) …

Member Avatar for serkan sendur
0
259
Member Avatar for DimaYasny

Hi, I am looping through some files, gathering information into an array during that loop. The array grows with the loop counter and at every point might be longer or shorter (more or less members in it) so in order to reuse the array I need to drop all values …

Member Avatar for DimaYasny
0
141
Member Avatar for VernonDozier

OK, I've been reading a lot online and I think I can't do this, but I'm really hoping someone has a clever workaround. What I have is a bunch of classes with Color attributes. I'm also storing the red, green, blue, alpha values as integer attributes in those classes because …

Member Avatar for VernonDozier
0
143
Member Avatar for serkan sendur

i am using a c library from c++ application and i need to fill a c struct from c++ code, this is a c++ console application. it doesnt seem to work when i assign variable values using cin. what should i do ?

Member Avatar for cikara21
0
160
Member Avatar for NEo4

Hello, How can I create a multi-field list box like in the picture in the link below in Visual Studio. NEo4 [URL="http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png"]http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png[/URL]

Member Avatar for NEo4
0
107
Member Avatar for Kennylee

I took up Visual Basic 6 as a hobby for my retirement. I have no formal traning in computer programming...taught myself everything I know. So my code may look alien to you but it works up to a point and that is the nature of my problem. I am writing …

Member Avatar for Kennylee
0
144
Member Avatar for babusek

Hii Folks , Sorry For this Long Question, Problem: I Want to Create 5 check boxes and i want to reorder those components using a GridBagLayout , and it's have a Container called Local_Container,after reordering of those components add to panel, so Now we have a Container(Local_Container with a label …

Member Avatar for babusek
0
156
Member Avatar for 4ukh

hi! how to get the field value in VBA with the help of SQL statement and assign this value to a Variable.... and then use that in the code...? thank you 4ukh

Member Avatar for 4ukh
0
97
Member Avatar for soniagupta98

If there are two arrays arr1[]={1,4,5,6} arr2[]={1,5} I want to get the output as arr[]={4,6} i.e i have to remove all the common elements that arr1 and arr2 have and printing the required output . Can any one give me the program in C++ for this with normal looping techniques?

Member Avatar for mahlerfive
0
397
Member Avatar for chchiu

Can any one slove this question? It is really hard. [url]http://img168.imagehshack.us/img168/7080/task3vn7.png[/url] I don't know how to write it in c++ but i have write up the programing logic that should work for this question.

Member Avatar for brechtjah
0
88
Member Avatar for vagueante

Hi all, I have a small app in .net 2008, running (in systray), in many computers in my company, that has to alert the user a few times during the day's work, and sometimes ask for their input. The problem is, when, i open a form (show or showdialog), it …

Member Avatar for Teme64
0
172
Member Avatar for Traicey

I have the ff error and I have no idea what is [COLOR="Red"]Line 1: Incorrect syntax near ','. [/COLOR] [COLOR="Red"]Exception Details: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near ','.[/COLOR] Source Error: Line 101: dgItems.SelectedItem.Cells[0].Text; Line 102: [COLOR="Green"]the application point the error in the ff line that fills in the dataset[/COLOR] [COLOR="Red"]Line …

Member Avatar for Kusno
0
120
Member Avatar for squarkman

I have an aspx form. It works. It submits. Now, without going into ANY OTHER FILE, I would like to add a field or two. Is this possible? I've tried it but those fields never send their data I've tried copying a field and changing NAME to NAME2 but still …

Member Avatar for Kusno
0
71
Member Avatar for christiangirl

Hey, This is the same code as my other forum for those of you who were helping me there. It is all working now, but when I go to call return_value from applicant.cpp(it has to be .cpp not .h because thats how the prof made it) Its coming up with …

Member Avatar for Agni
0
105
Member Avatar for jbennet

Okay im reading in lines of text e.g "abcdefg" and I need to split the line into an array of characters where each character is stored in its own element so its like [a][b][c][d][e][f][g] I know how to do it with splitting words from poems etc... using something like txtLine.split(" …

Member Avatar for ~s.o.s~
0
143
Member Avatar for karang

Hi I have defined the class in C++ file as __declspec(dllexport) int clsName ::CreateDocument(char* filein, char* fileout, char* config) where clsName is the class name But after I compiled the code and use the dll in .net code I am getting a run time error "Unable to find an entry …

Member Avatar for Ancient Dragon
0
142

The End.