132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nizbit

I am writing a program to handle a DVD collection. There are 2 classes. The first class is a string class that has member functions that handle strings(length, compare, etc.) and store strings(dynamic array). The second class handles the actual DVD's-title, year, actors, and brief description. I'm confused on working …

Software Development c++
Member Avatar for Ancient Dragon
0
95
Member Avatar for goodmuyis

hello dear guider i design a simple application in C++ 6 using mfc. but when i try to test it on other pc it doesn't run i dont know why because am a dummy. an sorry i might have flame dont blame me am just beginner.

Software Development c++
Member Avatar for Duoas
0
90
Member Avatar for blackdove

could someone atleast point me in the right direction? i'm new at this and i've been working on this program and I just hit a brick wall. Its like my brain stopped working or something... :confused: I have to make a "stop watch" program...have a class defined for stop_watch that …

Software Development c++ display
Member Avatar for hjjayakrishnan
0
397
Member Avatar for Sci@phy

Hello. Any way of preventing multiple instances of executables? I'm writing a program that uses a file, it would be quite messy if someone would start another instance of same program. If it depends on OS, I would like to see solutions for windows and unix-type (linux) systems. Thanx

Software Development c++ unix
Member Avatar for Duoas
0
411
Member Avatar for Anticipation

I'm using the code [code=VB.NET] Sub PicCanvasMouseDown(sender As Object, e As MouseEventArgs) XPrev = e.X YPrev = e.Y End Sub Sub PicCanvasMouseUp(sender As Object, e As MouseEventArgs) XCur = e.X YCur = e.Y End Sub Sub PicCanvasPaint(sender As Object, e As PaintEventArgs) Dim p As New Pen(Color.Black, 10) Dim g …

Software Development vb.net
Member Avatar for selvaganapathy
0
237
Member Avatar for AutoC

Hi, My doubt is that..lets say we have an usigned int.If I do a left shift by 32 bits...I'm getting back the original one..shouldnt it be all zeros??

Software Development c++
Member Avatar for Duoas
0
114
Member Avatar for AutoC

Hi, I'm trying to code Huffman coding.I've formed my huffman tree but dont understand how I'm gonna assign bits to it.How do I do bit operations and how do i maintain bits of length 3,5 etc? Any help appreciated

Software Development c++
Member Avatar for Duoas
0
553
Member Avatar for califguy

[code=c] #include<stdio.h> #include<stdlib.h> main() { char a[32],*a1,b[64],*b1; a1=&a[0]; b1=&b[0]; a1="hellohellohellohellohellohello" ; printf("\n contents of a1: %s\n",a1); int i =0; for(i=0;i<=31;i++) { printf("%c",a[i]); } } [/code] So why does printf ("%s",a1) work correctly while printf("%c",a[i]) display junk ? Since a1 points to a[0], shouldn'it it display the same values ?

Software Development c
Member Avatar for califguy
0
117
Member Avatar for alberttruism

I wrote this little guy a while ago. I'm brand new to DaniWeb, and happy to be here. This was one of the earlier things I wrote in Python, and therefore one of the earlier things I wrote period. I've since done some much more complicated nonsense, but this one …

Software Development python
Member Avatar for sneekula
0
325
Member Avatar for Bhatti302

[code]Hello to all Masters, I have a problime in the database programming. i am using a Access DATABASE file in the VB6.0 Project. in this project i am creating a veriable such as " Dim s as new ABODB.Connection. but when i run the project it create an ERROR at …

Software Development visual-basic
Member Avatar for hakimkal
0
264
Member Avatar for shalin

Hi All, I want to enable/disable users who logged in Domain Name Server (DNS). Through VC++ code. If anyone has idea regarding this please reply me asap. Thanks in advance for u r reply. Regards, Shalin.

Software Development c++ dns
Member Avatar for William Hemsworth
0
999
Member Avatar for jem00

[CODE]Call CheckLetter(char, letter)[/CODE] What I am trying to do above is send the string char to the procedure CheckLetter, and from CheckLetter I am trying to retrieve letter. How do I do this? All the code from my project. [CODE]Dim Alphabet(0 To 25) As String Dim codeword, wordtoencrypt As String …

Software Development visual-basic
Member Avatar for Teme64
0
116
Member Avatar for jacobdet

so I'm writing a program that takes the input from the file, an ISBN number, removes the "-" from it, puts it through a formula (1*first number 2*second number ... 8*eight number) /11 and what ever that equals should be the same as the last number in the ISBN if …

Software Development c++
Member Avatar for mitrmkar
0
303
Member Avatar for hawisme000

hi im new to VB.net can you guys teach me about VB.net? what i need to learn first ? i have knowledge of VB6 , is the code vb.net same as vb6? thx in advance

Software Development vb.net
Member Avatar for Jx_Man
0
78
Member Avatar for naf87

please I want to recover the windows's process with java how can I do thank

Software Development java
Member Avatar for Easter Bunny
0
90
Member Avatar for vuyiswamb

Good Afternoon All i think its Firday fever, am tired. I think this Happens sometimes. let me get to the Problem. Am doing an OleDb Project I have an Access DB and the table is Users , here are the Field and dataType ID = Autonumber(int) Firstname = TEXT LastName …

Software Development
Member Avatar for vuyiswamb
0
309
Member Avatar for ron_jay

I have a serious problem which i am not being able to figure. This program finds all the permutations of a given string using recursion. The diagnostic outputs show that the values of the 'choice' and 'final' character arrays is not maintained at a position (I don't know why). Please …

Software Development c++
Member Avatar for Sky Diploma
0
339
Member Avatar for guerilladong

hello,any greate man can tell me the difference between cxx and cpp,h and hxx? waiting the answer,thanks

Software Development c++
Member Avatar for Ancient Dragon
0
61
Member Avatar for pardeep3dec

Hi friends, my query not worked. rc.open"select * from travel doj between #"& doj.text &"# AND #"& doj1.text &"#; suppose doj.text=01/09/2008 doj1.text=22/09/2008 but it shows july records also.

Software Development visual-basic
Member Avatar for venkatramasamy
0
71
Member Avatar for JimBeam

Couldn't find a search button so I'll ask: I'm running Freebsd v7.0 with the ratpoison window manager, and have installed free pascal from ports. I've been trying for hours to get either Lazarus or fpc-ide installed with no luck. Lazarus - gives message like menubar>>environment.>environment options>> etc etc etc. If …

Software Development ide pascal window-manager
Member Avatar for JimBeam
0
177
Member Avatar for vckicks

I've been going crazy with a problem lately and I was hoping someone could give me a little insight. Basically I have a database project in C# that I work on with two computers. One uses Vista and the other XP. So far I have transfered the project files between …

Software Development
Member Avatar for vckicks
0
115
Member Avatar for R3B3L

Does anyone know what's C++'s SETW() Equivalent in Visual Basic .NET ? SETW: Sets the number of characters to be used as the field width for the next insertion operation. Is there anythign similar in VB.NET. Note: I want to use in a ListBox. I've tried using: [CODE] Dim fmtStr …

Software Development c c# c++ vb.net visual-basic
Member Avatar for selvaganapathy
0
262
Member Avatar for Clockowl

Is it possible to put compile-time conditional code in template functions? Kinda like, [code=cpp] template <class T> void print(T &foo){ cout << foo; #if T == float cout << " is a float." << endl; #endif }[/code] Something like that, I hope I made myself clear. Thanks in Advance,

Software Development c++
Member Avatar for Clockowl
0
95
Member Avatar for showstopper2007

this is my first project n i need help in displaying images in imagebox this is the code to display the code which i am using to display images in imagebox Image1.Picture = LoadPicture("C:\images\" & Text3.Text & ".jpg") '<<this works fine>> in the above code the location is C:\images\ , …

Software Development image visual-basic
Member Avatar for dickersonka
0
110
Member Avatar for Congartis

Greetings! My task is to impement [url=http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm]Bresenham's line algorithm[/url] by mapping floats to integers, but be able to draw lines of any slope, including horizontal (zero slope) and vertical (infinite slope) lines. (The near-bottom of the page has an integer-only version of this.) My implementation of the linked pseudocode works …

Software Development algorithm c++
Member Avatar for Congartis
0
651
Member Avatar for asdengler

I'm working with Visual Studio.net and Access 2002 to build an interface to add, edit and delete records in the database. Eventually, I'd like to build a web page to be able to view the data. Currently, I'm trying to search for a particular record in the database using a …

Member Avatar for asdengler
0
296
Member Avatar for califguy

hi guys, I have a simple question and I am new to c, Would appreciate any advise I could get. Here's the doubt. [code=c] main() { char a[10],*a1,b[10],*b1; a1=&a[0]; b1=&b[0]; int x=0; for (x=0;x<=1-;x++0) { *a1++=*b1++; } } [/code] Basically if I had a string in b[10] it would get …

Software Development c data-structure
Member Avatar for califguy
0
87
Member Avatar for inim38

Hi, Can you plz help me in creating a file in C having columns rec_id (int), score (float), hour (int), no_clicks (int) with rec_id values ranging from 1 to 100, score values initialized to 0.11, hour values initialized to 0 and no_clicks values also initialized to 0. And then generating …

Software Development c
Member Avatar for inim38
0
120
Member Avatar for princess_19

I really need some help!! I do not understand anything! I do not even know how to start!!! Can any1 help plz!!! “Moore’s law describes a trend in the history of computer hardware. The number of transistors that can be inexpensively placed on an integrated circuit is increasing exponentially, doubling …

Software Development c++
Member Avatar for Narue
0
146
Member Avatar for owobass

Please I'm trying to create a sales management software and am experiencing problems trying to create a table like we have on spreadsheets for enterring sales data.I'm using the Win32 API.Could any one give me an idea on how to implement this ? owobass

Software Development api c++
Member Avatar for marco93
0
738
Member Avatar for vocalstud69

I was wondering how Python would work with this program I wanted to make. I have very little experience with Python, so bare with me. What I wanted was to make a program that brought up quotes randomly from a .txt file and put them in a XP/Vista message bubble …

Member Avatar for zachabesh
0
3K
Member Avatar for jancho1911

Hi ! I am new to DaniWeb. I searched everything to find an answer but i can't. This is for my final project and i need it to get my bachelor degree. I have a text file that has this type of files: 2001.7.1.407 изутрината во тетовски 2003.5.3.20083 кзк ја …

Software Development python
Member Avatar for zachabesh
0
145
Member Avatar for TheNational22

I have a problem. I have a csv that stores data about checks in a private restaurant . Not CC's or anything, just table number, items, server number, blah. It repeats for every check a four lines that start with 1,4,5,6,7. I have a interface that picks up this csv …

Software Development python
Member Avatar for zachabesh
0
92
Member Avatar for Lordstr

I am using Eclipse to right there It is coming up with an error within the switch statement saying that the Clock.* has not been initialized. it says Description "The local variable Clock may not have been initialized" but doesn't that happen when i do "Stopwatch Clock;" I am still …

Software Development java
Member Avatar for Ezzaral
0
240
Member Avatar for makubexiii

how can you make program using a linked list that displays your outputs in ascending alphabetical order? we are only allowed to use: #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> TIA

Software Development c display linked-list
Member Avatar for makubexiii
0
1K
Member Avatar for technicalganesh

I am having two servers viz., Windows and Linux. A service is running in Linux to produce a text file of around 8 MB per minute. If I would like to replicate (or copy) this text file to windows server which supports .Net as soon as the file is produced. …

Member Avatar for jwenting
0
119
Member Avatar for nizbit

I was wondering if this code is correct syntax for function parameters in a class? [CODE] class myclass { private: char mystring[50]; int length(char string[]); public: int yourlen(){ return length(_string, _string); [/CODE] I know later in my code, I would have something like this: [CODE] mystring A; char string[50], string2[50]; …

Software Development c++
Member Avatar for Sky Diploma
0
124
Member Avatar for 3Dees

Hey, i am trying to display weight base on a age input without using a table vb.net. Say a age can be anyware from 1 to 18 yrs and weight at 1 = 11kg with a avg increase of 3kg per year. I thought of using a for loop but …

Software Development display vb.net
Member Avatar for samir_ibrahim
0
159
Member Avatar for kylcrow

Hi everyone. I wrote a Rock Paper Scissors program my first quarter of C++ two years ago, and now I have a job at a programming job. I showed someone my little easy program and they challenged me to make a verson 2.0 with AI and a gui. The Gui …

Software Development c++ gui
Member Avatar for kylcrow
0
322
Member Avatar for samir_ibrahim

Hi all, I new to vb.net, and I have alot of questions. so Get Ready :) I had added a forum and set the IsMdiContainer to True and I noticed that the backcolor has changed to darkgrey Is there a way to change back the backcolor to normal? TIA Samir …

Software Development vb.net
Member Avatar for Dnx
0
158
Member Avatar for guitarcrazy44

I have signed up for high school online c++ courses, which has proven to be a mistake, due to my inability to grasp the content. I would like to keep learning, but as the semester draws to an end, I must catch up on my work. This is a project …

Software Development apple c c# c++
Member Avatar for Sky Diploma
0
149
Member Avatar for Umair.P

Hi there, I am developing a desktop application that has a form that shows Domain on a System/ Network.The System.Environment.UserDomainName only tells the current user's domain. I want to see all the available domains and all the users under those doamain. I want to know how can I read Domains …

Software Development c#
Member Avatar for LizR
0
114
Member Avatar for TooMpa

Hi have a problem, this code should read a file and then save it in a linked list, just the <uid><name> from a lie looking like: <username>:<password>:<uid>:<gid>:<fullname>:<home dir>:<shell> I can't find the segmentation fault error atm, but hints on the code would be helpfull. Atfer the insert in user list …

Software Development c linked-list
Member Avatar for ArkM
0
204
Member Avatar for clutchkiller

[url]http://www.mixsoftware.com/product/cpvideo.htm[/url] Can anyone tell me if this video and course work is helpful at all? Have any of you guys personally purchased this, or do you believe it to be a waste of time? Keep in mind im fairy new to programming. Thanks

Software Development c++ video
Member Avatar for Ancient Dragon
0
155
Member Avatar for DeboJackson

Hello everyone. I know this is a C++ forum not MySQL forum but I need help with the C++ library for MySQL I am hoping that there will be people here who are knowledgeable about MySQL++. My problem is that I can't get the g++ compile to link to the …

Software Development api c++ mysql
Member Avatar for Normand Bedard
0
220
Member Avatar for skabaw

How to get the invoked command and parameters as one string instead of a list of argv-s (especially gcc under Linux)?

Software Development c++
Member Avatar for Narue
0
72
Member Avatar for MAD_DOG

How long did it take you to learn C++ or C or VB. I learning some what C for my Linux class.

Software Development c c# c++
Member Avatar for Nick Evan
0
2K
Member Avatar for TofiLuk

the frame is okay but the text2, textfield has occupy the whole frame. what's wrong with my code? image: [URL="http://img68.imageshack.us/my.php?image=73815503ku1.png"]http://img68.imageshack.us/my.php?image=73815503ku1.png[/URL] here's the code: [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTest extends JFrame implements ActionListener { JButton button; JLabel label1, label2, label3; JTextField text1, text2; Container con = …

Software Development java java-swing
Member Avatar for masijade
0
119
Member Avatar for man4ish

#include <iostream> #include<string> using namespace std; class substr { public: void getsubstr(char* b, char* db) { char* stpos = strstr(db,"gi|"); int pos = db-stpos; char* end = strstr(db,"|ref"); int endpos = abs(db-end); b= new char[endpos-pos+2]; int i=pos+3; for(;i<endpos;i++) { *b++=*(db+i); } *(b+i)='\0'; } }; int main() { substr* s; char* …

Software Development c++
Member Avatar for iamthwee
0
82
Member Avatar for PrAsTiWaRi

Hello All, I am trying to compile the C++ program. But I am getting weired compilation error. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1>------ Build started: Project: HelloPras, Configuration: Debug Win32 ------ 1>Compiling... 1>HelloPras.cpp 1>c:\documents and settings\prash\my documents\visual studio 2008\projects\hellopras\hellopras\hellopras.cpp(15) : error C2819: type 'JavaVM_' does not have an overloaded member 'operator ->' 1> c:\program …

Software Development c++ java visual-studio
Member Avatar for jencas
0
498

The End.