199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sid.coco

I want to simply insert a few string values which i have successfully retrieved from an Excel Sheet. I have tried the "stored procedure" method but am not able to get what what i want. Just a simple C# code to insert value in SQL server 2005 using the SQLquery …

Member Avatar for ChaseVoid
0
166
Member Avatar for Mossiah

[code=cplusplus] #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; char your_string[256]; char new_string[256]; void ReverseString(); int main() { char choice; do { cout <<"Enter the string that you want to reverse: \n"; cin.getline(your_string, 256); ReverseString(); cout << new_string << "\n"; cout <<"Do you want to continue? Press …

Member Avatar for vmanes
0
111
Member Avatar for venomocity

Alright my family of geniuses here is my new dilemma. In a card game I have created via VB6 I thought it would be great to spiff it up with music during game play. The problem however is I have no idea where to begin. I have read some posts …

Member Avatar for venomocity
0
170
Member Avatar for ahmksssv

Hi frnds... I need to integrate php variable with vedio scripting file..... i fetch my vedio file path from database...here i need to replace the file=[B]videos/movieimgae.swf[/B] ....with $vedio.. [CODE] <?php $vedio="vedios/aaa.php"; ?> <SCRIPT type=text/javascript> var s1 = new SWFObject('player.swf','player','400','300','9'); s1.addParam('allowfullscreen','true'); s1.addParam('allowscriptaccess','always'); s1.addParam('flashvars','file=[B]videos/movieimgae.swf[/B]'); s1.write('preview'); </SCRIPT>[/CODE]

Member Avatar for ShawnCplus
0
305
Member Avatar for jam123

Hi everybody, Im a new member on this forum and I want ur help on C language. Im a new student on this language & mostly we study it by our-selves. This is the question: > One of the academic staff is trying to keep track of the students and …

Member Avatar for Alibeg
0
145
Member Avatar for Thug Heart

Hi All , I have a question regarding to if statement ,,, my question is : How can I compare between 2 values ?! let's suppose I want to see if (x > y ) print "x greater than y" if ( x < y ) print "y greater than …

Member Avatar for Thug Heart
0
98
Member Avatar for veledrom

Hi, Data is stored like this in Varchar(2500) (with paragraphs): [code] Looking for NET developer, programmer. Required skills: VB.NET NET MsSQL XHTML If you are interested, please call "000" number's test. Thanks [/code] When i echo it, it is displayed like this: [code] Looking for NET developer, programmer. Required skills: …

Member Avatar for veledrom
0
79
Member Avatar for ioan1k

This is something I have avoided for the longest time......and now I need a bit of help ??? What I am trying to do is simply build a recursive array based on parent->child, the recursion comes when their is the possibility to add any number of sub-children to sub-children so …

Member Avatar for ioan1k
0
99
Member Avatar for ctrl-alt-del

Hi all, I've been working with C# for some time now, even created a Mastermind-game yesterday to learn some stuff (Mastermind is a very nice training project by the way, I really had fun coming up with solutions) But while that I ran across a problem that I haven't been …

Member Avatar for ctrl-alt-del
0
172
Member Avatar for njabs

Hi good people! Please help me out, i have an intranet running in my PC that means my PC is a local server. when user try to access the intranet it give them this error:- "HTTP Status 500 - type Exception report message description The server encountered an internal error …

Member Avatar for stephen84s
0
135
Member Avatar for cipher

Iam trying to call a C# DotNet 2003 webservice from Visual C++ 6 app (used win32 console, mfc, atl_mfc dll) using Soap toolkit 3. The webservice takes a String input parameter and returns a String. The input parameter I pass through C++ is always recieved as NULL in C# webservice …

Member Avatar for yogesh.chhabra
0
336
Member Avatar for vishy_85

hi all, im having some problem , returning the buffer array to the main function, im new at this , i need to print the currentdate from the main function, is thr any way i can return the date to the main function ?? [code] #include <sys/time.h> #include <time.h> #include …

Member Avatar for Narue
0
100
Member Avatar for jibber87

Hi there, I'm trying to write a program that calculates the probability distribution for different initial conditions of a population model. The probability is calculated over a for loop over the parameter 'q' (which can be considered as a scaled version of the correcting "struggle for life" term in the …

Member Avatar for jibber87
0
155
Member Avatar for vedmack

Hi I built a html page with a single button which suppose to open new window which shows XML file... I want to disable right click mouse in the "new window" which is being opened after button hit... I do know how to disable the right click inside an ordinary …

Member Avatar for HTMLExpert
0
806
Member Avatar for jeevsmyd

Hi... Do you remember me? Am the amateur programmer who disturbs you with my never ending doubts.. :D As you guys advised I have decided to start learning c++ from scratch..! ;)As far as am concerned Files in c++ is the most difficult part in c++ in my syllabus ..! …

Member Avatar for Narue
0
169
Member Avatar for Norbert X

Okay I don't get this problem at all: [code=python]import random def chance(number): number = input for each in xrange(number): n = random.randrange(100)+1 return n def extreme(x): z = x + 5 y = z - 3 return z, y #main repeat = 0 while repeat != 2: x = input("Enter …

Member Avatar for jlm699
0
149
Member Avatar for krispygrimace

First, I apologize for any concept errors about C++. I am pretty new. I am having trouble iterating through each node of a passed linked list. What I have right now is an implementation file with a few functions. The class is called listClass and has a private member function …

Member Avatar for jencas
0
181
Member Avatar for leebria

Newbie to C programming here. I am trying to convert a char array into individual hex values and store them in an unsigned char array. Basically I have "3www6google3com0" and I would like to get the 8 bit hex value for each individual character from the string. I would like …

Member Avatar for leebria
0
1K
Member Avatar for sal21

[url]http://www.x-rates.com/cgi-bin/cgicalc.cgi?value=1&base=EUR[/url] Based the link how to count element in table of this page? note: is the table where are all currency values tks. in vba please

Member Avatar for vb5prgrmr
0
125
Member Avatar for deep2sky

hi i am doing BCA and for MAJOR PROJECT i want to make a game in like PING PONG. if anyone can advice me the language that would be easy for it to make??. i am prefering JAVA

Member Avatar for stephen84s
0
75
Member Avatar for katamole

I'm currently doing a projecteuler problem, which requires finding the sum of all the primes below two million. I have a primitive function which determines whether or not a number is prime. This function is incorporated into the below function to produce a list with all the primes below the …

Member Avatar for MK12
0
168
Member Avatar for paradox814

Is there a way to change the color of the text in a JTextArea? I want to change all the text color to one color (other than black) and I just want to know how to do this. I see a lot of methods involving color but they only effect …

Member Avatar for carnado2008
0
1K
Member Avatar for kevin wood

i have this line of code which i cannot see a problem with but i keep getting an error. [CODE]$sql= "INSERT INTO emails (Firstname, Lastname, email, table) VALUES ('$a', '$b', '$c', '$table')";[/CODE] the error i keep getting is [CODE]Error: You have an error in your SQL syntax near 'table) VALUES …

Member Avatar for nav33n
0
106
Member Avatar for deesudesu

I know this might sound silly....please forgive on this one I am not a programmer, but simply a graphic designer, but our programmer left us,and since that, my boss (which also my father) askin me to help about this matter. This company is still looking for the replacement, but we …

Member Avatar for Shanti C
0
109
Member Avatar for crewxp

I have a small problem. I'm curious to see why this happens. If you run this code and enter the data, I put in a debug line. Inside the 'if (grade2>grade) block, the DEBUG printf's don't show the data correctly. Outside the if block, I print pretty much the same …

Member Avatar for crewxp
0
145
Member Avatar for Mossiah

[code=cplusplus] // New2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; void reverse(string& s); int _tmain(int argc, _TCHAR* argv[]) { string st="Word" ; cout<<st<<"\n"; reverse(st); cout<<st<<"\n"; return 0; } void reverse(string& st) { int i; int j …

Member Avatar for iamthwee
0
166
Member Avatar for kamae

I need help in using "[COLOR="red"]between[/COLOR]" sql function. I don't know how to use it. I am comparing two time using [COLOR="red"]dtpicker[/COLOR]. The time should only be acceptable if I input between 6:00am and 6:00pm like 7am, 8am,.........6:00pm. 5am below and 7pm above are not acceptable. In need help. . …

Member Avatar for kamae
0
95
Member Avatar for ebyong77

hi i need to know how to query a number of count on a particular table let say i have [B]emp_id[/B] and [B]emp_name[/B] field. on my table their are 2 records. the result looks this: rowcount | emp_id | emp_name 1 1000 albert 2 2000 leah is it possible? thanks, …

Member Avatar for ravinder007
0
143
Member Avatar for jwill55

Hello everyone..How do i create a user manual or the instructions of the software in vb6? Is it possible to pattern the manual with the manual of mysql or the like.. Another question. How do i populate my treeview in vb6 from a mysql database?? Any help would be very …

Member Avatar for debasisdas
0
1K
Member Avatar for bebe11bebe

[CODE]public class Election { private Voter v1; private Voter v2; private Voter v3; public String winner; int myTotal = 0; int hisTotal = 0; public Election(double pa1, double pv1, double pa2, double pv2, double pa3, double pv3) { for(int i=1; i<=3500; i++) v1=new Voter(pa1, pv1); for(int i=1; i<=3500; i++) v2=new …

Member Avatar for verruckt24
0
100
Member Avatar for vinaychalluru

Hi friends..,i have a problem regarding the regular expressions.My problem is to input a file name and a regular expression to a program and program have to read all the lines of the file and produce the substrings (if present) produced by the Regular expression...I know to input a file …

Member Avatar for Rashakil Fol
0
95
Member Avatar for dwlamb_001

I have written an application to do the following [list] [*]upload a txt file to the server [*]move it from the temporary directory to a more permanent one [*]parse the test file line by line and do some processes [*]create and write the result to a new text file [/list] …

Member Avatar for dwlamb_001
0
108
Member Avatar for Noko

Hello. I have experienced a very weird problem with my myisam table with appr. 1M rows. Query [CODE]select num,subnum from a where trip='!mOWjKAWAII' order by timestamp asc limit 10;[/CODE] executes immediately, which is just as expected. But with a slight modification: [code]select num,subnum from a where trip='!mOWjKAWAII' order by timestamp …

Member Avatar for Noko
0
1K
Member Avatar for tux4life

Hello, My problem is that the program always gives the same output: [CODE]There were no matching numbers !!![/CODE] The source of my program looks as follows: [CODE=cplusplus] #include <iostream> using namespace std; int main(void) { const int MAX_CHARS = 500; const int MAX_NUMS = 5; const int MAX_NUM_CHARS = 25; …

Member Avatar for tux4life
0
137
Member Avatar for breatheasier

Hi I'm wondering how I would go about creating a program that will input data from about 1,000 files containing data such as this: [code] 2.825 1.00697992588 2.875 0.952989176901 2.925 0.91428970229 2.975 0.890110513425 3.025 0.879731596138 3.075 0.959217137445 3.125 1.07391392796 3.175 1.04874407027 3.225 0.857693793906 [/code] I'm wanting to generate an average …

Member Avatar for Gribouillis
0
153
Member Avatar for sunderthomas

hey guys i want to slpit a sentence into words but the pogram i have written gives only the first word...can u help me plz..... [code] #include<iostream.h> #include<conio.h> #include<string.h> #include<dos.h> #include<stdio.h> void main() { clrscr(); char text[100]; int i=0; clrscr(); cout<<"enter the sentence"; cin.getline(text,100); while(i<strlen(text)) { char text1[]=" "; int …

Member Avatar for monkey_king
0
165
Member Avatar for Crul

I'm trying to compile C and C++ files into a single executable using gcc. I've gotten my code to compile and run properly using borland and Visual Studio but I can't figure out how to get it to compile with gcc. This is what I've been trying: gcc -c dtio.h …

Member Avatar for Salem
0
1K
Member Avatar for dattaforit

Dear Friends, I have a windows dll, in my perl script, i am able to load the dll using the Win32::LoadLibrary function and also i a getting the function pointer of the function in the dll, I am using Win32::GetProcAddress function to get the function pointer of the functions in …

Member Avatar for KevinADC
0
233
Member Avatar for nagatron

Hallo to all, I am making an application that will target a particular link in the internet as if some is clicking it. I have a button target. Can anyone help me? please Regards, Neil

Member Avatar for javmedia
0
221
Member Avatar for vishy_85

im new to c++. im trying to create a function to get the systemtime every 1 minute and store it in a variable. im able to display the time using the time.h file. the problem is i dont know how to call the function every 1 minute and assign it …

Member Avatar for siddhant3s
0
84
Member Avatar for maniac1982

hi everybody , this is my first post here and my only hope !!! i have to build a website for my vb.net/sql server classes final project , it s a real estate website that has a sql server 2005 database and i have to connect throuhg it with vb.net …

Member Avatar for maniac1982
0
253
Member Avatar for Norbert X

Is there any way I can get an image to play in python with a function? Like I link the Python Code to the site with the picture on it or link it to my documents? I've tried researching it but I've gotten no results and I thought one of …

Member Avatar for Norbert X
0
125
Member Avatar for deepugtm

I want to write a program that can run a file in my hard disk.For example,a test.bmp file is there in location D:\home\test.bmp,that program should open(like double clicking on it ) that file (test.bmp) and i can view the image contained in the file.

Member Avatar for csurfer
0
138
Member Avatar for fmylife

Ok so I have to turn in this C program today that is able to selectively sort a list of names from an input file, but when I compile it and run it, it doesn’t sort it correctly. Can anyone please help me here? I’m losing my mind to my …

Member Avatar for csurfer
0
103
Member Avatar for egmik3

Does anyone know of a simple command that could get the date and make a folder (mkdir) as its name? say todays date 20090304 as the folder name. I guess the first thing would be grep the date? Then run a mkdir command? Any help is appreciated! Thanks

Member Avatar for eggi
0
145
Member Avatar for tpetsovi

The last funtion IsPrimeNumber () is giving me an error that states ..."Local Function definitions are illegal"....can someone please tell me why? Thanks [CODE] /****************************************************************** Name : Date : Homework # : Homework #6 Problem #1 Source : Action : Menu is displayed allows user to calculate Miles per Gallon, …

Member Avatar for kbshibukumar
0
187
Member Avatar for ranjinibiliya
Member Avatar for serkan sendur
0
174
Member Avatar for vkarthik

Consider this situation: [code=c++] class Sample { std::string str; public: Sample(string &s) { // line 1 // line 2 str = s; // line 4 throw exception; } ~Sample() { } } [/code] So I have a string member variable, and I have assigned it to the parameter passed to …

Member Avatar for vkarthik
0
165
Member Avatar for millanskie

does anybody know how to get the current user's path for xp /vista sample: "C:\Documents and Settings\Owner" or if you know how to get the installed program path "C:\Program Files\FileZilla FTP Client\filezilla.exe"

Member Avatar for tmani_85
0
163
Member Avatar for Aamit

I am calling some data from iframe. [code=php]<iframe id="pframe" width="'.$game['iframewidth'].'" height="'.($game['iframeheight'] + 20).'" src="'.$path.'" frameborder="0" scrolling="no" align="middle"></iframe>';[/code] i want to call my css for this frame ? How to call css for iframe??

Member Avatar for almostbob
0
336

The End.