64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for BillyMako

I need to get the 'customers_info_date_account_created' from the 'customers_info' table where the field 'customers_info_id' matches with the field 'customers_id' in the following query: [code=sql]SELECT * FROM customers WHERE customers_id NOT IN( SELECT customers_id FROM orders )[/code] I basically have all the information in columns from the query and need an …

Member Avatar for BillyMako
0
131
Member Avatar for T'Scoopz

I'm trying to make a linked list, what's wrong with my syntax for adding a node? [code=c] struct data { char name[20]; char number[10]; }; typedef struct node { struct data list; struct node* next; } Node; Node *head = 0; Node *tail = 0; Node *New = 0; void …

Member Avatar for William Hemsworth
0
93
Member Avatar for Freaky_Chris

Hi all, i'm looking into doing a little bit of work with the mouse in console applications on windows. I'm using windows.h to get access to functions such as ReadConsoleInput. I've created a simple program that just prints a string whenever the left most mouse button is clicked. However sometimes …

Member Avatar for Freaky_Chris
0
201
Member Avatar for flash121

Hello! I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it. I tried with the code below, but i get an error saying: "comma or end of line expected" at the …

0
298
Member Avatar for serkan sendur

hi, i need to create a c shared library on unix platform using korn shell. can you provide me with some sample codes please. thanks

Member Avatar for serkan sendur
0
131
Member Avatar for IT_Techno

hi, ihave this code in c# for crating cookies : if (saveInCokies_CheckBox.Checked) { HttpCookie myCookie = new HttpCookie("AtterehWebCookies"); myCookie["userName"] = userName_TextBox.Text.Trim(); myCookie["password"] = password_TextBox.Text.Trim(); if(employee_RadioButton.Checked) myCookie["loginType"] = "employee"; else if(lawyer_RadioButton.Checked) myCookie["loginType"] = "lawyer"; else if(customer_RadioButton.Checked) myCookie["loginType"] = "customer"; Response.Cookies.Clear(); Response.Cookies.Add(myCookie); Response.Cookies["AtterehWebCookies"].Expires = DateTime.Now.AddDays(30); } after that i want to read …

Member Avatar for LizR
0
124
Member Avatar for audigy642

I'm new at the whole code thing and I've never worked with this before but I have to fix it and I'm lost. When publishing an internal site I'm getting a RunTime error "Server Error in /Workorder Application." Runtime Error Description: An application error occurred on the server. The current …

Member Avatar for audigy642
0
409
Member Avatar for karang

Hi I have build one dll project . I want to use that dll in another project. But when I include the header file of the project I am getting an error Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" Am I missing …

Member Avatar for cikara21
0
311
Member Avatar for DemonGal711

Okay, I have to store an adjacency matrix for a graph problem I'm doing. Let's use this picture to explain it right now. [url=http://i21.photobucket.com/albums/b272/DemonGal711/Program%20Pic/pic.jpg]Click here[/url] I figured, I'm use a linked list to store it where each node uses the struct [code]struct Node { char item; Node* vertex; Node* next; …

Member Avatar for DemonGal711
0
182
Member Avatar for NewbProgramma

I'm coding for fun and I can't figure out how to compare two string in an if (string1 < string2) type statement. I figured if I could somehow get values for those strings it would be easy to do the if statement. All help is highly appreciated : )

Member Avatar for verruckt24
0
112
Member Avatar for zigpy_siva

hi I am creating an CSV file in java by putting the Korean values in a properties file like "\uc81c\ubaa9 \uc18c\uc2a4\uc5d0\uc11c \uc5b8\uc5b4" [B]which is properly coming in the CSV file (like "번호 출판물의") when I open it in the notepad and select the font as Arial Unicode MS[/B], but when …

Member Avatar for zigpy_siva
0
617
Member Avatar for namehere05

[CODE]void StrCpy(char * Dest , char* Src ) { while(*Src){ *Dest = *Src++; cout << *Dest ++; } } void main() { char* string1 = "\0"; char * string2 = "EL"; StrCpy(string1, string2); //cout << string1; //must output EL } [/CODE] Im trying to output EL after its copied to …

Member Avatar for namehere05
0
614
Member Avatar for sfrider0

I created the first method, which gets and displays all the links in a web page in a listView when a button is pressed. I found the second method on a site that supposedly checks to see if a link is valid. I need help on incorporating it into my …

Member Avatar for sfrider0
0
208
Member Avatar for java_girl

Hi. This is NOT a homework assignment (self-interest only). The exercise asks me to write a function which accepts two strings and returns a pointer to the longer of the two. [code language="C"] #include <stdio.h> #include <stdlib.h> char* longer( char str1[], char str2[] ); char* str_ptr; int main( void ) …

Member Avatar for devnar
0
11K
Member Avatar for yingfo

Hi I was wondering if anyone could help I'm receiving a segmentation fault whenever I go to run my main.cpp on my program. I've never encountered this before and was wondering if anyone knew how it can be fixed. The program consist of equiv.h, equiv.cpp, graph.h, graph.cpp, and main.cpp here …

Member Avatar for yingfo
1
260
Member Avatar for slimjimmer

Hi, In this piece of code in my program I am receiving the following error request for member âyâ in something not a structure or union. [code=c]struct intpair { int x ; int y ; } ; struct intpair makeintpair(int x, int y) { struct intpair temp ; temp.x = …

Member Avatar for Luckychap
0
100
Member Avatar for ruelk

Hello all. I am teaching myself C# and I have been fairly dedicated to solving my own problems. However, for some reason I am just stumped. I have a main form that manages alot of data. To insert data into the form you push a button to bring up a …

Member Avatar for ecoloney
0
198
Member Avatar for christiangirl

This program is all working except when a user chooses the same file as before it needs to show both orders in the file but it is only showing the latest one. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a …

Member Avatar for christiangirl
0
138
Member Avatar for addsf1

I keep getting this message what is wrong with my sacript??? Parse error: syntax error, unexpected $end in /home/sites/thefieldinggallery.co.uk/web/contact_form.php on line 65 here is the php script: [code=php]<?php /* subject and email Variables */ $emailSubject = 'Crazy PHP Scripting'; $webMaster = 'info@thefieldinggallery.co.uk'; /* Gathering Data Variables */ $nameField = $_POST['name']; …

Member Avatar for peter_budo
0
148
Member Avatar for DemonGal711

I have to make a program that reads in words, deletes certain ones, stores ones that pass, and then count the total. He didn't exactly specify how the words would be coming it, but I'm assuming that if a space at the end of the word is bad, that it's …

Member Avatar for DemonGal711
0
100
Member Avatar for davids2004

The code is pretty easy to understand what I am doing. You basically pick a number 1-4 and it will do either addition, subtraction, multiplication, or division. What I need it to do is after they do a problem it loops back and lets them do it again, until they …

Member Avatar for davids2004
0
171
Member Avatar for bpacheco1227

I need to add student name and grade to a file. This is my section of code so far [code=VB] Private Sub addStudentNameGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addStudentNameGrade.Click Dim swrStreamWriter As IO.StreamWriter swrStreamWriter = IO.File.AppendText(path & "studentgrade.txt") swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text) 'swrStreamWriter.WriteLine(Me.textGrade.Text) swrStreamWriter.Close() End Sub [/code] …

Member Avatar for bpacheco1227
0
125
Member Avatar for parhs

Hello.. I couldnt find anything for this topic. I know how to connect to a mysql database and close the connection.But that means that for every script a connection should be established and closed. Is this right and ok for big projects? About 200 concurrent users for example; Having a …

Member Avatar for pkpandit
0
129
Member Avatar for jobojo

I was wondering if someone could explain to me how to merge two arrays so that one is not simply appended to the other, but they need to be merged into one sorted array. I could simply append the two arrays and then sort the result, but that would be …

Member Avatar for jobojo
0
182
Member Avatar for ammameiya

does anyone knows how to conver from LPTSTR to std::string or std::wstring ? example : i want to convert f_path to abc ang def... [CODE] LPTSTR f_path; std::string abc; std::wstring def; [/CODE] thanks in advance

Member Avatar for ammameiya
0
252
Member Avatar for sweeya

Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout …

Member Avatar for seanhunt
0
397
Member Avatar for krhillery

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the pictures of all the cards */ public void init() { /** * This method loads the card picture and lays out the applet. */ cardImages = getImage(getCodeBase(), "smallcards.gif"); setBackground(Color.blue); …

Member Avatar for Ezzaral
0
276
Member Avatar for Foe89

I've got executable code that is partially working, so i know i've done something wrong in it. In it you type in the rainfall for each month in inches and will display the total, average, largest and smallest rainfalls(with the month). I have the the total, average and largest(except the …

Member Avatar for Foe89
0
284
Member Avatar for tomtetlaw

i made a game called chimp and when i start it it just freezes the game window, idle and the python shell, any ideas? heres the code" [code=python] import os, sys import pygame from pygame.locals import * if not pygame.font: print 'Warning, fonts disabled' if not pygame.mixer: print 'Warning, sound …

Member Avatar for tomtetlaw
0
199
Member Avatar for markd220

I have a problem and need some ideas. I have an app that lets the user enter in weights in different units and I need a way to store the data so the total weight gets taken in the end (or at least gets close) One screen the user can …

Member Avatar for markd220
0
132
Member Avatar for idbgy

Hi all, I am using MS Windows SP2. I should like to share my positive and negative experience with the PPM (Perl Package Manager) with the community. For a reason I uninstalled Perl from my computer and installed again. After installation only DBI was present, and for Mysql the DBD::mysql …

Member Avatar for idbgy
0
270
Member Avatar for lllllIllIlllI

Hi guys I am making a program that uses a text control to move messages from one place to another. My program needs to be able to, once the message has been moved, delete what is in the textCtrl. I can go: [code=python] self.textCtrl.SetValue('') [/code] but that leaves me with …

Member Avatar for Freaky_Chris
0
240
Member Avatar for Trekker182

I'm reading up on jobs and processes in UNIX and was a little confused. A processes is just something that executes and then dies right away, like a grep command issued from the shell, right? It started, did what it was supposed too, outputs the info and then dies so …

Member Avatar for omrsafetyo
0
513
Member Avatar for FTProtocol

Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated.

Member Avatar for FTProtocol
0
104
Member Avatar for bpacheco1227

I always have a problem with this. I get an error when trying to build the program "argument exception unhandled". Any help would be appreciated, thanks. [code=VB] Private Sub addBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addBtn.Click Dim newLineIndex As Integer = 0 If My.Computer.FileSystem.FileExists(path & "stocks.txt") Then …

Member Avatar for bpacheco1227
0
4K
Member Avatar for ddanbe

I want to open IE from a forms application. A bit like daniweb does it btw.! I have the following in a button click eventhandler: [CODE=csharp]Process MyProcess = new Process(); //string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); MyProcess.StartInfo.Domain = ""; MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe"; MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; MyProcess.StartInfo.CreateNoWindow = false; MyProcess.Start();[/CODE] …

Member Avatar for LizR
0
187
Member Avatar for freshfitz

I'm trying to display data in cold fusion but when I add my history table I get duplicate listings. I've tried select distinct different joins. How do i join my history table and not get duplicate listings My store procedure in MS SQL is [CODE]USE [Website] GO /****** Object: StoredProcedure …

Member Avatar for freshfitz
0
104
Member Avatar for Yipyo

I've got a simple function that that toggles the display of certain form fields. When I refresh the page, or post back, the display.value goes back to the original state. I don't know how to keep it on the selected state for refreshes and post backs. Please help. It's driving …

Member Avatar for Yipyo
0
166
Member Avatar for asifkamalzahid

if i have file name "file" on my ftp server in some folder and i want to upload a new file with same name "file" at the same folder. so it will create problom or it will modifiy the existing file. i have the following error message 1 Warning: ftp_fput() …

Member Avatar for asifkamalzahid
0
125
Member Avatar for Swarv

Hi all, I have this sql line (below) and where it works fine at the moment. But I have columns with 2 words i.e. opened by. I would like to add this colum to the statement below but everytime i try it errors. Do I have to reword the statement …

Member Avatar for Swarv
0
95
Member Avatar for Traicey

I have 2 related tables, master and a child, the master table have a primary which is an autonumber and I reference that autonumber to my child table as a foreign key so my problem is to get the value of the autonumber from a master table and write it …

Member Avatar for dickersonka
0
81
Member Avatar for mikeistyke

I have a busted five table design for a food item guest ticket . Here are the names(Actual) of those tables: GuestTicketType, GuestTicket, GuestTicketOrderCategory, GuestTicketOrder & GuestTicketPayment. The incomplete(busted) design looks like this: guesttickettype has a field named guesttype, which is one of three guest types: dinein, takeout, delivery. The …

Member Avatar for timothybard
0
285
Member Avatar for ahspats

i have to write a program that deletes special characters from a phone number. For Example: (0049)5599/85675-344 0049559985675344 i have started to program it, but it doesn't seem to function. here's my code: [CODE] #include <stdio.h> void affe(char nummer[]){ int n , i, z; n = strlen(nummer) - 1; for …

Member Avatar for ahspats
0
125
Member Avatar for thariqrasheed

Hi, Can u add numbers without using arithmetic operators in java.We can add using bitwise operators.But i m not able to get the ans. Solve: a+b=c; Prove 2+2=4 without using arithmetic opreations. Looking for u r answers

Member Avatar for stultuske
1
154
Member Avatar for smnadig

Hi, I am working on [B]"Creating A Multiuser Chat Application"[/B] in C#. The code is generating an error -- [B]"SocketException unhandled -- The requested address is not valid in its context"[/B] when it executes [B]listener.Start(); [/B]method. Can somebody kindly help me resolving this? Please find the code below for your …

Member Avatar for LizR
0
127
Member Avatar for karang

Hi I am trying to use MSXML. But I am getting error in that so I explored internet and found one useful articles regarding the installation of MSXML [url]http://msdn.microsoft.com/en-us/library/ms758753(VS.85).aspx[/url] This article is about "Include Headers and Libraries Manually" But as per the instruction given in this article I have to …

Member Avatar for karang
0
158
Member Avatar for KilluaX

Hi, all What I am trying to do is to put a hyperlink on my jsp page. Then, when I click on the link, I will come to the linked page and as well the page can get some info from the jsp page. How is the code like? thanks.

Member Avatar for missalexa
0
4K
Member Avatar for nil_gh_80

Hello friends, I'm in a serious problem....... I have a change password application for registered users......I've applied javascript to check wheather fields are blanks or not but incase if someone press spacebar in new password and retype new password fields then it accept it . Now I want to block …

Member Avatar for nil_gh_80
0
122
Member Avatar for shadwickman

Hi, I have a GUI written with wxPython that contains a form. When the button is clicked, a script is executed to cycle through a specified directory and resize the images to a 50% size (the image manipulation is done with PIL). I used to run this script via the …

Member Avatar for shadwickman
0
145
Member Avatar for luckystar89

draw a right angle triangle with 3 sides 3, 4, 5, and vertices A, B, and C. And prints the description next to that as follows: (Note: it is OK that the characters are not printed out in the right positions at this time as long as they are printed. …

Member Avatar for Salem
0
158

The End.