199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for genux

Hi Was wondering if anyone did know of a way to convert games (to get involved with companies) to convert games in Windows to Linux ? put like a opengl wrapper around the DirectX stuff as such. without using wine(x). I would like to have UT3 on a linux platform …

Member Avatar for genux
0
106
Member Avatar for QWaz

Hi, I am getting this error: Warning: implode() [function.implode]: Invalid arguments passed in ... on line 28 I am not sure if what I am doing is possible or if I have shanked the code somehow.. if(!isset($_GET['b'])) { ///// DISPLAY THE NORMAL PROMOTIONAL HOME PAGE } elseif($_GET['b'] == 't') { …

Member Avatar for rajarajan2017
0
2K
Member Avatar for SCoder1
Member Avatar for Ankit_Parmar

I am using ldap_connect function in phpmaker tool,but it is giving error like Fatal error: Call to [B]undefined function[/B] ldap_connect() in C:\xampp\htdocs\register\1v6\phpfn7.php on line 4127

Member Avatar for Ankit_Parmar
0
100
Member Avatar for powerbox

Hi guys, I created a Library 3 years ago and it is built around interfaces and generics. Now I needed to extend one of my application to support WCF. On my test scenario I can load it up on my application as part of different application domain. My problem now …

Member Avatar for powerbox
0
310
Member Avatar for YoavX

Hello, i've tried to use Windows sockets not in my LAN and i've noticed that every time my program starts it gets CPU overflowed weirdly [code=c] ProgramConfig myConfig = ExecuteServerConfig("config.ini"); WSAData wData; if(WSAStartup(MAKEWORD(2,2),&wData) == -1)return 0; sockaddr_in serveraddr; int sock = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); serveraddr.sin_port = htons(myConfig.Port); serveraddr.sin_addr.s_addr = inet_addr(myConfig.Server); serveraddr.sin_family = …

Member Avatar for Aranarth
0
141
Member Avatar for arbme

Hi, I'm new to C/C++ but have worked with PHP for years and want to make a program to tie in with my web applications. I want to write a program that listens on port 80 for incoming HTTP/HTTPS traffic to a web browser. Then checks HTTP headers from a …

Member Avatar for Aranarth
0
107
Member Avatar for crystaliao

hi everyone, Originally I had a script like: telnet host port then type STATUS for checking remote server,local server status and connection. In order to omit typing "STATUS", now I'm trying combine these two commands into one line, how to write it? or do we have another way to achieve …

Member Avatar for griswolf
0
207
Member Avatar for migicikinyanjui

I am using DataEnviroment ,I set the path of my connection by going to the properties of the connection (connemployee). and it brings issues with the path at runtime when the packaged program is installed. Help me solve this problem.

Member Avatar for migicikinyanjui
0
121
Member Avatar for Sunshineserene

Hi there, I am currently doing a bioinformatics project on dynamic programming. I need to read a text file, and extract the information in it and use the information in it for my dynamic programming java codes(both java codes must be together). May I know how to extract the information? …

Member Avatar for Sunshineserene
0
424
Member Avatar for Krstevski

Hello friends, I never ever use a class destructor, and now I want to try to using destructor, but I have a small problem. My code is: [CODE] using System; using System.Text; namespace ConstTest { class test { public test() { Console.WriteLine("Start..."); } ~test() { Console.WriteLine("End..."); } } class Program …

Member Avatar for Krstevski
0
114
Member Avatar for wiss.dev

Hi all im trying to get value of a constructed checkbox.checkstate value For i = 1 To 19 Dim scheckBox As String = "checkBox" & i & ".checkstate" dim int as integer = scheckBox ' Next --------------------------------------------------------------- in foxpro: ------------- int=&(scheckBox) any ideas??? thanks

Member Avatar for G_Waddell
0
133
Member Avatar for kirtan_thakkar

I have a text file and i want it to open and add all the line to an array. Which function is used in php for that task?? Which separator is used for a new line..?? Can any one help...

Member Avatar for rajarajan2017
0
81
Member Avatar for cancer10

I want to insert records into multiple tables at one go, I am doing this in the following way, is this the correct way of doing? If not, what is the better way? [CODE] mysql_query("insert into table1 values('abc')"); mysql_query("insert into table2 values('ttt')"); mysql_query("insert into table3 values('5t6')"); mysql_query("insert into table4 values('ghy')"); …

Member Avatar for rajarajan2017
0
167
Member Avatar for lewashby

I'M getting error below when I run the following program code. It's with the following function. [COLOR="Red"]fileD.write("%\n" % depot.get())[/COLOR] [COLOR="Red"]Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__ return self.func(*args) File "/home/developer/Projects/Head First/Chapter 7/Head-Ex.py", line 7, in save_data fileD.write("%\n" % depot.get()) ValueError: unsupported format …

Member Avatar for TrustyTony
0
177
Member Avatar for dan_t

OK, Here's what I have. This is my simple form. [CODE]<form action="log_test.php" method="post"> <input type="text" name="username"> <input type="password" name="password"> <input type="submit" name="submit" value="Log in"> </form>[/CODE] and here is my script [CODE]$query = "SELECT userId, password FROM table"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['userId']; echo $row['password']; }[/CODE] I …

Member Avatar for rajarajan2017
0
149
Member Avatar for BobbieJean

Hi everyone, I think I nearly have this program running right except for printing the adjacency matrix. Here's the code I have: [CODE]#include <iostream> #include <string> #include <memory.h> using namespace std; class Graph { public: static const int MAX_ROWS = 6; static const int MAX_COLS = 6; Graph(); ~Graph() { …

Member Avatar for jonsca
0
264
Member Avatar for student.09

Hi I had a few quick questions about this program that I'm just about to write. The program itself looks fairly easy, for the calculation I'm not so sure. Problem Statement: We have been hired to write a program to determine the number of cases required to store boxes of …

Member Avatar for NP-complete
0
117
Member Avatar for empror9

hello everyone Q1-see this equation [url]http://www.daniweb.com/forums/attachment.php?attachmentid=15688&stc=1&d=1278298959[/url] is this the correct code for this Q1? [code]#include<iostream> using namespace std; int main() { float s=0,p; int i,j; float x; cout<<"x="; cin>>x; for(j=1;j<=6;j++) { p=1; for(i=1;i<=j;i++) p*=x; if(j%2==0) s+=(-p/j); else s+=(p/j); } cout<<"ln("<<x+1<<")="<<s<<endl; system("pause"); return 0; } [/code] *** Q2- i want to …

Member Avatar for NP-complete
0
98
Member Avatar for c++learner

Hello, could someone be so kind as to give me a short tutorial on how to use a function that accepts multiples values and parameters using references. I need to create a function that accepts an int and a double and squares both values by using references. I'm not sure …

Member Avatar for c++learner
0
154
Member Avatar for twelvetwelve

When I use the following PHP code I get this error Error performing query: Unknown column 'nh12134' in 'where clause' Yet when I use 'nh12345', which is the Value that the variable $username contains (i've checked that it does by printing it out elsewhere) instead of the $username in the …

Member Avatar for Ankit_Parmar
0
282
Member Avatar for gopi17

I'm having some trouble with the output here...can anyone help me...learning how to use to C language, more of a C++ programmer...i tried using all sort of declaration but the output is still the same... [CODE] int i; float x = FLT_MAX - (2.0); double y = DBL_MIN - (2.0); …

Member Avatar for kings_mitra
0
107
Member Avatar for satees

Hi, I need to grab the data from the other specified websites, any idea how to implement this? Thanks in advance. Satees

Member Avatar for keval_hack
0
123
Member Avatar for mundvawala

hey guys ...i m making a project of "CHESS GAME"..... in which to identify any pieces of chess board ,i had used described mechanism....(see code of array) ... but it actually not working...it takes garbage value...it is working only for the "Rook"... i can't understand this behavior...so plz help me …

Member Avatar for Krefie
0
167
Member Avatar for Skyelher

I kinda use this: [CODE]while 1: [body] [/CODE] a lot... But I've also read that it's not a good idea to be doing so even if you put add some way to break from the loop within the body... Any alternatives, please?

Member Avatar for griswolf
0
150
Member Avatar for sarminatorius

Hi, How to explore libraries, by that i mean open and look at its source code? I am using Embarcadero RAD Studio 2010. For example i want to see functions inside #include <list>.

Member Avatar for mrnutty
0
95
Member Avatar for TrustyTony

My Python has started to imagine that square root of -1 is 1, so be careful with ** and unary -. [CODE]print (-1**0.5) ## ** binds stronger than unary minus! i=-1 print "Square root of %i is %f" (i,i**0.5) # gives proper error """ Output: -1.0 Traceback (most recent call …

Member Avatar for Skyelher
0
341
Member Avatar for ChPravin

Hello All, I just wanted to know if there is any way to dynamically set the width of a column inside a table within a datalist based on the length of the text fetched from the database.I am inserting my code.In the code below I want the width of collapsible …

Member Avatar for tz2010
0
3K
Member Avatar for Griff0527

I've searched the C++ forums and cannot find anything that relates to my question. I am writing a program (for class) that opens a txt file and reads doubles from the file, then computes the standard deviation of the numbers in the file. In order to do this, I am …

Member Avatar for Griff0527
0
258
Member Avatar for Dimitar

Hello everyone, I am trying to pre-allocate a certain number of nodes to a linked list, I allocate 10 nodes at first and, if I have more data to store, I'll need to resize it by adding half of the total number of nodes, sort of like 10, second time …

Member Avatar for Dimitar
0
435
Member Avatar for kayfar

how to insert radiobutton value into Access database using c#? rely need help...

Member Avatar for Lusiphur
0
117
Member Avatar for deez2183

The recent assignment I was given in my programming class had me utilize a structure. Structures are not covered for another 10 chapters in our textbooks, however I did read up on them as much as I could to try to figure this thing out. I am still unsure on …

Member Avatar for jonsca
0
255
Member Avatar for rahul8590

i have a basic script where in i check if the content is inputted or not . If the content is not present i redirect to the same page also echoing a statement that u have not entered any data , but the echo message is not being printed. the …

Member Avatar for rahul8590
0
114
Member Avatar for Kingcoder210

I need to make report there in crystal report there in crystal report. Let me make it clear to you. Listen I have a table called result ok? When user creates result for Tom it saves data in the table like that - ID - Name - Subject - Oral …

Member Avatar for finito
0
89
Member Avatar for shadiadiph

Trying to get my one of my divs when clicked to call a function but it doesn't seem to be working??? I just noticed that only one solid pixel in the div border which i will eventually set to 0px calls the function but I want it so the whole …

Member Avatar for shadiadiph
0
94
Member Avatar for TrustyTony

See the link ([URL="http://norvig.com/sudoku.html"]Solve Every Sudoku Puzzle[/URL] for fine description of logic of the code) I attach the top95.txt file of tough problems and the sudoku claimed toughest of all time by Finnish mathematician Arto Inkala ([URL="http://www.kristanix.com/sudokuepic/worlds-hardest-sudoku.php"]The Worlds Hardest Sudoku Puzzle[/URL]) Solving this was piece of cake for the code, …

Member Avatar for TrustyTony
0
1K
Member Avatar for Mathukutty

In the code below, I don't understand why the diference in elapsed time calculated with System.currentTimeMillis() is different tm.getCurrentThreadUserTime() The elapsed time in millisecond is always a value like 23 or 14 while time calculated with tm.getCurrentThreadUserTime() is always 0 . I know one is milli and the other is …

Member Avatar for Mathukutty
0
223
Member Avatar for man.getName()

Hi everybody, I would like to use a XYBlockchart with the following features: 1. Highlight square when mouse is over it 2. Show tooltip (which is simple, as far as I know - just setting a flag == true) 3. Open an additional frame with a graph by double-clicking on …

Member Avatar for man.getName()
0
197
Member Avatar for Lusiphur

I've been building a custom [URL="http://bariby-quance.com/blogged.aspx"]journal application[/URL] for my website which has a reply sub-app where visitors can post responses to my frequent posts. In the response sub-app I want to be able to incorporate formatting buttons (bold, link, colour, etc) that will take selected text within the textbox and …

Member Avatar for Lusiphur
0
595
Member Avatar for Sucesso

I've got what I think must be a pretty simple question, but it's my first time doing something like this. Here's my situation. I have a simple database. It's a dictionary of words. I want to have a form that I can enter a word into. Once I do that, …

Member Avatar for effu
0
125
Member Avatar for Rocky111

I am new to C++. I have a problem regarding access specified elements from a text File. I have two File containg the random sorted integert values. and an Array with some size. For exapmle if array contain 10 elements and files will contain random number upto 10 with no …

Member Avatar for Rocky111
0
90
Member Avatar for amit.hak50

When i clicked on JMenuitem ..it opens a new window ..but when i close this window the parent window also closes... is there any method to resolve ..i don't want to close the parent window only the new window..

Member Avatar for amit.hak50
0
275
Member Avatar for daudiam

Static fields and methods are allocated memory once only, when they are first referenced, irrespective of the no. of objects u later create. But, memory is allocated for its data members each time an object is created. But what about the non-static methods, they don't change for each object. So …

Member Avatar for JamesCherrill
0
138
Member Avatar for SHARKASI

I'm having trouble finding a problem in this program that supposedly converts currencies, is it possible to find some help from specialists in the Java programming language ...? the codes here: import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.event.*; import java.io.* ; public class CurrencyConvertor extends JFrame { …

Member Avatar for SHARKASI
0
200
Member Avatar for baillot

Hello I am sorry if this is a dumb question but is it conceivable to determine the memory address of a function that is inside a running application from another application? Say I have an application A that has a function helloWorld(). A is being launched. I would like to …

Member Avatar for gerard4143
0
174
Member Avatar for annitaz

Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end;

0
77
Member Avatar for annitaz

Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end; I wrote the followng but something is wrong …

0
53
Member Avatar for dxmedia

Hi, As there is almost no documentation for this, I would like to know hot to properly use in VB NET 2008 the keep alive socket option. Tried this: [CODE]myTcpClient.Client.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.KeepAlive, 1)[/CODE] but then the TCP does not connect any more, and how do I know when the connection brakes …

Member Avatar for dxmedia
0
454
Member Avatar for amit.hak50

Hi My problem is that , The Jframe window does not remember it's position after minimizing ....suppose I minimize at co'ordiates (45,89)..but after maximizing it again open at (37,28)..means at different co-ordinates ..i want that jframe should open at the same position...after maximizing..like remeber it's position.. please help

Member Avatar for NormR1
0
784
Member Avatar for vivek01anand

there are N elements in an array. u have one number x. u have to check whether there exists two elements in that array whose sum is x. But order should be less than N^2( N square). i dont know the method how to achieve order less than n^2.

Member Avatar for invisal
0
114

The End.