199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for quintoncoert

can anyone tell me if it is possible to connect to a database (for example an access database) from visual c ++ 6.0? And if one can how does one do it? Is it some wholy complicated thing or is it as easy as doing it in visual basic 6.0 …

Member Avatar for Ancient Dragon
0
762
Member Avatar for JesseFarmer

I have searched but i can not seem to find an answer to my problem. I have to write a program that lets the user enter their salary, and calculates their salary with a 5% raise for 3 years. When I run the program and enter the value for cSalary …

Member Avatar for Ancient Dragon
0
131
Member Avatar for pseudorandom21

What is the meaning of "immutable" when relating to an Int32 ? Int32 i = 0; i++; //etc

Member Avatar for Momerath
0
115
Member Avatar for isumasama

hi pls help me on this.. i'm using this code to get data from record: [CODE] MyNum1 = DLookup("[Outcome]", "Remark", _ "[IDRemark] = Form![SelectTxt]") OutTxt.Value = MyNum1 [/CODE] my prob is when the data in [Outcome] is null , access having error to still get the null value from the …

Member Avatar for isumasama
0
599
Member Avatar for bettybarnes

hi anyone who can help me how do i declare date-time format in vb.net from sql server 2005? i dont know where to put this line [CODE]CONVERT(VARCHAR(10), GETDATE(), 1) AS [MM/DD/YYYY][/CODE]

Member Avatar for bLuEmEzzy
0
240
Member Avatar for theUserMan

working on inputing floating point values into an array, then adding them up and getting a sum so far i have this code for it, but my flag that checks to see if an input is 0 to exit the loop for entering floats, keeps on going(endless loop) [CODE] %include …

Member Avatar for GunnerInc
0
606
Member Avatar for whin_lopez
Member Avatar for whin_lopez
0
96
Member Avatar for Dummi

Hi, I've seen sample vb project. It's a console application. There's a code there like [B]Dim q() As String = Environment.GetCommandLineArgs()[/B] First I try to check it by using message box to print it out: the index-0 of q contain a path project vshost --> q(0)="D:\TestService\sample1.vshost.exe" and the index-1 of …

Member Avatar for Dummi
0
757
Member Avatar for imhiya

[CODE] #include <iostream> #include <cstdlib> #include <cstdio> #include <fstream> #include <string> #include <vector> #include <sstream> #include <list> #include <limits.h> using namespace std; class Node { public: string name; vector<string> edges; vector<int> dist; }; class Path { public: vector <int> distance; vector <string> fromwhere; vector <int> complete; vector <string> cities; vector …

Member Avatar for rubberman
0
140
Member Avatar for n3red

Ok in a simplex txt file i have some text written in all capital letters. Now i need to take that text convert it to lowercase and then ucfirst in this way. Ex: MY NAME IS MIKE AND I GO TO LIBRARY EVERY DAY. I ALSO LIKE PIE. Now i …

Member Avatar for abhimanipal
0
125
Member Avatar for phpDave

Hi, I've been trying to SELECT from 3 tables but not sure how. Here is the code for selecting from 2 tables [CODE]$query_Recordset3 = sprintf("SELECT * FROM mystuff.users JOIN mystuff.contact USING(user_id) WHERE contact.rec_id = '$id'", GetSQLValueString($colname_Recordset3, "text")); $Recordset3 = mysql_query($query_Recordset3, $connAdmin) or die(mysql_error()); $row_Recordset3 = mysql_fetch_assoc($Recordset3); $totalRows_Recordset3 = mysql_num_rows($Recordset3);[/CODE] Any …

Member Avatar for diafol
0
105
Member Avatar for dorothy.v

[CODE]If p1at.Text >= 0 Then If p2at.Text >= 0 Then If p3at.Text >= 0 Then If p4at.Text >= 0 Then If p5at.Text >= 0 Then If p1at.Text <= p2at.Text And p1at.Text <= p3at.Text And p1at.Text <= p4at.Text And p1at.Text <= p5at.Text Then If p1at.Text = 0 Then p1ts = p1at.Text …

Member Avatar for Unhnd_Exception
0
196
Member Avatar for davedrave

Hi, first time poster, and fairly new to java swing.Im trying to make a scrabble game and am stuck while trying to place a letter on the board, or even removing one for that matter. The playing board is just an array of JButtons all derived from a ScrabbleButton object, …

Member Avatar for Ezzaral
0
391
Member Avatar for barriegrant1

hey guys, I'm creating a basket for an e-commerce site, im trying to total up the basket values within the 'cart' class and return the value back to the 'basket' page where the total will be shown. The total is fine but i cant seam to return the total back …

Member Avatar for barriegrant1
0
138
Member Avatar for sciprog1

Hello, The following custom class has compiler errors where it is not recognizing KeyListener. Any idea on why I am getting this error? [CODE]import java.util.concurrent.*; import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class worker1 extends Thread { private SynchronousQueue<Object> q; private int i; public worker1(SynchronousQueue<Object> q) { super("Worker …

Member Avatar for sciprog1
0
224
Member Avatar for highflyer8

Hi, I am getting an error message when using base classes. The error message is x: undeclared identifier y: undeclared identifier z: undeclared identifier The particle class derives from the fourvector class which derives from the threevector class, as follows. [CODE]#ifndef THREEVECTOR_H // Prevents the class being re-defined #define THREEVECTOR_H …

Member Avatar for mrnutty
0
162
Member Avatar for Craftknight

Alright, I have some questions. 1. This code does make some sense right? 2. I keep getting my failure to open file message, did I make the program do that or are my test files just not working? 3. How do I make the program acknowledge - and + as …

Member Avatar for Craftknight
0
154
Member Avatar for weblover

hello all , i'm new to C# and i have a problem, i created a program that categorize my files into folders and subfolders. and i want to run a script test.bat that will run a python script to the files with extension .gb in the subfolders and this script …

Member Avatar for weblover
0
155
Member Avatar for salty11

In this program everything work except the change back, the quarters, dimes, nickels, and pennies wont work, everytihng else works, for my input i used 65.67, which with hst came out to 75.52, the amount tendered was 100. I just need help with getting the quarters, dimes, nickels, and pennies …

Member Avatar for salty11
0
166
Member Avatar for Netcode

I have a datagridview control on my form. i use this to display data including images. Please how can i set the row height of the datagridview control so the picture can be well displayed? Thanks

Member Avatar for abhay1234
0
273
Member Avatar for Akill10

Hey, I am having trouble trying to set a default value for a function in one of my classes. Here is where I am trying to set it: [CODE] void Sprite::Spr_Blit(SDL_Surface* source, SDL_Surface* dest, SDL_Rect* clip = NULL) { SDL_Rect offset; offset.x = getX(); offset.y =getY(); SDL_BlitSurface(source,clip,dest,&offset); } [/CODE] Here …

Member Avatar for RyanMcMillan
0
154
Member Avatar for kyxler

I need help to make this program be output *******E * ** *** **O****> *** ** * *******E Thanks for helping

Member Avatar for RyanMcMillan
0
87
Member Avatar for kholiokhong

[CODE] import java.io.*; import java.net.*; public class Server { ServerSocket ss; ObjectOutputStream oos; ObjectInputStream ois; public Server() { try { ss = new ServerSocket(8888); } catch(IOException e) { e.printStackTrace(); } } public void run() { String message; try { Socket sock = ss.accept(); System.out.println ("Connection received from " + sock.getInetAddress().getHostName()); …

Member Avatar for Ezzaral
0
113
Member Avatar for filch

On this page: [url]http://streetkids.zuka.net/sandbox/map-new.05.html[/url], when you click on, for instance, Ethiopia, you get a map and then when you click on the "flag" you get a popup with some tabbed info. At the bottom of this popup is a close link. It is there the first time you click on …

Member Avatar for filch
0
152
Member Avatar for tomjrjones

hi, i have a current working registration page, (the code is below), how do i make it so when they click register it checks to see if its a valid email address, if u cannot help me can u give me a link to a website. this registration form creates …

Member Avatar for tomjrjones
0
214
Member Avatar for TailsTheFox

Hello, I've been searching the internet and i haven't been able to find anything on my problem. Anyways, I'm trying to read cursor positioning on my screen, and send it to a variable. Just to make things easier, what would I type in the code region for a button; [CODE]private: …

Member Avatar for TailsTheFox
0
183
Member Avatar for battlex2010

i have the following code for getting the number of files on a drive: [CODE] Dim num As Integer = 0 Dim drive As String = "C:" For Each File In System.IO.Directory.GetFiles(drive,"*",System.IO.SearchOption.AllDirectories) Try num += 1 Label5.Text = String.Format("Files found: {0}", num) If num > 50 Then RaiseEvent start() End …

Member Avatar for Unhnd_Exception
0
198
Member Avatar for kardklub

if i have [CODE] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>[/CODE] [CODE] <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" type="text/javascript"></script>[/CODE] both of these in my header my jquery menu does not work. i have searched google and it keeps telling me about this [CODE] <script> jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery("div").hide(); }); // Use Prototype with $(...), …

Member Avatar for kardklub
0
228
Member Avatar for incubus9x9

Hey guys!! first off please dont tell me to google it, iv already done my searching with google and various text books lol ... Ok So i understand how to find numbers in a linear search by inputting 10 numbers and searching. Now i need to do the same except …

Member Avatar for Taywin
0
3K
Member Avatar for taumang

x =5 while(x<7) print the value of x x=x+1 while(x>2) print the value of x x=x-2 so i was thinking that the output of the program will be 5677753 but my program is against my opinion so i want to know the right output #include <iostream> using std::endl; using std::cin; …

Member Avatar for taumang
0
307
Member Avatar for taumang

hi,please help me with this program ,iwant it to print values of x not x #include <iostream> using namespace std; int main() { int x = 5; while(x < 7) { std::cout<<" value of x"<<'\n'; x=x+1; } while(x > 7) { std::cout<<" value of x"<<'\n'; x=x-2; } return 0; }

Member Avatar for Ezzaral
0
106
Member Avatar for SchemeStarter

On a form, I want to jump to the next tabindex when pressing the 'enter' key. The script that should do the thing, should look like this (the tabindex is generated dynamically and the code is simplified): [CODE] <form id='MyForm'> <?php $tabindex = 1; ?> <input class='pts' type='text' id='<?php echo …

Member Avatar for Taywin
0
1K
Member Avatar for n3red

Hi, I have a small problem after working on my program last night i found out that C does not have any function that uppercase first character in a word. So i have been trying to split each word in to characters and uppercase the first word but it keeps …

Member Avatar for Narue
0
327
Member Avatar for gazzy1

THE SCRIPT bELOW PASSED THE SECOND TO 0 (STARTING FROM 1500 SECOND) I NEED 1500 SECONDS THAT SHOW AS 00:25:59, 00:25:58................00:25:01...00:24:00...00:24:59........................UNTILL 00:00:00. PLZ HELP ME <HTML> <BODY> <script language="javascript" type="text/javascript"> var myTime = "1500"; function countDown() { document.form.seconds.value = "00:25:" + (myTime < 10 ? "0" + myTime : myTime); …

Member Avatar for tinymark
0
135
Member Avatar for raghujosh

Is it possible to read array variables one by one in a numeric array in PHP? I have an array that I need to read each element and depending on the element, do something else. But I am finding that there are no functions to read each element of a …

Member Avatar for diafol
0
96
Member Avatar for gazzy1

i want to create a timer for my php page i created the page that only 20 second i want that the time should be as 00:00:20 (hh:mm:ss) plz help my scipt are.......................................................................................................... [code]<tr> <!-- countdown script --> <td style="text-align:left;font-size:10pt;font-family:Verdana, Arial;">Time Left: <input type="text" name="seconds" size="3"> <script language="javascript" type="text/javascript"> var …

Member Avatar for Luckychap
0
2K
Member Avatar for Katana24

Hi - Im creating the game "Tanks" for the fun of it. Im fine with creating and adding the images and other inner game workings but I have digressed abit and have encountered a problem. The problem is this: I have painted the tank image to the panel but wanted …

Member Avatar for mKorbel
0
94
Member Avatar for daviddoria

If I have this structure: [code] class Parent { public: virtual void MyFunction() {// do something} }; class Child { public: virtual void MyFunction() {// do something else} }; [/code] The Parent::MyFunction() seems to always be called, even with: [code] Child MyChild; MyChild.MyFunction(); [/code] Is this expected? David

Member Avatar for mike_2000_17
0
150
Member Avatar for rkayd

This probably doesn't belong on this forum but I'm not sure where to ask this as I don't know what programming language this should go under. There doesn't seem to be a general forum here. I'm still working on the site that I've been asking questions about. I've got sql …

Member Avatar for diafol
0
223
Member Avatar for arezz09

i have create 2 form , 1 database 1 textbox and 1 button reset in form 1 = "fill current username" = textbox1, button = reset.... 3 text and 1 button on form 2...new username = textbox 3,new password = textbox4,confirmpass = textbox5 and 1 button "sign up"..i just wondering, …

Member Avatar for arezz09
0
347
Member Avatar for blee93

This is my failed attempt at creating the Sieve of Eratosthenes. Can anyone spot any problems? I just started to learn the STL, but the concept of iterators and the STL in general is really difficult for me. -The input represents the number of cases. The variable m represents the …

Member Avatar for Narue
0
139
Member Avatar for kiranroy

[B]I want to draw geometric diagram like straight line,triangle,circle etc using C language.I want some help for coding n algo....:)[/B]

Member Avatar for kiranroy
0
103
Member Avatar for khayabi

Hai guys, I am a newbie here, maybe you know about my problem. this is VB source code : [COLOR="Red"][B]ReDim[/B][/COLOR] parent.Individuals(maxPop) As Individual [COLOR="Red"][B]ReDim[/B][/COLOR] offspring.Individuals(maxPop) As Individual Do While bil < maxPop bil_gen = 0 [COLOR="Red"][B]ReDim[/B][/COLOR] parent.Individuals(bil).Gen(batas_gen) As Genetik parent.Individuals(bil).Genome = AssignValue(1) List3.AddItem parent.Individuals(bil).Genome bil = bil + 1 Loop …

Member Avatar for WaltP
0
123
Member Avatar for Khoanyneosr

[CODE] // Hangman Redo Program #include <iostream> #include <string> #include <cstdlib> #include <ctime> #include <string> #include <algorithm> using namespace std; //Functions void welcome(); void instructions(); void game(); // Types and Arrays string choice; string inst; int main() { welcome(); return 0; } void welcome() { cout << "\tWelcome to Hangman …

Member Avatar for Narue
0
233
Member Avatar for HASHMI007

#include<iostream.h> struct rectInfo{ float height ; float width; float area; float perimeter; }; /* write a function void gendata(rectInfo * r)to generate and assing values to the height and width member of r(value should be b\w 1 - 20 )*/ void gendata(rectInfo * r) { }

Member Avatar for jonsca
0
91
Member Avatar for igor221189

Hello, Would it be possible to add text to textboxes with the click of button? The page contains three dropdowns (category, sub category, items). First, user selects a category in the dropdown. In the second dropdown, all items that are held in that category are displayed. In the third dropdown, …

Member Avatar for igor221189
0
112
Member Avatar for gedas

hey, i have got three sets of x an y coordinates , where one of the x y coordinates keeps on changing all the time. lets say i have first set where the coordinates are int x=100 and int y=100; second set would be : int x=100; int y=150; but …

Member Avatar for Ezzaral
0
968
Member Avatar for judithSampathwa

hi there, i am trying the VS 2010 ASP.NET MVC website project and when i create a web page and click shift+F7 i cannot view the design of the page, why is this can some one help me out? thankx

Member Avatar for judithSampathwa
0
71
Member Avatar for rohit2

I have created a java application in which JTextpane is used as an editor. Now my problem is that when I select a block of text and press tab key, it automatically deletes the selected text contents. I don't expect these behaviour for my tool's editor. I need to add …

Member Avatar for mKorbel
0
276
Member Avatar for gazzy1

i want to create a login page with different user i have a table users with column UseriD and Password field in user |d and pass field there are many users like user01 user02 user03 i want that when user01 logged in then page redirect to [url]http://yahoo.com[/url] and when user02 …

Member Avatar for amie900218
0
161

The End.