49,761 Topics

Member Avatar for
Member Avatar for viola

My interested area: C++/C#, WPF, LINQ, DB relevant(MS SQL) Moving forward towards: F#, Silverlight

Member Avatar for kanaku
0
20
Member Avatar for cppnewb

Hi Again. I have a password field in one of my programs. I would like to display the letters as a *. Does anyone have some code to achieve this?

Member Avatar for cppnewb
0
100
Member Avatar for Ronen444

Hi ! Some (weird) problem i got : I have a header file, InputHandler.h, which has one Class called InputH, and inside i have public: and a Void named Hi(). When i try to include InputHandler.h in PRPT.cpp, i get an error, weird one; The error says that i should …

Member Avatar for Narue
0
244
Member Avatar for karang

Hi I am writing a code in VC++ char* style = "color:#4D4DFF;font-size:9pt;font-family:Arial;"; char* semicolonsplit = ""; semicolonsplit = strtok (style,";"); But in the last line I am getting an error " Access violation writing location 0x0041606d." Am I missing something. Regards Karan

Member Avatar for Narue
0
112
Member Avatar for Richy321

Ok so im still learning C++, looking at some directx and i come across a _ before a var and was wondering what it means. for example: pDevice->SetVertexDeclaration( _vertexDeclaration ); or in a error macro: SHOWERROR( “CreateVertexBuffer failed.”, __FILE__, __LINE__ ); first one is probably the best example. thanks.

Member Avatar for Salem
0
123
Member Avatar for scias23

help.. i dont know how to sort strings.. for example.. if i enter: [CODE]JOKER[/CODE] then the descending order of string must appear: [CODE]ROKJE[/CODE] i think of strcpy() ..but it i dont know what to place in the if().. here's my code.. [CODE] #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> void main() { clrscr(); …

Member Avatar for scias23
0
2K
Member Avatar for kennycason

I've been working at this, ALL day... and stumped I have a class called LinkedList, which I am writing, Everything compiles, but at run time I get a segmentation default error. It occurs when I initialize a LinkedList object. I.e. LinkedList ll; // causes a seg def error at runtime …

Member Avatar for kennycason
0
204
Member Avatar for tom_jerry042

Hi [B]snprintf [/B]is working fine when i am not using [B]append [/B]function . But as soon as i use [B]append [/B]function [B]snprintf [/B]crashes . Please suggest why [B]snprintf [/B]is crashing after [B]append [/B]. What is special with [B]append [/B]function which is crashing this program Below is the program. #include<string> #include<iostream> …

Member Avatar for iDeveloper
0
152
Member Avatar for monkey_king

Hi I'm trying to convert a linux/gcc program to windows/cl But I'm having some problems understanding the inner workings of the ide called microsoft visual studio c++ 2008 express. I've started a "new clr project", and then added the .hpp file, that contains the header. But the compiler/f7 says that …

Member Avatar for iDeveloper
0
223
Member Avatar for mrnutty

hi, I am curious, how can I read a int from a text file( ex. num.txt). but this text file contains numbers without spacing (ex.1212132132313... 23156897984969.. 583852935792...) The problem is that this file has no spaces between numbers and when i try to read it into an arry, the result …

Member Avatar for VernonDozier
0
148
Member Avatar for cam875

how do i make it so that functions and procedures that are located in other files in the include statement have access to the global variables within main.cpp, thanks in advance.

Member Avatar for ArkM
0
244
Member Avatar for mrnutty

how would I check how long a program takes for it to be completed. (i.e the time it takes for the program to be finished doing its calculation)) Thanks

Member Avatar for stonerain
0
107
Member Avatar for massivefermion

Hey men I'm using ubuntu 8.04.1.when I wanna compile a c++ source code with gcc,it says: gcc:error trying to exec 'cc1plus':execvp:no such file or directory

Member Avatar for cam875
0
224
Member Avatar for chrischavez

I have an application which is supposed to move the mouse based on input like that from a keyboard. the code listens for the direction keys to see if they are pressed. the code works but only in 2 direction it can only move to the right and down. is …

Member Avatar for William Hemsworth
0
3K
Member Avatar for kjiu

hi, I must do in Qt a "undo" ( QKeySequence::Undo ) but I don't know do this.Help me ex. [CODE] void MyWindow::Save () { QFile file (fileName); if (file.open (QFile::WriteOnly | QFile::Text)) { QTextStream out (&file); out << textEdit -> toPlainText (); statusBar() -> showMessage ("message",2000); } } [/CODE] but …

0
54
Member Avatar for tino

Hi' there... Anyone with an interest in AI ?? We have been working on an AI-system for quite some time and now invite others to participate. The basic concept in the "game" we are constructing is as follows: You have an aquarium filled with 3 types of insects. By adjusting …

Member Avatar for tino
0
251
Member Avatar for midimatt

hello again, just tried to compile my project and i'm getting errors with a file cstdlib Error 2 error C2039: 'abort' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 9.0\vc\include\cstdlib 23 Error 3 error C2873: 'abort' : symbol cannot be used in a using-declaration c:\program files\microsoft …

Member Avatar for grumpier
0
434
Member Avatar for amt_muk

Hello Friends, I am trying to porting an unix c++ program into windows using MSVC8.0 compiler. In my unix version there are some lines like [CODE] #include <sys/atomic.h> ... atomic_add_int_nv() ... [/CODE] Now, pls help me to find out the Win version of these code segments. Thanks, Amit

Member Avatar for cikara21
0
98
Member Avatar for beast0000

Hello guys, I am new in this forum and i hope im gonna get some fast help. I have this problem where i should input numbers from a .doc file, and the program should output how many times the number of occurences of each number. ie: the numbers in the …

Member Avatar for MosaicFuneral
0
78
Member Avatar for cam875

this is a really strange one since it doesn't make sense why the program just starts running then shuts down without executing the system("PAUSE") at the end. here is the source code, thanks in advance to any help. [code=cplusplus] #include <iostream> #include <fstream> #include <vector> using namespace std; int main() …

Member Avatar for cikara21
0
92
Member Avatar for cam875

When i compile this code i get an error which states main.cpp|38|error: no match for call to ‘(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (long int&)’| I am going to assume that this is something to do with trying to put the string in a different kind …

Member Avatar for cam875
0
106
Member Avatar for Ronen444

Hi ! Thank everyone who helped me with my other question ! But i got something else to ask... Let's say that in my C++ Console, the user sets its user name, and in the next time the software runs it says : "Hello, USERNAME !" But, Problem : I …

Member Avatar for twomers
0
183
Member Avatar for midimatt

Hello everyone, got a really strange and annoying error. When i compile my program i get 2 errors and 2 warnings all 4 to do with stdlib.h error C2381: 'exit' : redefinition; __declspec(noreturn) differs c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h 371 i did a little research on the problem and found …

Member Avatar for midimatt
0
197
Member Avatar for GadiK

Hello, I'm writing a GUI using MFC. I have a number of press buttons that preform identical tasks on different members of an array. I know how to make a handler function for each button. I'm looking for a way to use the same function for all buttons and within …

Member Avatar for Comatose
0
114
Member Avatar for Simran1

Hello, What is Abstract classes.Please tell me the definition and how to implement this also tell me please. I'm waiting for your reply. Thanks

Member Avatar for Agni
0
155
Member Avatar for rajeesh_11

Hi, I trying to run a Axis JAVA client with a GSOAP C++ server. Here in the below given code I am trying to make an asynchronous call from the JAVA client using "sendReceiveNonBlocking" API. On the GSOAP server side I am using the "soap_send_..." for the asynchronous behaviour. I …

Member Avatar for rajeesh_11
0
380
Member Avatar for jugnu

Hi! This is Adnan I have a text file having 10 records. There are 4 fields and each field is delimited by a comma. I need to read data from text file such that when i input suppose Account number then the program fetch the record thru that number and …

Member Avatar for MosaicFuneral
0
104
Member Avatar for mrnutty

[code]#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; unsigned __int64 Fact(unsigned __int64 x ); int main(){ /*n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100!*/ cout<<Fact(100); } unsigned __int64 Fact(unsigned __int64 x ) { __int64 num(0); if(x==0) return 1; else { …

Member Avatar for grumpier
0
116
Member Avatar for mrnutty

I made a program that computes a factorial of a number. [code] #include<iostream> #include<fstream> #include<cmath> #include<iomanip> #include<string> using namespace std; //unsigned __int64 Fact(unsigned __int64 x ); int main(){ unsigned __int64 num = 100; unsigned long double fact(1); for(unsigned __int64 i=1;i<=num;i++) { fact *=i; cout<<setprecision(50)<<"i is : "<<i<<" fact is : …

Member Avatar for MosaicFuneral
0
143
Member Avatar for isumasama

How to implement hamming code in C++ or C I have a prog same as other user (Melissa). I need help to get me started in coding as i'm almost forgot everything i've learned on C or C++. The task is implement a program for any hamming codes by using …

Member Avatar for MosaicFuneral
0
941

The End.