43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for xanawa

Hi, I am studying to become a software developer. This year is the last year of school and to pass i need to create a System myself. I know C# very well not as good as java. I wish that the software project will be programmed with C#. What ideas …

Software Development c c# c++
Member Avatar for xanawa
-2
237
Member Avatar for megaLU

Hi, I'm very new to C++ and am trying to write a class to model affine transformations. I have written code for a 3x3 matrix and am now trying to write code for multiplying it by (x,y,z) where z=1. My problem is I can't return the two values for the …

Software Development c++
Member Avatar for megaLU
0
154
Member Avatar for love_dude1984

Hi, I'm trying to build an windows application in C#, where i will be using Cache Application Block. I have downloaded the Microsoft's Enterprise Library (5.0), & also tried a sample too.. The sample works fine but there is a catch. I'm not willing to use a configuration file in …

Software Development caching
0
118
Member Avatar for abelingaw

Regarding my earlier post. [URL="http://www.daniweb.com/forums/thread327097.html"]http://www.daniweb.com/forums/thread327097.html[/URL] I encounter an error saying [ICODE] Run-time error '462': The remote server machine does not exist or is unavailable [/ICODE] Haven't notice this error earlier. Code: [CODE] wrdApp.Documents.Open App.Path & "\Reports\Locatorslip.docx" wrdApp.WindowState = wdWindowStateMaximize wrdApp.Visible = True [/CODE] The code works fine. Error only appears …

Software Development visual-basic
Member Avatar for AndreRet
0
115
Member Avatar for bleedi

Hi, I was programming with POSIX threads and I was using semaphores. All of a sudden the program didn't work anymore, and I started searching for the problem. It turns out that my first semaphore command "sem_open()" causes the problem. It returns value "0", or "SEM_FAILED", and sets errno to …

Software Development c
Member Avatar for bleedi
0
147
Member Avatar for mikeylala

I'm working on a project in vb.net 2010 that has 3 RichTextBoxes. Two of the RichTextBoxes can be loaded with text from text files. How do I take the multiple lines of text from each RichTextBox and combine them into the 3rd RichTextBox. For example, if 2 of the RichTextBoxes …

Software Development vb.net
Member Avatar for bhagawatshinde
0
1K
Member Avatar for rscubelek

Hey guys, I've been lurking around these forums for a few weeks now, and this website is by far the most helpful of any site I've visited as far as honing my newfound Python skills, and I figured it's time I jump in and ask some of the more specific …

Software Development gui python
Member Avatar for rscubelek
0
597
Member Avatar for Baby G

heyz... i need help. i new to C#. i need to add timer to my code. but i don't know how to do it... can help mi!! all i have done to the code is declared int time. :(:(

Software Development c#
Member Avatar for Baby G
-3
264
Member Avatar for bluehangook629

This is the code I have to validate control number that we use to keep track of our inventory. However, I dont know much about Access so I have written and tested this function in VB.Net on Visual Studio. Now, I need to convert my code so it work in …

Software Development vb.net visual-studio
Member Avatar for AndreRet
0
186
Member Avatar for pardeep3dec

Dear Experts, I am working on a TCP/IP project but my problem is that whenever my programme trying to reconnect again to server then server giving message port number is different. i.e. every time my programme is run its port no showing different in server so kindly guide how can …

Software Development visual-basic
Member Avatar for AndreRet
0
233
Member Avatar for Java-Newbie

Can anybody tell me why I keep getting this error? [CODE]Asig02_Attempt2.java:37: <identifier> expected public void sincronizarCanal(canal)[/CODE] Am I mixing a [I]class [/I]with a [I]method[/I]? This is just a small program that simulates a TV. I'm trying to pass a number (chanel) to a method that tells the user that they …

Software Development java
Member Avatar for javaAddict
0
6K
Member Avatar for afaque01

Hello! Is there Any way to Attach Files ... Like A button on form Which When Clicked open a dialog to select Word Files from computer then it Uploads to the Server or Attach it to Database so that It can be viewd after form fill up Is completed!...

Software Development asp.net vb.net
Member Avatar for afaque01
0
170
Member Avatar for neosonic

Hi, I am using vb6 to manipulate my word 2003 template .dot and save it into .doc. My current method is: I am creating I word class, called W. then I use: W.activedocument.SaveAs "documentname.doc", 0, 0, "". 1, "", 0, 0, 0, 0, 0 It can be used perfectly for …

Software Development visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for pseudorandom21

For some reason, and it's probably one of those accessibility things like tab ordering, when I hit the spacebar after selecting a button on my form, the spacebar clicks the button. This is NOT acceptable, and I have considered a work around of selecting an invisible panel or other "dummy" …

Software Development c c# c++
Member Avatar for pseudorandom21
0
73
Member Avatar for TheDocterd

Can anyone perhaps help me with my problem please? I want to apply security to my winform application but I am stuck.. This is the code I have that will run when the view job button is clicked and I it doesn't work [CODE] private void viewJobBtn_Click(object sender, EventArgs e) …

Software Development c# open-source
Member Avatar for TheDocterd
0
207
Member Avatar for Pundia

Hi people, I'm trying to make a program that reads and counts words and their frequency. After a few days trying I just make the program read a text, counts the words and everything BUT just if there's no more than one ' ' space character at a time. And …

Software Development delphi pascal
Member Avatar for Pundia
0
381
Member Avatar for jlivvers

Hi, in my project I need to allow the user (admin user) to have the ability to run custom queries on the database. Ive done this pretty simply whwer the user enters their query and the reults are set to a datagridview. It would also be great however to allow …

Software Development dataset vb.net
Member Avatar for sandeepparekh9
0
230
Member Avatar for gunneronaspooky

Hey guys...Need some help with a program for class...here's the assignment If your program detects an error condition, you can make it raise an exception. Here is an example that gets input from the user and checks for the value 17. Assuming that 17 is not valid input for some …

Software Development python
Member Avatar for gunneronaspooky
0
178
Member Avatar for ThatGuy2244

I can't get my pointers in assembly to work, I'm using nasm and trying to use pointers in real mode with 16-bit registers. Here is my code: [CODE] mov di, Pointer mov ah, 0x0e mov al, [di] int 0x10 Pointer: db "W" [/CODE] This code should print out the character …

Software Development assembly
Member Avatar for ThatGuy2244
0
877
Member Avatar for Pundia

Hi, I want to sort a TStringList but not by the strings in it, but by the Objects. Here's my code: [CODE]var i : integer; iCount : integer; idxFound : integer; someText : string; s : TStringList; oneWord : string; aux : integer; begin someText := memo_txtfile.text; oneWord := ''; …

Software Development delphi pascal
Member Avatar for Pundia
0
836
Member Avatar for markdean.expres

Good day everyone! I have a problem with the filtering part of my application. I am already using this code; Tablebindingsource.filter = "Prereq Like '" & textbox.text & "%'" it searches for values from Table whose Prereq value = textbox.text. My concern is, how about if there are several items …

Software Development vb.net
Member Avatar for markdean.expres
0
102
Member Avatar for roydavies20

Just Started C in University, first time doing it and the first program i had to write was one that required someone to be able to enter 5 random numbers and get the average of the 5 numbers, the highest/lowest of the 5 numbers and then finally the standard deviation …

Software Development c
Member Avatar for roydavies20
0
239
Member Avatar for Argyrisv

I want to compute md5 hash from a MimeMessage type.I use the following code to do this: [CODE] //MD5 private static String convertToHex(byte[] data) { StringBuilder buf = new StringBuilder(); for (int i = 0; i < data.length; i++) { int halfbyte = (data[i] >>> 4) & 0x0F; int two_halfs …

Software Development java
Member Avatar for Argyrisv
0
192
Member Avatar for PM312

i am typing below code in each and every date text box keypress event to allow numbers and back slash keys only. can any function or subroutine be created to avoide typing same code again and again in the project. [CODE]Private Sub Text1_KeyPress(KeyAscii As Integer) Dim ch As String ch …

Software Development visual-basic
Member Avatar for PM312
0
68
Member Avatar for rhuffman8

I am relatively new to Python and just have a couple quick questions about using file paths in Python code. 1) As I was recently playing around with the command line, I could not get a file path to work correctly unless I used forward slashes in the path...for example: …

Software Development file-system hard-drive python
Member Avatar for richieking
0
403
Member Avatar for sohel807

Why I have not seen any underline with the menu items although I have put "&" within the menu names. My code is as follows: [CODE]import wx import os class MainWindow(wx.Frame): def __init__(self, parent): self.dirname='' # A "-1" in the size parameter instructs wxWidgets to use the default size. # …

Software Development python
Member Avatar for richieking
0
281
Member Avatar for DoctorGiraffe

Hello! Yes, This is my first post. And it might seem a little selfish that i just joined to ask a question, so don't worry, i'm not gonna ask and run, i'll stick around. So my problem, what im trying to do is using regex i'm pulling information from a …

Member Avatar for codeorder
0
991
Member Avatar for abelingaw

How do i populate a combobox with values from a certain field on my database when i click the control? My combobox control name :cbodept Dbase table: Offices and Dbase Table field is: Office Preferably code. Thanks

Software Development visual-basic
Member Avatar for AndreRet
0
107
Member Avatar for vbx_wx

[code] a = 10 def foo(x = a): print x a = 5 foo() [/code] Can someone explain why it prints 10 ?

Software Development python
Member Avatar for vbx_wx
0
102
Member Avatar for MrCapuchino

Hello, I have a CHM file created that opens through a button of my Windows Form Application. I don't know if it has to do with c# or the file itself, but when I open the file it opens succesfully but it shows first the "This program cannot display the …

Software Development
Member Avatar for MrCapuchino
0
108
Member Avatar for MrCapuchino

Hi, I have a form which has the property StartPosition set to Center Screen It works, but if I change the property FormBorderStyle to something, the Center Screen property stops working? Why is this happening? Thanks in advance

Software Development
Member Avatar for darkagn
0
188
Member Avatar for LianaN

Hi! I am working on scaling the image that is placed in JLabel. The scaling method itself works more or less fine, however a black border appears around the image after scaling. I tried to make the transparent/white JLabel background, but my attempts failed. Please explain me how could I …

Software Development image java
Member Avatar for LianaN
0
450
Member Avatar for Mr.BunyRabit

Hey there I have a part in my program where it should calculate the total in one column of my datagridview. All goes well and good while there are no Null values between them in my column. So i thought ill use exception handling seeing that my If statement throws …

Software Development c++
Member Avatar for Mr.BunyRabit
0
99
Member Avatar for efronefron

I have been racking my brains to find what's wrong with my code... been playing with it for an hour or so but it seems to still be wrong.. Please anyone can point out the mistake? Im so frustated right now.:yawn: the answer to the question is 21124, but this …

Software Development c
Member Avatar for efronefron
0
602
Member Avatar for Janu Sam

Hi, In my application, I am creating a string array in a method. Each time I call that method this array will get created and also a null pointer exception is showing when I use the Arrays.sort() method. My method is like this... [code] int count = getTotalXMLCount(); envArray = …

Software Development java
Member Avatar for Janu Sam
0
386
Member Avatar for deanus

Hi all, Is it possible to define a preprocessor constant using another constant and a string in the declaration, like this: [CODE] #define MAIN_PATH = "C:\\My Documents\\" #define SUB_DIR = MAIN_PATH + "MyFolder\\" [/CODE] I'm using VC++ 2010 Express... Thanks, Dean

Software Development c++
Member Avatar for Banfa
0
207
Member Avatar for vineeshvs

[CODE] #include<stdio.h> #include<stdlib.h> int **transpose(int **x,int m,int n); main() { int nrows=2,ncolumns=2,i,j,k=0; //memory allocation for array x int **array; array = malloc(nrows * sizeof(int *)); if(array == NULL) { printf("out of memory\n"); return 0; } for(i = 0; i < nrows; i++) { array[i] = malloc(ncolumns * sizeof(int)); if(array[i] == …

Software Development c motherboards-cpu-ram
Member Avatar for vineeshvs
0
353
Member Avatar for dejanc

Hello members of CodeProject, I have a project, a database with employee information (name, town, birthday, HireDate, etc). I have add custom TextBox (on fly), and on that TextBox a code: [CODE]TexBox1.text = DateDiff("d", HireDateDateTimePicker.value, Now) [/CODE] which is calculating how many days worker is working in company from HireDate, …

Software Development vb.net
Member Avatar for dejanc
0
246
Member Avatar for rcmango

Okay, so i was trying to make this work. Two queues need to be created using input from the user for 2 file names. For some reason I get 1 queue, the first one filled. Then the second queue never has anything in it. Please help me with better code, …

Software Development c++ queue
Member Avatar for rcmango
0
97
Member Avatar for Neversleepin

Hello, Could someone advice me for the best ide for GUI building in java? Thank you

Software Development gui ide java
Member Avatar for peter_budo
0
467
Member Avatar for iwanttolearnc

im trying my hand at calling c functions from python. im reading up the tutorial [URL="http://csl.sublevel3.org/C-functions-from-Python/"]http://csl.sublevel3.org/C-functions-from-Python/[/URL]. however part of the tutorial says that i should [QUOTE]Compiling dynamic libraries on Mac OS X is different from the usual gcc -shared you might be used to: gcc -dynamiclib -I/usr/include/python2.3/ -lpython2.3 -o myModule.dylib …

Software Development c c++ os-x
Member Avatar for iwanttolearnc
0
234
Member Avatar for MrCapuchino

Hello, I have a question, I have a program where I use a stream writer and I write from a list object into a textfile, the only code I put in a while cycle is: streamwriter1.WriteLine(string); The application works. Then I have another program, I have the same situation and …

Software Development
Member Avatar for kvprajapati
0
218
Member Avatar for hao90

I suppose to write the records to a text file. However every time i re-log in and add a record.The previous record will be rewrite. >.<'' [CODE]public void addRecords(){ getInfo(); FileWriter fWriter = null; BufferedWriter writer = null; try { fWriter = new FileWriter("PassengerInfo.txt"); writer = new BufferedWriter(fWriter); writer.write(name); writer.write(";"); …

Software Development java
Member Avatar for hao90
0
181
Member Avatar for dennis.d.elston

I am trying to modify a tax program so that I only have one line that start with the variable "tax = ...". The original statements are commented out so that you may see what the original program looked like. What I don't know how to do is to put …

Software Development c++
Member Avatar for dennis.d.elston
0
193
Member Avatar for Frederick2

What is the difference between size_t and size_type? size_type seems to be related closely with the C++ Standard String Class. Couldn't they have just used size_t instead? I don't understand the difference. Could anyone elaborate please?

Software Development c++
Member Avatar for Frederick2
0
154
Member Avatar for f_atencia

Say I have an element <pets animals="dogs, cats, donkey, turtle, rabbit" /> How can I break the long string to when it hits the comma, it separates the animals into substrings? An example output is shown below: dogs cats donkey turtle rabbit Help is appreciated. Thanks

Software Development xml
Member Avatar for f_atencia
0
114
Member Avatar for HDRG

When I press the print Button, all it prints is a blank page. This is my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; public class OptionWindow extends …

Software Development gui java java-swing
Member Avatar for Ezzaral
0
204
Member Avatar for discovery-power

Hi All, Hope evryone is well. I have a program I have created for booking out conference rooms, I want to code a print button so the user can print the booking they have created on the booking form. I have been stuck on this for about a week and …

Software Development vb.net
Member Avatar for discovery-power
0
305
Member Avatar for novice20

hi... using pysnmp, an 'snmp get' varBinds gives me an 'octet string' of values like: 1+1 Protection; East-West; Spiral Search; ODU Enable/Disable I need to loop through these strings and see whether a particular string say, 'East-West' is present. I am not finding way to do this. can this octet …

Software Development python
Member Avatar for LoveMyPadres
0
2K
Member Avatar for MaddTechwf

I've noticed running in a PE environment and seeing the "Nerd Herd" MRI software, I was wondering if anyone can tell me now to recreate this using VB.NET. I want to show the system info over the background if possible. You can see an example at this address [URL="http://maddtechwf.com/gsmri.jpg"]here[/URL].

Software Development vb.net
Member Avatar for MaddTechwf
0
90

The End.