8,298 Topics

Member Avatar for
Member Avatar for uva1102

Hi everyone, i already build web page, now i need to add one more user and the user based authorization to view only the website. any samples please.. thank you

Member Avatar for ChrisHunter
0
140
Member Avatar for contacttonipun

I am not able to solve problem number 25 mentioned in the attachment. The problem is related to questions 23 and 24, which I have solved. Their code is given below. Can anyone help me with problem 25? Just so you know, since I am a beginner, I am only …

0
74
Member Avatar for thiemebr

Ok. I'm new in c# and I'm trying to create an online booking service. I have the file: dbConnClass.cs where I have the db connection/statement as shown: [CODE] public void getPrice(int fromDest, int toDest, int totalPass) { string sqlStatement = "SELECT * " + "FROM destPrices "+ "WHERE fromID = …

Member Avatar for Momerath
0
443
Member Avatar for eve_moore

I have an image processing project using c++ language. I have also linked opencv to integrate some optimized algorithms.However, I would like to create a nice GUI using Visual C#. Is it possible to call a certain program in c++ in visual c#. (P.S. I have no idea about dll, …

Member Avatar for eve_moore
0
300
Member Avatar for ads1188

Hi All, I am new to programming and have been trying to learn the c++ language for the last couple of weeks. I feel that I understand a lot of what I have learnt but where I am confused how databases are used if c++. Most the tutorials or books …

Member Avatar for Ancient Dragon
0
155
Member Avatar for DarkMonarch

is it possible in C to do an unfix size array like in Java ? if so, howto ? thx guys Dark

Member Avatar for DarkMonarch
0
196
Member Avatar for ipodtrip

to anyone, I'm new to using C# wrote a program for a business class to calculate double-decling balance method of depreciation for years. But when I run the progam and enter the 2000 for property value, 5 for property life. I get the wrong results. for year 1 Value at …

Member Avatar for Momerath
0
550
Member Avatar for gavriel20

Hello. I am using this code to save asp.net page as an MS Word doc file. protected void GenerateMsWordDoc(object sender, EventArgs e) { string strBody = "<html>" + "<body>" + "<table width=\"100%\" style=\"background-color:#cfcfcf; font-family: Arial, Helvetica, sans-serif\"><tr><td>????</td><td>2nd cell body data</td></tr></table>" + txtName.Text + "</b></div>" + "Ms Word document generated successfully." …

0
66
Member Avatar for hazeleyez

Hello All, Can someone please help me with this? I converted from C# to VB.NET and get this error : [B] A namespace cannot directly contain members such as fields or methods [/B] I appreciate you looking at this. Regards Imports System.Collections.Generic Imports System.Linq Imports System.Text Namespace UsedCarsSales Public NotInheritable …

Member Avatar for hazeleyez
0
293
Member Avatar for sah

I have developed an application that loaded many images in a listview using ImageList in c# .net framework 4. The images are also compressed. When many many images are loaded and compressed then it takes a long time. So I call the method in backgroundworker. In the backgroundworker I had …

Member Avatar for lolafuertes
0
465
Member Avatar for google2011

[URL="http://www.herongyang.com/C-Sharp/"]C# Tutorials[/URL] This free book is a collection of notes and sample codes written by the author while he was learning Flash. Topics include C#, C Sharp, data types, float, expression, literal, loop, .NET, performance Table of Contents About This Book Introduction of C# (C Sharp) What Is C#? Installing …

Member Avatar for thines01
0
381
Member Avatar for himvj1

Hi I am working on Pdf annotation using Itextsharp. I am able to get hyperlink url from pdf using the below code. How to get the annotation (Highlited) text from pdf. [CODE] string[] PdfFiles = Directory.GetFiles("C:\\ABK"); foreach (string fi in PdfFiles) { try { PdfReader reader = new PdfReader(fi); // …

0
63
Member Avatar for d.f

Hello, all. I am receiving an error that I hope you all can help me with. After running a while or quite a few reports, I get the message " The maximum report processing jobs limit configured by your system administrator has been reached." I know this is because I …

Member Avatar for d.f
0
692
Member Avatar for varul7

C program to replace all the letters of a string with all 26 alphabets and to do permutations to all the substituted ones and finally store the resulted strings in a file.. please help me out in fixing this situation.. To be clear. let me quote an example: If i …

Member Avatar for varul7
0
935
Member Avatar for sah

there are three methods called in a backgroundworker_dowork() event in c# .net 4. I want to execute three methods synchronously. that is, 2nd method will execute after 1st method is fully executed and 3rd method will execute when 2nd method is fully executed. because 2nd method can exetue properly only …

Member Avatar for Momerath
0
438
Member Avatar for pendo826

I have errors for the template can any1 see anything wrong??? //Array.h [CODE]//Header file for Array.cpp. class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; public: //Functions. template<class Datatype> int m_size; Datatype* m_array; //Consturctor. Array( int p_size) { m_array= …

Member Avatar for jaskij
0
241
Member Avatar for itsvineethpv

I have created a new website . With access db inside app data folder. . And hosted in server. . Bt it is not retrievind or updating db datasg . Why it is happening ?

Member Avatar for hericles
0
311
Member Avatar for minghags

Hello can anyone help me with sorting this struct by name and surname? Ive done like this and it doesn't sort it. Thanks Code: [CODE]#include <iostream> #include <string> #include <vector> using namespace std; struct student { int st_studenta; string vpisna; string ime; string priimek; }; student vpis(int st_studenta) { student …

Member Avatar for jaskij
0
1K
Member Avatar for minghags

Hello! Im having trouble with reversing string in this program: [CODE]#include <iostream> #include <string> using namespace std; int numChars(string besedilo[]) { int znaki=0; int vrstica=0; for(int a=0;a<10;a++) { vrstica=besedilo[a].length(); znaki=znaki+vrstica; } return znaki; } int numWords(string besedilo[]) { int besede=0; string vrsta; for(int a=0;a<1;a++) { vrsta=besedilo[a]; for(int b=0;b<besedilo[a].length();b++) { if(vrsta[b]==' …

Member Avatar for stereomatching
0
392
Member Avatar for singularity~

I have an integer called: int pID = 0; Inside my while loop I'm using pID++; to increment it. Sometimes the pID doesn't get incremented and sometimes it will. My sample output would be. 0 1 2 2 2 3 4 5 5 6 7 Does anyone have an idea …

Member Avatar for singularity~
0
239
Member Avatar for minghags

I want to change chars in string like this: if i input DaniWeb it will change it to EbojZfc I've come so far: But this changes to z at the end :S Please any help... [CODE]#include <iostream> #include <string> #include <algorithm> using namespace std; int numChars(string besedilo); int numWords(string besedilo); …

0
85
Member Avatar for mayzebra

I'm in the process of converting a complex system from VB6 and C to C#. However now I'm in a position where I need to call a C# dll from VB6 and I need it yesterday. The only solution I found was using Interop, which didnt work, and seemed to …

Member Avatar for nirdeshdabas
0
3K
Member Avatar for f.sh

actually i'm developing web template using asp.net and c#. i have mainTemp.aspx page which is include usercontrol page. in my usercontrol i have a listview which in this listview i have to create dynamic table inside the ItemTemplate based on a XML file. my listview code including the ItemTemplate is: …

0
139
Member Avatar for shywolf91

I need help finishing this assignment. I am really confused! [CODE] //Game of Life //Dylan Metz #include <iostream> #include <string> #include <fstream> #include <cstring> using namespace std; //function(s) void GetFile(); //Get filename char MakeArray(); //Make 2d array char ChgArray(); //change the array char GameBoard(); //Game Board //Global Variables const int …

Member Avatar for shywolf91
0
2K
Member Avatar for logicmonster

I am having a problem displaying random numbers, I'm trying to make a dice game where you play against the computer and the first one to 100 wins. However, my random number is never random, it always comes out as the same number. From what I understand to simply display …

Member Avatar for MrEARTHSHAcKER
0
866
Member Avatar for timyoung

I need to make it so that whenever I have "East" selected under my combobox for example, then only the list of parks with that particular location will show up. I also need to do the same for whichever facilities are selected and if the park falls within the opening …

0
54
Member Avatar for MrEARTHSHAcKER

Hi, When writing a little code for showing ASCII characters in C++ and C, the only difference is when I do it in C++ I print until char ( or integer ) reaches value of 127, and in C I print until it reaches 255. Why it's like that? Thanks!

Member Avatar for MrEARTHSHAcKER
0
176
Member Avatar for Kathyrine

I wanna convert an integer to a character then i will store it later to the index of a c-string...... something like... int res=123 then it will be putted in.... var[0] = 123 where in var is a cstring, and here 123 is now a char type..... here is what …

Member Avatar for Software guy
0
203
Member Avatar for Buffalo101

Hi, I'm trying to create a thread for running some tasks. I copied the code from an old console application (which compiles fine), but can't figure out why it's not working now. I have searched for the error code and came across this suggestion: "Are you passing the name of …

Member Avatar for jmichae3
0
691
Member Avatar for mrmodest34

Alright, I understand some of the basics of big O notation, but I have a test coming up in a few days and I need a bit of help. I understand that if you have a loop that iterates i*=2 then it would run lg(n+1) as log base 2 and …

Member Avatar for histrungalot
0
209
Member Avatar for sudheer2250

Hi All, I am trying to convert the following C++ code to C#. pExportDir = (PIMAGE_EXPORT_DIRECTORY)GetPtrFromRVA(exportsStartRVA, pNTHeader, pImageBase); [CODE]template <class T> LPVOID GetPtrFromRVA( DWORD rva, T* pNTHeader, PBYTE imageBase ) // 'T' = PIMAGE_NT_HEADERS { PIMAGE_SECTION_HEADER pSectionHdr; INT delta; INT delta2; pSectionHdr = GetEnclosingSectionHeader( rva, pNTHeader ); if ( !pSectionHdr …

Member Avatar for sudheer2250
0
456
Member Avatar for Labdabeta

I am getting ready to write a programming competition on Tuesday (the Canadian Computing Competition) and I remember that last year it said that only standard libraries can be used. I was having trouble deciding which libraries are standard. I ended up using windows.h and when I suddenly realized that …

Member Avatar for Labdabeta
0
192
Member Avatar for D19ERY

write, compile and test a short program to read in a list of 10 positive numbers which also determines and prints out the largest number. here's what i've got so far. but how do i change it in order for it to accept a positive number only? [CODE]using System; using …

Member Avatar for skatamatic
0
143
Member Avatar for Marco25Me

Hello to all, before begin i must say that I'm sorry for my bud english and hope that it not be a problem for understanding whit you. I'm looking for a solution to create a simple background server application that running and live over infinite loop cicle, whit have the …

0
85
Member Avatar for f.sh

Actually i'm creating web template using asp.net and c#. in my user control page i have to create the table dynamically. i just read the data from XML file then retrieve the name and number of columns and rows of each table. while i'm creating the table i assign the …

Member Avatar for f.sh
0
1K
Member Avatar for jonnyboy12

Hello all this is my c++ web server that i can get working on my computer but not connecting to others for some reason. I am not on a router, just using my external ip address. If i run the server and type my external ip address into my browser …

Member Avatar for jonnyboy12
0
215
Member Avatar for naraayanan1983

Hi friends, I need to develop a COM Port Application in the C#.Net? So What kind of code will i use to COM Port Application in C#.Net? Please Help me.

Member Avatar for naraayanan1983
0
59
Member Avatar for DavidKroukamp

Hi all, I'm in my 2nd year of software development (doing C#) and having come from a Java background, and having programmed a few GUI's in C#/Visual Studio's; I was wondering... Like in Java You can use an IDE to build a GUI, however you can also simply add Frames, …

Member Avatar for DavidKroukamp
0
341
Member Avatar for notuserfriendly

I am starting a new project and i plan to use c# for it. Basically what it entails to is reconfiguring a large am mount of config files. 100+ of them. They are each named differently but are prefixed the same (ex: CONFIG_FILE_xxxxxx , where x changes). Inside the files …

Member Avatar for thines01
0
305
Member Avatar for bhagawatshinde

Hi Guys, I am developing an windows application which is downloading file from webserver using FTP, my question is can i download file using HTTP. can anybody help me with some source. I am downloading a xml file. Thanks in advance.

Member Avatar for bhagawatshinde
0
3K
Member Avatar for spikeyMikey737

I am trying to create an if statement that when the user releases the left mouse button it will write that out to a text file. I have tried multiple different scenario's and have had no luck, here is some of what I have tried. Thanks for your help! [CODE]if(mouse_event …

Member Avatar for BobS0327
0
440
Member Avatar for uva1102

Hi, Hare is the Example: Table1 Table2 Edit button = to edit the value at Table2 3 blank Table1(as per contract we have 3 spare things) Table2(Current stock of things means if stock have 3 out of 2 means we have to edit to 2 in the table 2) ANy …

-2
71
Member Avatar for dwarvenassassin

OK, I am relatively new to C#, so in order to give myself a 'learning' project, I thought I'd update an application I wrote a couple of years ago. The application uses a ListView control in "Details" mode to display MP3 tag data stored in an Access MDB database file. …

Member Avatar for Momerath
0
195
Member Avatar for itsvineethpv

How to host a asp.net c# web project in a windows service. Please give some step by step instruction. . Please note that it is Not a webservice

Member Avatar for Ketsuekiame
0
321
Member Avatar for mrmodest34

Hey, I am having trouble implementing a c++ function that will allow the user to enter a lower and upper bounds and reverse everything in a char[] in between the bounds, so if array is, char[] = {'A','B','C','D','E'}; and the user input was 1 and 4 for 1 as the …

Member Avatar for Lerner
0
196
Member Avatar for MrEARTHSHAcKER

Hi, I noticed many programmers accuse C++ as very hard language for GUI and very good language for the code. Is there any way to integrate 2 languages, C++ and any other language which is easy to make GUI with? Thanks.

Member Avatar for mike_2000_17
0
275
Member Avatar for VasquezPL

Hi guys, I need your help: I tried to initialize an array like this: [CODE]string[] relation1;[/CODE] then I fill it with another function that contains the code: [CODE] for loop then: relation1[z] = something; [/CODE] but...compiler always writes that: [CODE]relation1' is never assigned to, and will always have its default …

Member Avatar for VasquezPL
0
292
Member Avatar for megha.iconweb

We are using C# as front End and Sqlserver 2005 as backend.We are using visual studio 2008. System.data.sqlclient is the provider for sqlserver in our localhost and our functionality is running correctly. But we are using bigrock as hostgator, where we uploaded our files and we get to know that …

0
51
Member Avatar for bhagawatshinde

Hi Guys, How to use bigin trance, commit and rollback in c#, suppose i have inserted values in two tables while inserting i am getting error in table 2 but table 1 has inserted values successfully so in catch how i can rollback changes.....after successful insertion i want to commit …

Member Avatar for bhagawatshinde
0
515
Member Avatar for free2move

I need to sort a series of 25 numbers, entered by the user from smallest to largest, then count the number of times the user entered the number "10". I can't use arrays and I have to use only for loops, can someone please help?

Member Avatar for free2move
0
2K

The End.