43,549 Solved Topics
Remove Filter ![]() | |
Hello, This is a general question, so, I don't think code is necessary. I have a basic question about buttons in Win32 API... (Solution in MFC is also OK!). I was doing some experiments in push buttons, using MFC... I can enable/disable a button as I wish, but, there is … | |
I realize that there is another thread about this topic, where bitshifts are used, but I do not understand why my code is not working: #include <iostream> #include <bitset> using namespace std; int main() { bitset<5> b; int temp=0; for(int count=0; count<=10; count++) { temp=count; for(int check=4; check>=0; check--) { … Software Development c++ | |
hi, I am trying to do some aombination study. I have saw some codes on permutations and combinations. But for all those programs input is a single list. I am trying to make combination from 4 lists. I have input 4 lists. Now I want to generate several combination lists. … Software Development python | |
if anyone can check out my program below and see whats wrong, itd be greatly appreciated. my goal: user input a text file (i.e. data.txt) to open and read print the mssg within file to both console and text file (i.e. secret.txt) print the mssg as scrambled message (ASCII) my … | |
Hi everyone I am writing this program that takes a string and search it for words. Those words are taken and they get "<" at the beginning and ">" at the end of the word. then it prints the string with the words and the "<, >" characters. Here is … Software Development python | |
i have to create a program that calculates how many weeks it will take to become a millionaire given an allowance of pennies. for example... 1st week - 1 cent 2nd week - 2 cents 3rd week - 4 cents 4th week - 8 cents 5th week - 16 cents … Software Development c++ | |
I need some help with a code I'm working on. The code starts off by creating a class for types of cars. Once that's done, I have it construct a list of predetermined vehicles (all made from the aforementioned class), and then I ask for user input, to see if … Software Development python | |
Hey everybody. I have a question on how to break out of a java loop. Here is a break down of what I am doing. I have 3 arrays "chrs" and "value" and "NumTimes"; "chrs" is an array of characters that has been read in from an input file. Value … Software Development java | |
Ok i have this code to retreive data from a Table "Calendar" and the feild within the table are Id,Day ,Month and Year. When i press the button to run this code and i get the error message "The parameterized query '(@Day varchar(8000),@Month varchar(8000),@Year varchar(8000))Sel' expects the parameter '@Day', which … | |
Hello, this is Metalcrunch. I've been learning C++ over the past days and I thought I'd make a calculator. So I looked over the existing code on the internet on how to make a calculator, understood it, then made my own from the very scratch. However, I'm having a few … Software Development c c# c++ visual-studio | |
Hi, here is my problem: I have created panel and put picBox in it. AutoScroll for panel is on, so the scrollbars are there. When scrollbars come to the limit, pictureBox is fitted with new image. Image is loaded correctly, but scrollbars rest in last position, i.e. they don't come … Software Development | |
Hello, I'm a little bit new to Java and I use NetBeans 6.5.1. I just try to make a window 'by code, manual' (not drag and drop, not visually). This is my code (first I only want and empty window): [code] package javaapplication5; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; import … Software Development java java-netbeans java-swing | |
Hello, I am trying to format a string in C# but am having trouble trying to set the width. Is there a way to use a variable int as the width instead of having to declare a static width? here is my code now... [code=c#] for (int i = 0; … Software Development | |
I have a project that I made with VS 2008, and I need it to use the 2.0 Framework and not the 3.5 Framework because they company hasn't moved to a newer Framework yet. I already have a setup project with it, I just need to know how to roll … Software Development | |
SORRY I THINK I ADDED THIS TO SOMEONE ESLE THREAD B4 Ok so i have a file which i read in ... then i read the data line by line and create lists basically i needed to organsise(sort the data, in numerical order which i can do no problem and … Software Development python | |
Hi all.. I would like to convert a hex to CString format.. I had try like below I shown, but failed to convert into CString format that I wish to.. Here is the example I tried.. CString sz; unsigned short test = 0xB0FF0000; sz.Format("%X", test); then I got sz = … Software Development c++ | |
I am using C# 2005 to create a Windows application. I have a MDIForm (frmMainMenu) which contains a Menustrip and a TabControl. My ChildForm is frmPurchaseEntry. When the user clicks on a particular Menu option a new TabPage is created and the child form is displayed within the TabPage. I … Software Development | |
i want to see all the installed font name using for each loop.i have written a code but it say object required.and it break at bold line. kindly let me know any idiea? [code=vb] Private Sub Form_Load() Dim f As Font B]For Each f In Fonts[/B] MsgBox f.Name Next [/code] Software Development visual-basic | |
Hi guys , i want to fill a textbox with a data from my mysql database and i dont know how to do it , i already searched without a result , if someone can help me i would appreciate it . | |
i am in beg c++ and my instructor is asking me to find "some other combination that also does not work! Your loop should prove something similar for values other than 10 cycles, steps of 0.1, and a sum of 1." i found 1 combination, which is in my program … Software Development c++ | |
hi people i really need help in this. i have a c# win form which helps me in taking database from access, putting it into an array and counting the word based on user search. Each form will contain different number of words that the user search so anyone know … Software Development | |
I think that I understand the concept fairly well, but I appear to be having some issues with syntax perhaps. I have 2 classes. My main class and BubbleSort.java. In my main class I receive values from the user and store them in "int array[]". The values appear to have … Software Development java | |
[code=c#]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SQLite; namespace PlayingWithSQLite1 { abstract class Database { #region Member Variables string PATH = String.Format("{0}\\Database\\", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); string FILENAME = "test.s3db"; #endregion public string File { get { return string.Format("{0}\\{1}", PATH, FILENAME); } } public static void CreateDatabaseFile() { SQLiteConnection.CreateFile(File); } } … Software Development sqlite visual-studio | |
Hey guys, This questions is more about organization of python modules than the actual construction therein. In my project, we have several scientists performing similar analysis on several different data sets. For each project, the science changes, but the analysis often requires almost identical data handling. For example, one project … Software Development data-science python | |
Is it good Idea for Newbie in Java like me(Python guy) to begine with 3rd Edition of thinking in Java by Bruce Eckel? The reason is, it is free downloadable. If no any suggestion? Software Development java | |
I have a SQLite database added to my project in the solution explorer, named testdb.s3db. What I want to do is reference it in my code without having to fully qualify the path. Currently my code is [icode]SQLiteConnection connection = new SQLiteConnection("Data Source=C:\\Users\\Chris\\Documents\\Visual Studio 2008\\Projects\\ConsoleApplication3\\ConsoleApplication3\\testdb.s3db");[/icode] Can I do this somehow … Software Development sqlite visual-studio | |
Im trying to write a program to print all the primes from 1 to 100. I am however required to use a boolean function. My problem is that all the odd #s except 1 also appear in the output. [code] #include "stdafx.h" #include <stdio.h> #include "strlib.h" #include "genlib.h" #include "random.h" … Software Development c | |
Alright, I'm down to the nitty gritty absolute end of a fully functional hangman game. There is just one part where I am absolutely stuck. When you get a wrong guess, the game successfully draws the gallows. I have no issues with wrong guesses. It's the right guesses that has … Software Development c++ | |
ITS ALL THE WAY AT THE BOTTOM OF MY IMPLEMENTATION FILE. MAIN [code] #include <iostream> #include <fstream> #include "line_test.h" using namespace std; int main() { //open up file to be read string input; ifstream in; cout<<"enter file name which needs to be opened\n"; cin>>input; in.open(input.c_str()); while(!in) { in.close(); cout<<"the input … Software Development c++ | |
Hi guys, I am in great trouble. I want a c++ project within 1 week!!!! But my teacher wants the topic name tomorrow ! pls help me give me some project ideas project should be simple&is in c++ language graphics are not allowed it can be management projects:sad: Software Development c++ | |
![]() | I am working on an assignment that basically requires a class INT that operates similar to the int standard class... Below is my code. All seems to be working, with the exception of handling this line: INT x,y = 6; should assign 6 to x and y. Assigns only to … Software Development c++ ![]() |
Hello, I'm still fairly new at shell scripting, can someone please show me how I would go about accomplishing a script to tackle these tasks? I've got a server setup. I want to find duplicate files that are taking up all the space on the hard drive. I want to … Software Development hard-drive shell-scripting | |
how to reorder columns in listview? Thanks Software Development listview | |
So on my last post, I asked about how to make C++ codes to work. This time I want to ask. How should I get started? Where should I get started to learn C++. Or what should I learn before I learn C++? Everything please XD. Oh and, I'm 12 … Software Development c++ operating-system ![]() | |
hi all, i've written a program, n almost works, it just gives me this errors and dont know how to solve them :$ thanks for the help in advanced :D [code=cplusplus] 1>Compiling... 1>VersionFinalTpProg1.cpp 1>e:\esba\2cuat\programacion1\tpfinalaentregar\versionfinaltpprog1\versionfinaltpprog1\versionfinaltpprog1.cpp(199) : error C2676: binary '[' : 'art' does not define this operator or a conversion to … Software Development c++ | |
this is the code for tje fading effect of a form.. can anyone explain this code to me.. i really wanna learn this thing.. or do you have any site or ebooks to read related to my problem?? I dont know what book should I read. Is this all about … Software Development api visual-basic windows-api | |
Hi My program is rather simple, or I thought it would be rather simple :P My program reads a text file & saves each line of text into an array called buffer. [B]The problem is[/B]; each line of text is not in a separate array, the whole text file is … Software Development c++ ![]() | |
hi, i'm using VS2008 and used the database wizard to make sure my database table and dataset datatable match. I used following code to transfer data from my windows form to my dataset then database. I keep getting an error saying "Invalid Object name 'Housing'" and I cant find the … Software Development dataset open-source vb.net | |
Is there a better than what I have done below to get an integer from the console? I tried to write this so if the user enters anything 0 or less, or non-integer, the prompt keeps asking until it gets an integer. Is there a different or better what than … Software Development | |
why do i get undefined reference to error in my main with regards to isvalidname. It says undefined reference to... in my isvalidname i check if they enter in first name, char ws and then last name. Then i want to print out everything that i have deleted on that … Software Development c++ file-system | |
Hello, Im programming an image reader and I need to print out a histogram that shows how many times a given pixel value is present in a image - actually it doesn't have to be the graph, just a table with two columns would be enough i have written a … Software Development c++ | |
I started this macro that does the following in MASM, 1. takes the user input for character entered 2. copies character from AL to _char variable 3. converts to ascii value and outputs to console I was able to do the first 2 having issues with the conversion process. Here … Software Development assembly | |
[CODE] private void Record_Click(object sender, EventArgs e) { string[] eventsName = getSelectedEvents(); string[] controlName = getSelectedControls(); for (int i = 0; i < controlName.Length; i++) { Control ctrl = controls[controlName[i]]; foreach (EventInfo eventCtrl in ctrlEvents) { foreach (string eventName in eventsName) { if (eventCtrl.Name == eventName) { Type tDelegate = … Software Development | |
I'm practing with Akrip32.dll for a time now and I can get the DLL version as DWORD. The Version is divided as HIWORD and LOWORD Can anyone help me interpret these Buzzwords? I have no Idea of what they are Software Development c++ | |
I have read a lot of examples on 32-bit division and I have seen a lot of, mov edx, hiword ;load edx with hi word of dividend mov eax, loword ;load eax with lo word of dividend mov ebx, divisor ;load ebx with divisor div ebx ;quotient goes into eax, … Software Development assembly | |
Hi All, I Think I am close. I am trying to write a small user function that gives "roundCalc" to the main as a rounded number UP to the nearest 1000. (If 1011 should round up to 2000). I have "calcTotStat" reading in, and I thought I had it right, … Software Development c++ | |
Hi Guys: I am making my own program but lost the updated code from my latest version. I just have the executable. I try to use reflector to recoup it, but unfortunatelly I do not know why it doesnt create the code/design/resources normal files to be used. Can anyone help … | |
I am having a problem with my loop not function right and I think I have narrowed the problem down to the MACRO I made for reading in integers the ECX register isn't obtaining a value and stays at 0 while EAX get the value of 1, so when I … Software Development assembly | |
Hi I want to write program , part of this program show to me form , this form has multiple picture Box and when I click on picture Box ,the program will show small form that it show information by label this form takes information from Dinamic array(the user determine … Software Development vb.net | |
Hi All, I'm having trouble with my code. When I compile I get Undefined reference to class::method where by class and method are my class and method. I get my methods from akrip32.dll I,m at work so I have no source files, but I will attach them later when I … Software Development c++ |
The End.