64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for AKJo

An application from Delphi 1 (16 bit) has been transfered into Delphi 2007. The Delphi 1 program has created files with the following type definition: [code=delphi] type codePost = record code : integer; {code 3 figures} value : longint; {value 6 figures} data : string; {Data max 30 chrs} date …

Member Avatar for AKJo
0
155
Member Avatar for AKJo

Hi, Sometimes I get some red lines in the D2007 editor, under parts of the source code. See attached image. What do they mean and what action should I take?

Member Avatar for AKJo
0
97
Member Avatar for mattpointblank

Hi everyone. I'm printing a list of articles from my database. Some articles are set as 'sponsored', meaning they appear at the top of the list. Articles also have a 'type' field - if it's set to 0 then there is no specific type, otherwise the value corresponds to a …

Member Avatar for mattpointblank
0
86
Member Avatar for newbie5150

hi everyone, im having problems with my loop in my assignment im working on. im not tryin to get the code from you guys. but would like some pointers on what im doing wrong. im tryin to figure out why my "else" code wont work? i've tried to look for …

Member Avatar for mrboolf
0
144
Member Avatar for doel.jangkrik

[code] protected void btnAdd_Click(object sender, EventArgs e) { string connectionString = "Data Source=localhost\\sqlexpress;Initial Catalog=JobApplication; Trusted_Connection=True; Integrated Security=True"; SqlConnection mySqlconn = new SqlConnection(connectionString); mySqlconn.Open(); string query = "INSERT into JobVacancy(JobName, BriefDesc, FullDesc, ClosingDate) VALUES (@jobtitle, @briefdesc, @fulldesc, @closedate)"; SqlCommand mySqlcmd = new SqlCommand(query, mySqlconn); mySqlcmd.Parameters.AddWithValue("@jobtitle",jobtitle.Text); mySqlcmd.Parameters.AddWithValue("@briefdesc", briefdesc.Text); mySqlcmd.Parameters.AddWithValue("@fulldesc", fulldesc.Text); mySqlcmd.Parameters.AddWithValue("@closedate", closingdate.Text); …

Member Avatar for ravindransrm
0
118
Member Avatar for Manuz

[CODE]Hi . I want to know is their any way to disable the maximize button by using javascript or php. Thankz in Advanz [/CODE]

Member Avatar for Manuz
0
519
Member Avatar for poilkjmnb
Member Avatar for bryan110

Hi Everyone, I am looking for Secure Ftp ActiveX component in Vb6 to use it in a command line program. Please , if anybody have an idea how to get it free or how to create it. Thanks, Bryan.

Member Avatar for khalidmehmoodaw
0
135
Member Avatar for aclogics

I would like to create an application that would, after manipulating a text file, log on to a private FTP site and PUT that text file onto the server, and then logout. I have the code to manipulate my text file and make it ready for sending and I have …

Member Avatar for khalidmehmoodaw
0
114
Member Avatar for Easter Bunny

ok, i have to get two mysql tables to work as one. one is called sale_mast_data and the other is called sale_mast_data_h. they both have the same columns. the only difference is that the one with the "_h" has the history of previous shift sales. the two tables both contain …

Member Avatar for Easter Bunny
0
110
Member Avatar for afg_91320

int numberArray [9][11]; write a statement that assigns 145 to the first colum of the first row of this array. write a statement that assigns 18 to the last col of the last row of this array this is what i have [code] numberArrray [1][1] = 148; numberArray [9][11] = …

Member Avatar for skatamatic
0
105
Member Avatar for blackrobe

Hi all, I'm required to implement a method for a "[B]TernarySearchTree[/B]" object/class. Basically, a Ternary search tree is just like a binary tree except it has three children instead of two. Ternary Search Tree could only manipulate it's root. Now the method should create and return an alphabetically sorted list …

Member Avatar for danny'sweb
0
111
Member Avatar for kiwihaha

i wanna put all my variable initialization at a header file.. but after i put in a header file name, "variable.h" i #include "variable.h" in main. but it still cant reconize the variable. what can i do? + extern infront all the variable in header file?

Member Avatar for Ancient Dragon
0
271
Member Avatar for DeadJustice

I pretty much got my assignment working except for one part, I need to reverse the output if the user enters "-r" in the command line. Can anyone help me with this? EDIT: By reverse I mean list the last child first down to the original process. [code] int j …

Member Avatar for DeadJustice
0
89
Member Avatar for inumbris

The following code, excerpted from a much larger program, triggers a C++ compile time error as shown in the leading comments. [Re-]declaring variable 'w' to be a 'const char *' will fix the problem, but I don't know exactly why. I would greatly appreciate it if somebody could elucidate the …

Member Avatar for Lerner
0
142
Member Avatar for kbjr14

hi, everyone, i am working on writing a program that can calculate the extrema of a polynomial function. i've got everything i need except the last step of the process. i need to be able to solve a polynomial equation for f(x)=0. please help.

Member Avatar for jlm699
0
115
Member Avatar for DeadJustice

I seem to be able to load the files in my program. Then I can loop through the lines one time, but if I try a second loop to load the strings into an array that one won't work. Here's my code. I thank you for any help in advance. …

Member Avatar for DeadJustice
0
106
Member Avatar for kotkata

This is my relatively simple code. Its just part of a memory matching game. I've looked but I cannot figure out why it won't switch the values in each of the array indexes. I would appreciate anyone helping me out here with this. ** Turns out the problem is that …

Member Avatar for Lerner
0
97
Member Avatar for soultrav

I am building an xml parser in java which will handle a catalog with some books (that have price and usefulness) and I want to implement an [B]optimum[/B] algorithm that selects the books from the catalog which have the maximum usefulness while staying within the budget. Example: [code] <catalog cash=”100”> …

Member Avatar for dickersonka
0
102
Member Avatar for phuynh77

Hi Everyone, I would need your help. I have a project that I need to insert multiple records into my table. Here is more detail. I design a purchase order table with 3 columns (a, b, c): a: is primary key with identity (1,1) primary key b: is defined integer …

Member Avatar for phuynh77
0
3K
Member Avatar for DemonGal711

Okay, I figured out the larger problem that I've been having with my program, now all I need is it to get out of the loop and finish the program. Well, it won't break out for some reason. Anyone see why? [code]row = col = 4; z = 0; do …

Member Avatar for DemonGal711
0
123
Member Avatar for acoxia

Ended up solving it don't know how delete post however [code] include <iostream> using namespace std; /* * linkedlist.h * linkedlist */ struct node { int data; node * next; }; class linkedlist { node * hd; public: linkedlist(){ hd = NULL; } void add_to_end(int data) { //find end of …

0
85
Member Avatar for konczuras

Hello Everyone! I'm new to MS SQL, so this may be a dumb error, but anyway, I can't figure it out. I'd like to connect to an SQL server on the internet, I've a valid username and password, but it can't find the server. So, I've tried the following connectionstring: …

Member Avatar for konczuras
0
116
Member Avatar for M00nDancer

Well, I bumped into an interesting C++ problem last night while I was aimlessly surfing the Internet, and, of course, it caught my attention. It said something like this: "From a file it's read a text that contains a phrase, on a line. The program rearranges the letters in each …

Member Avatar for M00nDancer
0
148
Member Avatar for ChroNoS

is it possible to insert a character say " " (space) after every 2 characters in a string? using this doesnt seem to work : [CODE] Dim s As String s = "010001000100" s = Mid(s, 1, 2) & " " & Mid(s, 4) MsgBox s [/CODE] it adds space …

Member Avatar for ChroNoS
0
119
Member Avatar for dinilkarun

Hi all, How can I split a Progress Bar(wx guage) into two parts?. I want the first part to function normally and in the second part I want to display the percentage. I have attached a snap shot of what I am trying to achieve. Is this possible? Any help …

Member Avatar for dinilkarun
0
248
Member Avatar for lllllIllIlllI

Hi Guys, I was wondering if there was any way in which you can change the opacity of a window in wxPython. I would like to create a window that is mostly see through but so far i have found no way to do that. My program is a simple …

Member Avatar for lllllIllIlllI
0
94
Member Avatar for smile4evr

hi all!... i have a small doubt... incase i have a database field for ID and i want my id to be of 5 digit field length... and append with zeros incase there are less than 5 digits... example if the number is 34 it should become 00034 please help!.. …

Member Avatar for smile4evr
0
76
Member Avatar for DemonGal711

My assignment is to take in values that will create a maze, and then let the user traverse the maze by use of a stack to store values. I thought I had it down to it working, but now it isn't doing what it should and then it stops after …

Member Avatar for DemonGal711
0
101
Member Avatar for websurfer

Hello, all: have this general question on how to handle member's email in a site... what is the right way to setup an email-system structure, say like in dating site, where members can email between each other, and if a member receives a new email it will "show" new email, …

Member Avatar for humbug
0
166
Member Avatar for LincolnGurl

Hi All, Having already developed fixed-type binary tree classes in the past, I am reasonably familiar with the process of serialization and the graph topology of tree structures in general. However, I am currently attempting to implement a generalized C++ tree template and have absolutely no idea as to which …

Member Avatar for LincolnGurl
0
121
Member Avatar for phalaris_trip

I'm new to java (like a few weeks new), but coming from a C++ background.. This is going to sound retarded, but... can someone explain to me how I can make a BigInteger object to make it have the same value as another BigInteger object? That is they have to …

Member Avatar for destin
0
1K
Member Avatar for smile4evr

hw to add multiple conditions in a single update statement?? my project goes code like this... [code] If release.Enabled = True And nonosc.Enabled = True Then Dim rst12 As New Recordset Dim sql12 As String sql12 = "update Passport_Release_Information_N set Ename2='" & taker.Text & "' ,Any_ID1='" & takerid.Text & "' …

Member Avatar for AUGXIS
0
175
Member Avatar for BestJewSinceJC

I saw someone, I think it was s.o.s, recommend the use of BigDecimal to someone else. So out of curiosity, and having heard of BigDecimal before, I looked at the Javadoc to see how large the values it could hold were and how it held them. From the doc: "Immutable, …

Member Avatar for jbennet
0
165
Member Avatar for BestJewSinceJC

Its basically telling me it doesn't know wth the pow() function is. But at the top of the file, I have #include<math.h> so shouldn't that work? And right after I have the #include, I declared the function definition of bintodec, so that isn't the problem either. [CODE]int bintodec(char* array){ int …

Member Avatar for BestJewSinceJC
0
114
Member Avatar for psycho007

Hi there, was wondering if somebody could help me. I currently have a project to create a php/mysql system for a local pizza company, a touch screen system. Cut a long story short, I need to be able to print multiple lines from a txt file. I have got the …

Member Avatar for psycho007
1
1K
Member Avatar for songkok

hello everyone. i have search through the forums but unfortunately couldnt find the solution. if this topic has been discussed before, do give me the links to that thread. i work as intern now and my employer asked me to program a software using c++ but they want it with …

Member Avatar for songkok
0
118
Member Avatar for chunalt787

Our task is to write a Binary Search Tree and the data has to be input from a .txt file where in the data is held as such [CODE]12345678[/CODE] Each digit is a new node in the tree to be inserted. My Binary Tree is working because I can just …

Member Avatar for chunalt787
0
111
Member Avatar for JackDurden

Im having trouble turning this function into a recursion function, partly because I did it another way and now I cant think of how to do it recursively. Can you help? [CODE]int list::recursion(int item, int position) { node* temp = startPtr; while(temp != NULL) { if(temp->item == item) return position; …

Member Avatar for skatamatic
0
105
Member Avatar for 3Dees

Hi, I could do with some help please, worked on this all week and still do not know where to start. i need to wirte a program starting with a one dim array in one vb project then use a two dim array to do the same in a new …

Member Avatar for timothybard
0
183
Member Avatar for bharatshivram

hi, i have written some code that lets the user to upload a file to the root directory of the website. I want the file to be renamed automatically before it is being saved, how do i do this?? [CODE] using System.IO string ImagesFolder = “MyImageFolder”; string savePath; string saveFile; …

Member Avatar for reach_yousuf
0
104
Member Avatar for raul15791

Hi, I'm newbie in ASP. I am trying to view multiple pages by using a single file. For example, I have a few pages of product.asp (products.asp, products1.asp and so on). Now I want to create a single single (products.asp) but can view multiple pages. Try to search through google …

Member Avatar for raul15791
0
300
Member Avatar for henks

[code] #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int main(){ char input[10]; int i,j,digit,out[10],flag=0,sum; while(flag==0){ sum=0; flag=0; strcpy(input," "); scanf("%s",&input); fflush(stdin); digit=strlen(input); printf("%d\n",flag); if(strlen(input)>8){break;} /*else { for(i=0;i<8;i++){ if (input[i]!=48&&input[i]!=49){ flag++; break; } } }*/ printf("%d\n",digit); printf("%d",flag); if (flag==1){break;} for(i=0;i<8;i++){ if(input[i]!='\0'){ if(input[i]=='1'){ out[i]=1;} else if(input[i]=='0'){ out[i]=0;} } } j=1; for(i=0;i<digit;i++){ sum+=out[i]*pow(2,digit-j); j++; } printf("Decimal …

Member Avatar for henks
0
145
Member Avatar for ashish_nirkhe

I am designing a project in java.I am mostly done with the code. I need to know how to convert my java code into .exe file? pls reply soon. Thanks in advance.

Member Avatar for ashish_nirkhe
0
123
Member Avatar for freudian_slip

For some weird odd reason, sqrt(2/num) does not work. [ICODE] cout << " sqrt(2): " << sqrt(2) << endl; cout << " sqrt(num): " << sqrt(num) << endl; cout << " sqrt(2)/sqrt(num): " << sqrt(2)/sqrt(num) << endl; cout << " sqrt(2/num): " << sqrt(2/num) << endl;[/ICODE] results in [ICODE] sqrt(2): …

Member Avatar for vmanes
0
149
Member Avatar for justinmyoung

I'm trying to implement a Prototype scoller.js script within my site, and functionally and aesthetically its working fairly well. However there are two problems that I need someone who knows what they're doing to help me with. My site you can see the problem: [URL="http://www.thecassidyfeed.com/index2.html"]http://www.thecassidyfeed.com/index2.html[/URL] #1. When initially visiting the …

Member Avatar for justinmyoung
0
122
Member Avatar for DemonGal711

I have to use stacks for my program, but I've never done them before so I looked up a code in my book to try and help me understand it but parts are confusing me. [code] void push(char item) { if (full()) throw FullStack(); else { NodeType* location; location = …

Member Avatar for DemonGal711
0
99
Member Avatar for abu taher

I have 4 text box in a form. when I click a button another Form show with a MSflexgrid. when I click in a msflexgrid the data show a text box of another form. I write code: form1.Text1.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.RowSel, MSFlexGrid1.ColSel) But I when I click msflexgrid the same data …

Member Avatar for aktharshaik
0
1K
Member Avatar for grr

I want to make an app system like Facebook. I just need to know how to include remote files. Like, for example: [code=php] <?php require "top.php"; require "side-left.php"; //Start include (sanitize with ob_start();) require "http://blah.com/bla1/bla2.php"; //End include require "footer.php"; ?> [/code] I'd like to figure out how to get a …

Member Avatar for grr
0
145
Member Avatar for konczuras

Hi Everyone! I have the following problem: I'm trying to create a web shop (now just the sample of it), using Visual Web Developer 2008 (Express). I've added an SQL database, and a ButtonColumn, where the button selects the line and add the datas to another database. My only problem …

Member Avatar for konczuras
0
96

The End.