132,726 Archived Topics
Remove Filter ![]() | |
i am currently learning VC++ with MFC. But i am quite confused now. My dilemma is whether to use structures (which i guess are used extensively at Win32 API level) or their equivalent MFC objects. let me elaborate it. For example i want an array of points to use it … | |
I wrote a function that compares the characters of two strings recursively. If the characters of the strings are all equal the function returns 0. If the character from string1 is smaller ie-"a" to "l" it returns the negative difference of their ASCII vaules. If the character from string2 is … Software Development c++ | |
Hey everyone I am interested in learning Pygame as a GUI that is suited to making games and i was wondering if it was worth it? My question is, is it good for anything else than games or animations? | |
[B]Is pascal vulnarable to heap overflow vulnarability?I think pascal doesn't any have problem with stack overflow attack.is it true in heap overflow attack too?does pascal any problem with heap overflow attack? Thanks.[/B] Software Development pascal | |
Hello all, I have one shell script that takes the filename for processing as an argument. for eg. ./BulkEdit.sh SampleFile.xls. In the script it reads the filename from "$1" and does the processing of that particular file read from command line. If i have space character in the file name, … Software Development file-system shell-scripting | |
[B]hi im a newbie here,,, and i am having a hard time to display an icons in my chat program in vb6,,, does any body knows how to do it,,????[/B] Software Development visual-basic | |
I'm trying to send an char array through a function convert it to an int array and send it back so I can reuse it with another function. I'm just having the worst time with this matter, please help! Software Development c | |
This a program i write for practice. The problem I'm facing is inside the while statement. Is it okay to divide, in this case, the miles(which is inside the the while) with gall(outside the while). I tried to compile it and the answer given was 0.00000 P/S. This program is … Software Development c | |
im having trouble and cant find whats wrong... plz help [CODE]#include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" int main() { int i, high; string answer; printf("Think of a number in the range of 1-"); high = GetInteger(); printf("and I'll guess it:\nPlease use Y and N.\n"); answer = "No"; printf("Is … Software Development c | |
Hi I have this application idea for a java program as my final year project and was wondering if it was feasible. It invloves generating id tags for audio tracks. However instead of the data being based on existing data and filling in the missing info, The application will analayse … | |
i am a beginner in MFC programming and using MS VC++ 6.0. I am trying to create my own window using AfxRegisterWndClass(). My code is as follows : [CODE]Frame::Frame() { LPCTSTR className; HBRUSH brush; brush = (HBRUSH) ::GetStockObject (BLACK_BRUSH); className = ::AfxRegisterWndClass (WS_OVERLAPPEDWINDOW, AfxGetApp()->LoadStandardCursor (IDC_CROSS), brush, AfxGetApp()->LoadStandardIcon (IDI_ERROR)); Create (className, … Software Development c++ | |
hi; i need to count d number of occurrences of all the chars in a file. i can't figure out how to count how many of each char there are. this wat i have up to now. i need the to print only the ASCII code from 0-127 [code=cplusplus] #include … Software Development c++ | |
| |
Can anyone help me make an inventory program in c++??,.My task is to create an inventory program that reads from a file and then allows the user to manipulate the data and overwrite the file. I'm a total beginner when it comes to c++ so please use simple codes! Software Development c++ | |
I have tried to come up with a 2-D (4 rows and 4 columns) array which holds values from 0 to 15, with none of the values used more than once. I'm posting only the code snippet. please lemme know if the logic is correct. [CODE=C] int HIGH=16; /*(Max value … Software Development c | |
i was busily typing away one day for my text game when i decided that i wanted to test it so i tried to run it and it came up highlighting the first print in the section below can someone please help me? [CODE=python]choice = raw_input("Look around or go back … Software Development python | |
Hi, I've been programming a lot of c code, and now I'm trying to set my mind into the c++ way of doing things. so I'm trying to avoid pointers, and use refs instead. As far as I understand pointers are to be avoided using stl's for instance. I have … Software Development c++ programming-construct | |
Hi guys and gals I wrote someting like this: [CODE]s1=s2=0 p=[] for x in range(200,250,1): for d in range(2,x): if x%d==0: s1=s1+x/d for d in range(2,s1+1,1): if (s1+1)%d==0: s2=s2+(s1+1)/d if (s2+1)==x: p1.append((x,s2+1)) print p[/CODE] but when i interpret\compile it,it prints an empty list thanks in advance Software Development python | |
Hi friends, I am using travelmgmt.exe file of visual basic project on LAN. In project i can add record,edit,search and delete record. I want make my project multiuser but when i use travelmgmt.exe file on LAN it shows message [B]File already in use [/B] Please tell me the way of … Software Development open-source visual-basic | |
hi... ive connected my VB to my data base with the following code.... [code=visualbasic] Private Sub Form_Load() Set CN = New ADODB.Connection cString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Desktop\DATABASE FINAL\Passport Requirements.mdb" With CN .ConnectionString = cString .CommandTimeout = 20 .CursorLocation = adUseClient .Open End With nw... i want to connect every … Software Development open-source visual-basic | |
I don't know how many C++ coders might be out there, but I've been trying to get this question answered about multiple inheritance. Say I have a class called B that inherits from A: A -> B Now, I create a class called C that, perhaps due to programmer unfamiliarity … Software Development c++ | |
Hai friends, I don't know how to write a coding in bean.? As well as how to compile and run Bean coding Software Development java | |
Hey everyone, still learning c++ I had a question. How do I create an array that will hold strings of text. such as: ??? map[10]; map[1]= "text"; map[2] = "text2"; map[10] = "text3"; cout<< map[1] "\n"; help would be great ink Software Development c++ | |
Hi, I recently was trying to learn how to write DLLs and was doing ok until I ran across this interesting problem. It seems that the function is not receiving the last argument. Here is my code for the dll [code]#include "stdafx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID … Software Development c++ visual-studio | |
Hi, I am writing a network applications to read data from a server. The problem I have encountered is that on abrupt termination of my program, the socket rtemains open so that the next time I execute the program it will return an "Inavlid operation in actual state" error 40020. … Software Development api visual-basic | |
I'm having problems with my do/while loop. It does not take the condition and simply continues the loop indefinitely. I have: [code=c] do { printf("Choose the base of the number to convert:\n\n"); printf("2 5 8 10 16\n\n"); printf("Enter option:"); scanf("%d", &baseFrom); system("cls"); if(baseFrom != 2 || baseFrom !=5 || baseFrom … Software Development c | |
Hi friends, I am new to JAVA but i know c/c++ very well. I want to learn java so please help me from where i can start it and which book i should refer. Software Development java | |
I have an input file that has call to function and arguments that are passed to that function. There might be one argument or two. A simple while loop for input will not work ex-while(inputf >> function >> arg1 >> arg2) because if a function has only one argument then … Software Development c++ | |
Hello everyone. Like so many others, I am new to programming. I am taking a course on Programming in C, and have hit a number of speed bumps. The assignment I am currently stumped on is: Let [I]arr[/I] be an array of 20 integers. Write a program that first fills … Software Development c | |
Ok I'm making a program in PyQt and when I call [code=Python]os.path.join("~/", "otherdirectory")[/code] It gives me: [code=Python]File '/usr/lib/python2.5/posixpath.py', Line 62, in join: elif path == ' ' or path.endswith('/'): Attribute Error: endswith [/code] I don't know what is causing this. :S Any help would be appreciated! Software Development python | |
Hello everyone! I've started a project on SF.net to create a small yet modern IRC client (µIRChat or simply µIRC). However, there one thing that I really can't decide before I start, and that is the language to use. My idea came from µTorrent, which is, as far as I … | |
[URL="http://www.daniweb.com/forums/post303743-1.html"]Q.Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. ( suggested by Aniseed ) (Intermediate) [/URL] [code=C++] #include<iostream.h> #include<conio.h> #include<math.h> int prime(int); void main() { int i,j,c1,c2,num,f1,f2; clrscr(); cout<<"Enter the number-"; cin>>num; for(i=2,j=num-2;i<=num/2;i++,j--) { f1=prime(i); if(f1) { f2=prime(j); … Software Development c++ | |
guys, what do you think is the best compiler for beginners in C++? actually we are asked to make a game in C++. we are now using Dev C++, but we can't find a graphics library in it. thanks. | |
Hi all. I've done some bit of programming in the past, mostly in python and some C aswell. (I can still remember that "C for dummies book" hehe). I'm trying to get started with some anticheat software, of course I'll start with some easy methods first before trying anything more … Software Development c++ client-server python | |
Hello everyone, I am trying to devise a Binary Tree Representation of a Postfix Expression. I am sure I am in the right track, but there's just something wrong in my code which I cannot find. I am just wondering if you guys can spot where I made my mistake. … Software Development c | |
im a newbie in c# well, our professor asked us to: Write a program in c# to print a triangle composed of a symbol. The number of of lines in the triangle and the symbol should be entered as an input from a user. Example: [CODE]Enter the number of lines: … Software Development | |
hello friends can u tell me how to find greatest of three nos using bitwise operators? Software Development c | |
okay, so i gotta make a good enough hash function that should be able to make me a key for out of two integers ( -1000000 <= x, y <= 1000000 ), and should work...well atleast 80% of the time so i could store these in an one-dimensional array... i've … Software Development c++ | |
Hey I'm having a problem with an attribute error that i was wondering how to fix the code I have is [CODE] import pygame pygame.init() #---------------------------------------------------------------------------------------------------------------------------------------------# """ This is the small box which the players will be able to stand on""" class Ground(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.image = pygame.Surface((768, 18)) … Software Development python | |
I'm just writing a reading for the time a binary file where I stored records of my objects. It seems woorks very well. Now I'm working for random access at position "X": [code] ifstream myFile(fileName,ios::in); myFile.seekg( (X*sizeof( object )) , ios::beg); [/code] Should be ok. Before I start to write … | |
I was writing a text adventure in python and i ran into a "NameError: name 'military' is not defined" error and i need help, heres the code this is the part with the prob: [code=python] choice = raw_input("Pick your civ:") if choice == military: [/code] thnx for your time -- … Software Development python | |
my program is suppose to count d number of occurrences of a chars in a file. i just dont know how to store d occurences. this is wat i have done up to now. [code=csharp] #include <iostream> #include <fstream> using namespace std; ifstream fin; void charactercount(int& w, char& s ); … Software Development c++ | |
Hi guys Im pretty new to java after programming with python for about a year i thought i'd give it a go. I did have a quick question though. How would i check for membership in a string. For example [code=java] String str1="Hello world"; String str2 = "world"; [/code] Is … | |
I m getting error msg "[B]report width is larger than paper width[/B]" when i want to display abt 40 fields on DataReport in VB. Is anybody have solution pls write me [email]hemant_apt@hotmail.com[/email] Software Development visual-basic | |
Hi friends, I want to make a movie player.I heard about JMF but not had any idea.If anyone knows, kindly help me. thanks, ram Software Development java | |
Can someone help me with this program.I had found that the output of this program should be the local time and display time and date and i dont know where my program gone wrong and display like this time is 03:29:30 date08/06/[COLOR="Red"]1[/COLOR]08 how to eliminate 1 from my program.it should … Software Development c | |
The recursive function is only reversing the first and last characters of a string. I've been trying for hours but cant find the error. Any help would be awesome. The code: [CODE] #include <iostream> #include <string> using namespace std; void str_reverse(char str[], int length) { char temp, temp1; int starti=0; … Software Development c++ | |
Does ne one knw how to create an uneditable text file ? plz tell me.....n also about check box in datagrid.... Software Development vb.net |
The End.