51,593 Topics

Member Avatar for
Member Avatar for jimmy_moh

Hi ALL am completely new to this enviorment , am not sure it is the right section to post my query.. 1 : i have one exe "sample.exe" in my PC 2: i signed this file using the tool "signcode.exe" 3: after that if we right click on "sample.exe" and …

0
44
Member Avatar for NinjaLink

Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - …

Member Avatar for NinjaLink
0
273
Member Avatar for Alexia Noir

hi there. say i have a text file. in this text file is all the information i need for my output. the problem is, probably because i'm still very new at this, i don't know how to read this particular text file and output it onto the screen. suppose i …

Member Avatar for Alexia Noir
0
146
Member Avatar for smco9

How do I sort an array of struct? For example: struct data { string city; string state; int zip; }; data listing[];

Member Avatar for VernonDozier
0
97
Member Avatar for robgeek

I am trying to write a program in which a big text file is read and then user searches for a word and replaces it with another word. To implement this I was thinking to store the file read into an array since that would the easiest way to implement …

Member Avatar for VernonDozier
0
168
Member Avatar for smco9

I'm getting conversion errors 2446 and 2040 on the red line. Can anyone help me figure out what i've done. I'm new to C++ but I'm expereinced in C# so I do have some foundation. Any help is greatly appreciated! [CODE] string GetString(ifstream & fn, string & s, int length) …

Member Avatar for Ancient Dragon
0
226
Member Avatar for atch

Looking through boost random library I've come across literal something like 331u. Does anyone can explain to me what this u is about? [code=c++] void seed(uint32_t value = 331u); [/code] Thank you

Member Avatar for Dave Sinkula
0
160
Member Avatar for diogoc.pinheiro

Hello guys, I need help here. I´m new to C# and asp.net, i'm doing a program that shows a list box with the users in the DB. A user has a group or a schedule. What i want to do is, when the user selects a user i want to …

Member Avatar for lenj
0
163
Member Avatar for Bladtman242

Hi, this code is merely for testing a coulpe of functions for use in a bigger program, therefore this code alone may seam silly, but there is a point to it:) When i run this and press "1" the program just terminates, pressing "2" or "whatever here" works fine however? …

Member Avatar for Bladtman242
0
534
Member Avatar for Covinus

whats the reason behind using int main over void main? in most books ive read they often discourage the use of void main. but offer little info about it

Member Avatar for Tom Gunn
1
1K
Member Avatar for low1988

I have little knowledge about this algorithm method .I try to coding the part of the InsertAfter() method to insert the data after a specific location.It seems not working . [CODE] #include <iostream> #include <string> #include <conio.h> using namespace std; class Node { public: double data; // data Node* next; …

Member Avatar for Tom Gunn
0
110
Member Avatar for saxasm

Is there any reasonably simple code that will do the same thing as the Beep function but for ubuntu? I'd very much like being able to save the music to disk too, but that's not necessary.

0
46
Member Avatar for GooeyG

The assignment is to design a program that determines the gross pay for each employee. Everything seems to work, but when you input more than 40 hours, it doesn't calculate overtime. Another thing is that, i can't get a message to pop up when someone input an invalid input. I …

Member Avatar for DdoubleD
0
168
Member Avatar for teofil20

Could someone please tell me a way of uplading and downloading text files without the use of the .net framework and is simple to use. Thanks

Member Avatar for William Hemsworth
0
107
Member Avatar for arbrophy

<< split from [url]http://www.daniweb.com/forums/post865360.html#post865360[/url] >> I'm using Visual Studio 2008 and I don't see the 'Advanced' option in the properties menu. Is it hidden somewhere else?

Member Avatar for arbrophy
0
124
Member Avatar for littlewonder
Member Avatar for jp071

Hello, I want to capture data from serial port. The COM1 port connected with a device and we have software for the device that is need for generating data. The software opens the port, then connects with the device and writes something for generating data. i just want to capture …

Member Avatar for kvprajapati
0
95
Member Avatar for W0T4N

Hi, I have problem with tray icon, when my processor is 100 % working, sys tray icon loading fails. I do not know how to fix this. I made easy testing program for that, i have thread with critical priority and it make processor 100 % working. During that sys …

Member Avatar for W0T4N
0
191
Member Avatar for atch

Hi, I tried to be clever and wrote template (body below), and something is not working as I would like it to. I have to explicitly cast template parameter on desired type instead of function recognize type (by id() method provided in class object); I don't understand why is it. …

0
44
Member Avatar for jim148

Hi you guys, just want how do you convert a number to word in c++ if it is in the thousands?:?:

Member Avatar for jim148
0
136
Member Avatar for BlackPhoenix

Hello everyone, I have been studying SDL for some time now, and would like to exercise my brain a bit. I think this particular challenge would be lots of fun, and I'd love to show off whatever I achieve when finished. [B]Basic 2D maps[/B] Creating a basic 2D map (for …

0
82
Member Avatar for lancevo3

I am writing a iterator class which I am having no problem with yet my problem I am having now is I need to declare some methods as Iterator in my List class and I am getting errors from that. [code=cplusplus] template <class T> class List { friend std::ostream& operator<< …

Member Avatar for mrnutty
0
105
Member Avatar for Edward_Nelson

I am trying to self learn C++, and I bought a tutorial book. Right now, I am on a section about recursives. I got the first example, one to output the Fibonacci sequence, but I am stumped on the second one. The exercises do not come with answers, and that …

Member Avatar for VernonDozier
0
106
Member Avatar for yonghc

The program was successfully compiled using Borland 5.02. The program controls the input type by user using ASCII codes. The input mode is similar to QuickBasic's INKEY. The program is working and tested okay. Much effort had been put in, but the problem is that the subroutines for handling string …

Member Avatar for Frederick2
0
606
Member Avatar for sardonic

I am using Microsoft visual c# express 2008 ide. I want to cycle thru my open files - I know there are a couple ways to do this but I want to be able to click on the name of the open file on the tab that is above the …

Member Avatar for sardonic
0
100
Member Avatar for AssaultM16

Hi!. I am having some problems with functions scopes again. I need to use one array initialized in one function, in a different function. I have searched on how to pass the array by reference or value ( and I truly don't know if that's what I need) but I …

Member Avatar for AssaultM16
0
106
Member Avatar for NirmalPatel

cAN ANYONE PLEASE TELL ME HOW TO GET TEXTBOX VALUE OF EXTERNAL APP WITH VISUAL C++ E.G. HOW TO GET EDIT2 CONTROL VALUE OF PEID LIKE UNIEXTRACT AND USSF DOES? I COULDN'T FIND ANYONE ASKING THIS QUESTION IN THIS FORUM. THANX FOR EVERY HELP!

Member Avatar for NirmalPatel
0
70
Member Avatar for lotrsimp12345

show_int_vector method RETURNS MEMORY LOCATION FOR EVERTHING EXCEPT FOR LAST VALUE. main [code] #include "my_int_vector.h" #include <iostream> using namespace std; int main() { my_int_vector b(0); b.push_back(10); //b.show_int_vector(b); b.push_back(122); b.show_int_vector(b); //b.push_back(20000); return 0; } [/code] Interface [code] class my_int_vector { public: //constructor to create an array my_int_vector(int intial); //prints out the …

Member Avatar for lotrsimp12345
0
121
Member Avatar for 42Wired

I am trying to write an API (called logEvent) for an outdated os-level logging function. I would like to call it in the following manner. [CODE=cpp]logEvent << "string"; // or logEvent << "string" << 123 << 0.456 << ... ;[/CODE] I'm trying to accomplish this by overloading the stream operator, …

Member Avatar for 42Wired
0
131
Member Avatar for breezed

Hello everyone, my name is Vincent, and I am hoping to get help with this subject. -- Visual C++ 2008 Express -- Alright, basically I have a droplist combobox with 8 lines 1 2 3 4 5 6 7 8 that a user can select. I want to have it …

Member Avatar for breezed
0
85
Member Avatar for kaizen_duck

Produce a complete C++ game that resembles the “Hang Man Game”, where the player is required to guess a given number/character/word. The player will be given a limited number of guesses. Each time the wrong answer is given, display an appropriate figure that changes accordingly. You may refer to the …

Member Avatar for kaizen_duck
0
223
Member Avatar for Peter_APIIT

Hello to all, i encounter an error like Error 1 fatal error LNK1107: invalid or corrupt file: cannot read at 0x2C8 C:\Program Files\OpenCV\bin\highgui110.dll Additional Include Directories C:\Program Files\OpenCV\cxcore\include C:\Program Files\OpenCV\otherlibs\highgui C:\Program Files\OpenCV\cv\include Additional Library Directories C:\Program Files\OpenCV\otherlibs C:\Program Files\OpenCV\lib C:\Program Files\OpenCV\bin Additional Dependencies cv.lib highgui.lib cxcore.lib highgui110.dll Error Message is …

Member Avatar for Salem
-1
361
Member Avatar for kiryoku

Please help to solve this problem.....i am using c++ programming language.... the output of the problem is.... [ATTACH]11520[/ATTACH] i only have this... help me plsss....... [ICODE]#include <iostream> using namespace std; int main() { int a, b, c, e, i, j, k, m; int z=1; int n=10; for (a = e …

Member Avatar for Salem
0
165
Member Avatar for kz07

Is there any way to go to a specific line of a text file and print it to screen? I used getline to do this, but what if i need to enter a number and the program will go to that line number and print it to the screen. is …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for thilinam

HI, I am a Beginner to C#. I have knowledge in C++ programming. please give me a reference to learn C#.

Member Avatar for ddanbe
0
90
Member Avatar for nalasimbha

Hi, I have a question related to pointers to base and derived classes. I have the following base and derived class: [CODE] class A { protected: double a,x; public: void set_ax(); virtual void mult_ax(); }; class B:virtual public A { protected: double b; public: void set_b(); void mult_ax(); }; class …

Member Avatar for nalasimbha
0
101
Member Avatar for Miganders

im curios since i just completed mine [URL="http://www.daniweb.com/forums/thread221217.html"]my first program (thread)[/URL]

Member Avatar for William Hemsworth
0
103
Member Avatar for Behi Jon
Member Avatar for Nick Evan
0
272
Member Avatar for hmortensen

Hi all, I’m doing some automation for a nightly deployment of some software. My program should: Open a program Send shortcut key press to the program Push a button And close the program again. So far I can open the program, bring it to front, send shortcut keys, but I …

Member Avatar for hmortensen
0
435
Member Avatar for Moirae

Hello, I have this problem with multidimensional array on Form. [QUOTE]I have multidimensional array (like 5x5 matrix), but I can't add buttons on the form, if I use Controls.Add it adds only one button, and if i use Controls.AddRange program gives me an error [/QUOTE] I want to make a …

Member Avatar for Moirae
0
104
Member Avatar for schmoe0207

who knows how to create games of the general in c++? i really want to know how.. ^_^ SNIP if you know this.. i'l be waiting for your help

Member Avatar for William Hemsworth
0
31
Member Avatar for redreed

hi guys i am doing a project and i need so help plzzz [URL="http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view&current=uu_000.png"]http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view&current=uu_000.png[/URL] at this link u can find a pic this a small part of my project the problem is that i want everything that i type or want to display like welcome to the back blah blah …

Member Avatar for redreed
0
286
Member Avatar for Behi Jon

Hi ... Is there a way to write a program in c++ that get a decimal number and convert it to its equivalent in hexadecimal without using arrays ? A bit guidance please .... Thanks ...

Member Avatar for Nick Evan
0
158
Member Avatar for D.JOHN

Dear experts, I am new to the subject of bitwise operator. I know some of the basics like the gates and how the gates function eg. and gate, or gate, exclusive nor gates. And also how to change decimal numbers to binary numbers. But I am not quite sure about …

Member Avatar for D.JOHN
0
707
Member Avatar for pnkanchi

How to retrieve Motherboard, Hard Disk serial numbers and other related information on Windows 64 bit OS?

Member Avatar for pnkanchi
0
252
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> #include <iomanip> #include <cctype> #include "account.h" #include "CharRange.h" using namespace std; void displayMenu(); void makeDeposit(Account &); void withdraw(Account&); int main() { Account savings; // account object to model a saving account CharRange input('A', 'G') char choice; cout << fixed << showpoint << setprecision (2); do { displayMenu(); choice …

Member Avatar for Salem
0
84
Member Avatar for redserpent7

Hi I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able …

Member Avatar for redserpent7
0
163
Member Avatar for F2guy

I have class eventqueue_t which is derived from the abstract class event_storage_t. When I compile the code I get: make mpixlcxx -c -O3 brain.cpp mpixlcxx -c -O3 config.cpp mpixlcxx -c -O3 connection.cpp "eventqueue.h", line 17.29: 1540-0408 (S) The base class "event_storage_t" is declared but not defined. make: *** [connection.o] Error …

Member Avatar for F2guy
0
261
Member Avatar for riemusic20

Hi, I'm new to the whole programming environment. I'm currently taking an object oriented programming class and am a bit lost on my first assignment. I know there is already thread for how to draw a diamond but it doesn't answer my question. I'm trying to draw a diamond with …

Member Avatar for DdoubleD
0
112
Member Avatar for ITech

I have created a windows application using C#. the problem is fairly simple. I doono how to refer to the Application path in c#. In Vb we can use App.path to refer to the Application path My C# code for opening a report is as [code=c#] public partial class frmSpaBill …

Member Avatar for serkan sendur
1
353

The End.