132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for atrusmre

Can anyone point me in the direction of a site that has a good tutorial on using Tab Controls on a MFC program?

Software Development c
Member Avatar for atrusmre
0
185
Member Avatar for love13chess

Hi guys: I am very very new in C++. In school they required me to write a program that reads the names of the students registered for a class and output that result in a file. I got almost everything done. The only problem is with the function getline. I …

Software Development c++
Member Avatar for Dave Sinkula
0
133
Member Avatar for campkev

Having a problem with a user logging in and getting a different users information. Only thing I can think of that changed was I replaced a few Response.redirects with server.transfers. It is happening randomly (or, if there is a pattern, I haven't figured it out yet). Ever heard of anything …

Software Development
Member Avatar for campkev
0
107
Member Avatar for mym

This program uses an ancient method to find the square root. But the problem is that it only works with certain numbers not all the numbers I input. I would like to know if I am doing anything wrong. I would appreciate any help I could get with this. [code] …

Software Development c++
Member Avatar for Rashakil Fol
0
207
Member Avatar for HyperEngineer

I would like to change the font in a static text box. But I want it to be that size until I change it again. I put the following code in the OnInitDialog() function: [code] CWnd* pWndControl = GetDlgItem(IDC_PROGRESS_INDICATOR); pWndControl->MoveWindow(((MyRect.right - MyRect.left)/2) - 100/2, MyRect.top + 100/2, 100, 100, TRUE); …

Software Development c
Member Avatar for WolfPack
0
102
Member Avatar for sahil_logic

hello everyone i was trying to make my own own string concatenation function but wasnt able to do so. i need ur help.

Software Development c++
Member Avatar for Dave Sinkula
0
2K
Member Avatar for Finalmadness

Why is it after I compile the program sucessfully, the options will not work? Only one out of my four case statements actually execute.

Software Development java
Member Avatar for Finalmadness
0
201
Member Avatar for snaidis

what is the factorial uses? what does factorial do? :?:

Software Development c
Member Avatar for Narue
0
377
Member Avatar for Finalmadness

I rewrote a project and it compiled sucessfully with no errors. I then went to test the project to make sure it gave me the output I was looking for. It then went matrix. The command prompt was filled with letters jumping on the screen just like in the movie. …

Software Development java
Member Avatar for Finalmadness
0
285
Member Avatar for xav.vijay

Hai friends I have a some trouble in running a 3rd party program. This 3rd party program actually takes one file as input & does some processing on it and creates an output in a different folder with the same name, but with different file extention. I do it manually …

Software Development os-x python
Member Avatar for xav.vijay
0
263
Member Avatar for SpS

Hi guys....I am planning to learn JAVA.....i don't know anything about it...just into C/C++.....don't know what compiler i should use.... suggest me some sites where i can download the compiler(Good One Please) for JAVA

Software Development java
Member Avatar for SpS
0
278
Member Avatar for atrusmre

how do you find the length of a CString?

Software Development c
Member Avatar for server_crash
0
176
Member Avatar for Acidburn

[code] { cout <<" file found ..." << endl; while((ch = infile.get()) !=' ' ) { cout <<"\nRead value is : "<< ch<<endl; cout << "calling function : "; populateArray(ch, i); } } [/code] file contents : if ( a + b ) ; basically its taking the file pointer …

Software Development c++ file-system
Member Avatar for WolfPack
0
84
Member Avatar for eachowcc

Ok. I am trying to write a perl program to automate installation of certain softwares (as root) on a linux machine. I want my perl program to call an installation script and provide parameters to that script such that I do not have to enter 'yes', 'no', 'continue', create directory?', …

Software Development perl
Member Avatar for Comatose
0
316
Member Avatar for comwizz

Hi everyone, I am having this problem to define a function which raises a float y eg 3.5 which is not a whole number to the base x. Heres the code which gives domain error as function pow takes only int values. [code]//Program to raise a number to power when …

Software Development c
Member Avatar for jim mcnamara
0
374
Member Avatar for Zababa

Hello there, guys! I am relatively new to programming in C, and I still have a lot to learn. I am currently using Dev C++, but I work in C only. My problem is that I need to fill a 2D table with some multi-character variables, and I don't know …

Software Development c++
Member Avatar for jim mcnamara
0
415
Member Avatar for Wolfy

I have these two projects due tomorrow for extra credit in my Unix class and I have no idea how to write them. I really need the extra credit to bump my grade up a little. Any help would be greatly appreciated. Here are the descriptions: Project One: A) Create …

Software Development display shell-scripting unix
Member Avatar for jim mcnamara
0
104
Member Avatar for sam1

hi I am really confused guys. what is the difference between <<include>> and <<extend>> stereotypes in use cases? and where do i use them? thanx

Software Development java
Member Avatar for sam1
0
92
Member Avatar for imanust

I am trying to output a number of lines, given by the user, of stars shaped as a triangle below: [code] ********* ******* ***** *** *[/code] i have got the following code: [CODE]void line (int n, char c) { for (int i = 1;i <= n; i++) { for (int …

Software Development c c# c++
Member Avatar for WolfPack
0
101
Member Avatar for vex

Is there a simple way to test wether or not a file is binary or text??? Thanks in advance

Software Development java
Member Avatar for server_crash
0
100
Member Avatar for esdesign

How can I control the "enable/disable" network connections from the control panel through visual basic? Or what params do I pass to svchosts.exe to control this, or what is the actual service name of "Network Connections" in services.msc so I can use "NET STOP {SERVICE} | NET START {SERVICE} ? …

Software Development visual-basic
Member Avatar for esdesign
0
442
Member Avatar for Finalmadness

I am doing a program that will convert euros and yens to US dollars and then give the total amount of money upon exiting the program. I need a gift class to hold the total. Basically I did two file a ConvertCurrency file and a gift file. It is has …

Software Development java
Member Avatar for NPH
0
219
Member Avatar for sudtuwup

Hello everyone. I am working on JFrame and i was wondering if i could somehow close the frame and then reopen it -whith a different contxet- using a loop.

Software Development java
Member Avatar for sudtuwup
0
179
Member Avatar for johnray31

when i compile this program [CODE]main() { struct emp { char name[20]; float sal; }; struct emp e[10]; int i; for(i=0; i<=9; i++) scanf("%s %f", e[i].name, &e[i].sal); }[/CODE] it gives the Floating point formats not linked but when i run this [CODE]main() { float x; scanf("%f" , x); }[/CODE]<< moderator …

Software Development c++
Member Avatar for johnray31
0
453
Member Avatar for bang2711

hello guy, i need to random up the whole Sentences with detection on spacing. then each word will be place into a label. example; " i`m loving it" "i`m" will be in labelA 1 "loving" will be in labelA 2 "it" will be in labelA 3 then the 3 labelA …

Software Development visual-basic
Member Avatar for Yomet
0
184
Member Avatar for snaidis

i am doing a program that solves a math exercises with order of arithmetic operations for example: 2*(7-6*4+(11-6)+(14-5)) now, the user types number or character(*,-,+,/) i have a struct that contains one int variable and one char variable the user types character or number and i need to put the …

Software Development c
Member Avatar for SpS
0
177
Member Avatar for George2

Hello everyone, I have heard that static variable will make the program consume very much memory. It is because garbage collector (GC) will not work on static variable. Is that correct? I am also wondering when does the memory space of a static variable is allocated, during compile or during …

Software Development java
Member Avatar for George2
0
2K
Member Avatar for jack223

Question: counts how many times the number 5 appears in array called NumArray? Can anybody help me with this problem?? I got 4 "5s" but i don't know if i understood the question correctly or not....does "55" counts as two 5s??? and if it does then how do i count …

Software Development c++
Member Avatar for geekbutproud
0
2K
Member Avatar for prav

hi there i have a cell [11] which contains "admingroup,update,viewonly" and it is a variable length. So one user can be in different user groups. i'm using an array to split the cell, however i'm only getting the first data (admingroup). here is the code i'm using. thank you in …

Software Development email visual-basic
Member Avatar for Comatose
0
163
Member Avatar for iamthwee

hello, I am using netbeans and i wonder how you make a executalbe so you can drag and drop it into a floppy then run the prog on someone else's computer. Is it call making a jar file or sommthing. ANy help is this simple or wat? God bless.

Software Development java
Member Avatar for iamthwee
0
568
Member Avatar for Loopah

Heya everyone. I am a first-year student and doing a project for my C class. It is to do with John Conway's "Game of Life" as I am sure you are all aware of what that is. Here is the things needed. And after that is the code that I …

Software Development c
Member Avatar for Loopah
0
636
Member Avatar for kahaj

Can't get this to compile for some reason. Anyone have an idea what's going on with it? [code] #include <iostream.h> #include <stdlib.h> #include <iomanip.h> #include <time.h> void MoveT(int *tortoisePtr, const int End_race); void MoveHare(int *harePtr, const int End_race); void PrintCurrentPosition(const int *snapperPtr, const int *bunnyPtr, const int End_race); int main() …

Software Development c++
Member Avatar for Dave Sinkula
0
240
Member Avatar for nisaa15

Hi all, I would like some ideas as to how I would go about developing a trie to store a very small dictionary (of about 10 words). How would I get the program to get each word and make the relevant nodes and edges? Also dela with compressing it? Thanks …

Software Development java
Member Avatar for jim mcnamara
0
210
Member Avatar for DotNetUser

I have created three timers(5sec,5sec, and 10sec) for my Windows gui. When the timer event is triggered, it displays an Timeout error to a textbox. For some reason, the timers doesn't trigger in some procedures but does in others. I don't believe any process is holding up the code to …

Software Development c++ gui
Member Avatar for DotNetUser
0
130
Member Avatar for johnray31

[COLOR=Green] hello experts i am new to this programming field plz tell me how can i reverse a string without using any extra space . if someone could provide code it ll be great help for me thankx [/COLOR]

Software Development c++
Member Avatar for Dave Sinkula
0
251
Member Avatar for altheastronut

I was told awk is great for working with columns of data. From what I have seen it's pretty cool, but I haven't found a good site that shows useful (to me) commands. What I'm looking for are the commands that print out lines 5-10 or lines 30-70. The closest …

Software Development
Member Avatar for jim mcnamara
0
176
Member Avatar for vicky_dev

I came across this problem in one of my test papers. It says : Write a program that deletes itself( the exe file ) when run. Here's my first attempt and it didn't work, so I added the error-checking code. [code] /* This program tries to delete itself */ #include …

Software Development c
Member Avatar for WolfPack
0
221
Member Avatar for bluegoo06

Im trying to do a population vector assignment. I tried to comment my word so you know waht is going on . I am having trouble putting coefficents into a two dimensional vector array. So if you could give me hints on that it would be great. The code only …

Software Development c++
Member Avatar for server_crash
0
132
Member Avatar for HyperEngineer

I'm trying to get the coordinates for the client section and the whole window. This is the code, but it gives me the same top, bottom, left and right for both the client and the window. The files are: T1NIU.h T1NIU.cpp T1NIUDlg.h T1NIUDlg.cpp This code is in the T1NIUDlg.cpp [code] …

Software Development c
Member Avatar for WolfPack
0
130
Member Avatar for raj_thota

Hi, I am Rajesh. I am totally new to shell scripting. I have to prepare a shell script which comapres two directory tree structures ( directory contents comparision is not necessary). for example, suppose I had installed a software system long back and now I want to upgrade that software …

Software Development shell-scripting
Member Avatar for jim mcnamara
0
420
Member Avatar for alex05

Write a script named killdup. The script sorts all the lines in a file supplied to it as the first argument, and removes duplicate lines. The script stores the resulting output in a file whose name is given by the second argument. I know how to sort it, but how …

Software Development shell-scripting unix
Member Avatar for jim mcnamara
0
334
Member Avatar for bucsoldier03

how do u write cin.get in c language and how to open and close files in c languauge

Software Development c++
Member Avatar for jim mcnamara
0
120
Member Avatar for kyakobi84

i have attached the exe file of the program that im trying to do it, & im facing many problems, can anyone do that & reply me :rolleyes: :cry: ??? 1) how i can put more than 100 countries in the first combobox??? 2) when i choose a country, how …

Software Development vb.net
Member Avatar for troupm
0
153
Member Avatar for juusan

I'm a college student in a C++ class. I'm writing a program, and I get the follow error: [I][taz3] 3:36pm ~/c++ > gcc stustats-sjs.cpp -o stustats-sjs.app stustats-sjs.cpp: In function `int main()': stustats-sjs.cpp:64: ANSI C++ forbids using pointer to a function in arithmetic stustats-sjs.cpp:65: ANSI C++ forbids using pointer to a …

Software Development c++ google ios
Member Avatar for juusan
0
230
Member Avatar for shanenin

I wrote a python script that checks for new media on my windows box, if it is new it copys it over to my standalone freevo jukebox. Below is a small part of the script that does the actually copying [code] source = "/mnt/samba/%s" %i destination = "/mnt/media/movies" print "copying …

Software Development python samba
Member Avatar for vegaseat
0
148
Member Avatar for peter_budo

I'm getting following compile error OrderedList.cc: In member function `std::string OrderedList::find(std::string&, std::string&, int&)': OrderedList.cc:133: error: invalid conversion from `int' to `const char*' OrderedList.cc:133: error: initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' OrderedList.cc looks like this [CODE]string OrderedList::find(string& …

Software Development c++
Member Avatar for SpS
0
182
Member Avatar for LordJayno

i'm trying to convert a string into an integer by using atoi() function. but it gives me an error: error C2664: 'atoi' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *' No user-defined-conversion operator available that can perform this conversion, or the operator cannot …

Software Development c
Member Avatar for LordJayno
0
113
Member Avatar for christyj5

I am trying to do an insertion sort that reads from a file it has it own class but i can not get the program to do anything it says no errors but crashes when i try to run [code]#include <string> using namespace std; class Student { public: string lastname; …

Software Development c++ file-stream
Member Avatar for jim mcnamara
0
253
Member Avatar for Dee_Dee

I have to write a program that will check each value in the array for a negative number then the program must either print "The array has no negative values" or "The array has at least one negative value". We have to use the funcion anynegatives(int a[], int arraysize) This …

Software Development c++
Member Avatar for SpS
0
267
Member Avatar for Hisham4FCI

hello all it is my first time here to post :cheesy: well i hope i'm welcomed here my problem is i want to read binary file and view it on the console two times [CODE] #include<iostream> #include<fstream> using namespace std; class Student { private: char name[20]; char address[80]; int age; …

Software Development c++ first-post ios
Member Avatar for Lerner
0
205

The End.