199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for monkey_king

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 …

Member Avatar for fpmurphy
0
245
Member Avatar for Vandamn

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 …

Member Avatar for Vandamn
0
98
Member Avatar for ashokrajendran

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 …

Member Avatar for lonelyrider
0
2K
Member Avatar for Fire00f1y

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 …

Member Avatar for Vandamn
0
310
Member Avatar for taichi2910

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 …

Member Avatar for lonelyrider
0
374
Member Avatar for maheen123

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 …

Member Avatar for Vandamn
0
106
Member Avatar for alok1255

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 …

Member Avatar for Colin Mac
0
162
Member Avatar for ibzee33

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, …

Member Avatar for alireza_noshika
0
242
Member Avatar for sunilsinha

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 …

Member Avatar for sunilsinha
0
854
Member Avatar for wnrqkflwnrqkfl

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: …

Member Avatar for daviddoria
0
82
Member Avatar for thumizee

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;

Member Avatar for tux4life
0
87
Member Avatar for jch02140

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"... …

Member Avatar for jch02140
0
101
Member Avatar for polo_coins

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

Member Avatar for polo_coins
0
91
Member Avatar for aditya_amb

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 …

Member Avatar for Teme64
0
320
Member Avatar for LazloLB

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 …

Member Avatar for ddanbe
0
152
Member Avatar for b0ttz
Member Avatar for cathy dow
Member Avatar for JamesCherrill
0
83
Member Avatar for thornside

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.

Member Avatar for thornside
0
10K
Member Avatar for gretty

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 = …

Member Avatar for gretty
0
117
Member Avatar for champnim

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, …

Member Avatar for krishnampkkm
0
1K
Member Avatar for gujjar19

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"> …

Member Avatar for gujjar19
0
3K
Member Avatar for monkey_king

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; …

Member Avatar for monkey_king
0
217
Member Avatar for muhittin

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" …

Member Avatar for muhittin
0
122
Member Avatar for tintincute

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 …

Member Avatar for tintincute
0
96
Member Avatar for cathy dow
Member Avatar for stephen84s
0
79
Member Avatar for SoulMazer

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 …

Member Avatar for SoulMazer
0
110
Member Avatar for mirfan00

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.

Member Avatar for mirfan00
0
202
Member Avatar for ultrAslan

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]

Member Avatar for Ancient Dragon
0
72
Member Avatar for sarithak

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...

Member Avatar for Merlin33069
0
3K
Member Avatar for mrclark

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 …

Member Avatar for Teme64
0
141
Member Avatar for anil.dwivedi

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 …

Member Avatar for anil.dwivedi
0
356
Member Avatar for effective

[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; } …

Member Avatar for effective
0
69
Member Avatar for Potato.Head

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?

Member Avatar for JugglerDrummer
0
64
Member Avatar for pydude94

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 …

Member Avatar for pydude94
0
266
Member Avatar for rafaelbrizu

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 …

Member Avatar for rafaelbrizu
0
105
Member Avatar for MrNoob

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(); …

Member Avatar for jephthah
0
139
Member Avatar for thecodingbee

[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 …

Member Avatar for diafol
0
118
Member Avatar for poeticinsanity

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 …

Member Avatar for poeticinsanity
0
224
Member Avatar for Podge

Hello, I am writing an app to read in an old file structure. It C++ this is how the code looks. I am trying to rewrite it in C# and can’t find any that will do it the same way. Here is how it should work. [code] // This is …

Member Avatar for ddanbe
0
118
Member Avatar for mg0959

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 …

Member Avatar for mg0959
0
153
Member Avatar for suretd

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, …

Member Avatar for BestJewSinceJC
0
271
Member Avatar for serkan sendur
Member Avatar for DarthPJB

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 …

Member Avatar for DarthPJB
0
237
Member Avatar for llemes4011

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 …

Member Avatar for llemes4011
0
79
Member Avatar for hughesadam_87

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 = …

Member Avatar for woooee
0
131
Member Avatar for lyardson

the exact diff between c++ and java technically........need to submit a assignment

Member Avatar for mirfan00
0
284
Member Avatar for toddsmith

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 …

Member Avatar for plantf7**344
0
150
Member Avatar for bwbwings

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 …

Member Avatar for Airshow
0
110
Member Avatar for abhishek2301

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 …

Member Avatar for mirfan00
0
141
Member Avatar for seemant_sun
Member Avatar for jephthah
0
67

The End.