8,298 Topics

Member Avatar for
Member Avatar for Mikey12345

Hi im new to c#.. just wondering how to convert this vba code:- [code] Sub AddUP() x = 1 For i = 2 To 100 x = x + i Next i ActiveCell.Value = x End Sub [/code] Best Regards

Member Avatar for Zinderin
0
171
Member Avatar for Zinderin

So, a single user application, all data is local, no remote access .... If a go with an Access file (DB), from the user's perspective, they simply install the app and they are good to go. Is it the same if I go with a SQL DB, or do they …

Member Avatar for Zinderin
0
167
Member Avatar for johndoe1985

Boas. Estou com uma dúvida para o qual preciso mesmo muito da vossa ajuda. Criei um report que inclui dados de 1 trabalhador (id, nome, residencia, bi, categoria profissional, etc...) e preciso de fazer o seguinte comando SQL: [B]SELECT * FROM Trabalhadores WHERE id_trabalhador = ' + valor + '[/B] …

0
87
Member Avatar for Lusiphur

I've been building a custom [URL="http://bariby-quance.com/blogged.aspx"]journal application[/URL] for my website which has a reply sub-app where visitors can post responses to my frequent posts. In the response sub-app I want to be able to incorporate formatting buttons (bold, link, colour, etc) that will take selected text within the textbox and …

Member Avatar for Lusiphur
0
595
Member Avatar for Silvershaft

Hey! I am making a program that keeps track of users so the program has to update the number in the database how do I actually do it? I know how to select things and such, but have no idea how the update works.. I didn't really find anything for …

Member Avatar for Silvershaft
0
4K
Member Avatar for sankaran1984

I want to write a method to remove consecutive items with duplicate data values from a singly linked list. The method should return the number of items removed. The method should clean up memory as required, and should assume that memory was allocated using new. For example, passing in the …

Member Avatar for WolfPack
0
176
Member Avatar for sankaran1984

I want to write a method to determine if a given string is a palindrome. E.g. "Madam I'm Adam", or "A man, a plan, a canal, Panama". The prototype for the function is: [CODE]bool is_palindrome(char const * str)[/CODE] I have a simple logic to check for equality by moving forward …

Member Avatar for jonsca
0
103
Member Avatar for hgbreton

I need to create a SOAP wrapper of the form [CODE=xml] <SOAP-ENV:Envelope xmnls=........><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope> [/CODE] My C# code to do this is as follows [CODE=C#] XmlElement soapEnvelope = document.CreateElement("SOAPENV", "Envelope", "http://schemas.xmlsoap.org/soap/envelope"); XmlElement soapBody = document.CreateElement("SOAPENV", "Body", "http://schemas.xmlsoap.org/soap/envelope"); [/CODE] This works fine for the Envelope part but then adds a spurious xmnls …

Member Avatar for kvprajapati
0
484
Member Avatar for Jesi523

Hi...Someone please help. I have a web site that is based on information in a database. It is used to sign people up for events or classes. So an event is created, a link is provided with the query string for that event, then people can view the different times …

Member Avatar for Jesi523
0
251
Member Avatar for rayborn66

Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" …

Member Avatar for rayborn66
0
289
Member Avatar for hondros

I have the following function (from windows.h) which I am trying to use the Python C API to allow python to call it. This is the function: [code syntax=C] BOOL ReadConsoleOutputCharacter( HANDLE hConsoleOutput, (Type Handle to Change (use STD_OUTPUT)) LPTSTR lpCharacter, (char pointer to store Characters read) DWORD nLength, (length …

Member Avatar for hondros
0
350
Member Avatar for elizabeth mwash

I was wondering, once you have created a system and now ready for use, how do you intergrate it with existing database

Member Avatar for finito
0
444
Member Avatar for octavia

Hi all, Any ideas for video file encryption using AES (symmetric) ???????????? I seen only data file encryption. I wanna encrypt video file and decrypt as well ..... Who wants to help such a new beginner ???????/:) PLssssssssssssssss :confused:

0
59
Member Avatar for gameon

I want to make a c++ program which scan all drives and generate list of all files and folder. how can i do it in c++? Plz help me......

Member Avatar for gameon
0
1K
Member Avatar for jeeter19

Hi, I'm trying to send a MySQL query string from a C# application to a PhP submission page via POST. The problem I am receiving is when I try to use the WHERE clause it hangs up at the string I'm trying to compare to. [B]The Query[/B] SELECT * FROM …

Member Avatar for pulketo
0
148
Member Avatar for craigp1

Hi, I'm writing a steganography app in c# that will hide an image and text covertly inside the least significant bits of a bitmap image. I'm trying to convert this code snippet i found in matlab to c# but dont know how. Does anyone know how to convert it to …

Member Avatar for vdeych
0
145
Member Avatar for kp_it_simpl

I am a new student using MS Visual C# 2008 Express Edition. I am trying to run an example from my textbook. The VS new console application creates the following code and I add the new code as per my comment below: I get the following error twice: Error 1 …

Member Avatar for Lusiphur
0
169
Member Avatar for commelion

Can somebody take a look at these and tell me why the boat class will not inherit from the transport class, i keep getting these errors, i have the two classes in the same source file folder, ive tried putting them both together with no luck either.. help !! error …

Member Avatar for Fbody
0
338
Member Avatar for hery

hello all, i want to ask how to i set variable in asp:sqldatasource in sqlcommand in asp.net c#.... This is my code asp.net [code] <dx:ASPxListBox ID="lsAssignToko" runat="server" DataSourceID="SqlDataSource6" TextField="NAMA" ValueField="ID" AutoPostBack="true" EnableCallbackMode="True" SelectionMode="CheckColumn" onselectedIndexChanged="lsAssignToko_SelectedIndexChanged"> <Columns> <dx:ListBoxColumn FieldName="ID"/> <dx:ListBoxColumn FieldName="NAMA" /> </Columns> </dx:ASPxListBox> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2010 %>" ProviderName="<%$ ConnectionStrings:Ora2010.ProviderName …

Member Avatar for Lusiphur
0
753
Member Avatar for Zinderin

I am still learning C#. I come from a Delphi and C past. I am used to being to create flat data files of of records. Example: [CODE] // Sample Delphi code... type SectorRecord = Record iIdx : integer; iCoordX : integer; iCoordY : integer; sName : String[60]; end; ..... …

Member Avatar for Zinderin
0
277
Member Avatar for judithSampathwa

hi there, i have a mask text box in a form to enter the money amount in the text box.(displayed as $________.__) whee the user enters $___555__.__ how can i validate it.to get the value 555to the database. how ca i do this. hey anybody has any tutorials regarding validating …

Member Avatar for Lusiphur
0
807
Member Avatar for krisox

hi i would like to group rows in categories like that : [URL="http://img199.imageshack.us/img199/9152/capturegww.jpg"]http://img199.imageshack.us/img199/9152/capturegww.jpg[/URL] I konw how to do this with OutlookGroupBy but its not possible to put the same row into severals categories So is there a way to group rows while beeing possible to put the same row into …

Member Avatar for krisox
0
38
Member Avatar for rajdey1

Hi All I am trying to write Asynchronous client-Server Socket program in which whenever a client is connected to server a Windows Form is created which has a textbox and two buttons......on Data recieved by server from client the data is written in respective windows Form textbox and if a …

Member Avatar for nick.crane
0
206
Member Avatar for c0deFr3aK

Hi everybody please help me on how to code this in C#. I have an ASP.Net Web project and needs some C# code behind. Working some variables: In my VB.Net it looks like this: [CODE] Dim str1 as String Private Sub Button1_Click(...) str1 = "some text" 'This will be assigned …

Member Avatar for Lusiphur
0
149
Member Avatar for baladeveloper

hi ... how to create the stored procedure?, and how to call the stored procedure in c# ?....

Member Avatar for Jinnybat
0
99
Member Avatar for nidhi4may
Member Avatar for Merlin33069

Ive looked through google and a few other places, searching for how to calculate the pixels you would need to fill in a 3d space to draw a line, circle , sphere or anything really. Ive always been good with learning math, i just need somewhere to learn it from …

Member Avatar for adams161
0
267
Member Avatar for Saxo

Would anyone have a C++ program that will prompt the user to enter the number of students and subjects that have been marked, the user should be able to enter the names of the students and subjects and the user should also enter the associated exam results. The program should …

Member Avatar for meandmyself
-2
525
Member Avatar for tundra010

Hello everyone! I wrote a basic c++ program using classes and pointers. Although it compiles without any errors, it will not run, saying "This program has stopped working". I am assuming that this issue may have been created by a memory leak, but I made sure to delete all dynamically …

Member Avatar for thelamb
0
114
Member Avatar for kulotskii

please help! ineed a C++ program that will read and print the contents of a text file one character at the same time.. please please.. thank you..

Member Avatar for avarionist
-5
140
Member Avatar for DelilahDemented

I'm doing this simple program that checks for number validation and I have an infinite loop in it. I can't figure out how to stop it. It's supposed to check for numeric digits only, but when it finds something other than the above, it hangs up in the loop. Could …

Member Avatar for DelilahDemented
0
237
Member Avatar for bbman

Hey, I apologise for the noobishness of this question, but I am unable to move the form. [CODE] if (Screen::PrimaryScreen->Bounds.Top != Screen::PrimaryScreen->WorkingArea.Top) { this->Left = Screen::PrimaryScreen->Bounds.Right - this->Width; this->Top = Screen::PrimaryScreen->WorkingArea.Top; } else if (Screen::PrimaryScreen->Bounds.Left != Screen::PrimaryScreen->WorkingArea.Left) { this->Left = Screen::PrimaryScreen->WorkingArea.Left; this->Top = Screen::PrimaryScreen->WorkingArea.Bottom - this->Height; } else { this->Left …

Member Avatar for jonsca
0
130
Member Avatar for Zinderin

I know you guys MUST be tired of scope questions ... but I need some help getting through this fog ... The following code works ([I]notice where I instanced 'cp'[/I]) .... [CODE] public partial class frmMain : Form { ConnectParams cp = new ConnectParams(); public frmMain() { // Fires up …

Member Avatar for Zinderin
0
155
Member Avatar for mahmud2008

[code] using System; using System.Collections.Generic; using System.Text; namespace Factorial { class Program { static void Main(string[] args) { int i, n, fac = 1; string s; Console.Write("Please enter any number to find it's factorial(0 to 19):\n"); s = Console.ReadLine(); n = Int32.Parse(s); for (i = 1; i <= n; i++) …

Member Avatar for ddanbe
0
221
Member Avatar for angelrapunzel

hi frnds!! i have d code for series x^!+x^2+x^3+....x^m with single loop only //wap to find sum of series and print series also //x+x^2+x^3+......x^n #include<iostream.h> #include<conio.h> void main() { clrscr(); int n,x,count1; int sum=0; cout<<"enter a number"; cin>>x; cout<<"enter nth term till which u want to compute"; cin>>n; int count=1; …

Member Avatar for NathanOliver
0
111
Member Avatar for Thew

Hello everyone, I have a problem in my Borland C++ project. I need to use my own COM object written in C# (this COM allows me to directly print PDF files) in my another project in C++, but as soon as I call some COM functions which require a string …

Member Avatar for Thew
0
250
Member Avatar for f08

we are using visual studio 2005 and MS access and Oledb connection i.e we are using manual connection for the connection with database Actually we want to update our general ledger table and cash table in access from a single form cash receipts. In general ledger we want updation in …

Member Avatar for kvprajapati
0
94
Member Avatar for moshe12007

i have in the Visual C# 3 options of database : 1. SQL SERVER (.sdf) 2. ACCESS (.mdf) 3. ADO.NET (.edmx) which database advisable to use??? *if you give me answer please give me tutorial\book\name of book. thanks.

Member Avatar for kvprajapati
0
174
Member Avatar for samaru

If you're doing programs for academic reasons, this is a good site to go for C++ information. Good for snippets. Used it a lot through classes. http://www.mvhs.net/~rkrane/clecs/

Member Avatar for kvprajapati
0
1K
Member Avatar for TomB1988

Hi there, The program in hand must retrieve a bunch of data from an SQL Database (currently stored in a DataTable), fiddle around with the data, and then upload the changed data to the same SQL database. Everything works fine at the mo apart from the final bit, uploading to …

Member Avatar for microdata
0
144
Member Avatar for bushman_IL

Hello, I am trying to send an object over a socket using C#. I originally used a memorystream and binaryformatter, but to do this I need to include a reference from program1 to program2. I don't want to have a reference, so I just want to be able to transform …

Member Avatar for bushman_IL
0
1K
Member Avatar for chandruswami

In validating textbox in c#.net, I want to allow the user to enter value based on the conditions. Not Allowed ------------ 1. Only special characters not allowed (Ex: !@#) 2. Only Numbers not allowed (Ex: 3456) Allowed --------- 3. characters only small letters allowed. (Ex: asd) 4. characters only capital …

Member Avatar for ddanbe
0
70
Member Avatar for moshe12007

i dont know how to read from database SQL. i try this : [CODE] string sql = "Select * from Table1 "; DataSet ds = new DataSet(); string connStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlConnection conn = new SqlConnection(connStr); SqlCommand cmd = new SqlCommand(sql, conn); conn.Open(); SqlDataAdapter adapter = new …

Member Avatar for nick.crane
0
99
Member Avatar for smita mone
Member Avatar for addie20

how I am new to c# and I have a question I have to create a form, it is of 2 pages so I created 2 different forms, now based on the database table, I have to fill few textboxes in form2 in order to overcome the exception of crashing …

Member Avatar for sadhawan
0
193
Member Avatar for geethanjaliprat

hi to every one!!!!!!!!!!!! i just need a help from u, i just want to assign symbols like @$* wat i hav to do please help me by giving me a sample example.

Member Avatar for LevyDee
0
72
Member Avatar for Tom Gunn

The forum is buzzing with questions about tokenizing a C++ string. This is a short function that does it and returns a vector of the tokens. As an option, the delimiter string can represent either a multichar delimiter or a collection of single char delimiters: [code] // multichar delimiter == …

Member Avatar for daviddoria
1
734
Member Avatar for virendra_sharma

want this code in C# ,[code]void sort(int *a, int size) { int i,j, swapped=0; for (j=size-1; j>0; j--) { swapped=0; for (i=0; i<j; i++) { if (a[i+1] < a[i]) { swap(a[i], a[i+1]); swapped=1 } } if ( swapped == 0 ) break; } }[/code]

Member Avatar for bbman
0
177
Member Avatar for jobs

I am looking for a good C++ example of a simple MySQL client program written in C++ and runs on Linux, using MySQL++ libraries that does the following (no threading): Accessing Option File Contents, ~/.my.cnf, in user home folder to read settings (load_defaults). Constructing and sending the sql statement that …

Member Avatar for Stefano Mtangoo
0
466
Member Avatar for tirpanceker

Hello, I'm searching a program or api to discover bluetooth device.. I'll using it in a c# program which run in my laptop. I'm using 32Feet.Net 2.5 in the Toshiba notebook and receive error "No supported Bluetooth protocol stack found". It supports microsoft and widcomm/broadcom bluetoth satck.. Please advise a …

0
23

The End.