132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TheGhost

i want to make an Object Test to control many threads. Test.cpp [code] class Test{ public: Test(); void exampleThread(void*); }; Test::Test(){ _beginthread(exampleThread, 0, 0); } void Test::exampleThread(void* ptr){ ... } [/code] i get the error [quote] argument of type `void (Test:: )(void*)' does not match `void (*) (void*)' [/quote] what …

Software Development c++
Member Avatar for nezachem
0
74
Member Avatar for onaclov2000

I've been given an assignment in class to take some code and work on improving the optimization, we can either write new code or use old code. For some reason I can't think of anything that would be a good example of code that can use multiple optimization techniques, I.E. …

Software Development algorithm c
Member Avatar for onaclov2000
0
92
Member Avatar for carylle

can i use ismdicontainer and .showdialog for my form at the same time? i have a main menu that when i open a new form it pops inside of it. but i want to use .showdialog so that only the form open are the ones being used and the forms …

Software Development
Member Avatar for jamesonh20
0
139
Member Avatar for jaxy

Hi, I was wondering how do i go about generating unique random numbers? ie i want to generate numbers between 0-9 randomly. I dont want to repeat the numbers.Then that no: should display on the buttons.ie there are 9 buttons. first randomly generated number should display on the first button …

Software Development display java
Member Avatar for neelkris
0
2K
Member Avatar for tjsail

Is it possible to read a file as lines are written to it but not lose your location in the file? As in there is a program that will write lines of text to a file until it reaches 2.4MB. I want to read this file as these lines of …

Software Development file-system java
Member Avatar for tjsail
0
136
Member Avatar for adhi

[COLOR=#000000]hi[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]i am a student. i am using vb6 to get an agv running. using mscomm to speak to a main micro which then addresses motor boards. at present i am just testing 2 motors to see if the program will work. in my foward command button the …

Software Development email visual-basic
Member Avatar for MikeStump
0
159
Member Avatar for sfreema4

I am having issues with outputting a string correctly that is coming from a 4K read buffer. Here is the code I have currently: read_4K.c (cannot be modified) [code=c] int read_4K(char *b) { return read(0, b, 4096); } [/code] reader.c [code=c] static char Buffer[4096]; static int Bend = 0; static …

Software Development c
Member Avatar for tmoorez06
0
209
Member Avatar for houlahan

when i run the server and the client i get the following errors: Client: [CODE]Exception in thread "main" java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at Client.main(Client.java:29) Java Result: 1[/CODE] not really a error but it should receive the patients name?: [CODE]waiting for connection... Message Recieved:null waiting for connection...[/CODE] so …

Software Development client-server java
Member Avatar for houlahan
0
130
Member Avatar for ballistic

hi all this is my first post here. i have a small question and though i believe its a very simple one, however i cudnt figure it out until now. i have written a vb 6 code to get data from rs232 port using mscomm control. i am getting the …

Software Development first-post visual-basic
Member Avatar for MikeStump
0
192
Member Avatar for SCBWV

A friend asked me to write a program that dials a telephone number and checks for the presence of a 1000 Hz tone. Any suggestions?

Software Development visual-basic
Member Avatar for MikeStump
0
104
Member Avatar for scratchwiz

Hey all..am quite new to Java and I have encountered a problem with my program. I am getting the error message "cannot find symbol constructor". I have tried to figure it out but I have failed. I have read around that adding an empty constructor would help but this is …

Software Development java
Member Avatar for verruckt24
0
732
Member Avatar for timbomo

ok how will i keep track of the items i bought? i have not the slightest clue on that. i dont even know where to start. can someone point me in the right direction? [CODE]#include<iostream> using namespace std; int main() { char symb; int item_purch, numb_item_purch, quit,; double mug = …

Software Development c++ ios
Member Avatar for Lerner
0
169
Member Avatar for salamjamal10

Okay this is my assignment question: Write a program that accept the format [I][B]last name, first name [/B][/I]and print out [I][B]first name, last name[/B][/I] Thats what I did: [code] import java.util.Scanner; public class Name { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter your name"); String …

Software Development java
Member Avatar for salamjamal10
0
117
Member Avatar for abhay1234

hello again i wrote a class but not able to see the output in visual studio [code] Public Class Class1 Public Shared Sub Main() Console.WriteLine(Min(10.1, 10)) Console.WriteLine(Min("last", "first")) Console.WriteLine(Min(#1/1/2000#, #3/4/2000#)) Console.ReadLine() End Sub Overloads Shared Function Min(ByVal dblA As Double, ByVal dblB As Double) As Double Min = IIf(dblA < …

Software Development vb.net visual-studio
Member Avatar for abhay1234
0
88
Member Avatar for glenc70

how do i create a new instance of a class at runtime? ok say i have a window open and every time i click inside the windows it puts a small image ( which is defined in the class ) at the location of the mouse pointer. But how can …

Software Development c++
Member Avatar for Narue
0
98
Member Avatar for walter clark

Is there anyone out there that finds Visual C++ (ver8) Debugger broken? Specifically with regard to variables out of scope. I have asked here about specific problems and none of the proposed solutions work. The debugger works on the easiest of things, but half the time, things that are obviously …

Software Development c++
Member Avatar for walter clark
0
102
Member Avatar for yin1031

Hi there I want to use c++ to draw a path The path is based on two variables, x and y and x and y will change automatically every second So I think the flow should be like this: t=0, (x,y)=(0,0) ->draw a point on the graph t=1, (x,y)=(2,2)->draw another …

Software Development c++
Member Avatar for yin1031
0
104
Member Avatar for tibebu.s

hi, how can i change single cell text color in my datagridview by using button i try datagridculomnselectionmode and other options for the now i can only change the all cell. pls tell me what i can do guys.

Software Development
Member Avatar for tibebu.s
0
97
Member Avatar for nimmyliji

Hi, How can i pass an xml file from python to flex 3..? Any one can help me...... with example code

Software Development python xml
Member Avatar for JasonHippy
0
485
Member Avatar for jimFan

Dear all, Forgive me for posting two threads for the same problem. I was not showing my problem clearly enough in the previous one. Thank Narue for answering that anyway. Now I do it again here: [CODE] #include <iostream> #include <string> using namespace std; int main(void) { string inputStr; while …

Software Development c++ file-stream
Member Avatar for Fbody
0
1K
Member Avatar for deetlej1

Hi There, I need assistance with the assert function. The question is convert a date to Julian date and then check which one is the smallest and subtract to show the different days. That is all done. The part I have no idea is how to use the assert function …

Software Development c++
Member Avatar for deetlej1
0
161
Member Avatar for arsenal_fan

Hi, I got this code for computing permutations of a string from the programming interviews exposed book. I am unable to think as to how recursion works in this case. Now, if the input string is "hat", then I have understood the sequence of recursive calls that lead to the …

Software Development c
Member Avatar for Ancient Dragon
0
136
Member Avatar for jayaj

i m using netbeans for java program for jdbc connection. i m getting classnotfound exception , i have also downloaded jdbc driver for ms sql server 2005 but driver doesnot contians msbase.jar mssqlserver.jar and msutil.jar files Plz reply asap.

Software Development java java-netbeans
Member Avatar for peter_budo
0
135
Member Avatar for stano007

I'm in my 1st year of college, doing some Java programming...and really struggling. We have some project to do, to test a date...there will be 5dates and the output should be next day of the date. If anybody can help... thanks Stan

Software Development java
Member Avatar for musthafa.aj
0
151
Member Avatar for subcom

[B]Introduction[/B] In this sample,It shows how to move files to another folder. [B]Background[/B] It can be used in winForm applications.

Software Development c#
Member Avatar for logiccool
0
3K
Member Avatar for educated_fool

Hello dear All, Now I'm writing an app that have to react on some user's actions in real time and redraw a big form according to this activity and a timer's firing. Also, when redrawing the form, the app must emit some short sounds. For the last purpose I used …

Software Development image user-interface
Member Avatar for educated_fool
0
194
Member Avatar for eablair

[b]Split from - [url]http://www.daniweb.com/forums/thread47395.html[/url] [/b] [QUOTE=rhp405;226272]Ok, here's the solution. When you have a pipe open in parent process, you have to close the pipe before waiting. It has to do with the file descriptor counters of the pipe ends, they have to be zeroes to not cause a child to …

Software Development c
Member Avatar for eablair
0
172
Member Avatar for older3

[CODE] var t:array[1..3,1..3] of integer; i,j:byte; v:text; begin for i:=1 to 3 do for j:=1 to 3 do begin write('Enter elements [',i,',',j,'] '); readln(t[i,j]); end; assign(v,'output.txt'); rewrite(v); for i:= 3 downto 1 do begin for j:= 1 to 3 do write(v, t[i,j], ' ' ); writeln(v); end; close(v); end. [/CODE] …

Software Development file-system pascal
Member Avatar for FlamingClaw
0
168
Member Avatar for sfp

hi, I'm fairly experienced with delphi however have come across a tiny problem, i have a create box known as Edit1 for my web browser, but the label on this is always edit1, before you type the text into it, how can i make this blank or at least edit …

Software Development delphi pascal web-browser
Member Avatar for FlamingClaw
0
90
Member Avatar for wongcc13

I'm working on a porgram for the school works. I wrote the procedure below to save the array of records(directory) into the file. But the procedure won't work when there is a record in the file.It's urgent. Thanks for your help. [CODE]procedure saving(input : array of directory); var i : …

Software Development pascal
Member Avatar for FlamingClaw
0
100
Member Avatar for IDSTECH

I am very new to C++ and would like to know how to handle the following: Let's say I have a button on a form. When the user clicks the button, a new textbox is created on the form. How can I add event handling for this new text box? …

Software Development c++
Member Avatar for IDSTECH
0
88
Member Avatar for cwarn23

Hi and I have a hex to int function but it isn't converting the hex to integers properly. Below is the code an example is the hex bb76e739 which should = 3145131833 but with the function it equals 2147483647. I heard sprintf or something like that can convert the hex …

Software Development c++
Member Avatar for mrnutty
0
185
Member Avatar for johndoe444

hi, how can i measure the accurate run time of a program by writing a shell script? Like I want to use some for loop and run some samples and then i want to subtract the end_time-start_time to get the duration and thereby average.

Software Development shell-scripting
Member Avatar for thekashyap
0
312
Member Avatar for endsamsara

hi forum. I have a code to return an arrayList with the duplicates of an ArrayList that has the methods get1(), get2(), get3(), get4(), which are the criteria to see if the object is duplicated, but seems it´s not working, I am comparing all items in the array... I have: …

Software Development java
Member Avatar for thekashyap
0
133
Member Avatar for Clawsy

Hello, I build an applet that plays midi files from a server. The problem is when I start playing the file (MidiSystem.getSequencer()).. it gives me this error in the java console and nothing plays: [CODE]SEVERE: null javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not available at com.sun.media.sound.AbstractMidiDevice.createTransmitter(Unknown Source) at com.sun.media.sound.AbstractMidiDevice.getTransmitter(Unknown Source) at javax.sound.midi.MidiSystem.getSequencer(Unknown …

Software Development java java-swing open-source
Member Avatar for Clawsy
0
375
Member Avatar for scott6480

In my assignment I am supposed to use a pointer to create a 2-D array dynamically. Initialize each element in the array to the sum of its row and column. Then display each element of the array on the console. I have the program written and it works except for …

Software Development c++
Member Avatar for vmanes
0
148
Member Avatar for halluc1nati0n

Tried this on my UNIX box.. Why aren't the array contents being stored/displayed ?? [CODE]#include <iostream> #include <fstream> #include <unistd.h> #include <sys/signal.h> using namespace std; int main(int argc, char *argv[]) { int pid; pid_t pid_chk; int pid_array[2]; int count[25], length, i, j; for (i=0; i<3; i++) { pid_array[i] = 0; …

Software Development c++ unix
Member Avatar for vmanes
0
151
Member Avatar for KeenLearner2010

Hi , My program at the moment has 3 textboxes , 1 button and 1 listview. I've added 3 columns named "Name" "Address" and "Number" to the Listview. What I have done so far is I can enter text into the 3 textboxes , I click the button and the …

Software Development listview
Member Avatar for Diamonddrake
0
1K
Member Avatar for abhimanipal

Hello People, Does any one have any practice problem sets for C. I am interviewing for a company tomorrow and they ask lots of "Whats the output ?" kind of questions.. Any help would be appreciated

Software Development c
Member Avatar for Salem
0
100
Member Avatar for skg123

Hi all . I m trying to read contents of a file using streamreader classs of c#.net which is a result of data transferred over the network. it contains some transmission syymbol eg. eot,can,soh etc. Beacuse of that it is showing square symbols. Kindly arrangea code to read the file …

Software Development
Member Avatar for skg123
0
112
Member Avatar for heredia21

int main() { recurse(5,3); return 0; } // end main void recurse(int x, int y) { if (y > 0) { ++x; --y; cout << x << " " << y << endl; recurse(x, y); cout << x << " " << y << endl; } // end if } …

Software Development c++
Member Avatar for Salem
0
108
Member Avatar for nola_Coder

I am making a pong-like game for a class. I am having trouble with the ball's collision detection. The game is a 1 player version, where the ball and paddle are both contained in a box. The player uses a gun which is built into the paddle, in order to …

Software Development c++
Member Avatar for nola_Coder
0
94
Member Avatar for Lukezzz

I use a panel and if the user Leftclicks an area with the mouse, I am trying to set the variable LeftRightClick to "Left" and the same for rightclick, "Right". Then I call the button43_MouseDown event to show the correct MessageBox, depending on if it was a leftClick or RightClick. …

Software Development c++
Member Avatar for jonsca
0
175
Member Avatar for gangsta1903

[code=c] #include <stdio.h> int main() { char name[50]; printf("enter your name:"); gets(name); puts(name); return 0; } [/code] hello, the above program should first print out "enter your name:", but it does not. it occurs in this way on the console: --------------------------- abc enter your name:abc --------------------------- it prints "enter your …

Software Development c
Member Avatar for gerard4143
0
71
Member Avatar for jesoj

Hi All, Can anybody help me to assign a base class function pointer in derived class constructor? I have got a compilation error while doing so. Please see the code below: [CODE]class Base { public: void (* fnptr) (void) ; void myvurtualfn() { } }; class Derived:public Base { public: …

Software Development c++
Member Avatar for jesoj
0
1K
Member Avatar for heredia21

#include <iostream> using namespace std; int num, factorial; num = 6; factorial = Fact(num); cout << num << "! = " << factorial; return 0; } // end main int Fact (int num) { if (num == 0) return 1; else return num*Fact(num-1); } //end Fact int main() What is …

Software Development c c# c++
Member Avatar for heredia21
0
70
Member Avatar for iamsmooth

So let's say I have an interface called ExitInterface.java. Inside there is only one method declaration, exit(). I have two classes that implement this: 1) first one is named Exit.java which does System.exit(exitCode) in the exit method. 2) second one named ExitMock.java which doesn't exit, and instead keeps track of …

Software Development java
Member Avatar for iamsmooth
0
100
Member Avatar for Masterace
Member Avatar for abu taher
0
74
Member Avatar for Kombat

I am trying to be able to read in 1 000 1 1 1 as like 100011. Also when I do printf of the string program crashes. Here is my code [CODE]#include <stdio.h> #include <string.h> #include <ctype.h> #define MAX 32 int main(void){ int i; int c; char a[MAX]; char b[MAX]; …

Software Development c
Member Avatar for Kombat
0
152
Member Avatar for corby

i need help creating a rectangle where the user creates the border and fills in the empty space with any symbol they want. it should look like this ####### #@@@@# #@@@@# #@@@@# ####### mine only looks like this # @@@@@ # @@@@@ # @@@@@ any help??? heres my code: char …

Software Development c++
Member Avatar for corby
0
181

The End.