43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jemz

hello, can you help me..is it possible that i will change the default font of the messagebox?....can i make it bold or using any fon..please help me on this ...thanks in advance hoping for your positive responds.

Software Development visual-basic
Member Avatar for vb5prgrmr
0
89
Member Avatar for v_janssens

Hi, I'm trying to find a way to calculate the eigenvalues and eigenvectors for a square symmetrical matrix. I have used MATLAB to do this before and the solution was as simple as; [V,D] = eig(A) I'm wondering if there is a simple solution like this in c++. I am …

Software Development c++ matrix-multiplication
Member Avatar for DavidB
0
302
Member Avatar for vampgirl13

Hi Guys, So I'm trying to fix a small problem with my code. It does everything correctly but when reading from the file I want to not count the space between words. For instance if the line is Hello world the output should be: 11: Hello world but instead it …

Software Development java linked-list printer
Member Avatar for vampgirl13
0
109
Member Avatar for kartouss

Hello, I need to a browse button to be able to open an image in the image control and also be able to get the path for the image... Can anyone help...

Software Development visual-basic
Member Avatar for chrisjake
0
647
Member Avatar for hondros

Okay, so I have about 6 GB of music on my iPod. I don't want to go through and copy everysingle file and rename it manually, so I am making a python script to do it for me. I would just like to have some feedback on my code, make …

Software Development audio debian java-swing legal os-x python samba unix
Member Avatar for hondros
0
555
Member Avatar for OnTheRadio

My assignment is: Your goal is to write a program that sorts a list of 4-letter words using different sorting algorithms and report the fastest method. First your program should prompt the user to indicate the number of words to generate. Your program should then generate a list of random …

Software Development algorithm c++ dataset
Member Avatar for OnTheRadio
0
117
Member Avatar for iman_shani

Hej i am trying to create a simple game as homework from my school. now i just stuck on one stage. see the picture on this link how it looks like. [URL="http://jobbalert.se/"]http://jobbalert.se/[/URL] i have created a module here is the code for module file [CODE] Module Module1 Public Sub bknapper() …

Software Development vb.net
Member Avatar for iman_shani
0
326
Member Avatar for rockstar8577

For some reason i cant output to a file unless it was already created. Here's my code. [code] fstream myfile; myfile.open (filename.c_str(), ios_base::in); if (!myfile) { myfile.close(); myfile.open (filename.c_str(), ios::out); avatar.name = name; avatar.init(); myfile << "Name = " << avatar.name << endl; myfile << "hp = " << avatar.hp …

Software Development c++ ios
Member Avatar for rockstar8577
0
118
Member Avatar for Don_k

Hi guys here is what I aim to do : Create a program which 1. reads in a string of less than 25 characters from the user 2. prints out the string followed by its reverse i.e. if the user enters "hello", the program should print "helloolleh". I can do …

Software Development c
Member Avatar for abhimanipal
0
126
Member Avatar for AJW

hello all, I'm taking a C++ class at my local community college. A project that was assigned was to make a menu program. I am about 90% done (I think), when I ran into this issue: when making a selection, the program doesn't know how to handle decimal numbers. The …

Software Development c++ ios
Member Avatar for AJW
0
110
Member Avatar for Don_k

My aim is to create a program that: 1. reads in a string of less than 255 characters from the user into a variable called array1 2. copies array1 into a variable called array2, converting each element of array1 to UPPER CASE 3. prints out the contents of array2 I …

Software Development c
Member Avatar for Dave Sinkula
0
122
Member Avatar for blackblizzard

Hi everyone. I'm having trouble emitting a call to a delegate whose type is unfinished at the time of the emit. I'll elaborate: I'm trying to dynamically (i.e., with a [inlinecode]TypeBuilder[/inlinecode]) create the following class: [code=C#] public MyClass { // Delegate type. The 'firstArgument' will be 'this', i.e., this is …

Software Development
Member Avatar for blackblizzard
0
265
Member Avatar for daviddoria

I have some code that uses _finite (I think from float.h) that my linker complains is not declared. I think this might be a "windows only" function. Is there an equivalent function that I can call that will work cross platform? Thanks, Dave

Software Development c++
Member Avatar for daviddoria
0
217
Member Avatar for dieter22

Hi there! I'm new to c++ and I'm having problems with ifstream. I assume that my question is pretty stupid but here you go: I've got something like: [code=c] ifstream infile(inname); [/code] Furthermore I do have an array - let's call it Array - which contains several filenames I want …

Software Development c c# c++
Member Avatar for TerishD
0
388
Member Avatar for Begjinner

Hi, Sorry if this is asked before, but I'm having trouble figuring this out (tried already for a couple of hours). This is what is going on: Kids make a test with 50 question. These test are checked manually on paper and afterwards need to be put into a website. …

Software Development python
Member Avatar for Tech B
0
121
Member Avatar for Tech B

If you don't know what a quine is, it is a program or script that's only purpose or function is to print out its own source code. I was wondering would this be considered a quine? [CODE] f = open("quine.py","r"); print f.read() [/CODE] quine.py is the script that this code …

Software Development open-source python
Member Avatar for Tech B
0
175
Member Avatar for jemz

hello please help me on this problem....i put this in form load txtunit.text = "C" my problem is that how can i position the cursor after the letter C..if i use txtunit.setfocus the cursor can be found before the letter C but i want it after...please help me.. thanks in …

Software Development visual-basic
Member Avatar for Jx_Man
0
118
Member Avatar for logicalguy

Hi, I have a qsort problem I just can't solve. I've got an array of pointers to a structure called struct mys. The structure has an int value called id. I want to use qsort to sort this array of pointers to structure in ascending order by the id value …

Software Development c
Member Avatar for Dave Sinkula
0
5K
Member Avatar for persianprez

So for example, in the dictionary, the letter 'A' has a value of .8237 What I wan't to do is replace every letter with the value with .8237 to D in the string (not the dictionary) I've tried this without success and It's obvious why it wouldn't work: [CODE]if sorted(dictionary.values())>=.01: …

Software Development python
Member Avatar for Tech B
0
170
Member Avatar for dinilkarun

Can somebody help me with the code to read file names from a folder? curretnly i'm using the below code. Dim files() As String files = System.IO.Directory.GetFiles("c:\myfolder") this is not working please help me.

Software Development vb.net
Member Avatar for kvprajapati
0
116
Member Avatar for akssps011

I have written the following code for VB6 The application uses MS Access and used Microsoft Jet 4.0 OLEDM Provider [CODE] Private Sub cmdSubmit_Click() On Error GoTo Handler Eval_Env.Insert txtEvalCode.Text, txtEvalName.Text, txtEvalPhone.Text, 0 ClearControls Label4.Caption = "Data Submitted Successfully" Label4.Visible = True Handler: MsgBox "An error occurred" Label4.Visible = False …

Software Development microsoft-access visual-basic
Member Avatar for akssps011
0
100
Member Avatar for AWLWales

I use VB .NET 2002 (academic version) I have created an MS Access database to be populated with vaules extracted from dBase files. Some numerical values can be null - ie where no data was recorded in the dBase file. Relevant field properties in MS Access mdb table are set …

Software Development vb.net
Member Avatar for AWLWales
0
971
Member Avatar for manutm

Hi everybody, I'm looking for a way of getting a machine-specific string on windows, something like cpu or hard drive or bios serial #. It has to be implemented in c, not c++. I've already browsed the api quite a lot but I'm not sure (and I don't know windows …

Software Development api c hard-drive windows-api
Member Avatar for manutm
0
100
Member Avatar for komyg

Hi, I've created a Web Service application inside Jboss 4.2.2-GA and I want to set up the jboss log4j configuration so that my Web Service logs inside a custom log file (not inside the server.xml). To do this I've altered the jboss-log4j.xml file to create another appender. This file is …

Software Development apache java web-server xml
Member Avatar for komyg
0
205
Member Avatar for lloydi12345

Hi, i am having a problem on my program [CODE]Private Sub Command1_Click() If text1.Text = "" Then MsgBox ("You have no content on your 1st Textbox") Else End If . . . Bunch of codes that will result to an error if there is no value for text1.text[/CODE] When the …

Software Development visual-basic
Member Avatar for student02
0
94
Member Avatar for phoenix911

i got a site that is hosted by google, i have to write a program that creates/updates pages on the site... i got the google site API... but i have no idea where to go to.... so far my app logs in to the site, and access my documents, which …

Software Development api google google-api seo
Member Avatar for phoenix911
0
169
Member Avatar for Geodude0487

I'm trying to write an external log-in class for my Adv Java class in school. It's an online section and the teacher is very hard to reach thus why I'm asking for help here :). But my problem is right now I have my log-in form and I have it …

Software Development java java-swing
Member Avatar for Geodude0487
0
126
Member Avatar for Luks

In have been coding a small program to calculate the % body fat. But is giving the error C2064 as above. Any help will be appreciated guys! The error is here; [CODE] /Compute Body fat percentage for male if (gender == "Male"){ BFat = 495/(1.0324-.19077(log(abdomen-neck))+.15456(log(height)))-450; // THE ERROR IS HERE …

Software Development c++
Member Avatar for Luks
-2
221
Member Avatar for tnclark8012

Hey everyone, I'm having an issue with the simplest vector functions. I'm trying to add a Piece object to a vector, but it's data members are being changed when I do... am I missing something? [CODE] /* Piece.h */ #ifndef _PIECE_H #define _PIECE_H class Piece { public: Piece(); Piece(int r, …

Software Development c++
Member Avatar for tnclark8012
0
172
Member Avatar for SamTheDevGuru

Hi All, I have a dataGridView control ,which I attach with a data source,this datasource can change over the time. Now ,the problem is ,after assigning the data source ,I add one more static column and trying to add image to the cells [ I've used DataGridViewImageCell and DataGridViewImageColumn,the images …

Software Development
Member Avatar for SamTheDevGuru
0
133
Member Avatar for newharvar

hi,everybody I am study ctypes,and got a big trouble,I googled lots a pages but get no usefull info. i want to know how to get the interface from winxp by using ctypes, for example: I want to use ActiveDesktop 's interface by using ctypes,but i don't know how to do,can …

Software Development python
Member Avatar for Tech B
0
192
Member Avatar for gerard4143

Hi, I wrote this simple bash script(yeah simple now that its done) and it uses bc - 'The arbitrary precision calculator language' and tr - 'translate or delete characters'. Now the script works, it will take input values and convert them to the proper output values. Now my question is..is …

Software Development shell-scripting
Member Avatar for gerard4143
0
405
Member Avatar for BobC22

Hi, I am going to be attending university next year on a coding course, I am currently working through an exercise in the Deitel book How To Program and I have encountered some errors in my program. Any help would be much appreciated. Bob Here is my code cube.h [CODE]#include …

Software Development c++
Member Avatar for mrnutty
0
169
Member Avatar for salman.paracha

Please help.. I am trying to create an outlook script that will parse the subject line of emails coming from a particular source and organize them, by the ticket number present in the subject line. However, VB is sucking the life out of me on the error below I am …

Software Development visual-basic
Member Avatar for mahdouch5
0
731
Member Avatar for pato wlmc

[COLOR="Green"][B]Well, that's it, i'm trying to compile a dialog box:[/B][/COLOR] [CODE] case WM_COMMAND: switch(LOWORD(wParam)) { case ID_HELP_ABOUT: { int ret = DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, [COLOR="Red"]AboutDlgProc);[/COLOR] if(ret == IDOK){ MessageBox(hwnd, "Dialog exited with IDOK.", "Notice", MB_OK | MB_ICONINFORMATION); } else if(ret == IDCANCEL){ MessageBox(hwnd, "Dialog exited with IDCANCEL.", "Notice", MB_OK | …

Software Development c++
Member Avatar for mitrmkar
0
580
Member Avatar for qk00002

Hi, I am working on visual studio 2008 C++ and I have done the C++ general code, my question is can I convert my general code to be C++ CLR in visual studio 2008? This will make my work easier. And I have one more small question is I have …

Software Development c++ visual-studio
Member Avatar for jonsca
0
253
Member Avatar for scottb2

How can you create an Outlook (2007) Distribution List that contains all the Outlook Contact fields? The examples I find typically populate a DL with Recipients that contain only an email address. I'm using C# but VB, etc. will also do. Thanks, Scott

Software Development email
0
270
Member Avatar for beforetheyknew

I need to create date objects, to do that i think i need to use simpleDateFormat buuutt I'm using a startDate and endDate as parameters, so i dont know what to do. I've got another method that returns an int for number of days between them. Sorry I'm still an …

Software Development java
Member Avatar for Ezzaral
0
144
Member Avatar for xxunknown321

how do i read in files from a ".txt" file into a linked list heres my code. [CODE] import java.io.*; public class LinkedList1 { class Node { String element; // list element Node next; // successor link Node(String el, Node n) { element = el; next = n; } Node(String …

Software Development file-system java linked-list
Member Avatar for BestJewSinceJC
0
198
Member Avatar for josolanes

Memo.h: [CODE=cpp] #ifndef _MEMO_H #define _MEMO_H #include <stdlib.h> #include <string> #include <typeinfo> #include <iostream> #include "Date.h" #include <map> #include <vector> using namespace std; class Memo { public: map<Date, vector<string> > Appointment; //void delMemo(int x); void addMemo(Date myDate,string x); }; #endif /* _MEMO_H * [/CODE] Memo.cc [CODE=cpp] #include <stdlib.h> #include <string> …

Software Development c++ ide linux-kernel os-x storage
Member Avatar for josolanes
2
224
Member Avatar for saurav4ever

i have updated my centos python2.4.3 to python 5.1 i followed the following process: which python /usr/bin/python python -V Python 2.4.3 cd /usr/local/src wget [url]http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz[/url] tar xvzf Python-2.5.1.tgz make make install ls -l /usr/local/bin/python mv /usr/bin/python /usr/bin/python-orig ln -s /usr/local/bin/python /usr/bin/python ls -l /usr/bin/python -> /usr/local/bin/python python -V Python 2.5.1 …

Software Development python
Member Avatar for Gribouillis
0
323
Member Avatar for tetron

Hi, When using Microsoft Visual Studio, building in release the code just hangs and fails to execute but with Debug it builds and runs to the end. And I don't see why there should be a difference. I did a shutdown then clean and a rebuild of solution but the …

Software Development c++ visual-studio
Member Avatar for HealBrains
0
116
Member Avatar for sexyzebra19

I'm using [code=php] for (int i = 0; i<mdim_; i++) { for (int j = 0; j<ndim_; j++) { data_[j * ndim_ + i]; } } [/code] to change the matrix 1 3 2 4 stored in data, into row order. If I print data_[j * ndim_ + i]; to …

Software Development c++
Member Avatar for sexyzebra19
0
2K
Member Avatar for clutchkiller

[code] void encrypt::transform() { int length = 0; char *buffer; char ch = ' '; int i = 0; fileEncrypt.open("filter.txt", ios::in | ios::beg); fileEncrypt.seekg(0, ios::end); length = fileEncrypt.tellg(); fileEncrypt.seekg(0, ios::beg); buffer = new char [length]; fileEncrypt >> ch; while(!fileEncrypt.eof()) { buffer[i] = ch; i++; fileEncrypt >> ch; } for(int j …

Software Development c++ ios
Member Avatar for jonsca
0
103
Member Avatar for sexyzebra19

I have a 2x2 matrix A stored in data_ 1 3 2 4 (column major order) and a 2x2 matrix B stored in b.data_ 5 7 6 8 and I'm using the function below to append (stick underneath) B to A. so my result should be 1 3 5 7 …

Software Development c++
Member Avatar for Techi
0
301
Member Avatar for sexyzebra19

I'm trying to find a formula for copy[3] = b.data[0] copy[4] = b.data[1] copy[5] = b.data[2] copy[9] = b.data[3] copy[10] = b.data[4] copy[11] = b.data[5] letting the right hand side be b.data[i], I can see this is like copy[3] = b.data[0] multiply by 2, add 3 copy[4] = b.data[1] multiply …

Software Development c++
Member Avatar for sexyzebra19
0
107
Member Avatar for Kruptein

I have created a script to encrypt and decrypt a text message based on the bifid cipher([url=http://en.wikipedia.org/wiki/Bifid_cipher]wiki about bifid[/url]) everything works fine [B]IF[/B] the text message does only contain letters. How can I integrate the ability off spaces etc... the best way? by adding them to my alphabet might solve …

Software Development python
Member Avatar for Kruptein
0
2K
Member Avatar for timbomo

i cant get this to loop and i cant get it to error trap cout << " Please choose an odd number 3-9 to calculate width and height of your choosing\n"; cin >> number; [CODE]do { if((number!=3) || (number!=5) || (number!=7) || (number!=9)) { cout << "invalid choice " <<endl …

Software Development c++
Member Avatar for Fbody
0
250
Member Avatar for iNach

Hey, I have a problem. I want that when the user presses the ESC Key, my program will send him a message if he sure he wants to exit the program. [b]Basicaly what I need help with is how to do the "IF Esc is pressed"[/b] Thanks

Software Development c
Member Avatar for xavier666
0
8K
Member Avatar for Denver Cupido

1.Password authentication Write a C++ program that has asks the user to enter a string-input. If the string matches the password stored in the program, then print a suitable welcome message, otherwise allow the user to re-enter the correct password. The user has at most 3 chances to enter the …

Software Development c++
Member Avatar for Excizted
0
160

The End.