199,113 Archived Topics
Remove Filter ![]() | |
Hi, I am writing a file by using fopen("xxxx.csv","a"). However, at a point when i open the same file it gives debug assertion error. The code is the following; I checked if anything, like "helloworld",can be written, but no. The "ENTER??" part is written in the file correctly for 5 … | |
i have a following paragraph. [CODE] ++ a xxx xxxx ++ b yyy yyyy yyyyy ++ c zz zzz [/CODE] i need to delete this line. ++ b yyy yyyy yyyyy What is the regular expression i want to use? | |
Hello, I am having trouble implementing the load function below. It compiles, but I get garbage in the array and 0's in the vector. The reason I created load() was to clean up main(). Do I need to open data.txt in main and then call a function to load the … | |
Hello, I am trying to implement a linked list with an h file that was provided to me, which I cannot change. I have created a simple main() to begin, but I am getting an error on line 40 of the h file that says... "template-id 'operator<< <int>' for 'std::ostream& … | |
I'm trying to code a traversal function for a huffman tree that will generate the code dictionary containing the binary codes for each letter in the tree. Once it hits a leaf node I want to insert the character and a QBitArray into the QMap that I pass in. The … | |
How do you pass an array of integers as an argument to a method in C#? | |
Hello all... again, I'm trying to write a function that will "simulate" the stack. Here's what I have so far... [code=C++] int i = 0; int arraySize; char * stack[100]; void stackPush(char * pushed) { if(i == 100) { cout << "ERROR: Stack overflow!"; } else { stack[i] = pushed; … | |
hii all! When i tried to access a value from the configuration file ([COLOR=#000080]ConfigurationManager.AppSettings("ADMIN"))[/COLOR] i am getting an error: [COLOR=#000080]'ConfigurationManager.AppSettings' is not declared or the module containing it is not loaded in the debugging session. [/COLOR] [COLOR=#000080][COLOR=#000000][/COLOR][/COLOR] [COLOR=#000080][COLOR=#000000]can you please anyone help me who have experienced the [/COLOR][/COLOR] [COLOR=#000080][COLOR=#000000]above said … | |
i want to create a code using array in which i can store the month name by a button named ADD and use other to view month name . my code was following but the problem is it is holding last value only not all values [code] using System; using … | |
I tried to change the text of a textbox from another form and was unsuccessful. I have zip the complete program. please help | |
Hi all I try to copy paste from a site java example ,there are 3 files,Main.java,Login.java,and LoginDialog.java. I can compile Login.java ,but when I compile LoginDialog.java,it said that it cannot find symbol Login.authenticate (a method in Login.java) I have check that there is this Login.authenticate method to make clearer I … | |
Hello everyone, I'm just having a problem that is stopping me from doiing my work and I've tried fixing it. I don't know what's really wrong with what I've got typed in visual studio. [code] string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename='C:\..................\Database1.mdf'; Integrated Security=True; User Instance=True"; SqlConnection conn = new SqlConnection(); conn.ConnectionString … | |
I had no knowledge about asp.net. I want to start knowing and studying about asp.net can u tell me the best book that i have to read | |
I am trying to save a Collection of form controls (Labels and TextBoxes) in my project's settings (My.Settings). During runtime everything appears to be working as expected. I can save and retrieve the Collection of controls, but when I close and restart the application, the settings are gone. I am … | |
Hi I am trying to set a larger calendar font (Calendarfont) for a Datetimepicker control, but vb.net (2010) doesn't seem to use/honor it. It remains the same (very small) regardless of the font/size I choose. Have also tried changing it in program on the onload of my form but that … | |
What I want to do is have a predefined battle function, I can code the function, all I need to know how to do is have the function sitting there, so when I call it, all it takes is one or two variables to set up and go. So every … | |
Hi guys, this is my first week in C++ and was doing some exercises to practice and made a function to calculate primary factors (Still not sure if it works;) Anyway, here is my code : [CODE]#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<unsigned long … | |
When making overloaded template function is there a difference between template<> or template<type>. For example is there a difference between [CODE] template <class T> void dispm(T array) { cout << "called template<class T> void dispm(string array)"; } template<class T> void dispm(string array) { cout << "called template<class T> void dispm(string … | |
Hi as u all probably notice Im a noob with Delphi Is it possible to code a case like I did below If it is please correct my faults I made so that it would run redSpan is a rich edit edt1s is a edit chelsea and arsenal are textfiles … | |
Hello to all java programmers I have a java database problem specifically the auto increment. In my MSAccess I have a table named "[B][COLOR="Red"]Confirm[/COLOR][/B]" and in that table I got two fields, the "[B][COLOR="Red"]confirm[/COLOR][/B]" which is set to text and the "[B][COLOR="Red"]id[/COLOR][/B]" which is set to auto number or auto … | |
hi there ...a pleasant day/evening...i am wrking for a code...wat i wnt to happen s dat in the combobox category when i click all, all d items dsplay but wen i click specific category somethng went wrong with my code..i cannot view all d items under with the choosen category...pls … | |
Hi, I am looking for instruction cost list, in clock cycles, for ia-32 intel architecture, something like this: movdqa <-- 3 clock cycles mov <-- 1 clock cycle jmp <-- 1 clock cycle Is this info available somewhere? I checked the manuals, didn't find it. Will appreciate any help Thanks! | |
Hi, so the exercise I am supposed to do is : "If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 … | |
This simple static class contains a static method called sOnline that accepts a username as a string param. it make a call to an old yahoo api that will determine if a Y! user is online. This only returns true if the user is not using stealth, this will return … | |
Hello there, I'm not too entirely familiar with the operation of scheduled tasks within Windows XP and I'm tasked with finding an operable solution. Firstly, a couple things come to mind: 1. Start the process with windows using a low priority and sleep until it is time to function. This … | |
Ok so i just started taking AP Computer Science at my high school and I really have no experience with java (just a little bit with python). So for our fist homework we had to try out a few codes and make some programs. I'm getting a " <identifier> expected … | |
Hi! I believe you can help me... I need a code that can check user information. e.g. user fillout the input field with his idnum. Once the user goes to the next field, information from mysql db will appear showing the name of the person. In that way, the idnum … | |
Question for anyone using KDevelop: Is it possible to have a "workspace" containing multiple projects, like in a MS Visual Studio "solution" (or Code::Blocks or Codelite etc)? | |
Hi All I would be greatfull if somebody could help me out with this one. ive been scratching my head all day in trying to find a solution. I have a order confirmation page which displays the entire order on a shopping cart. this page inserts a row into table … | |
Hello, I'm new to C++ with a fair experience in java. I would like to know the difference between [CODE]Ob o* = new Ob();[/CODE] and [CODE]Ob o = new Ob();[/CODE] I know the first allocates a block of memory and creates a pointer which keeps the address of this block. … | |
i am trying to submit a form in jquery without refreshing it. for my jquery code i have this: [CODE] $(function() { $(".submitbuttonsend").click(function() { var dataString = 'reqtoid=<?php echo $uid; ?>&reqfromid=<?php echo $id; ?>'; $.ajax({ type: "POST", url: "proccess.php", data: dataString, success: function() { $('#freekk').html("<div id='message' style='color: #4f4f4f; font-size: 12px; … | |
![]() | |
![]() | Hello, I am trying to use an OCX control in a console application and I have been doing some reading from the following post [URL="http://www.daniweb.com/software-development/cpp/threads/98162/page1"]http://www.daniweb.com/software-development/cpp/threads/98162/page1[/URL] In the following statement [CODE]HRESULT hr = CoCreateInstance(CLSID_Registration, 0, CLSCTX_ALL, IID__Registration, reinterpret_cast<void**>(&preg));[/CODE] hr has the value Class is not licensed for use. I tried registering … ![]() |
Hello, I am having the same problem. getting the message: Parse error: syntax error, unexpected $end in C:\wamp\www\World_Database.php on line 79 I am an absolute beginner. Could someone please help me sort this? thanks a ton in advance. Here is my code. [CODE]<html><head><title>World Database</title></head> <body> <?php include"file:///D|/PHPMySQL/connect_info.php"; $linkID1 = mysql_connect($dbhost, … ![]() | |
Here is a part of code I am writing.I am getting a segfault in the CmpFunc function. The segfault occurs when I compare *a and *b i.e in the "if(*a>*b)" line. I am new to function pointers. So, I might be making a mistake somewhere which I don't realize.I would … | |
I need help in deciding a good path in learning Java. I have recently passed my Data Structures course and although I still have issues and sometimes need to look thinks up, I feel I have a strong enough grasp to move on with my becoming proficient in Java. I … | |
Hi I have implemented an iframe that contains several links to other pages. I can't change the content of the iframe because it's on another server. Here you can see an example of the code for one link in the iframe: [CODE] <a href="javascript: void(0);" onclick="openUrl('http://www.streambeam.org');" title="">Link 1</a> [/CODE] Now … | |
[CODE]use strict; use warnings; use IO::Socket; my $sock = new IO::Socket::INET( PeerAddr=> 'localhost', PeerPort=> '7070', Proto => 'tcp'); die "Could not create socket: $!\n" unless $sock; my $run = "yes"; while($run eq "yes") { my $text = <STDIN>; print $sock "$text"; print "Send more strings? yes/no"; $run = <STDIN>; } … | |
Ok, I want to read integers from a text file...a large sum of integers. The input is a regular text file, where each line is terminated with an end-of-line character. The file is gonna contain any valid ASCII symbol between 32 and 127. A number of strings ( no negative … | |
[CODE]#include<stdio.h> int main() { int i=2,j=3; j= - - i--; printf("%d%d",i,j); return 0; }[/CODE] [B]Somebody please explain the working of this program[/B] | |
Whats wrong here ? Why the code output prints some extra lines? Input:line number=n. Enter number=num.If line=4 and num=2 , the output will be.... 2 4 8 16 My code is.... [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { int n,num,i,j,s=1,m; cin>>n>>num; for(i=1;i<=n;i++) { m=1; while(s<=j){ m=num*m; s++; } cout<<m; … | |
After query, there are 100 results . I want to just show 20 results in page 1, other 20 results in page 2 .... I want to show the results just like the forum. What is the code? ![]() | |
hi i want to validate my id field that if someone enter data other than id in the id field it show message that its not id.i have little bit of logic to validate but i am not getting the point that how to validate that it only accept numeric … | |
So I need emergency help in writing a program that does a few simple things. I have a file that is composed of positive, negative and zero integers. Each integer has its own line and I'd say there's about 100 lines. I need help writing a program that will 1. … | |
Hi, I want to capture snapshot of a URL. User enters URL, hits Capture button and sees the captured image of that website. I have done some google-ing but not real solution it. Does anyone know any example in PHP and only on Linux? Not interested 3rd party websites though. … ![]() | |
Greetings all, I have a great website up and running that lets people take a quiz. Everything is working perfectly, this is more of a aesthetics issue, and its very simple but I can't find the answer. When they leave a field blank, I have a die command that stops … | |
Hello My problem is I am calling a method in my main but this method doesn't have any code written in it, and yet I am getting an output of numbers approximately 10 digits long, and a negative value. For example, in my main I have: [CODE]Date d1(9,20,2011); // Date … | |
HI, In my crystal report i want to use the SQL expression field to calculate the opening balance of the account based on the date passed to crystal report using parameter field.. How can i do it?? Thanks & Regards, Victoryy | |
I'll get straight to the point, here's how I've coded my mailform: [CODE] <html> <body> <?php $email = $_REQUEST['email']; $subject = "Contact Us Query"; $message = $_REQUEST['message']; $message = stripslashes($message); mail("myemail@msn.com", "$subject", $message, "From:" . $email); header("Location:success.php"); ?> </body> </html> [/CODE] My problem is that although the emails get sent, … | |
Greetings all. Trying to use PEAR mail to mail some results of a quiz I have designed for students, when I get the following message: "Warning:require_once(Mail.php)[function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\results.php on line 81" followed by "Fatal error:require_once(function.require]: Failed opening required 'Mail.php'(include_path='.;C:\xampp\php\PEAR')in C:\xampp\htdocs\results.php on … |
The End.