199,114 Archived Topics
Remove Filter ![]() | |
Hello, I want to create a very simple program to test threading. Example [code] int main () { char option = 'a'; int run = 1; while ( option != 'x' ) { option = getch (); /* some code that changes run */ /* thread ? */ } } … | |
Hi everyone, Just wondering if anyone is interesting in starting a new forum for using ACE? I am new to both ACE and network programming using C++. Thanks! ej | |
I know this is very simple but I cannot remember how to underline a string in C++. Can someone please help. | |
Okay I use Dev-C++ as my IDE. I have never linked my own files. I am pretty much a noob on C++, but not to programming in general. My issue that I have been almost pulling my hair out with is this. I am using a premade MD5 header file … | |
I'm still a newb with php, and i've been messing with this for hours with no success. First, heres the sql dump for the three tables I'm using here they are: DROP TABLE IF EXISTS news; CREATE TABLE news ( id int(10) unsigned NOT NULL auto_increment, postdate timestamp(14) NOT NULL, … | |
I have 2 problems in C regarding floating point, please help : Q1 Output of the following code- C. [CODE] main() { float a=0.7; if(a<0.7) printf("C"); else printf("C++); } [/CODE] But if we change the if condition from a<0.7 to a<0.7f we get output- C++. Q2 The following code gives … | |
I am having a little trouble with my program assignment. I don't want the answer I just need pointed in the wrtie direction. I cannot get my program to loop. The program prompts user to enter hours worked and calculates and displays. The it asks the user to enter y … | |
I have a form from where user want to connect to a DB and fill a spread sheet (excel). This is supported in vb.net. Below syntax gives me error in asp. Below is my code. Thanks. Dim xlApp As Excel.Application = New Excel.ApplicationClass Dim xlBook As Excel.Workbook Dim xlSheet1 As … | |
![]() | Hi All, First post here so be gentle! I'm working through Sams Teach Yourself ASP.Net book and have come across an error with one of the basic examples. The example is to do with .vb and .aspx files and compiling them. I have succesfully compiled the database.vb file. The contents … |
I am trying to databind one entry retrieved from a SQL statement. All I want to do is databind in the code behind page. For some reason I have lost my brain and cannot figure out how to do it.... | |
hi!!! actually i'm doing a project for e-survey. the problem is that when i create different types of control, an error message is displayed. but if i create only radio buttons, everything fine. can u plz see my problem. thanks ant ---------------------------------------- Imports System Imports System.Configuration Imports System.Data Imports System.Data.SqlClient … | |
Hi guys Lemme explain the situation in 2 lines: DB Structure: [url]http://img133.echo.cx/img133/6610/dbstructure6hs.jpg[/url] Client goes to computer shop. Shop has 1 or more NORMAL promotions (of the kind: for each u$sXX ammount you buy, you get X qtty of points to exchange them later by gifts). EACH NORMAL PROMOTION can have … | |
Hello ladies and gents, Ive been reading about when you have a very large program, that it is advisable to divide this into several modules. Ive tried this out with an example of two separate modules that where given as examples and managed to get two .cpp modules into the … | |
Hello, I've been working on a security based software from which I got the idea from another program. Here are the details: Upon load of the software a 4 digit string is given (I.E: 1kfh). Then you're prompt for a password. To find your password you would use a Memory … | |
I need to figure out a way to check for conflicts in a Number Puzzle. This is how the number puzzle works.... It has a [U]1D array of size 81[/U]. It is filled with integers from 1-9. When the user enters a number i need to make sure it's valid … | |
I have inherited an application that requires access to a network share, which mean the PC has to have a mapped drive before access can be gained (user and password required). Is it possible to gain access programmatically? What I need to be able to do is check for existance … | |
HI i m Bhautik Desai doing Master In Computer Application... from india, gujarat.. i need help in VB or Vb.net to use winsock... thanx | |
I'm working on a project that requires users logging on using windows authentication. How do I go about this. This application is JSP-Struts.i can able to get the user name by System.getProperty("user.name"); But i can i get the password.PLz help.Thanks in advance. with luv Rajesh G | |
hey i would like to know if there is anyway i can send an object or a structure directly using any winsock2 function.. its mighty difficult to convert to a string and send as required by WSASend and send functions.. | |
:cry: I'm new to this MS SQL and I've been trying to understand this Primary key and Foreign key. I know that I use the foreign key to reference a table but for some reason I'm not getting this down right can someone point me to the right direction. Also … | |
Hello ladies and gents, I'm trying to output a 2D array, but can't seem to find the solution, can anyone help me out here. [code] #include <stdafx.h> #include <iostream> using namespace std; int main() { int **pp; int i, j, n, ni; cout<<"Geef het aantal regels als volgt: "; cin>> … | |
Hi all.. wonder if anyone can guide me. I am writing a program which reads values from a text file, the text file includes both characters and float values, below is a sample of the data.. [QUOTE]London 7.24 8.15 6.45 3.24 3.66 2.45 4.71 6.78 6.45 8.61 7.45 6.55[/QUOTE] The … | |
I have a program that I know I need a string to use. Problem is in class we did a program with strings in which we input one name like "Dan" and another name like "dave" and it would say which is bigger, how many characters are in each ect. … | |
I created a database in Sql Server 2000, unless I made atleast one field in the table as "Unique", I could not insert data into table. But no-where in the documentation , books or Sql server online I could get a text saying we need atleast one Unique Key per … | |
Hi! i have a table with 3 fields: ParentFolder,DocumentNo and VersionNo the DocumentNo give each document a unique number. ParentFolder is a number specifying which folder a document is in. and each document(with same name) can have many VersionNo(1,2,3 etc). i am creating a house keeping function for user. this … | |
i have two tables table1 has the folowing fields lastprice symbol time table2 has the same fields now table1 stores only the last data of the corrosponding symbol but table2 goeson adding the data as it comes in now i want to write a query get the difference of the … | |
I've gotten feedback from my instructor to modify my code because it contains poor design techniques. I need to add a " return " after each function without it going back to " main " and also to avoid the use of global headers. I've tried to modify it several … | |
Which method below requires less processor time? [CODE]class obj{ public: void DoSomeThing(){}; }; int main() { obj *p = new obj; p->DoSomeThing(); // OR obj theObj; theObj.DoSomeThing(); return 0; } [/CODE] Thanks for your help. W.Johnson | |
I write a C++ program, which stores the information about of the company’s employees. First I create a class named as Employee having following attributes. 1: id 2:name 3: sal 4: address Take input of all the four attributes from the user using four different setter functions. Class has following … | |
i have an html form with a drop-down list that lists a bunch of images. how can i get my cgi script to load the image ? i have imported cgi and os text entered from a form and read from a file do ok, but i cant seem to … | |
I am looking for an experienced PHP Programmer to help me with a website I am building. This will be strictly volunteer but that programmer will earn a spot as a staff member on my new site. I do not want to give out any details right now but if … | |
hey there, i have written a script that gets my email messages, but i need to be able to strip off all of the stuff except the body of the message so i can write that to a text file. is there an easy way to do this ? Edit/Delete … | |
I am using borland C++ compiler ver-3.0 for running C & in that range of char type is -127 to 127. Q1 In C, characters have ASCII codes in range 0-255. How can we print characters having ASCII code from 128-255. printf("%c",(unsigned)129); //it will still print the char having ASCII … | |
Hello All, :rolleyes: I found this code from and artical posted back in may and i had a newbie question that i would like to add to it. 1. Is this the proper all around method to pass values? 2. How would i capture these values? Could i do it … | |
[I]Private Sub File1_Click() [/I] [B](<.....It usally highlights that)[/B] File1.Pattern = ("*.wmv;*.mp3;*.wma;*") Else: without File1.Pattern = ("*.*") End If If Right(File1.Path, 1) <> "\" Then FileName = File1.Path + "\" + File1.FileName Else FileName = File1.Path + File1.FileName End If End Sub The Error is Runtime 424 Object Required and i … | |
I'm trying to add copyright information to the top of XML files. However, it needs to go after the prologue: <?xml version="1.0"?> <!DOCTYPE ...> My problem is that some XML Documents have the <!DOCTYPE...> tag spread out over many lines and I need to add the copyright information after the … | |
hi i am trying to turn this code: strOutput += "<input type=hidden name=\"amount\" value=\""+ moneyFormat((fTotal + fShipping + fTax)) + "\">"; into a html form line: <input type=hidden name="amount" value="??????????"> im not sure what i shud be putting in the value bit. can anybody help thanks simon | |
Hi, I'm fairly new to C++. I've taken a class on it at a university but it really only went through the basic I/O, data structures, classes, and pointers. It wasn't very algorithm oriented. It was all very basic. Here's the problem a friend of mine needed help with his … | |
[font=Arial][b]Creating Executables[/b] Of course, the software on your computer isn't all a bunch of code in a high level language, at least not in the form you receive it in. Before you can run any programs which are written in C++ or Java, they must be compiled. Compiling is the … | |
I have a web page that will display an image (ie a logo). I am using the following code but the image is not being displayed in the image control. Image1.ImageUrl = "C:\logo.jpg". Thanks. | |
I have two dropdownlists. I can choose say USA and then it goes into the DATA base but does not save it in the dropdownlist itself. I can not figure out why this is happening. > <code> > Edit mode the index of a dropdownlist does not start at the … | |
I intend to use session variable to capture searching keywords and catagory input by user. I created datatable dTable to store "catagory", "keyword" and "ID" and save it into session variable session("MyCat") when page is firstly loaded. If it is still within same session time frame, any new input will … | |
Hi There, I am very new to ASP.Net, just started to migrate this week. I am also sorry if this question has been asked in the Forum already, i have searched but not found anything. I am looking to pull some data from a database using the following code: [COLOR=Red]dim … | |
I need help organizing my program. In other words it need to be in a list. Example: [code]Degree Sin cos tan[/code] when it compiles the output is together: [code]DegreeSincostan0.000.3045[/code]...you get the idea. I need it to be organized. Where would i need to but a character for it to list … | |
Hi everyone, I am currently trying to print a multipage JTable but the the thing is on the left hand side of the JTable does not have any grid lines and i have tried to draw a rectangle around the jTable before printing it but nothing is happening. Another thing … | |
hi all.. could u pls help me in sorting out this......... i want to get Ldap connection using VB...... and also want to check whether the connection is established. how can i do this........ thanks in advance for ur help | |
guyz.......total newbie to servlets stuff......... have got few java files and their corresponding class files.....don't know where to put those files in the tomcat directory structure............ i have put the html files in the root directory....... the html file is working but the file can't retrieve the servlet............guyz plz help … | |
Am writing a program to find the binary directory of any executable, so I use FindExecutable() but sometimes it does not find the executable and i want the program to know that the Executable has not been found but i don't know how, please help. [code]#include <windows.h> #include <iostream.h> #include … | |
Hi, I've a windows application with VB.Net. I made a little application that connect on a ms access database and do some stuff. The application works well in my PC and in other remote PC, but If I made a concurrent open to the database, I got an error. I … | |
Hi! I hope someone can help me out on this one. I have been trying to get it work since last night. I am making an application where I can add a quiz. The quiz has questions. Each question has a certain number of choices and out of those choices … |
The End.