132,723 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VasquezPL

I have found out that myAppointment.RTFBody appeared with Outlook 2010. The problem is that I don't know how to use it. I copied an example from http://msdn.microsoft.com/en-us/library/aa287595(v=vs.71).aspx myAppointment.RTFBody = @"{\rtf1\ansi This is in \b bold\b0.}"; unfortunately whatever I put after myAppointment.RTFBody, I receive an error: System.Runtime.InteropServices.COMException (0xB9B0FFFF): The operation failed. …

Software Development
Member Avatar for Momerath
0
2K
Member Avatar for utkarshsahu

Suppose i have a list l=[1,2,3] i want to make this list as [2,3,4] i.e. add 1 to all the values in list l. I want to do it by the method of for loop.. Can someone help?

Software Development python
Member Avatar for TrustyTony
0
125
Member Avatar for RinzLove

> Quoted Text Here Hi, anyone can help pass values of JRadioButton to another JFrame? For example, if "twoway" Jradiobutton is selected, its value (a char i.e. "2-way face foundation") will be shown in another JFrame. Thanks in advanced.. Code blocks are created by indenting at least 4 spaces ... …

Software Development java java-swing
Member Avatar for NormR1
0
263
Member Avatar for km2011

Hello everyone!! I have a problem about memory allocation, i use calloc() to initialize all elements in array to be zero. This is my code: #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <time.h> #define sizes 1200 main() { double** arr; int m[sizes]; int i,j,k; srand((unsigned)time(NULL)); arr= (double **) calloc(sizes,sizeof(double*)); for(k=0; …

Software Development c
Member Avatar for km2011
0
180
Member Avatar for Kappash

Hello, I'm trying to make a sub that will highlight the text of a RTB that is passed. Here is the code: Private Sub SearchAll(ByVal selectedRichTextBox As RichTextBox) Dim startPos As Int16 = 0 Dim matchPos As Integer = selectedRichTextBox.Find(TextBoxSearchFor.Text, startPos, selectedRichTextBox.Text.Length, RichTextBoxFinds.None) selectedRichTextBox.SelectionBackColor = Color.Yellow While matchPos >= 0 …

Software Development vb.net
Member Avatar for Kappash
0
82
Member Avatar for Cameronsmith63

Hi there, 1) So i have a Menu Strip, and a couple of user controls, and in these user controls, i have group boxes. So when I click on the item that I want in my menu strip, it displays as normal. That's working fine. What I am trying to …

Software Development
Member Avatar for Cameronsmith63
0
143
Member Avatar for rmbrown09

Quick synopsis: Program sorts array the user inputs. IE enter 5,6,78,4,2 and it will sort it in order. Through various algorithms. This works great with quick small lists, but for some reason with one large number or longer lists the program will crash. Here are the files if you would …

Software Development algorithm c++
Member Avatar for rmbrown09
0
149
Member Avatar for SlzzyDzzy

Im trying to teach myself a little bit of python and have become stuck/frustrated. Im on [Python.org](http://www.learnpython.org/page/Loops#) and so far have had no luck. First, the objective is not too clear "Loop through and print out all even numbers from the numbers list in the same order they are received, …

Software Development python
Member Avatar for M.S.
0
187
Member Avatar for Perlie

Hi, I try to use a specific word in my file to put it as a folder name. This word vary in my file so, I think about use regular expressions to define it. my $file=$ARGV[0]; my $word=~/DOT\d+/; my $line=""; open(file, $file); while( $line = <file>){ if ( $line =~ …

Software Development perl
Member Avatar for Perlie
0
115
Member Avatar for garden4ork

Hello all again, hopefully the last bit I'm stuck on. So at the moment, I'm wanting a piece of code that recognises any time between say 9am and 11am, 11am and 1pm, 1pm and 3pm, and so on (To create a pie chart) It doesn't have to recognise time, it …

Software Development pascal
Member Avatar for pritaeas
0
263
Member Avatar for zingwing

i need help finding the low value in an array after reading file with numbers. With my program I am to assume that the size an array is 100 even if only 10, 31, 50 spaces are taken up. The problem im running in to is when i iniztialize the …

Software Development c
Member Avatar for Adak
0
232
Member Avatar for rayan90

i have a single list program which i need to sort the nodes of int and String type unsing only one of these algorithms (insertion, selection, bubble and shell). no merge or quick or using collections and stuff. i'm having a difficulty here, i only know how to implement them …

Software Development java linked-list seo
Member Avatar for zeroliken
0
257
Member Avatar for TheOnlyRoss

Hello. I am trying to accept a paragraph from the user in C using codeblocks. But, with the scanf statement, the program stops accepting once i hit space. Is there some way to get around this problem?

Software Development c
Member Avatar for zeroliken
0
203
Member Avatar for shanaka95

Hi..i want to **creat a autorun programme** to cd's which i am writing.so i want to creat that programme using **vb 6**. now i want to creat a command button when i click on it ***open a seperate window and browse the cd***..please help me to creat that..

Software Development visual-basic
Member Avatar for C0ding
0
132
Member Avatar for helpsie

To make it short and sweet, here it is. Looking to do a simple screenshot on the client-side (and if anyone would be so kind, point me in the direction to create an automated upload of the screen to a server. ++ if you can provide a tip on doing …

Software Development client-server java
Member Avatar for helpsie
0
888
Member Avatar for hwoarang69

I am trying to compute 2x-x+4x, so the answer should be 5x. but i am not sure how to get started. The "x"'s are messing me up. I am thinking of using for loop and replace x with '\0'. and than add or sub starting from left to right. but …

Software Development c mathematics
Member Avatar for TrustyTony
0
115
Member Avatar for greatman05

Hello. What are some ways that one can work with (x,y) coordinate pairs in Python? I'm doing a homework assignment that requires me to create a program that can check for certain binary relations (reflexive, transitive, symmetric), and I'm having an issue coming up with the best approach for it. …

Software Development python
Member Avatar for greatman05
0
277
Member Avatar for kmg2012

This is a recursive selection sort i would like to be able to change this code without the use of loops into a bubble sort for my assignnment. Ive been trying for an extremelyy long time and im also fairly new to c++ and im struggling. any help would be …

Software Development c++
Member Avatar for TrustyTony
0
241
Member Avatar for terrah

ok, so I have to do this problem to solve : Create a class Road that contains different stop points. A point is characterized by latitude, longitude, altitude. a. Validate the correctness of the values b. Create an array of Roads and display it c. Display the longest Road d. …

Software Development c++
Member Avatar for Ancient Dragon
0
145
Member Avatar for sergent

I decided to learn C++ STL and I was exprimenting with STL containers. I saw this example [here](http://www.cplusplus.com/reference/stl/vector/insert/): // inserting into a vector #include <iostream> #include <vector> using namespace std; int main () { vector<int> myvector (3,100); vector<int>::iterator it; it = myvector.begin(); it = myvector.insert ( it , 200 ); …

Software Development c++
Member Avatar for sergent
0
440
Member Avatar for Niner710

Hi, I am interested in trying to make a cumulative distribution function in Python. I have a set of data in a numpy array and just want to plot that data. numpyArray = [0.4, 0.3, 0.6,1.2,1.8, 0.5] I would also like to have a vertical line on the x-axis at …

Software Development python
Member Avatar for Niner710
0
244
Member Avatar for yamigx

hi.. lately i had this problem when i try to build in codeblocks.. Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Nothing to be done. and i tried to install it again and again with different versions.. but it still …

Software Development c
Member Avatar for sergent
0
101
Member Avatar for jojodeco

i have some kind of code in the error but i have searched and looked i do not no what is wrong i am getting this erro message :error C2065: 'loop' : undeclared identifier but i thought that you did not have to id loop they are not a varibale …

Software Development c++
Member Avatar for Lerner
0
177
Member Avatar for sandyneedshelp

I have a text file like: ABCD=ABC+BCD+CDA ABC=AB+BC BCD=BC+CD CDA=CD+DA AB=A+B BC=B+C CD=C+D DA=D+A I want the user to input the result. The program should give me the output to the lowest level. e.g. User Enters: ABCD then the program should display ABCD = ABC+BCD+CDA, ABC=AB+BC, BCD=BC+CD, CDA=CD+DA, AB=A+B, BC=B+C, …

Software Development c++
Member Avatar for sandyneedshelp
0
167
Member Avatar for blueyan

Hai, I'm a C++ beginner with self learning.I have a function that return a vector string eg: vector <string> result :"PA1070","PA1088","PA1091","Pa1070","PA1044"..... How do I compare the vector string element in a proper way? I tried to compare (if result[0] < result[3] ) cout << "True"; else cout << "False"; it …

Software Development c++
Member Avatar for sergent
0
350
Member Avatar for Sevyt

I need this for 2 different changes. ON one form i got a week calendar, the other a month calendar. Was hoping to add 2 buttons previous & next. To scroll back in time x days, or x days forward. And similar for the months, but instead of days months. …

Software Development vb.net
Member Avatar for Sevyt
0
98
Member Avatar for Begginnerdev

Hello my fellow Danniwebbers, I have yet another question for you to ponder. I have two custom action listers. One that handles Mouse.Click and one that handles Mouse.MouseDown. My question to you is, can I delay the mouse down event so that it does not intefere with the code of …

Software Development vb.net
Member Avatar for Begginnerdev
0
5K
Member Avatar for newbie14

Dear All, I am trying to write to a file as below. But my file shows empty what could be wrong here? const char *dataFileName = "data.dat"; FILE *ftdata = fopen(dataFileName,"a+"); fwrite("TEST",1,2,ftdata);

Software Development c
Member Avatar for Tumlee
0
84
Member Avatar for devninja

I have everything added to the JFrame using absolute positioning. It works fine but when it repaints the pie chart it also repaints the last JNumericField and button at the the very top left of the screen. At postion 0, 0 I presume PieChartFrame.java import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Software Development java java-swing
Member Avatar for NormR1
0
189
Member Avatar for adrigreat14

I am starting to learn python as my first programming language, but i ran into a problem while trying to make a function that calculated the missing variable in the simple equation v= u+at. The problem is that i am incapable to change a variable's value from False to True …

Software Development python
Member Avatar for adrigreat14
0
282
Member Avatar for nicewave

Could someone tell me why when I start a project, it added a new Form1, I can rename this to something else but I can't seem to rename the Form1.Designer.cs? How do I change the default form name? Thanks in advance.

Software Development
Member Avatar for Mitja Bonca
0
86
Member Avatar for Michael27

Can someone show me algorithm so i can sort array like this? [Picture](http://i.imgur.com/HhQ4I.jpg)

Software Development
Member Avatar for Mitja Bonca
0
354
Member Avatar for Despairy

Hi, Im trying to parse a file which contains some random text. How can i match a case which seperates "garbage" (anything but digit/letter) char?? for e,g: 25.5.5 will produce . (the 2nd dot, because 25.5 is a number (rational)) another e.g: ----3.82 will produce --- (because -3.82 is a …

Software Development python
Member Avatar for nbaztec
0
155
Member Avatar for jarograv

I am working on a java application that will display an image and play a sound. It finds the current month and displays the appropriate information. Below is the code that I have been testing (that's why santa is in april) it will not work when trying to play wav …

Software Development image java java-swing open-source
0
253
Member Avatar for mallikaalokam

I have Oracle 8i installed in my PC And i Installed NetBeans7.0rc2 with glassfish server It shows an error that the glassfish server cannot be started SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@187955b i want to chnage the default port number 8080 …

Software Development java java-netbeans oracle
Member Avatar for Sadun89
0
238
Member Avatar for Andy90

Hi, I m using SetCursorPos() in my project! [DllImport("user32.dll")] static extern bool SetCursorPos(int X, int Y); I want to use double value in the function? I m getting error PinvokeStackImbalance was detected. How to solve this?

Software Development
Member Avatar for thines01
0
114
Member Avatar for 4evrmrepylrning

So I have been told by various people on numerous occasions that you cannot parse XML by using regular expressions or any means other than a parser. So, here at work, I have LXML and that is what I have to use. At the moment I am trying to remove …

Software Development python xml
Member Avatar for 4evrmrepylrning
0
284
Member Avatar for rmbrown09

So I have completed my program thus far to take an array the user desingnates and breaks with any letter. After outputting what the array holds it sorts and re prints. I want to also include the time it takes this to happen. I am trying to use the gettimeofday …

Software Development c++
Member Avatar for L7Sqr
0
1K
Member Avatar for rick.eavans

C# Query : When I login to my software I select the desired username using combobox. After I login, I want to see the username text in the main window on the toolstrip. I tried get and set method but something is going wrong. Can you please help me out? …

Software Development c#
Member Avatar for Mitja Bonca
0
843
Member Avatar for nostalgia

Hi, I'm having trouble writing a prolog program which does the following: Say I'm given a map of 3 different points; Point A, point B and point C. Point A is connected to point B and point B is connected to point C, if you want to travel from point …

Software Development
Member Avatar for nostalgia
0
121
Member Avatar for Sundown G

Hi people! I just want to get the sum, max number, average and multiplication of array with n numbers! I already make the sum, but I tried different operators, ways for others and I can't get the another task without errors! Any help! Im really noobie on this Look! #!/bin/bash …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
122
Member Avatar for jojodeco

In straight-11 ping-pong, the first player to reach 11 points wins; the player need not be ahead by 2. Suppose that when Ada plays Blaise, Ada has a .56 probability of winning any given point. We want to write a program that simulates a game between Ada and Blaise, with …

Software Development c++
Member Avatar for Eagletalon
0
569
Member Avatar for sugir1987

java have any default function to use UPGMA.like Math.pow(x,2)

Software Development java
Member Avatar for NormR1
0
129
Member Avatar for sugir1987

How can i find the Euclidean distance of 2D matrix in java.is it possible like Math.pow(x,2)

Software Development java
Member Avatar for NormR1
0
167
Member Avatar for outout1234

I am using mysql server 2012 and visual studio 2012 C#, i created a database and i can read the data from my database. The problem is that i cannot insert data into my database. Although the return value of the execution is 1, i dont see any changes in …

Software Development mysql open-source visual-studio
Member Avatar for Mitja Bonca
0
231
Member Avatar for giri.pankaj

Is as way test out swing components without having to rely on Thread.sleep() to make sure that the components have realized completely. This problem with this approach is that it becomes difficult to guess how long it would take for components to realize under different environments of execution like vnc …

Software Development java java-swing
Member Avatar for peter_budo
0
285
Member Avatar for markjnj

Hey all, I'm working on a login screen and have an MSAccess database that stores the userName and password. I am currently using JtextField and String to access the username and password located in the MSAccess database, but now I want to hide the password when it is being typed …

Software Development java java-swing
Member Avatar for NewJavaLearner
0
583
Member Avatar for raviaaaa

Hi All can you pleased help me how to resolve applet load fail in IT link applet loading fine, but when i used same code and made a local setup while runnning applet is not loading please see the stack trace and com.scand.jtree classes are exists under applet folder under …

Software Development java queue
Member Avatar for NormR1
0
315
Member Avatar for Eagletalon

Hi There, I hope somebody can help me, I work with Visual C++ 2008 with QT libraries I am trying to include a Interop.Encore.dll file into my program to access our ERP system business objects and post new data to the ERP We have a Visual Basic program geared to …

Software Development c++ qt visual-basic
Member Avatar for Eagletalon
0
3K
Member Avatar for shawnv100

I am trying to use Java to detect signals from the serial port sent from an IR circuit. When the IR circuit detects an obstacle, it gives an output of 0 volts and otherwise the output is 5 volts. Can I read these voltage differences directly on the PC using …

Software Development java
Member Avatar for shawnv100
0
267

The End.