64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for new SE

Hi all, i am working on converting the asp.net to pdf file.. now i'm using this code,but it give me an error "Type or namaspace name 'pdfConverter' could not be found".. is there any component i need to install..any help plz? [CODE]PdfConverter pdfConverter = new PdfConverter(); pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4; pdfConverter.PdfDocumentOptions.PdfCompressionLevel …

Member Avatar for crishjeny
0
148
Member Avatar for shaqtus

When I set the VisibleWhenLoggedIn property of my Login control to false, my Login control automatically becomes invisible even if I'm not logged in. I've already set the Authenticate event to use my own SQL database, but this problem is still persisting. How do I fix this? Here is the …

Member Avatar for crishjeny
0
101
Member Avatar for derozza

Dear all. I need help regarding on my error.. this is the sample code: [CODE] Private Sub GetDetails(ByVal id As String) Dim conString As String = (ConfigurationManager.ConnectionStrings.Item("ItemListing").ToString) Dim objConnection As New MySqlConnection(conString) objConnection.Open() Dim sdr As MySqlDataReader Dim sSQL As String = " SELECT i.SuppCode,s.SuppName,s.telno,s.Faxno,s.email,s.Salesman,s.Mobileno,s.add1," & _ " i.masterefno, i.invoicerefno,a.remarks, …

Member Avatar for CrappyCoder
0
182
Member Avatar for benjaminFowl87

Hi there I'm having trouble a with a forum query here are my 3 tables [B]categories[/B] [U]category_id[/U] category_name category_description [B]threads[/B] [U]thread_id[/U] [I]category_id[/I] thread_title thread_text [B]posts[/B] [U]post_id[/U] [I]thread_id[/I] post_text I want a query that selects all of the top level categories and displays them however in that query I am aware …

Member Avatar for benjaminFowl87
0
140
Member Avatar for Him3

Hi all, I want to grab frames from video. (I want multiple frames from a video) using Java. I have tried with the code that is there on sun site. but it doesn't work(as it is for grabbing frames from web cam). If any body knows then reply asap. Thanks …

Member Avatar for peter_budo
0
125
Member Avatar for puvi

hi, to validate the name entered by user, i am using this expression "/^[a-zA-Z, ,]/". The name should contain only alphabets and space, if anything other than these two appear in the string, it should output alert msg. Is this expression correct? it is working fine only when numbers are …

Member Avatar for puvi
0
115
Member Avatar for awmantonio

I am trying to make a report which gets its data from a windows form's textboxes. My code works fine but upon display of the report, a window always appear asking to enter parameter values. How can I bypass or remove this window? Here is my code: [code] Dim report …

0
128
Member Avatar for VBNew

Hi, I have a weely report which contain of 2 text box. EmpNo.txt and Position.txt. I need to get the data from my access database when the form is loaded. Before go to the weekly report form the system will check the loginID and password. The empno and position data …

Member Avatar for AndreRet
0
98
Member Avatar for jlivvers

Hi i'm using a table adapter.insert() method to add new data to my table and i need to get hold of the id of the inserted row. I've read around and seen that the most popular way to do this is with SELECT @@IDENTITY as Value but im not sure …

Member Avatar for kvprajapati
0
1K
Member Avatar for shakssage

I'm trying to move functions that I have created in my .h files into the .cpp files of my winForm application. I don't really know how to get this to work. Example code in .h: [CODE]void loadCustomerDetails() { SQLiteConnection^ ObjConnection = gcnew SQLiteConnection("Data Source=SwiftService.db3;"); SQLiteCommand^ ObjCommand = gcnew SQLiteCommand("SELECT * …

Member Avatar for jonsca
0
433
Member Avatar for ChristinaS

Hello! This is my first time attempting to get help but, alas, I'm desperate! I have been working on this program for a class (and it's due at midnight). I can't seem to grasp moving data in and out of arrays using nested for loops. it's a matter of entering …

Member Avatar for ChristinaS
0
139
Member Avatar for convoluted

Here's my situation. Let's say I would like to create a thread that continually prints the number 1. When a button is clicked the value should then change to 2. My issue is that I'm unsure how I change a variable in an already running thread. Here's my code: [CODE] …

Member Avatar for Gribouillis
0
260
Member Avatar for tylerjgarland

[B]This is a homework question[/B] I am attempting to write a hash function that will evenly distribute 20 randomly selected census name into 20 buckets. I may have up to three collisions of two each. [CODE] public int hashCode(Contact c) { // TODO Auto-generated method stub int result = 0; …

Member Avatar for mrnutty
-1
275
Member Avatar for mbarandao

Hello: I have a mysql table that stores customer transaction information. I want to sum column name "total" --which has values like this: $253.20-- only where the value of another column is "mossa01". For this, I passed the variable to the code via url and trimmed it. I then used …

Member Avatar for mbarandao
0
114
Member Avatar for ScreamingPsycho

Hello, I really could use some help with this hangman program. I have searched all over the internet to find an answer that i can understand. I'm a beginner at C++ programming. This program prompts the user to enter a phrase. then you guess letters. if a letter is wrong …

Member Avatar for ScreamingPsycho
0
167
Member Avatar for rowen17

these are the classes that i am going to add to my jar file: TestRegform, LogIn, LogIn$AccountInfo, and regForm. I have manifest.txt that contains: Main-Class: TestRegform (new line) then I typed this in the command line: D:\Project>jar cvfm Registration.jar manifest.txt *.class then, these came out: added manifest adding: LogIn$AccountInfo.class(in = …

0
231
Member Avatar for curbster

Hi all, I am in my first Java class at the local community college but my class is online and my teacher takes DAYS to respond via email. I need some help with my homework and thought I would try here. I'm not looking for someone to give me the …

Member Avatar for curbster
0
889
Member Avatar for anglwthnati2de

Hi I have never used vedctors before so I am just wondering if this is correct or not. If not, would you mind showing me the correct way to use it? [CODE]cout << fixed << setprecision( 2 ); vector < Employee * > employees( 4 ); employees[ 0 ] = …

Member Avatar for DarthMustard
0
119
Member Avatar for z1ggy

Hey everyone, I currently am creating a Card shuffling program in C++, Ive taken care of the shuffling of the deck. Now I just need to distribute a hand of 5 cards, and determine hands. Can anyone help? Please! cardheader.h ( includes both Class Card & Deck ) [CODE] #ifndef …

Member Avatar for z1ggy
0
2K
Member Avatar for tusharbhatia

Hi, thanks for helping. All this code does is remove the checked items. I want to remove it from one listview box and transfer it to another. Is that possible? [CODE]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click With ListView1 If .CheckedItems.Count > 0 Then For …

Member Avatar for jlego
0
453
Member Avatar for lasl0w

Hey all, I'm writing a program that is an address book using an AVL Node structure (which was provided). I defined the [I]contact[/I] class as the ItemType of the data to be inserted in each node. Initially I encountered a Segmentation fault that occured during the assignment from the AVLClass …

Member Avatar for lasl0w
0
993
Member Avatar for ilyaz

I have the following segment inside my XSLT transform: [CODE] <property name="Value"><xsl:value-of select="for $index in ...[/CODE] msxsl.exe produces the following error: [I]Code: 0x80004005 Expected token 'EOF' found '$'. for -->$<--index in ...[/I] Is this a syntax error? The code before the shown segment seems to be fine. What am I …

Member Avatar for iceandrews
0
121
Member Avatar for TrueCoding

Im not sure what Ive done wrong but I'm trying to display my array but the program keeps ending so I cant see if its actually working. Im sure its a little mistake - Any help or suggestions will be appreciated. [CODE] # include <stdio.h> # define MAX 100 int …

Member Avatar for Adak
0
109
Member Avatar for daviddoria

I want to have a template function like this: [code] template <class T> void CreateBlankPatch(typename T::Pointer patch, unsigned int sideLength) { CreateConstantPatch(patch, typename T::PixelType::Zero(), sideLength); } [/code] It works fine as long as Zero() is defined for the class T. However, with POD types, this is clearly not the case. …

Member Avatar for daviddoria
0
169
Member Avatar for phantomD

Hi, first post on the site and I hope I'll explain this properly: I'm tasked with creating a TicTacToe Applet using a JButton array. What I can't figure out is the problem I'm having with either setText or getSource (last bit of code). Can someone point out what I've done …

Member Avatar for phantomD
0
246
Member Avatar for Simplified

Hi All I was hoping for some advice based on the pool of experience here at Daniweb. I've been teaching myself to program in Python and I'm starting to get the hang of it, now I'm able to write small programs to automate administrative tasks as well as some complex …

Member Avatar for Simplified
0
107
Member Avatar for k2k

set v1=%e:\file1\file0% set v2=%c:\file1\file0% set v3=%d:\file3\file4% cd %v1% and do something cd %v2% and do something cd %v3% and do something I just want to set a variable = path and cd to it later, since I have multiple pathes, i would like to cd to diff variables instead of …

Member Avatar for k2k
0
172
Member Avatar for elizabeth mwash

am so confused...wen you use save dialog....you only get the dialog and wen i say save, it saves....my problem is, wen you go back to the folder to check the file saved....nothin is there....i want to know how you can save a file to a certain folder and wen saved …

Member Avatar for JOSheaIV
0
186
Member Avatar for Wolf CCMLG

Hi, I am loading in a dictionary text file of English words, but I am not supposed to load any words if they contain an apostrophe. I am loading them in as strings, and I cannot figure out how not to load the string if it contains an apostrophe. Here …

Member Avatar for Wolf CCMLG
0
231
Member Avatar for GroundedWatts

I am making a list box with two input numbers, Run button, Clear button and Increment/Decrement button. What i'm trying to get it to do is the user inputs a number into textbox1 and a number into textbox2, then clicks run. The numbers then display in ascending or descending order …

Member Avatar for Mitja Bonca
0
104
Member Avatar for jlego

someone told me that i should stick with method #2, interested in getting feedback here. form2 has an id that form1 passes in order to load information from. method #1 has a public integer that form 1 passes to form 2 [CODE] class form1 private sub button1_click form2.id = 1 …

Member Avatar for jlego
0
112
Member Avatar for moroccanplaya

i cant break out of this loop its driving me crazzy!! [CODE] while (1) { printf("please type in the path for the file you want to archive\n"); scanf("%s",&original_file); open_pointer = fopen( original_file, "rb"); original_pointer = fopen(original_file,"rb"); copy_pointer = fopen( archive_name,"ab"); if (copy_pointer NULL) { printf("\n copied successfull"); puts("\nenter x to …

Member Avatar for moroccanplaya
0
155
Member Avatar for abuka

I've got this header and cpp.And I would like to insert this operator overloading to this .h and .cpp file. but I always got errors. Operator OVERLOADING : [CODE]istream& operator>>(istream& in, Focista& jatekos) { cout << "Add meg a focista tulajdonsagait. " << endl; cout << "Nev: " << endl; …

Member Avatar for abuka
0
236
Member Avatar for hanttaha

[CODE]//I have a problem with my program, // the function rank to find rank of a matrix //cannot return the result //somebody help me to correct it! #include<iostream.h> #include<math.h> #include<iomanip.h> class matrix { int n,m; double A[6][6]; public: //..... friend int rank(matrix); }; int rank(matrix B) { int i, j, …

Member Avatar for ravenous
0
3K
Member Avatar for davehere

hello, I need to display contents with their tags, and in same page all the tags of the page contents the problem is having a limit on contents doesn't work if join tags on them (the number of tags change the number of select contents) [B]THE TABLES ========== [/B] I …

Member Avatar for davehere
0
212
Member Avatar for kevintse

[CODE]#include <iostream> using namespace std; const char* foo() { return "Hello"; } const char* bar() { const char* s = "world"; return s; } void print(const char* s) { cout << s << endl; } int main () { cout << foo() << endl; print(bar()); return 0; }[/CODE] Can I …

Member Avatar for kevintse
0
129
Member Avatar for coroll

Hi, I want to put color piker in a form. Does visual studio 2008 provide such a tool or does any one know how to put a color piker. Please help me. Thanks

Member Avatar for coroll
0
117
Member Avatar for CanofCornInfini

Hello, I am new to C and not really sure how to do this. This program extracts and prints the rightmost digit of the integer portion of a float, and I need to convert it but I'm not sure how. [CODE]#include <stdio.h> void main (void) { float num; int rightdigit; …

Member Avatar for Shankye
0
155
Member Avatar for bangor_boy

Hi, I have write a method to save amounts, the method has 1 argument which is where the amounts returned by a toString should be saved as text. I have no idea what to do and my searching on google or text books has been not helpful :( [CODE]public void …

Member Avatar for jon.kiparsky
0
128
Member Avatar for JeremyJ

Hi, I need to download URL's to a file using C++ code. Does anyone know of a library, compatible with Windows, that will do this? I know about CURL, but after spending days trying to configure LibCurl using Cygwin I'm ready to give up. A friend has been able to …

Member Avatar for JeremyJ
0
930
Member Avatar for dspjm

What's wrong with the program? It went wrong when i print the numbers in the lists. After i prints the last number, it didn't stop, and the program went into wrong memory. Eager for your answer: [CODE] #include <stdio.h> #include <malloc.h> #define NULL 0 typedef int ELEMNT_TYPE; typedef struct node …

Member Avatar for ckoy
0
126
Member Avatar for bklynman01

I'm using VB.net 2008... Within the program, there is a button that opens a file inside of a second form ([ICODE]DocViewFrm[/ICODE]) and it works fine the first time around. Within this new window, there is a button that uses [ICODE]Me.Close()[/ICODE] to close the window and return to the main window. …

Member Avatar for bklynman01
0
202
Member Avatar for robotnixon

Hey everyone. I have a mysql project that requires only some basic queries except one. Nothing more challenging than some really basic select/insert statements. No problem there. But the one complex one isn't working out. I typically work a little with SQL server and wrote the following at work in …

Member Avatar for robotnixon
0
177
Member Avatar for pjh1985

Hi, I am developing a dynamic website and i want to highlight the current page but i'm having some trouble in applying the styles to the links. Here is what i've got so far: [CODE] <?php function checkPage($fPage) { $fCurrent = $_GET['title']; if($fPage = $fCurrent) { $fStyle = 'class="activelink"'; return …

Member Avatar for pjh1985
0
181
Member Avatar for RoyalElite96

Hi, I do know a bit PHP and also had no probles with regular expressions, [I]until now[/I]. This is my code: [CODE] $string = ereg_replace("([\"](.*)[\"])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] . Why doesn't it work? It all runs fine when using: [CODE] $string = ereg_replace("([*](.*)[*])", "<span class=\"style10\">\\2</span>", $sting);[/CODE] , but I want …

Member Avatar for RoyalElite96
0
207
Member Avatar for flasp

I cant solve this assignent. I hope a helpfull soul can help me out. The problems goes like this: Write a program that ask the user to enter the number of seconds as an integer value(use type long) and that then displays the equivalent time in days, hours, minutes and …

Member Avatar for Jason Giggs
0
180
Member Avatar for bwbyron

Okay. So I'm writing this snakes and ladders game, and I want to be able to save the scores, but the try/except method seems to be giving me trouble. I feel like it has something to do with the fact that I'm not writing, just reading. But I'm not sure …

Member Avatar for bwbyron
0
201
Member Avatar for Leppie

My program runs a three dimensional maze (3x3x3 = 27 locations) it has a start room exit room and code room all in a loop so no two are the same location, the start and exit rooms show up on the run compiled program but the code room does not …

Member Avatar for Leppie
0
149
Member Avatar for TrueCoding

Hi I need to have an array in my program that is defined by the user. I just need the user to enter the size of the array and then enter the integer values that they want to store in the array. I know how to declare the array myself, …

Member Avatar for vinitmittal2008
0
493
Member Avatar for skorm909

I'm making a simple text RPG game that I will later (once i get the code running well in the text version) put it to graphics and so on. Basically what this code is doing is, there's a monster that the user just killed. based on that monsters level that's …

Member Avatar for sfuo
0
226

The End.