43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for chetanbasuray

Ok...I have a very basic question...how do I attach my database when I'm turning my c#.net code into a setup file? I'm just learning and I'm sorry if you feel this a too basic question...:)

Software Development
Member Avatar for chetanbasuray
0
158
Member Avatar for shanakaprabath

Can some one give me a sample code or project on how to load a data of a particular table in access databse in to a data grid view

Software Development vb.net
Member Avatar for shanakaprabath
0
130
Member Avatar for MGIndia

is this code correct to create a new post item... [code] sfilepath=@""C:\Documents and Settings\example.msg"; Outlook._PostItem omail = (Outlook._PostItem)olApp.CreateItemFromTemplate(sfilepath,Type.Missing); [/code] am new to this and mainly doesnot know the difference between mailitem and postitem..but when i create a mailitem the code rus successfully.But when using postitem it shows the below exception.. …

Software Development microsoft-office
Member Avatar for MGIndia
0
384
Member Avatar for riotburn

I am trying to use Newtons method to find implied volatility of a Black Scholes Call. So given all the other variables, I need to find what volatility makes the black scholes call equal to the current call price. I'm running what I have below but keep getting a random …

Software Development c++
Member Avatar for riotburn
0
1K
Member Avatar for Olliepop

Hey daniweb! I have a really serious issue in my program right now. I'll explain how this piece works: -The server sends a ping -The client replies with a pong and starts a timer -Server sends pong back and the client checks how long it took to receive the second …

Software Development client-server java java-swing
Member Avatar for Olliepop
0
155
Member Avatar for wtvrinc

Hello I am trying to get this function to work... [CODE] int error(const char* s) { int f=1; while (*s!='/0') { if(*s=='/') { f=0; return(f); } s++; } return f; } [/CODE] I want to find out if in the string tat i am passing there is a character "/"....But …

Software Development c++
Member Avatar for wtvrinc
0
113
Member Avatar for ZoMbiESsSZ

HI Guys. I'm trying to make my own lite program that can highlight specified chosen words (Syntax highlighting in short). I have a working method using Regex, but it is TOO SLOW. Here is what is currently: My Regex Statements: [CODE] public Regex SettingsAndComments = new Regex("--settings|-|", RegexOptions.IgnoreCase); public Regex …

Software Development c c# c++ regex
Member Avatar for kvprajapati
0
283
Member Avatar for kenakena

After copying code into the IDE, it typically does not align with code already present. Is there a way to envoke a re-format of IDE so that all code will automatically align in its proper place ?

Software Development ide
Member Avatar for kvprajapati
0
79
Member Avatar for jemz

hello please help me on this i am confuse, if i will use this [CODE]sql = "select * from item_table where itmno = '" & m_item & "'" Set item_rs = con.Execute(sql) 'do i still need to use this With cmd .ActiveConnection = con .CommandText = "item_table" .CommandType = adCmdTable …

Software Development sql visual-basic
Member Avatar for vb5prgrmr
-1
127
Member Avatar for XinJiki

Hello, I need some help with my homework assignment fir my C++ class, here is a description of the assignment: Write a program that reads this file and finds the longest word that contains only a single vowel (a,e,i,o,u). Output this word (there will actually be several ties for the …

Software Development c++
Member Avatar for XinJiki
0
249
Member Avatar for futura

Please excuse me if this has already been covered before. I'm a C++ beginner, and in of the problems I have to do, the input has to be like this: 1) A number n is entered. 2) n number of strings are entered. I tried using a 2D character array …

Software Development c++
Member Avatar for futura
0
86
Member Avatar for jpavao

Hi, If I have a class, defined in UML, that can contain itself (0 or more times) and if that class is a JPanel how would I implement it without the "Illegal Argument" runtime error? please see the attach file for a uml class diagram. Can anyone help me? Thanks.

Software Development java
Member Avatar for jpavao
0
170
Member Avatar for StaticX

Hi all, im wondering if someone could offer a solution to my current problem which is passing and return information using pointer notation. I have created a small program using the class Person, who has a first and last name and methods to add and retrieve this information which looks …

Software Development c++
Member Avatar for Jiwe
0
100
Member Avatar for Tlaloc

I have made an array of class cards which is a 4*14 grid (The 14th space is for the 4 grey non-cards). So far i have made 2 methods for this. The first was an algorithm for figuring out where each card belongs which I painted on when they were …

Software Development algorithm java
0
75
Member Avatar for Emmett_1981

I have created a simple JTable with 5 columns, I need to perform validation on the column entries. I have used the getValueAt ( col, row) function to get the values from the columns. For the first four columns this works without fail but for some reason the last column …

Software Development java
Member Avatar for Emmett_1981
0
635
Member Avatar for katharnakh

how to create a submenu in python? how to use [I]insert_cascade(index,**options)[/I].......... please help me out.

Software Development python
Member Avatar for skydiverman05
0
4K
Member Avatar for Singlem

Using a dbexpress component to connect to a mysql DB. If I want to commands like Insert, Delete and UPDATE I use a query. The question is How can I let the user Write the commands into a Richedit or Memo, what ever is the best. And then load those …

Software Development pascal
Member Avatar for finalist
0
147
Member Avatar for Eternity[LK]

Hi. I have some beginner questions related to C# in general, as well as my first home assignment in C#. When the .exe file is opened, a window pops up and asks user a question. He has 2 answer options (2 buttons). The task is - make it impossible for …

Software Development legal visual-studio
Member Avatar for Geekitygeek
0
2K
Member Avatar for houlahan

ok so my original code was: [CODE] Patient patient = new Patient(); patient.setId(1); patient.setName("luke"); patient.setAddress("100 test"); patient.setTelNumber("01484710204"); patient.healthproblem.setBrainProblemName("Brain Cancer"); patient.healthproblem.setDateDiagnosed("30-03-1990"); patient.healthproblem.setPatientHealth("Poor"); Patient patient1 = new Patient(); patient1.setId(2); patient1.setName("john"); patient1.setAddress("100 test"); patient1.setTelNumber("01484710204"); patient1.healthproblem.setLungProblemName("Lung Cancer"); patient1.healthproblem.setDateDiagnosed("12-02-1991"); patient1.healthproblem.setPatientHealth("Poor"); patient1.healthproblem.setLungProblemSide("Left"); if ("luke".equalsIgnoreCase(patient.getName())) { out.writeObject(patient); } else if ("john".equalsIgnoreCase(patient.getName())) { out.writeObject(patient1); }[/CODE] so when the …

Software Development java
Member Avatar for houlahan
0
97
Member Avatar for Egypt Pharaoh

Is swich can take string parameter yes or no like [CODE] string s="Mo"; swich(s) { case "sa ": break ; case "jv": break; default : break: } [/CODE]

Software Development java
Member Avatar for gangsta1903
-1
131
Member Avatar for aladar04

The program should tell user how many vowels occured on each word in a given string. The string was "Once upon a midnight dreary, while I pondered weak and weary." The output generated by the codes below was: [COLOR="Green"]Enter string(s): Once upon a midnight dreary, while I pondered weak and …

Software Development java
Member Avatar for gangsta1903
0
120
Member Avatar for txwooley

I am trying to put a terminal into my tk gui program as a widget. I figured out how to have the output of a command sent to a text widget: [CODE] root = Tkinter.Tk() tfield = Tkinter.Text(root) tfield.pack() for line in os.popen("run_command", 'r'): tfield.insert("end", line) root.mainloop() [/CODE] But how …

Software Development gui perl python tkinter
Member Avatar for txwooley
0
11K
Member Avatar for wilsonz91

Hi, My problem here is that, I want to add up the total of the few different items that are entered. I have no idea how to add them up, please offer some suggestions, thanks [CODE]#include<iostream> #include <windows.h> using namespace std; float weightcount(float w); float distancecount(float d); int main(void) { …

Software Development c++
Member Avatar for wilsonz91
0
186
Member Avatar for scias23

i have many textboxes in my form, now i want to validate the data inside it. how can i achieve this other than the try catch? i want the validation to be usable in all my forms so i'll write it as a sub/function. any suggestions?

Software Development vb.net
Member Avatar for apegram
-1
104
Member Avatar for ybkumar77

Hi I am using Rougewave library for one of my program. I am using the RWHashTable from it. during the startup of my program, I will load this hashtable with information read from database. so, I have the hashtable filled with data. and during runtime, I need to print all …

Software Development c++
Member Avatar for ybkumar77
0
139
Member Avatar for Mapopa

Instructions: You are required to design and write an application that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap …

Software Development algorithm
Member Avatar for Geekitygeek
0
116
Member Avatar for vilas_tadoori

Hi All, I am newbie to the C# programming and we have to design a situation with the following use case. We would like to control the text boxes visibility using a checkbox. When ever we check the checkbox the textbox should not be visible and when we uncheck the …

Software Development
Member Avatar for Geekitygeek
0
96
Member Avatar for abu taher

I type 2009 in mask edit box and select August from a combo box. then I press report button for report. then show this msg: "run time error 713 Application - defined or object defined error" another thing when I run the exe of this project in another pc then …

Software Development visual-basic
Member Avatar for abu taher
0
2K
Member Avatar for tintin.iitk

e.g. [CODE] class B { public: virtual ~B() {printf("Base class Destructor");} }; class D { public: ~D() {printf("Derived class Destructor");} }; [/CODE] Is it somehow possible to altogether avoid printing 'Base class Destructor' when an object of class D is destructed (of course without causing a memory leak).. If you …

Software Development c++
Member Avatar for tintin.iitk
0
2K
Member Avatar for neosonic

I would like to create a drawing tool similar to visio, with the linking to the database But i have another half of my .exe project done with visual basic.\ we want to sell it. is it wise to use visio and built macros links to it? is it easy …

Software Development visual-basic
Member Avatar for neosonic
0
341
Member Avatar for hitro456

Hi everyone...([COLOR="Green"]read carefully[/COLOR]) I am Developing an application in C#. In which First I create two text files say a.text and b.text. and then fetch data from them ...... Now every day when I run my code for the first time I want to delete these files and recreate new …

Software Development file-system
Member Avatar for hitro456
0
145
Member Avatar for dude1

i have my file input like this ifstream inFile; inFile.open(fileName.c_str()); and i cin >> fileName; i want the output file name to be the input filename with .dat added to it eg if fileName was c:/tmp/test.txt i want the output to be c:/tmp/test.txt.dat anyone know how i can do this …

Software Development c++
Member Avatar for dude1
0
99
Member Avatar for clutchkiller

[code] #include <iostream> using namespace std; int main() { double var1 = 0; var1 = 2/10; cin.ignore(); cin.get(); return 0; } [/code] Its not setting var1 to .2 it is keeping it at 0. wth? it does 10/2 = 5, but then it does 2/10 = 0.

Software Development c++
Member Avatar for clutchkiller
0
109
Member Avatar for NathanOliver

would the workings of strlen() be something like this? [code=c++] int strlen(const char * str) { int size = 0; while (!!*str) size++; return size; } [/code] any feedback would be appreciated. also i have learned that !! will convert a value to an actual bool eg. !!104 = 1

Software Development c++
Member Avatar for Ancient Dragon
0
149
Member Avatar for SoulMazer

Hi, so in essence I have two little scripts: a server side script and a client side script. My client script sends a request to the server, and the server sends a string to the client. Once I get the string back into the client, I set it to the …

Software Development client-server python
Member Avatar for SoulMazer
0
2K
Member Avatar for kohkohkoh

Hi guys, as per title above, im at my wits end after a week of thoughts.... i want to download a file from a SSL web to my local(C:\) e.g [url]https://www.abc.com/File/myfile.txt[/url] Scenario: from the web browser(Internet Explorer), i required to login to the site in order to download the file. …

Software Development cybersecurity file-system vb.net
Member Avatar for kohkohkoh
0
1K
Member Avatar for crozbme

//I am trying to use the reverse function but only get garbage when trying to print s2. How do I properly assign s2 a value in order to print it in main? #include <iostream> #include <string> using namespace std; class ch_stack { public: void reset() { top = EMPTY; } …

Software Development c++
Member Avatar for crozbme
0
79
Member Avatar for VIPER5646

[QUOTE]Hi all I have two forms which are being displayed from the MDI Parent form. In the following code I would like to send data from form 1 to form 2. [/QUOTE] [CODE] DsgnForm.InsertOE = txtOrderEntry.Text DsgnForm.InsertFN = txtFirstName.Text DsgnForm.InsertLN = txtLastName.Text DsgnForm.InsertAD = TxtAddress.Text [/CODE] [QUOTE] My problem is …

Software Development vb.net
Member Avatar for VIPER5646
-1
182
Member Avatar for rastus77

I have a homework assignment that's due in a couple of days and I need a set of experienced Java eyes to confirm that a few of the answers to the questions below are correct. The hard part about these questions (for me anyways as a newbie Java person) is …

Software Development java
Member Avatar for BestJewSinceJC
0
156
Member Avatar for rastus77

I'm new to Java and can't seem to understand why this code doesn't work. Any input would be appreciated. Thx. [code]Public class MyClass int a; float b = 1.5; public void static main(String args) { MyClass mc = MyClass(); mc.a = 1.5; system.out.println(b); }[/code]

Software Development java
Member Avatar for peter_budo
0
223
Member Avatar for pinsickle

[CODE]current = queues[i];[/CODE] This line of code is killing me. I am suppose to be doing a write method for an array based priority queue. However I cant seem to get the first node on the give part of the array. queues is of the Queue class which is a …

Software Development c++ queue
Member Avatar for pinsickle
0
139
Member Avatar for DuffManLight

Trying to learn recursion. Problem asks to use recursion on non-negative number to insert commas. Ex: 20131 as 20,131. My program adds in an extra comma at end. Any help in pushing me in the correct direction to fix this would be appreciated. Tried to use a 'count' to determine …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for k1robert

My problem is I want to be able to read through this xml document and populate a winform before validating it and then storing it into a table. This is a snippet of the xml document, it's way too big to put it all here. [code=xml] - <Applicant> + <common:PersonName> …

Software Development pdf vb.net xml
Member Avatar for k1robert
0
964
Member Avatar for Suicidal_tool

HOMEWORK HELP - Just so i stick by the rules. The second part of my assignment is to create an array object, and love and behold, im having problems passing my small array into the function. Bellow is my code of what i have done so far, the solution seems …

Software Development c++
Member Avatar for mitrmkar
0
175
Member Avatar for frag

[CODE]#include <iostream.h> float salary (int, float); int main() { int n,h,i; float r,GS; cout <<"Enter number of employees: "; cin >> n; for (i=0;i<n;i++) { cout << "\n Hours= \t"; cin >>h; cout<< "\n Rate= \t"; cin >> r; GS=salary(h,r); cout << "\nSalary=\t"<<GS << "\n"; cout << "Rate=\t"<<r<<"\n\n"; } return …

Software Development c++
Member Avatar for vmanes
0
94
Member Avatar for Singlem

Hay I'm just spent hours on google and other sites, can't find any help. I just wrote my 1st major application and now I want to make it installable. Is there components I can download or built in that I can use to do this?

Software Development pascal
Member Avatar for Singlem
0
98
Member Avatar for return_Milk

A couple things to mention: 1.) This program uses system("PAUSE"); in the main function, if you are not using Windows, you might have to pull it. 2.) There are a couple lines in there that are not needed, I'm just using them to test the size of the array. My …

Software Development c++
Member Avatar for return_Milk
2
140
Member Avatar for laelzio.mosca

I`m trying to use sets and gets for a code, but it`s not compiling I`m not sure how to set and get a String, this is what I have so far this is class Car [CODE] String color; void setColor(String col) { color = col; } String getColor() { return …

Software Development java
Member Avatar for laelzio.mosca
0
101
Member Avatar for Excizted

Hi :) I am certain of when to use static_cast, but often I can get satisfactory results by writing the target type in a parenthesis. For example: [CODE]void* data = somePointer; SomeClass* new_ptr = static_cast<SomeClass*>(data);[/CODE] seems to work when replaced with [CODE]void* data = somePointer; SomeClass* new_ptr = (SomeClass*) data;[/CODE] …

Software Development c++
Member Avatar for Excizted
0
142
Member Avatar for tgraves

I have changed the Path Environment Variable for Windows Command Prompt to: C:\j2sdk1.4.2_04\bin so why, when I try to run javac while in the code folder directory, do I still get the error message "javac is not recognized as an internal..." I was forced to put the path info in …

Software Development java
Member Avatar for peter_budo
0
329

The End.