199,114 Archived Topics
Remove Filter ![]() | |
Hi, [LIST=1] [*]Question Why does valgrind complain? [CODE] Conditional jump or move depends on uninitialised value(s) ==25636== at 0x4C26D29: strlen (mc_replace_strmem.c:242) ==25636== by 0x40060A: main (test.c:7) [/CODE] [*]Question Strlen doesnt apparantly tell you how much space you have in your array, but the number of chars til '\0'. I my … | |
I am trying to create a FileOpen Dialog for my website in C#, whereby i want the starting directory to be my images folder and only want to select .jpg, .png & .gif files. I also want the dialog box to return the address as though the root was my … | |
Hi all, Im new to c#, please any one tell me how to get the column names of a table of ms access(.mdb). Here i used odbc connectivity to access the database, i got the list of tables in the database, but i dont know how to get the column … | |
So, I've been cruising these and many other forums and have found many who need help concerning this issue, but usually it's resolved using the New statement. What I'm doing here is I first add a 2D array of PictureBoxes during runtime with the following code [CODE]For i = 0 … | |
Got this project write a C# windows app program that computes employee wages. Input the employee's payroll number and number of hours worked. The employee receives 7.45 per hour as hourly rate and is taxed 20% from gross pay and 7% also national insurance. and to display this information in … | |
Hi Im devloping a form and i have used two combo boxes in it.. basically these combo boxes store numric code for them in databses[MS. ACCESS]... but i want to display relative string representation to user....i have populate items manually using collections in the propert window. but when i want … | |
i have written a program to transfer character from one comp to another using serial port .in order to test the program i want to use loopback control as i have only one computer. i have read how to connect rs232 in loopback mode but my problem is that if … | |
hey all, im trying to compare two strings 8 characters long, the first was predefined and the second was entered by the user. i tried used (cmpsb) instruction and byte by byte comparison, but both failed its for a project that requires a student to enter their number and password, … | |
Hi All, I need to draw image having text using gd library on basis of font selection. User has an option to make text bold/italic. I am using imagettftext to write text on the image. how can we draw having bold/italic text or is there a way to detect whether … | |
Hi all, I asked about this question few days ago, and I have tried few things other experts told me I think i got overcame problem where i can read the tab spaced file but now the output is the problem..... When i run my program it outputs: Enter filename: … | |
could anyone tell me if the last lines of the following are true or false? 1) int arrA[3] = {1,2,3}; int *ptrToarrA = arrA; int *anotherptrToarrA = arrA[0]; 2) int arrB[2] = {1,2}; int *ptrToarrB = arrB; int *anotherptrToarrB = *ptrToarrB; | |
Hi, I am trying to add onClick events to the different menu items in the menu strip... However, I am not sure how I should do about this... Let say if I have two top menu option: "Option1" and "Option2", each of them has a sub menu item called "Item1"... … | |
Need you help. I want to use [COLOR="Red"]List [/COLOR] and I don"t know how I make definition and fill it Thanks Sergey | |
I am begininner in DLL. I looked at following site to create dll in C. [url]http://msdn.microsoft.com/en-us/library/ms235636(VS.80).aspx[/url] Can anyone explain how to use the Mathfuncdll.dll in VB.net. Here is my VB code Public Class Form1 Public Declare Function MathFuncs Lib "MathFuncsDll.dll" () Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As … | |
Hi! This is my first time on Daniweb, and my first time coding a server, too. So I've tried many ways, and finally found a working one - or one that [I]was[/I] working, until recently. For an unknown reason, my receival of data doesn't work: The data is received, it … | |
Hi, I need to know how to continue execution of code after throwing an exception. Has it got to do with where I place the throw statement? Thanks in advance. | |
Hi I have a bool function that should find whether a year was a leap year or not. But the function is not returning the correct years as a leap year. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; bool is_leapyear(int year); int main () { int a = … | |
I am trying to communicate with my phone over a serial port by sending AT commands to it. While I'm able to write the command to it, I'm unable to read the reply. I am using overlapped I/O & using the WaitCommEvent to retrieve the result of the write command, … | |
Hi, I am new to python. I am working on parsing text from a smi file . I want to extract only dialogues and want to ignore the timestamps (lines starting with <SYNC) for one case, e.g. Below is part of smi file <SAMI> <HEAD> <Title>ÁŠžñÀ» ÀûŸî ÁÖŒŒ¿ä.</Title> <Style TYPE="text/css"> … | |
Hi I stumpled upon some c-code, which syntactically is different from what I've seen before. [LIST=1] [*]first [CODE=c] void strreverse(char* begin, char* end) { char aux; while(end>begin) aux=*end, *end--=*begin, *begin++=aux; } [/CODE] Would this be the same as [CODE=c] void strreverse(char* begin, char* end) { char aux; while(end>begin){ aux=*end; *end--=*begin; … | |
Hi all, I added phatfusion image menu to my oscommerce site but don't working. say why? I dont know. I did everything right, but not. I transfered imageMenu.js and imageMenu.css to public_html, I transfered mootols.js to /_common/js/ Then, I added those to index.php; [CODE]<link href="imageMenu.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" … | |
Hi I'm very new to C# and I'm working on a project in the office where I can practice. At the office I can open the project ok. But if I tried it at home in my own laptop, I'm getting an error. Yesterday I tried to add the reference … | |
So, I had a quick question about having multiple arguments being read into a bash script. In the following script, if I type "./myscript -h", it returns "Hippo.". However, if I type "./myscript -h -k", the script returns only "Hippo." I would like to know how to have the script … | |
Hi I faced a very serios problem when I connect c++ with orcale. This is our project. I use c++ at front end and orcale at the backend. If someone know how to create a connection between them Please tell me. Advance Thanks. | |
I have an assignment like that and I dont know how to begin... Could you pls help me. [url]http://www.cse.ohio-state.edu/sce/now/221/labs/writeups/lab07.html[/url] | |
Hi frnds.. i want to split a string into two parts.. example: $string="hyderabad,india"; i want to divide this based on , ... $string1= "hyderabad"; $string2="india"; plz help me asap...how can i get the output above... | |
I Am Using VB.NET 2008 Express Edition, and am trying to make a program that controls the mouse position with a joystick on the a nintendo classic controller, which returns a value between [ -.54 ] and [ +.54 ]. I wanted so that the position vertically of the mouse … | |
Hi all, I want to run .ppsm file in slideshow window using c# in web based application without opening presentaion in powerpoint. I was given anchor link like following - <a href="CD-12 Open Value Module EMEA and Latam BlackWhite.ppsm"> Open/Save </a> When I open html page in IE8 and click … | |
[CODE]#include<iostream.h> #include<string.h> #include<conio.h> const int len=30; enum contract{permanent,temporary}; class Employee{ protected: char name[len]; long int ID; double salary; public: Employee() **} Employee(char n[len],long int id, double s)** strcpy(name,n); ID=id; salary=s;} void setEmp(char [len],long int id,double s) ** cout<<"\nName of Employee: "<<name; cout<<"\nID of Employee: "<<ID; cout<<"\nSalary of Employee: "<<salary; } … | |
Do I have a way (when I get the “unload”) to distinguish between “X” button and another cases(for example when moving writing another URL address)? I want to decide what message to display to the user when I get to the unload event, if this possible to do? | |
im a first time programmer learning python from books and so far ive learnt how to create and define functions but once ive saved them, im not sure how to call them so that i can use them. it works fine when i type in the function name but only … | |
I have that funtion for generate sequence to the style 'hqhzaw', 'ebcpm', 'qtch', etc. (only letters) and according to 'lenght' [code=cplusplus] string random_letter(int length) { string s; for (int i = 0; i < length; i++) { s += char(rand() % 26 + 97); } return s; } [/code] I … | |
I m trying to find the biggest number in the array but problem is that it keeps returning one [code] #include <stdio.h> int FindBiggest(int *arr,int choice) { int i; int num=0; for(i=0;arr[i]<=sizeof arr;i++) { if(num<arr[i]) num=arr[i]; } return num; } int main(void) { int arr[]={0,5,3}; int result; result=FIND_NUM(arr,BIGGEST); printf("%d\n",result); getchar(); … | |
[B]If you have seen igoogle,[/B] you will know what i am doing! The idea is that it [B]saves the co-ordinates of the box [/B]that you can move [B]into two text files :[/B] usercoord.txt-x axis & usercoord2.txt-y axis! can anyone tell me [B]how i can load the coordinates back, from the … ![]() | |
I am coding a web spider for research purposes and have run into an error I am uncertain about. I am fairly new to web programming and need a bit of guidance. I use http.client to get a connection, request a site, get the response, and read the resonse into … | |
I have written a program that is supposed to take a string via a socket connection and echo it back. This program is also run as a service. I can get a client program to connect to the service if the client program is on the same machine as the … | |
Good Day, I have an Abstract Class, Student, which has two child classes, FulltimeStudent and PartTimeStudent. I use the class, Test, to test how many credithours each student has and how much financial aid each student is getting. My output requests that firstly, i enter wheter a student is Full-time, … | |
do you know any win32 smart device project tutorial? | |
Hello once again, I've continued my engine somewhat and the rendering functions are now working fine thanks to Stinomus (feel free to applaud). However to enable it to load data I must use files containing strings describing objects in the game world. That in turn works perfectly and passes the … | |
Hi, I'm kind of new to the world of streams in Java, and I was wondering - I have this Server/Client program, and I need to read Objects and Text streams. I tried making an ObjectInputStream, and a PrintWriter out of the Socket's InputStream, but when I tried to read … | |
Hey guys, Have been working on this tiny simple code for an hour and can't figure out how to fix it. The code does this: Reads in 3-column, tab-delimited data file Adds "1000" in the fourth column to every line Writes out the 4-column file [ICODE]def columns(infile, outfile): f = … | |
the exact diff between c++ and java technically........need to submit a assignment | |
Greetings, I'm new here and new to php. I've always just written in basic html but now want to utilize global header, footer, and left nav bar. From what I've seen I should be able to accomplish that with php. (My contact with siteaction suggested that I use Frames, but … | |
Ok, after much searching i finally decided to ask. (Newbie to this forum so I apologise if I don't use correct format) I have built an assessment that pulls through X number of questions from a questionbank. The questionbank sits in a single js file whilst the code controlling everything … | |
Hello, I require a help on a basic issue. I have 2 classes and I want to have an interaction among the classes. Suppose my 2 classes are testA and testB. Now I want a handle of object pointer in each class to the other class. Like I want a … | |
|
The End.