8,298 Topics

Member Avatar for
Member Avatar for pendo826

Can Anyone advise me on the problem with the namespace in this code im getting an error. [CODE]//Main. #include "Weapon.h" #include "Room.h" #include <iostream> #include <fstream> using namespace std; int main() { ifstream myfile; string line; myfile.open("BronzeSword.txt"); if (myfile.is_open()) { while ( myfile.good() ) { getline (myfile,line); cout << line …

Member Avatar for pendo826
0
157
Member Avatar for surajrai

Hi All, I am trying to understand shift operator which is used in my project. What I came to know from google is that Bit shifting allows for compact storage of similar data as a single integral value. But how does that work. and what is the advantage. Can you …

Member Avatar for Narue
0
408
Member Avatar for pendo826

Hey im a real noob at c++ and im trying to understand creating rooms setting a default and using a .txt file for room details. but i dont understand it. Im looking at some code from my lecturer and i dont understand were the wiz0-2.save comes from can some tell …

Member Avatar for mikrosfoititis
0
134
Member Avatar for roXy101208

Hi, I'm new to asp.net and C# and I want to ask how to implement a session login using asp.net and C#. where i will connect it to my database. Please advise. Thanks.

Member Avatar for crishlay
0
234
Member Avatar for freybelle

hi.. i'm newbie in C# and i want to learn How To ConnecT RFID into C#.. can you help me?

Member Avatar for lolafuertes
-1
90
Member Avatar for freybelle

hi..i am newbie in C# in Starting making a Program C# form with RFID,what are the components and installer i need before can i Start?

Member Avatar for james6754
0
77
Member Avatar for vigneshkbv

I ve a mask text box. mask is 00 00 00 00 format. my requiement is ,the box should accepts hexa decimal value too... my expect format look like 0A 0C 0a 0f...pls help me..thanks in advance..

Member Avatar for rexdon
0
145
Member Avatar for naveedqadri

Dear Experts, Thanks in advance for helping me out. I am new to C# as well asp.net. I have already running appllication asp.net , needs to change in asp file with C# code. Scenario: My application is using third party software "activepdf server,webgrabber" to convert and print to pdf. BUT …

0
536
Member Avatar for shilpa_gurnani

I have an UltraGrid Where Each cells Contains UltraControlContainerEditor inside that we have a UltraPanel and UltraPanel Contains UltraCheckEditor.All these Controls m creating Dynamically and are added as EditingControl. In short I have controls inside cell of the ultragrid. Now I want to knw Whether my checkbox is checked or …

0
93
Member Avatar for lemunk

Hi guys, Im writing a windows c# form at the moment and after all the headaches of gettin my stored procedure to combine 2 tables from 2 databases from 2 servers that had different collations(.....yeh MASSIVE headache)ive hit another snag! here's my form1 code, no where near completed, missing my …

Member Avatar for lemunk
0
265
Member Avatar for ara_tul87

i search and find this code at [URL="http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx?wa=wsignin1.0&CommentPosted=true#10237561"]http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx?wa=wsignin1.0&CommentPosted=true#10237561[/URL] and I think this code can be used to make the Bluetooth on my pc turn on or off but the code using reference to windows mobile. anybody have idea on this... I need the sample to turn on and off Bluetooth …

Member Avatar for mshauny
0
215
Member Avatar for markthien

Hi guys, is there any build-in function in C# that can detect if a string contain Chinese/Japanese character? This string may contain alphabet, numeric, chinese and japanese characters. Appreciate any advice please. Thanks in advance! Cheers, Mark

Member Avatar for toyumail
1
4K
Member Avatar for evilweevil

[B]hey guys: im having a problem with the bisection method using C++ , the code suppose to find the root of this equation "X cube minus 3X plus 1" on [0,1] after 5 iterations and after doing it manually the answer should be x=0.009368 it keeps giving me 0.25 and …

Member Avatar for nchy13
0
2K
Member Avatar for alaa sam

hi everyone I have been programing in c++ for a while now, but I'm asked to write project in c#, so is hard to learn it ?? also I have never wrote a program with interface , so is it possible to write console application then build the interface ? …

Member Avatar for alaa sam
0
123
Member Avatar for Limiter

Okay, I am still trying to get used to C++ since I mostly write in Java. I am also new with the two constructor thing mentioned in detail below. Here, I am investigating on writing a class with two constructor. That is, I have heard that you are allowed to …

Member Avatar for Limiter
0
207
Member Avatar for SSight3

I've tried searching for articles that relate to this issue, but all I keep finding are articles about people who don't know how to define constructors/can't call the parent constructor/etc and I think this will cut straight to the chase. The problem code is as follows: [CODE] #include <stdio.h> class …

Member Avatar for SSight3
0
301
Member Avatar for Dakot

I'm trying to solve this exercise. Write a program that print out the following, user will input the top number: ***** **** *** ** * i made a program similary to this , but user inputs the bottom number ,the output is like this: * ** *** **** ***** here …

Member Avatar for Dakot
0
84
Member Avatar for nssltd

Hello! Well then i am currently developing a web browser project based on Cef Sharp. It's basically chromium for C# projects. Anyway its very loosely based on it. I'd like some help too be able to incorporate Flash Player into this project. Whenever i go to youtube as a test …

Member Avatar for Ketsuekiame
0
205
Member Avatar for jitendra_tcil
Member Avatar for Panathinaikos22
0
106
Member Avatar for taloosheh

a program that inputs a set of letter codes f for female m for male and gpa then computes and outputs the gpa for both female and male

Member Avatar for Pseudo Coder
-3
102
Member Avatar for himvj1

Dear All, How to find the other application events through c# suppose i want to know the state of Msword application whether it is minimized or in maximize state how to find that using c#. any help is appreciated Thanks in advance.

Member Avatar for Three
0
66
Member Avatar for something78

Hi, I am a student doing my Final Term Project. I am suppose to create a GUI using C# that can control and interact with a Robot call Robonova-1. The robot will be connected to the PC via Bluetooth. I was thinking to have a connection button in my GUI …

Member Avatar for Seten
0
10K
Member Avatar for toki93

Ummm hi, Ive been having some problems with a program ive been working on. I want to insert a new value in a column in a table from a calculation i get and replace the original value. Heres the part of the code: private void button11_Click(object sender, EventArgs e) { …

Member Avatar for hericles
0
232
Member Avatar for MaSSaSLaYeR

Hallo! I got the following Decimal IP: "3232235876" it represents "192.168.1.100" I got it in the following way: Code: [CODE] //GET IP if (gethostname(hostname, sizeof(hostname)) == SOCKET_ERROR) { printf("%s","host not found"); } struct hostent *phe = gethostbyname(hostname); memcpy(&addr, phe->h_addr_list[0], sizeof(struct in_addr)); //Convert IP to Decimal notation sprintf(decResult,"%u", addr); sprintf(decResult,"%u", htonl(atoi(decResult)));[/CODE] …

Member Avatar for gusano79
0
863
Member Avatar for kcp

I just recently started learning C++, in the book i am learning from there is a problem that asks you to write a simple pasword program. It just asks the user the password and then displays a message wether its right or wrong after they enter it. I am having …

Member Avatar for WaltP
0
348
Member Avatar for rathanm
Member Avatar for ChaseRLewis

I know C/C++ but am trying to learn C# as creating GUI based application is much easier than in C++. I've been leveraging the options of which GUI tool I should learn. Is it best to learn Winform, WPF, or other? I recently tried out the Windows 8 preview to …

Member Avatar for ddanbe
0
111
Member Avatar for Dakot

hello , i want to cin n numbers then to sort the positive numbers in one array, the negative numbers in another array , then to print positive array. So let me explain , i run the program , i enter the 9 , then enter 1 2 3 4 …

Member Avatar for Dakot
0
155
Member Avatar for sachin mali

my project Converting the c++ program to C# program.what i do plece sugs me and help me

Member Avatar for hericles
0
46
Member Avatar for justlearnin

Okay, I am trying to extract text from a text box and redisplay it into labels. Specifically, when the user types in an address, say 123 W Elm, I want to click a button and have the "123" print in one label, the "W" to display in a second label, …

Member Avatar for justlearnin
0
126
Member Avatar for onat12`

I need a functioning login code for a windows form. my code that I made has some problems. I posted my code to prove I made Effort. thanks. [QUOTE] -------- Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username …

Member Avatar for prit005
0
496
Member Avatar for compzets

[CODE]#include<stdio.h> int main() { int a,b,c; (printf("\nEnter 2 no.s"))?(scanf("%d%d",&a,&b))?(c=(a>b)?a:b):0:0; while(c>=1) {if(a%c==0 && b%c==0) {printf("\nGCD:%d",c);return 0;} c--; } }[/CODE]

Member Avatar for thines01
0
171
Member Avatar for karimnouh

Hi everyone, i'm working on a simple console application for my company, which would backup the company's X:\ drive by uploading its data every day at 3:00pm. Questions: 1. Suggestions on how to upload a directory? (if not possible, then is it possible to automatically upload file by file) 2. …

Member Avatar for thines01
0
182
Member Avatar for farshadak2004

I'm building a dictionary and I have a database of words with equivelant meaning in Access file. I want to use hash table for finding the words and the meaning. My question is how to implement the hashtable which can use the file as the reference. or any other guide …

Member Avatar for thines01
0
89
Member Avatar for auwi987

hi guy's i need some help. my project is an ATM simulator, to handle screen design i used panel for withdrawal, pin verification, balance etc. to explain further i have 1 panel for withdrawal a panel for pin verification etc. now idont know how to control those panel like if …

Member Avatar for auwi987
0
140
Member Avatar for Despairy

i studied c++ before c guess that was my mistake... i try to read from a file a set of strings and put them in the new allocated array, i do not understand what is the main thing this code isnt working. i get segmentation fault... and even trying to …

Member Avatar for Narue
0
2K
Member Avatar for hallmat

Hello, im trying to make a program that opens up jpeg files one at a time and look at there brightness and then if its past a threashold moves the file to a "keep" folder if not moves it to a "varify" folder im new to C# so im not …

Member Avatar for hallmat
0
403
Member Avatar for brsharvari

can u please provide me with a c/c++ program to add a user to MySQL and allow him to only insert into the database

Member Avatar for ushapriya
0
255
Member Avatar for z_zendegi

Hi I want to khow about drawing methode in C# that has no dependence in pixel, do anyone can help me? I want to draw patterns and then print them, I can Draw them but when I want to print, I have Problems with measurments because I draw them pixel …

Member Avatar for jz_gook
0
714
Member Avatar for lavenzo

hi, i having some problem here. I have a DLL written in C# but I need to re-write it in C++ using visual studio 2005. I have no C++ language..o.O so could some one help guide me? help translate my code..should i use new project > 'Class Library' project or …

Member Avatar for thines01
0
2K
Member Avatar for Dakot

hello , i'm trying to solve this problem [QUOTE]Create a program which generates fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 1 2 3 5 8 (beginner)[/QUOTE] the problem is that the …

Member Avatar for WaltP
0
184
Member Avatar for Johnrocks

Hello I have already managed to use PropertyGrid class and works fine, but no where I can find the autohide feature. I want the PropertyGrid to hide just the way we hide in VS 2008 how to mimic that any property for that. Thanks in advance

0
67
Member Avatar for Adnan671

So, it sorts the books by price just fine, but I cannot get it to sort the books by title. I am most likely over thinking this, but I've spent a couple hours trying to figure it out. I've looked online and couldn't find the answer. I'm guessing the problem …

Member Avatar for raptr_dflo
0
3K
Member Avatar for onat12`

I have a Login validation problem, when Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username = onat12-correct Password = 123-incorrect Login Failed. now when, Username = 123-incorrect Password = 123-incorrect Will not validate Verification failed [CODE]using System; using …

Member Avatar for hericles
0
205
Member Avatar for MrEARTHSHAcKER

Hi, I wish to start making Windows Applications, but I need a good compiler. Considering I work in DEVC++, I can't make buttons, textboxes and other objects that easy. I wonder if there's any compiler like BorlandBuilder for C, but for C++. That'd really help me :icon_cool: So do you …

Member Avatar for MrEARTHSHAcKER
0
221
Member Avatar for chamnab
Member Avatar for Acidburn

Guys, I've got an issue but I also dont know if its possible. I've templated (generic'd out a class that takes type T where T is a HtmlControl object ... [code] internal class Controller<T> where T : HtmlControl { public T locateControl(T t) { t.SearchProperties.Clear(); t.Find(); return t; } } …

Member Avatar for darkagn
0
122
Member Avatar for jmaass20

im a new student to c++ and classes has really confused me. the program is creating a bank account. i have already completed the header file but the implementation file has be confused. can someone please help me with this. thanks! here is my header file: #include <iostream> using namespace …

Member Avatar for Lerner
0
137
Member Avatar for kshahnazari

hi everyone , i want to edit , delete and update classes in css with c# . what shall i do?

Member Avatar for thines01
0
131
Member Avatar for gary91

The End.