199,114 Archived Topics
Remove Filter ![]() | |
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. … | |
[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 … | |
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.) | |
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 … | |
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 … | |
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 | |
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 … | |
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, … | |
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 | |
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 | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
please help me in this code please remove all these errors because i did not remove these errors due to beginner in c | |
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" … | |
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 … | |
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? | |
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 … | |
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? | |
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 … | |
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. | |
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 … | |
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 | |
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? | |
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 … | |
Please can any one mail me a jsp source code of an e-banking project at [snipped] | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 : … | |
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 … |
The End.