199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cam875

Is it possible to code the client application using winsock API so it can run for windows but the server with berkeley socket API so it can run for linux. I mean will they be able to establish a solid connection even though the socket API's and OS's are different. …

Member Avatar for cam875
0
240
Member Avatar for manzoor

[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected …

Member Avatar for manzoor
0
540
Member Avatar for nikki123

Develop a program in C++ which takes input a file of C Language and process all #define (i.e. #define MAX 100, than replace every occurrence of MAX with 100). (Macro value 100 can be an expression also.)

Member Avatar for Salem
0
115
Member Avatar for atplerry

Pls i dont relly want to understand what is really wrong with the code below! I want to insert record into the database i have written one and it is working well for two record but for these is not working. And more so it work anytime it like it …

Member Avatar for PomonaGrange
0
98
Member Avatar for jerryjerry

hello everyone, My doubt is related to access specifier. There is one code snippet - [code=cplusplus] class Base { public: explicit Base(); static int object_count; protected: int id; }; class child: public Base { public: child(int val) : id(object_count++){} }; [/code] This code is giving compilation error that id is …

Member Avatar for jerryjerry
0
292
Member Avatar for your uptime

well guys i know you people are professional so can u plz recommand a best book of java which make me familier with java..thx

Member Avatar for peter_budo
0
75
Member Avatar for gispe

hi ppl, im havin a problem with a while loop. it just doesnt go out of it, it has the end, but doesnt use it :S the program is attached :P [code=cplusplus] // ventas_por_correo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int main(int …

Member Avatar for gispe
0
73
Member Avatar for Hannahlv

Hi everyone! I'm doing my project related to socket programming. The send and receive part I got problem. The code is below : Server side: [CODE] printf("Handling client %s\n",inet_ntoa(their_addr.sin_addr)); if (send(new_fd, "Menu\n", 5, 0) == -1) //(1) perror("send"); if(send(new_fd, "1. A.mp3, 2. B.mp3, C.mp3\n", 26,0) == -1) //(2) perror("send"); if(send(new_fd, …

Member Avatar for Salem
0
131
Member Avatar for tirivamwe

Hie everyone. Its been a year now using PHP and i think i do understand it now but dont understand what a PHP framework is and what it is used for, how it works, and if its necessary to use it. please help

Member Avatar for mexabet
0
105
Member Avatar for bprabhumdu

hello friends, how to separate all characters from a given string in vb6.0...For example if i give "welcome" in a text box ,in the same form it will print (w,e,l,c,o,m,e,).......... Thanks in advance ............... regards natraj

Member Avatar for bprabhumdu
0
146
Member Avatar for ansari.wajid

Hi friends First of all I would like to thank people here on Daniweb for helping me whenever I need help. I am hopefull that now also all of you will help me. Today I got a special scenario which I am applying in my application. I have 2 text …

Member Avatar for tuse
0
123
Member Avatar for Mazille

I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file …

Member Avatar for Mazille
0
2K
Member Avatar for bloody_ninja

[code=java]package Ninja; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; public class NinjaServer implements Runnable { public final static int NULL = 0; public final static int DISCONNECTED = 1; public final static int DISCONNECTING = 2; public final static int BEGIN_CONNECT = 3; public final static int …

Member Avatar for Alex Edwards
0
438
Member Avatar for Vasudev1

Hi! I'm in the process of creating a web page wherein there is a small <div></div> section wherein some text are scrolling from bottom to top. Now out of this <div> section in the main page, I wish to create a text area for user to fill-up and first few …

Member Avatar for buddylee17
0
126
Member Avatar for CoolGamer48

Say I have a file file1.h: [CODE] namespace a { int Func() { return 5; } } [/CODE] and a file file2.h [CODE] #include "file1.h" namespace a { class Foo { Foo(); }; } [/CODE] and file2.cpp: [CODE] #include "file2.h" a::Foo::Foo() { Func();//<---- } [/CODE] Can Func() be referenced like …

Member Avatar for CoolGamer48
0
81
Member Avatar for Gorilla

I've doing my final thesis at my university I've found a place for source code related to my topic for reference: [[url]http://www.christopher-wolf.de/hfe/][/url]. But unfortunately, I cannot download any of its content listing in the page. If anyone knows how to have it, please help me. Thank you very much for …

Member Avatar for toli
0
131
Member Avatar for mustafaneguib

ok guys is there any way to submit a form to a number of pages at the same time? can we provide a number of urls instead of just one action attribute? one form send the same info to different pages. i mean something like an email, but it is …

Member Avatar for mustafaneguib
0
114
Member Avatar for justinmyoung

I'm trying pull up data from database, and display it on a table. I used this code before but for some reason it won't work here. Any suggestions? Thanks! It says the error is this line: [ICODE]<?php while ($list = mysql_fetch_assoc($result)) {?>[/ICODE] The error message is: [B]Warning: mysql_fetch_assoc(): supplied argument …

Member Avatar for mustafaneguib
0
232
Member Avatar for army88m2

O.k. this is my first scripting class and I need someone's opinion on this code. I need to write a code for a modularized program that will: 1.) read each record from the inventory database 2.) print a price tag for each item in inventory 3.) count and print the …

Member Avatar for chid_
0
112
Member Avatar for Lukezzz

I have created a listView on my Form. In the properties I have created 2 Columns. What I now wonder is how you can put text in each column. I have tried out this code but no Text is coming up in the listView1 at all. Could I be on …

Member Avatar for Lukezzz
0
114
Member Avatar for TheBeast32

Hi, how would I make a program that gets input from a user, sends it to a program with popen(), gets the output, and repeats this until the program ends? I have tried, but I only get part of the output, and when I type "exit", it won't end the …

Member Avatar for TheBeast32
0
1K
Member Avatar for veledrom

Hi, [inlinecode]Select closing From balance Where account_no = 12 Limit 1[/inlinecode] returns an error "You can't specify target table 'balance' for update in FROM clause" Where is mistake? Thanks [code] AFTER INSERT ON Close BEGIN Insert into balance (date, opening, account) Values (CURDATE(), (Select closing From balance Where account_no = …

Member Avatar for veledrom
0
70
Member Avatar for Ccrobinson001

I have a program for clas that requires me to write a random number guessing game. I completed the game but i have to use functions in the program and I am not to familiar with this. Can some one help me? Here is the code and here are the …

Member Avatar for Ccrobinson001
0
238
Member Avatar for Billg

I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class …

Member Avatar for vegaseat
0
107
Member Avatar for iam

I've been lurking on DaniWeb for a while now and have finally got round to registering, particuarly after realising it had a Ruby forum. I've been playing with Ruby for a couple of months now and am in love with its common sense approach to programming, and makes the likes …

Member Avatar for peter_budo
0
234
Member Avatar for ryy705

Hello, In a spam message I always see my own email address in the to: field. How do they do that? They must use the bcc: field to send out the emails. So why do I see my own email address in the to: field? I would like to create …

Member Avatar for mexabet
0
96
Member Avatar for sickle

Hi, This concerns Microsoft Windows. I want to know when a window from other processes is made visible. Also, I want the handle of the window. I've tried to catch the message WM_SHOWWINDOW with SetWindowsHookEx(WH_GETMESSAGE, &MessageProc, g_hInstance, 0) but I receive no events ! The only events I receive is …

Member Avatar for sickle
0
413
Member Avatar for sinner

please help me in this code please remove all these errors because i did not remove these errors due to beginner in c

Member Avatar for Aia
0
110
Member Avatar for plike922

I am trying to create a program that finds the GCD of two numbers using the brute force... So far i have this but my problem (I hope) is that i cant get the value of g into int main() Here is my program. Any suggestions? [CODE]#include <cstdio> #include "simpio.h" …

Member Avatar for Prabakar
0
180
Member Avatar for andy4919

I have to create a Pseudo code for a class that is it's second week (I registered Late) I have no idea what I am doing. I have to create a program that writes a file that lists student ID #'s and their final scores. This is the data I …

Member Avatar for andy4919
0
264
Member Avatar for ricss_madara

investment duration interest rates offered Less then 3 months 5% 3month-11 months 5.5% 1 year-23 months 7.6% 2 years and above 7.9% Note: Interest = Total investment *Interest rates *Duration Q: How to write a java application to compute the total accumulated investment after the investment periods?

Member Avatar for jasimp
0
143
Member Avatar for wussa

I have been having a parse error but its ok now.But there is another problem. I can reg and email sent to me for confirmation,. I have confirmed it but when followed link to verify confirmation of registry it said nothing is found. Is this a database error. Thanks My …

Member Avatar for nav33n
0
121
Member Avatar for 2eXtreme

Hey guys, can someone please tell me how I can connect to a remote Oracle DB using WAMP (Windows Apache MySQL PHP) installed locally on my machine?

Member Avatar for emiola
0
783
Member Avatar for schone

Hi all! I have been working on a relational database and have been putting it together as an ER diagram which I have attached (it has no relationships at the moment). [ATTACH]6773[/ATTACH] Here are how the tables are related: [B]Each[/B] Diary (diaries) has [B]many[/B] Questions (questions) [B]Each[/B] Question (questions) has …

Member Avatar for tesuji
0
162
Member Avatar for @bhi

I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance.

Member Avatar for @bhi
0
150
Member Avatar for TheBeast32

Hi, I have been trying to get MySQL to work on my apache server with PHP on it. My Apache version is 1.3.29 and my PHP version is 5.0.0RC2. I'm also running Windows XP Professional SP2 32 bit. I tried modifying the php.ini file to load the php_mysql.dll, but I …

Member Avatar for emiola
0
114
Member Avatar for sinner

this code in c++ please convert this code in c i really thankful to you because today i have shortage of time please do this for me

Member Avatar for ArkM
0
78
Member Avatar for wegdan

what is a database driver (such as microsoft provider) and a database provider(such as jdbc driver , odbc driver , dbole driver) and what the importance of each of them?

Member Avatar for emiola
0
90
Member Avatar for max2me99

Very new to this. I've set up a MySQL db with two tables. Structure is table_ads with fields id, category_id, name, sort_name, img1, img2, and active table_categories with fields id, category The goal is when page is loaded to have all active (true) names from ads fall below the category …

Member Avatar for max2me99
0
107
Member Avatar for jagsar2323
Member Avatar for gispe

hi ppl im back here, but with another problem in another code. in this one i have to count how many sellers reached the top sells. thing is that if i put one that reached the top at the end, the program doesnt count it, it counts only the first …

Member Avatar for gispe
0
103
Member Avatar for xxReYMaXxx

[B]helow, can someone help me with my problem. my Teacher give me a problem, he want me to make an array that the output would be my name, buth with a space on it, [/B] [B]example:[/B] Raymond [B]output:[/B] R a y m o n d & R a y m …

Member Avatar for robertmacedonia
0
143
Member Avatar for cam875

Ok, I was wondering if somebody could give me some clarification on a topic that just doesn't seem to make sense to me. I have a class that tells my program all the attributes needed to build another player in my game but there could be 3 players logged in …

Member Avatar for CoolGamer48
0
98
Member Avatar for cork

Do some servers support classes and others don't? I wrote a shopping cart on one server and copy/pasted in onto another server and i get the following error: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in .../classcart/ShoppingCart.php on line 7 This is how …

Member Avatar for buddylee17
0
120
Member Avatar for Lokesh.snghl

hi all, I want to calculate days b/w two different month like as 7/15/2008 and 9/30/2008 this is silly question but i have problm to calculte ti .Its urgent in projec

Member Avatar for tesuji
0
134
Member Avatar for praksk

I am relatively new to visual basic. I need to take two 8 bit byte values, join them to makea 16 bit binary value and then separate the 4 msb as a 4bit binary vale and the 12 lsb as a 12 bit binary value. Thanks in advance for helping …

Member Avatar for dmf1978
0
475
Member Avatar for jamshed

This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation. The Daewoo Reservation System will ask the user for the following information : • Name of passenger • Departure City • Destination City …

Member Avatar for ssharish2005
0
612
Member Avatar for lehe

Hi, When using "..printf Functions" with Conversion specifier type "%g", it gives different results under different environment. For example, "sprintf(string,"%g",1e-6);" gives "1e-006" in Windows (Visual C++) and "1e-06" in Linux (gcc). Maybe I am wrong about it. Is it possible to get the same format under whatever operating system or …

Member Avatar for ssharish2005
0
113
Member Avatar for kneel

Project Title: Daewoo (a Bus service) Reservation System Project Description: This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation. The Daewoo Reservation System will ask the user for the following information : …

Member Avatar for Salem
0
109
Member Avatar for Mangocheese

Hello, I need some direction with getting started making a tile based game/map editor. I've searched everywhere but nothing really answers my question, so I thought I'd ask myself. Ok, before anyone says, I want to clear it up, I *want* to make a map editor and game separate applications …

Member Avatar for your uptime
0
127

The End.