132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HROFE

hi, i need to create function that mesaure time in micro second . how can i do it??? hezi

Software Development c++
Member Avatar for HROFE
0
41
Member Avatar for jacline

Hi everyone, I write a project about a banking system . In homework professor told us that "Your code must not have any memory leaks. You will lose points if you have memory leaks in your program even though the outputs of the operations are correct." How can I check …

Software Development c++
Member Avatar for jacline
0
106
Member Avatar for Calaesto

Hi, No excuses: my problem is that I can't get my code to check if a certain record exists in a MSA database. My code needs to check if the database contains a row where 2, 3 or 4 specified fields exist. But, as mentioned, at the moment it only …

Software Development c#
Member Avatar for Calaesto
0
1K
Member Avatar for plastic

hi i have function in mdiparent form and i want to use it in child form. i created an object reference of parent form in child form and tried to call the function but this didnt worked. wat should i do??

Software Development
Member Avatar for DdoubleD
0
525
Member Avatar for Jamesinuk

Hello, i really need help on this. I fully cannot understand what i am doing wrong here. This is a segment of my project that uses dynamic arrays but i seem to be getting random memory related crashes that i cannot seem to fix. These are my encode/decode classes. They …

Software Development c++
Member Avatar for Jamesinuk
0
94
Member Avatar for Alba Ra

I wonder (as I couldn't find [I]anything[/I] either on DaniWeb or anywhere else) why should one use XML and XSLT rather than plain XHTML? I couldn't find a rationale arguing for the use of XML and XSLT in connection with dynamic web content stored in a database. Zend does provide …

Software Development xml
Member Avatar for Alba Ra
0
279
Member Avatar for misvampire

i need to add virtual function to my coding. somebody please help. whre should i put it heres the code. [U]figure.h[/U][CODE] //This is the header file figure.h. using std::cout; class figure { public: virtual void center(); void draw(); void erase(); }; void figure::center() { cout << "Centering the Figure"; cout …

Software Development c++
Member Avatar for mrnutty
0
121
Member Avatar for EcklerPa2

Hi there, I have a WinForm application written in C#. I have added a WPF usercontrol added to the Winform and I want to get the mouse Events passed back to the WinForm. [B]So you can see in line 6, my XAML I have a MouseUp event:[/B] [code=xml] UserControl x:Class="CustomRssFeed.MainWin" …

Software Development xml
Member Avatar for DdoubleD
0
328
Member Avatar for DavidBrown1

I need help in Graphic programming in C. I donno how to start. I use Visual C++ compiler which doesn't support <graphics.h> Please somebody help. I can't find anything!:sad:

Software Development c
Member Avatar for William Hemsworth
0
89
Member Avatar for cousinoer5

This program has been bugging me a lot to get working, so far I've had to fight through tons of errors Hydra style (every one I got rid of, 2 took its place). Then I finally got an error free compile, but the txt file where the answers should be …

Software Development c++ file-system
Member Avatar for cousinoer5
0
178
Member Avatar for fjrivash

Hi *, I have a file like this : [CODE]Example : 10 2 0 1 234.5677 0 2 345.6786 0 3 678.6764 .... [/CODE] From the first line the first number is number of lines and the second one is the number of nodes, so the thing is I need …

Software Development c++ file-stream
Member Avatar for fjrivash
0
86
Member Avatar for kalodakilla

Hi, I'm just starting to learn how to create custom controls in C# but I'm having a problem with the toolbox here. After creating and compiling the custom control in the Library project, i add new project to the solution to test my new control, so i add reference like …

Software Development
Member Avatar for kalodakilla
0
181
Member Avatar for Silvershaft

I got a plenty of free time now and interested in GUI developement, I got expirience in C++, thats not the problem. I've done apps in wxWidgets before which I got bored to. Would it be learning to learn winApi or do you guys got better suggestions, as I said …

Software Development c++ gui
Member Avatar for William Hemsworth
0
159
Member Avatar for Carrots

Hi, I've been learning C++ these last few months, but never tried to make a GUI before. I've wrote a program in C++ which works via the command line, but now I'm trying to create a GUI for it (MFC using Visual Studio 2005, XP host). When I add an …

Software Development c++ gui visual-studio
Member Avatar for Carrots
0
140
Member Avatar for peepeep

Hi, I have a problem with my matrix program. i created and initialized my matrix now i have to file the matrix with values of corr. i want it to look like this [COLOR="Red"][1, 0.1, 0.2, 0.3] [0, 1, 0.4, 0.5] [0, 0, 1, 0.6] [0, 0, 0, 1][/COLOR] [CODE][/CODE]file …

Software Development python
Member Avatar for woooee
0
103
Member Avatar for XshulderX

Hey I need some help to get a asignment done for tomorrow! I need to create a hex to decimal converter. EASY right! Well here is the catch. I can't use visual studios libraries to create is so [ string sHex = S; int iNumber = int.Parse(sHex, System.Globalization.NumberStyles.HexNumber); string sInt …

Software Development
Member Avatar for ddanbe
0
98
Member Avatar for Jlutha1001

Hi, everyone i am so pressed with this task of developing a Piant Application using java or vb. i have run short of time, please someone save a me. I am Justine .O.

Software Development visual-basic
Member Avatar for debasisdas
0
58
Member Avatar for kapil.muni1020

[code] void main() { static int a[]={ 0,1,2,3,4}; // if here static removed that hence error why? int *p[]={ a,a+1,a+2,a+3,a+4}; int **ptr=p; clrscr(); printf(" base address is %u",a); ptr++; getch(); } [/code] in above code in "staic int a[] " line integer array define as static why it need?

Software Development c++
Member Avatar for Ancient Dragon
0
111
Member Avatar for HelloMe

Hello again :) I had this project (first block of codes below) and out of this program i have to do the same again but this time using functions. My problem now is, i made some functions ( i hope these are functions) but on the last part (the one …

Software Development c++
Member Avatar for HelloMe
0
79
Member Avatar for fjrivash

Dear all, is there is a way to go trough a matrix using just one "for" loop?, I mean I have this snippet: [CODE] #define WIDTH 5 #define HEIGHT 3 int mat [HEIGHT * WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { mat[n*WIDTH+m]=(n+1)*(m+1); } return 0; …

Software Development c++ matrix-multiplication
Member Avatar for fjrivash
0
88
Member Avatar for pardeep3dec

hi my problem is that there is no msgbox"Hi this is my first" coding but my programme showing above message box on form loading event. Please help

Software Development vb.net
Member Avatar for GeekByChoiCe
0
58
Member Avatar for reduxmachine

Hello I am quite stuck on a python exercise and not quite sure how to finish it. My task is to draw an eye using a graphics module, and when the user clicks the mouse on the eye, the program is to specify what part of the eye was clicked …

Software Development python
Member Avatar for woooee
0
115
Member Avatar for Nikhar

Hey guys...Can you please help me explain what does returning an istream object mean. I am currently studying Accelerated C++ and at many places a function returns istream object. What does it mean? For example:- [CODE]istream& read(istream& is, Student_info& s) { // read and store the student's name and midterm …

Software Development c++
Member Avatar for Nikhar
0
2K
Member Avatar for laccko

I need to use a semaphore simulator Sync.py that is written in Pythone and new program (also written in Pythone) is added as parameter. There is problem with classical syntax of If statement, I do not know how to write there else branch as well as more than one command …

Software Development python
Member Avatar for woooee
0
144
Member Avatar for Kruptein

How can I start a launcher from python? if I do: [icode]os.system("~/localhost")[/icode] it just returns a number (probably a process id or something) if this is not possible, how can I start from python a terminal window and execute a code in that terminal? (without closing the python script) Thanks …

Software Development python ubuntu
Member Avatar for Kruptein
0
203
Member Avatar for Afupi

My project requires I use the right-hand method of solving a maze. I have to use a stack to keep track of and eventually print out the path to the exit. I know the way I am trying to keep track of each point is wrong because using mazeArray[xCoord][yCoord] is …

Software Development c++ queue
Member Avatar for Afupi
0
227
Member Avatar for Mitja Bonca

I have done and published application and this is what I got just after the installation: What can be wrong? PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3603 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600) dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000) SOURCES Deployment …

Software Development microsoft-office
Member Avatar for DdoubleD
0
359
Member Avatar for edherbs135

Just wondering if there was any kinda way of doing this kind of filtering based on comparison other than having to go through each position in an array one by one comparing it to every position in the other array. If I'm to vague and you need more information let …

Software Development c++
Member Avatar for edherbs135
0
86
Member Avatar for imolorhe

Please, i want to know how to ntework in vb6. Also, capturing the system name and other things like that.

Software Development visual-basic
Member Avatar for cguan_77
0
87
Member Avatar for Lukezzz

If you would convert these 3 examples to a string you would get an errormessage as no of the numbers are valid numbers. How would it be possible to do a check programatically if the number is a valid number before a conversion ? [code] String^ GetValue = ""; GetValue …

Software Development c++
Member Avatar for fjrivash
0
140
Member Avatar for tincho87

Hi everyone, sorry about my english. Im having a problem and i don't know how to fix it. I have a plugin-based application that i'm developing. Every plugin has a reference to a dll that has different static classes with functions. When i run the application with all the dlls …

Software Development microsoft
Member Avatar for tincho87
0
154
Member Avatar for dumrat

I declared this inside one function: [CODE] void function() { .... static const int iLimit = GetLimit(); int iL = a_MyArray[iLimit]; .... } [/CODE] The code compiles ok in g++. What I want to know is whether the GetLimit function will be called only once (At the first call to …

Software Development c++
Member Avatar for dumrat
0
94
Member Avatar for lepass_7

Hi guys i am trying to catch the close event(press the X button) on a window form. I try this [code] private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { // Display a MsgBox asking the user to save changes or abort. if(MessageBox.Show("Do you want to save changes to your text?", "My …

Software Development
Member Avatar for Geekitygeek
0
141
Member Avatar for HelloMe

Hello everyone... I have a problem on the last part of my codes. This programm supposed to accept several kind of courses and its corresponding grades. So far so good... but when it comes to display the courses and the grades and its remarks of passed or failed, the programm …

Software Development c++
Member Avatar for Seten
0
125
Member Avatar for samsons17

Hi....I got a simple question here which i dont know how to solve... [B]Question[/B] Type casting is common in writing programs. It converts from one data type to another, for example from integer to double or float. Write a complete C++ program which uses casting, which will ask the quantity …

Software Development c++
Member Avatar for jonsca
0
152
Member Avatar for snakay

Hi, What is the best way of reading multiple aggregate data ? like so; [code] select id,sum(data1),sum(data2),sum(data3) from table1 group by id [/code] I know with ExecuteScalar you can get one aggregate data, but what about if you have more than one. I tried ExecuteReader and I'm getting exception [code] …

Software Development
Member Avatar for snakay
0
107
Member Avatar for mattdaddym

Hi, I have a program that will download files from a company website given a list of links. The site requires authentication, and I do have code that will set the authentication cookie in the request header. I get the authentication cookie from a Perl script we have. What I …

Software Development perl vb.net
Member Avatar for kvprajapati
0
115
Member Avatar for ujjval dave

I am new in vb.net so i don't know how to take a print from a vb form. thanks for this printing code.

Software Development vb.net
Member Avatar for kvprajapati
0
103
Member Avatar for ShadowScripter

Hey, throwing a quick question in here: Is there a way to get the value at a cursor's location? For instance, the cursor is at {0,20} and I decide to do cout<<"Foo" then I move my cursor to {0,10} do something else and then come back to {0,20}, and I …

Software Development c++
Member Avatar for technology
0
2K
Member Avatar for sahity1a@yahoo.

I need to make a sorting algorithm. The program takes an input file that stores the information into an array: the array has student's name and a personality type. The personality types are: enum values Realistic Artistic Social Conventional Then once it takes an array, it sould divide the main …

Software Development algorithm java
Member Avatar for javaAddict
0
101
Member Avatar for srujanasadula

A string variable taking any kind of string has a value "yjava_jboss.log4j_file_appender_pattern_layout='%d .//- %x %-5p [%c] %m%n' " at some point of time during execution. It is to greped on a file that contains with value. I used grep "$STR" <filename> ,where STR during execution takes value as shown above. …

Software Development shell-scripting
Member Avatar for srujanasadula
0
130
Member Avatar for devo_99

I have been working on this program to count the number of zero's odd, and even numbers that a user inputs. I have tried different variations and cannot get it to go, I keep getting linker errors and cannot see where the problem is. I am new to this and …

Software Development c++
Member Avatar for devo_99
0
211
Member Avatar for RoyMicro

I have a class which is used as a object for my reportviewer control in C#. The Datatable in that class is used by the control to show a table. I have two issues. 1 How to create a varibale in that class that can be accessed by the reportviewer? …

Software Development
Member Avatar for kvprajapati
0
113
Member Avatar for PDB1982

I'm working on a program where I need to input a file with 5 candidates names and votes, and output the name, votes, and the percentage of total votes that candidate received, as well as the overall winner. Right now I've been able to create some arrays and output the …

Software Development c++
Member Avatar for jonsca
0
136
Member Avatar for Frap

Hi while doing my homeworks, i stucked here .. Writting a program to calculate the factorial of positive integer . here is my code: [CODE] int main () { int x,factorial; cout<<"Enter an integer to calculate its factorial: "; cin>>x; if (x==1 && x==0) { cout<<"\nThe facotrial is: 1"; } …

Software Development c++
Member Avatar for donaldw
0
100
Member Avatar for itzaaron

why is only my first class working? when i run this it just asks about the viruses and not the cost of the OS. [CODE]#include <iostream> using namespace std; class OperatingSystem { private: float cost; public: OperatingSystem() : cost(0) {} float getCost() { return cost; } void setCost(float cost) { …

Software Development c++ operating-system
Member Avatar for GrubSchumi
0
87
Member Avatar for astroshark

Hi I manage to create some code to where it will read in a set of exam scores and display their category as well as if they enter an invalid number it repeats the code until the data is valid or until they enter the SENTINEL value but when I …

Software Development c++
Member Avatar for astroshark
0
96
Member Avatar for Clawsy

Hello, I'm trying to develop a chat application [I]over internet[/I]. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java desktop application. I waould like to send files later over applet and …

Software Development client-server java
Member Avatar for adams161
0
235
Member Avatar for NewbieProgram

I'm having problems generating CPU turn; preferably with AI, and also draw between player and CPU. [CODE] jButton1.setEnabled(false); boolean Userturn = true; JLabel[] label = new JLabel[9]; label [0] = jLabel1; label [1] = jLabel2; label [2] = jLabel3; label [3] = jLabel4; label [4] = jLabel5; label [5] = …

Software Development gui java java-netbeans
Member Avatar for adams161
0
760
Member Avatar for PDB1982

How do I make an array to find the largest portion of another array? I am trying to find the candidate that received the largest amount of votes from the following file: Johnson 5000 Miller 4000 Duffy 6000 Robinson 2500 Ashtony 1800 here is my code: [code] #include <iostream> #include …

Software Development c++
Member Avatar for Clinton Portis
0
134

The End.