Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #864
~22.5K People Reached
Favorite Forums
Member Avatar for Knight_YUVA

HI,Everyone GOOD NOON I am creating a WINDOWS form using C# which have text box like part.no ( NUMBER ONLY NO Alphabets) i have used the following coding to accept number only . private void Partno_KeyPress(object sender, KeyPressEventArgs e) { //e.Handled = (!char.IsDigit(e.KeyChar)) && (!char.IsControl(e.KeyChar)); } Now i need to …

Member Avatar for ChrisHunter
0
162
Member Avatar for beastie805

really need help figuring out this program, it crashes during the getdata() function in main any tips or suggestions appreciated thank you #include<iostream> #include<string> #include<cstdlib> #include<iomanip> #include<fstream> using namespace std; struct StudentData { string Name; int Idnum; int* Tests; int* TestNo; double Average; char Grade; }; void ReadHeader(int&, ifstream&); StudentData* …

Member Avatar for Ancient Dragon
0
186
Member Avatar for Milton Neal

I'm working on a bit vector class that I'm using in a current project. Basicly BitVector is a container class for storing and manipulating data a bit level. I have two member fuctions for "setting" and "getting" bits at a given index. // Returns the bit at the specified index. …

Member Avatar for Milton Neal
0
305
Member Avatar for Elias_3

I want the text in a textbox "txtConvertedInches" to be selected when i press the radio button "rbFromInches". private: System::Void rbFromInches_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { bConvertingToInches = !rbFromInches->Checked; ToggleControls(); txtConvertedInches->SelectAll(); //I thought this would do it, but nothing happens }

Member Avatar for Elias_3
0
201
Member Avatar for khorght

Hi to all. I'm trying to use hidapi.dll,if needed i'll post a sources or link to authors page. Here's what i've have in my dll: #define HID_API_EXPORT __declspec(dllexport) #define HID_API_CALL ... int HID_API_EXPORT HID_API_CALL hid_write(hid_device *device, const unsigned char *data, size_t length); ... and this is the part in c#: …

Member Avatar for Nidal_1
0
881
Member Avatar for gobiking

Hello, I am new to C++ and I was trying to write a simple calculator program that has a do-while loop and also includes a series of != statements. Even though I make the statements with all the appropriate keystrokes it keeps giving me my invalid sign statement. Also, I …

Member Avatar for Labdabeta
0
287
Member Avatar for sumbul.qaimkhani

i just started with C++ program so i know very little programming . i have to make a program that calculates tax the senerio is this Federal: 15% on the first $43 561 of taxable income, + 22% on the next $43 562 of taxable income, (on the portion of …

Member Avatar for Milton Neal
0
150
Member Avatar for Ancient Dragon

I know how to create a function with variable argument list, but how do you create one when the argument type is unknown, something like MyPrintf(...) ? From what I've read CLR/C++ only supports known argument types, such as int, `MyPrintf("...array<Int32>^ arr)` and the calling function int main() { MyPrintf("One", …

Member Avatar for triumphost
1
667
Member Avatar for mc3330418

I have three funcitons that all have arrays. I need to make a print function. Here is one of the functions. void findUpperCase() { infile.open("trytext.txt"); int count = 0; char letters[MAX_LETTERS]; int upperLetters[26] = {0}; while ( infile.peek() !=EOF ) { infile >> letters[count]; count++; } infile.close(); for ( int …

Member Avatar for rubberman
0
133
Member Avatar for Milton Neal

I'm re-kindling some of my C++ theory and was working through a C++ SringBuilder class I found on the net. I understand it all except the 2 operator methods. (See listing below). Can anyone explain what these operator methods are for and how and why you would impliment them. class …

Member Avatar for rstralberg
0
124
Member Avatar for emil.rubinic

My program consist of two classes: Form1 (windows form with textbox) and SerialCommunication (class for serial communication). When data occurs on COM port DateRecievedHandeler store the message to indata. public ref class SerialCommunication { private: static SerialPort^ mySerialPort; public: static String^ indata; static void OpenPort(); static void Close(); static void …

Member Avatar for emil.rubinic
0
80
Member Avatar for Mncedisi

You are asked to write a program that manages a company's stock. To manage the stock the program need to keep track of item information, prices and quantities. A user should be able to adjust these values on selected items, draw reports and perform certain functions over all the data. …

Member Avatar for Iyfjeyeon
0
180
Member Avatar for kamran.j

hello everybody; i have a problem, i want to convert a string which is an Equation to double, in order to use each part which is seprate by + or - ; how can i do that? thanks a lot for your helps.

Member Avatar for kamran.j
0
217
Member Avatar for anonymous213

well i have to make one and before i make i wont to know what it is and what is the order the number come out random or like 1 12 123 1234 12345 please explain to me in detail to thanks

Member Avatar for anonymous213
0
643
Member Avatar for streetalex310
Member Avatar for dot_binary

Does anyone know of a header file for windows with a function that enables the execution of code once every specified number of milliseconds, something that can be used like this: if ( delay(5) ){ // do something every 5 milliseconds } If it's in microseconds is even better. If …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for james.price.39501

How do I open a Form using a Combobox In C++? How do I open a Form using a combobox? If I have 3 Values such as apples, oranges and I want to open a form if the user choses apples and another form if the user choses oranges. private: …

Member Avatar for Milton Neal
0
268
Member Avatar for triumphost

How can I create PNG Files from an array of bytes or read a PNG file to create an array of bytes? I looked up the format but it looks nothing like a bitmap and I read the GDI doesn't support PNG's. So how does LibPNG do it then? I …

Member Avatar for DeanMSands3
0
288
Member Avatar for triumphost

Why does the following code skip the initialization of values of the temporary created? Box::Box() : X1(0), Y1(0), X2(0), Y2(0), W((X2 < 0 ? -X2 : X2) - (X1 < 0 ? -X1 : X1)), H((Y2 < 0 ? -Y2 : Y2) - (Y1 < 0 ? -Y1 : Y1)) …

Member Avatar for Milton Neal
0
223
Member Avatar for vytenis555

Hello everybody, I'm in need of a bit of help here. I got this C# snippet: public static byte[] StringToByteArray(String hex) { int NumberChars = hex.Length; byte[] bytes = new byte[NumberChars / 2]; for (int i = 0; i < NumberChars; i += 2) bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), …

Member Avatar for Milton Neal
0
242
Member Avatar for jonnyboy12

Hello all . I used to problems with my program shaking when i mioved it off screen. I found code thats supposed to fix it . It came from some program i was tinkering with. Its had many complex textures and all added to its form and the form didnt …

Member Avatar for jonnyboy12
0
278
Member Avatar for jonnyboy12

Hello I have a large project that i bult with windows forms. When I drag a form on my screen it will move with no problem. When part of the form is overlaping the edge of my monitor and i try to drag it , the form will shutter when …

Member Avatar for Milton Neal
0
82
Member Avatar for chamika.deshan

Hi I am trying to write "at" commands to serail port and send sms. `smsPort->Write("at"); // smsport type is System::IO::Ports::SerialPort ^smsPort;` gives me output OK At the end(after the writing message) I need to write ctrl+z smsPort->Write("Message"); smsPort->Write((char)26); this gives me error *'void System::IO::Ports::SerialPort::Write(System::String ^)' : cannot convert parameter 1 …

Member Avatar for gusano79
0
148
Member Avatar for gethelpcpp123

A password is good if it has at least one digit,one alphanumeric charecter, one uppercase letter, one ordinary lowercase letter letter and consists of 8 charecters or more. I created this program, but I'm not getting correct results.. What is the problem? void main() { cout<<"This program checks whether the …

Member Avatar for WaltP
0
107
Member Avatar for jonnyboy12

Hello. I have a unique situation. I have so many text box's in my form that i wound up making a text box array. Now each text box i make i have to give it a mouse clicked event and mouse moved event. I cannot write these event functions for …

Member Avatar for Milton Neal
0
108
Member Avatar for CPEBB

help me please this is a code #include <iostream> #include <string> using namespace std; class Student { private : int StudentID ; string FirstName; string LastName; string CourseName; double FirstExamGrade; double SecondExamGrade; double AssignmentsGrades [5]; double FinalExamGrade ; double Avr_Of_Assignment; double TotalGrade; public : void SetFirstName (string S1); void SetLastName …

Member Avatar for CPEBB
0
377
Member Avatar for kase20

hi guys!! The purpose of the program I am trying to do is to have an input number of 6 digits typed in and this should then be printed as an hour minute second format. for example 123456 would be 12:34:56 This is what I have but it isn't working …

Member Avatar for Ancient Dragon
0
105
Member Avatar for slaythezeppelin

Hello im new to daniweb and c++ and am getting a overloaded function error on my readFile function, specifically the string data type. I cant seem to pinpoint whats causing the error. Im supposed to use the function to read data from a text file in this format: Johnson 5000 …

Member Avatar for rubberman
0
160
Member Avatar for jonnyboy12

Hello all. I am working with windows forms in c++/cli. I am trying to use a tabpage control. When i have a background image behind my tabs, the tabs will flicker when i click on them. I have read about using this in my forms main constructor. [CODE] this->DoubleBuffered = …

Member Avatar for Milton Neal
0
136
Member Avatar for MatthewT

Hi, I'm writing a program in C++ that is driven by events that occur externally to the computer. As far as the program is concerned the event is just a change from false to true and I figure the simplest transmission mechanism would be over a single pin on the …

Member Avatar for VernonDozier
0
96