132,726 Archived Topics
Remove Filter ![]() | |
Hi, to all, I'm having the following problem: I'm trying to convert a CString to long(or number), but the number that is in the Cstring is too big and I loose data of the number. I was thinking in using instead of long use the variable ULONGLONG, but the problem … Software Development c | |
Hello: I am seeking a few tips in regards to debugging: I have been using [B]Visual C++ 2005 Express Edition[/B] for the last few months but am not very comfortable with its debugging platform. I simply wish to step through a section of the program via breakpoints and view variable … Software Development c++ | |
Hi, I need to write a counter code to count the number of spikes in the TTL logic input signal... What should I take as an input... Can i write it normally by putting the count in an infinite loop like while(1) // increment count exit(1) something like this... or … Software Development c++ | |
i'm trying to write a program that takes two numbers from the user prints out the sequence between the 2 numbers and then outputs wthe longest sequence for example if the user inputed 8 and 10 it should out put 8 4 2 1 9 28 14 7 22 11 … Software Development c++ | |
Hi, I am a newcomer to Visual Studio 2005 and am having trouble making a timer which will work out the time it takes to download a file. The file is 45 kb and the user can change the speed with a scrollbar, which is called hsbSpeed, from 1 – … Software Development vb.net visual-studio | |
[COLOR=#000000]I want to writ a java that would read from a file called memory.txt a list of partition sizes of K’s, one partition per line. It will then read from a file called processes.txt a list of processes requesting these partitions. Each line simple contain a list of sizes in … | |
![]() | Another program. This one has you guess 5 letters and then gives you the word you're trying to guess as masked by -'s and has the letters you've guessed filled in. Ex: Say the word is "computer." If you guess "r," "s," "e," "a," and "m." It would say: [CODE] … Software Development python |
I'm having trouble parsing a line with sscanf. My line is: 1941 How Green Was My Valley; John Ford and I want to separate it into a number, string, and another string. I tried: [CODE] if ( sscanf( buffer, "%d %41[^;] %51s", &pMovie->year, &pMovie->title, &pMovie->director ) == 3 )[/CODE] But … Software Development c | |
The [] operator must be a non-static member function. I have been able to write a class and overload the [] operator. But in my weird case, I would like to have an array of elements:[CODE]MyClass elements[6];[/CODE]But I don't actually want element access[CODE]element[2][/CODE]to use regular pointer arithmetic; rather I'd like … Software Development c++ | |
Just Started learning Visual Studio and C#. I am at the point in the book where it discusses the use of objects. This is a really confusing subject. What I want to understand is after you've used a class to create multiple objects, how do you make sure that you … Software Development visual-studio | |
Hello: I am having a bit of problem with logic in a segment (marked in [B][COLOR="Blue"]blue[/COLOR][/B]) of this code: the indicated code should simply update the variable upon each pass of the function as it runs; the variable value maxes out at 456-- it will not increase by 228 beyond … Software Development c++ | |
How can i make the windows application always on top of every application, including those which are in full screen? Thanks for any replies. Software Development vb.net | |
hi, sorry if this is a stupid question, i am a total newbie:) i want to dynamically allocate an object to a pointer and i write: [code=c++] class_test *ptr = new class_test(); [/code] [code=c++] class_test *ptr = new class_test; [/code] both of them compile:confused:....are they the same thing{meaning that the … Software Development c++ | |
Hi, i would like to separate the declaration of a class from the definition. i know about the [code] void aclass::a_method(){ ..... } [/code] but i dont know anything about what should be written in the header file, and how can i use it through main....:confused: sorry if am not … Software Development c++ | |
Hello all, I am writing a Breakout type game in C++ and I've come across a problem. I've drawn the bricks, bat, and a ball to the screen as well as programmed the movement of the bat and ball, however, collision detection is kicking my butt. I've looked up sample … Software Development c++ | |
Hi! I am Mahanta, a final student of communication enginerring. I'm recently doing a project regarding modulation algorithms by using matlab version 6.5. I'v built up a simple NRZI encoding algorithm2 convert the binary inputs into analog signal. Ayw, when i come2 the effort adding bit stuffing in this NRZI, … Software Development | |
I have the following script of a dialog box: [code] #include "Resources.h" IDD_MAIN DIALOGEX 0,0,500,300 FONT 8,"Tahoma",400,0 STYLE WS_CAPTION|WS_VISIBLE|WS_SYSMENU|WS_GROUP|DS_CENTER EXSTYLE WS_EX_APPWINDOW BEGIN // controls END [/code] [code] ... hDlgMain = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_MAIN), hWndMain, MainDlgProc, (LPARAM)&MyData); ... [/code] The dialog box itself works great, the problem is that it's not propely … Software Development c++ | |
[COLOR=#808080]Hi, [/COLOR] [COLOR=#808080]I’ve written a Windows application in Visual Studio .NET using C++. The main window of my application is a dialog window. I need to display a Save File Dialog window when one of the buttons on my main window is clicked. But my main window is a dialog … Software Development c++ visual-studio | |
I need to check what hardware is installed in the computer using C++. Especially I need to check what graphic card, CPU and HDD is present in the machine of user of my program. Thanks in advance Edek Software Development c++ | |
Hi, I'm working on a simple program to take orders for a company, and I'm using a JTable to display a list of products, very simple - only a few columns and all non-editable text at the moment. I am adding items to a JTable during runtime and I've run … Software Development java | |
I get the result I want in a Datagrid by using Recordset Sql: Select * from MYQUERY Where (name Like 'WHATEVER*') I change the name by retyping the whole line, substituting the new name, typed into a long textBox named txt.Select, like this Private Sub cmdSelect_Click() Data1.RecordSource = txtSelect.Text Data1.Refresh … Software Development visual-basic | |
Hi guys!!! This is my first post on daniweb & i hope i find a solution to my problem.I am developing a software that makes extensive use of Matrices.i have used dynamic memory allocation for matrices.Now this program makes lots of iterations.It works upto certain iterations say 56 after which … Software Development c first-post | |
Does anyone know if this is possible, and if so, how to do it? I want to open a child form within an MDI parent. If I close that form, then open it again, it's position is offset (as if cascading). Is there some way to preset (or reset) the … Software Development | |
HELP! I am trying to write a database app with three tables. I have figured out how to connect to my database with oledbconnect. From there I am confused as to how to get a select command to work. I have found plenty of info on selecting data from one … | |
Hi, I am working with Win32 programming in C language.. I am using Dev C++ compiler 5.0 .. I had created the tab control in the form with the following coding. [COLOR="Red"]g_hwndTabCntrl = CreateWindowEx(0, //more or 'extended' styles WC_TABCONTROL, //the 'class' of window to create NULL, //the window title WS_CHILD|WS_VISIBLE| … | |
please can anyone help me. i have the hangman project in vb.net but i don't know from where to start ( talking about the form itself) i don't know how to design it. please help:sad: Software Development vb.net | |
![]() | So, I'm trying to make a program that works with Newton's method. I want the program to take in two formulas and a guess and then follow this pattern. This is the pseudocode/python (I kinda did both): [code] [B]def[/B] newtonIterationFunction(x) [B]return[/B] x - (function1) / (function2) get function1 get function2 … Software Development python ![]() |
Hi all. I'm currently using Visual C# 2005 Express, and to my horror realized that it doesn't support Setup & Deployment Projects, it only caters for ClickOnce Publisher. :sad: And I can't get that working, I recieve the one minfest file error after the other. Do any of you know … Software Development | |
Hi, im very new to programming. I was just wondering if anyone can help me code a simple program that opens up a few instances of internet explorer when i type a certain symbol (of a stock) in to a text box For example, if the symbol of a stock … Software Development asp visual-studio | |
Hey all. Anyone know prolog language? My dillema is: [code]A teacher is on playground duty encounters a problem with a bully, a hungry nerd and an apple and he must escort these three to the office. The teacher, by school rules, can only escort one at a time to the … Software Development apple | |
I have a C++ program that reads from an infile, determines by a char if the line should be Deleted or Added. From there the program uses pointers to insert data into a sorted list. The issue I am having is printing the data out properly If you notice, I … Software Development c++ first-post linked-list | |
Hi everyone. Would really just like someone to take a look at what ive done and tell me how many horrible faux-pas ive made :-) I'm trying to teach myself the language as im going along which is making it hard to conform to any standards. I know there are … Software Development engineering os-x perl python | |
From what I can gather, it [I]appears[/I] that you cannot access Excel from VB.NET without having Visual Studio 2005 Tools for Office (and a healthy extra sum of money)! Is this really true? There's got to be a way, seeing as you can do it in VB6 without anything extra. … Software Development vb.net visual-studio | |
I am trying to seperate the code below into one sub routine and one function. Specifically a boolean function that does the number check. I am still learning how to use sub procedures and functions and am not sure where to do the seperation. Any advice would be helpful. I've … Software Development vb.net ![]() | |
if i write something like this it works: [code=c++] Person array_persons[10]; int age=0; for(int i=0; i<10; i++) { cout<<"give age : "<<i<<endl; cin>>age; array_persons[i].setAge(age); } [/code] but when i try to do it with pointers: [code=c++] Person *array_persons[10]; int age=0; for(int i=0; i<10; i++) { cout<<"- give age : "<<i<<endl; … Software Development c++ | |
Hey guys. Ive been having problems with something. Im trying to load a picture and put random dots on a square part of that image. Right now I got it to put dots on the whole image but I cant seem to get it to just a certain section of … Software Development | |
I have a question and I was hoping someone could point me in the right direction. I know the IP address of a server I want to download a file from, and I know the path on the client hard disk I want to download it to. How could I … Software Development c++ client-server http-protocol | |
What is the difference between abstract class and interface? Software Development java | |
hey guys heres a pop machine program ive been working on and i juss cant seem to understand why im gettin errors especially some of the semi colon errors any help would be much appreciated ty in advance [code] [COLOR=#008000]//File: Assignment 3[/COLOR] [COLOR=#008000]//Programmer: Ravi Mandair CPSC 1103 S. 10[/COLOR] [COLOR=#008000]//Purpose: … Software Development c++ | |
I am a new learner to the Dao database operation through MFC access.For now I am trying to write a program, saving two values in two edit boxes to a column of MS Access 2000 table. There are not many samples available. Could any one write little sample codes or … Software Development c++ | |
like .... CString name[5]; for(int i=0;i<5;i++) name[i]="Jack"; .... is this the right way? Software Development c | |
[COLOR=#000000]Hello Everybody![/COLOR] [COLOR=#000000]I would like to tokenize the text file and save the token into the array.[/COLOR] [COLOR=#000000]I will tokenize a sentence if it starts with “[(“ and consider the sentence ends when it meets “)]”[/COLOR] [COLOR=#000000]For example, if a text file contains[/COLOR] [COLOR=#000000][(I love[/COLOR] [COLOR=#000000]Rose)][/COLOR] [COLOR=#000000]Please help me[/COLOR] [COLOR=#000000][(Thanks … Software Development java java-swing | |
i m student .i m doing my final project. i really found this forum to be very useful for me. my project is related to screen capturing i want to create a file with .swf extension from images in a directory and a wav file. simply u can say that … Software Development audio file-system visual-basic | |
How do I shift my arrays .. starting at a position in the middle of the arrays .. to one place to the right? I tried using a for loop, but it doesn't work. [B]Here is my task:[/B] int insert(string a[], int n, string s, int pos, int max); Insert … Software Development c | |
Background: Minimal experience with Perl and none with Expect. We have 1,000's of users. 150+ Unix servers (Primarily AIX, some Solaris, and a couple of HP-UX). NIS is not an option and neither is purchasing a commercial product. The team (40 staff) has to maintain our own ID's across all … Software Development client-server perl unix | |
I have come to point in my program where I have decided a static variable would be the best option. I am not very familiar with static variable use and have never implemented them often. The area of concern is highlighted in [COLOR=Red]red[/COLOR]: I am simply using a time function: … Software Development c++ user-interface | |
I am having trouble, i am trying to make a program read in 3 points and calculate the 3 things listed in the program, but i cant seem to get the sideA-C to get calculated out without overloading the sqrt function. The functions given above main have to be used … Software Development c++ |
The End.