8,298 Topics

Member Avatar for
Member Avatar for Muhammad_75

welcome everybody, i am able read my file by asking the filename from user but i am facing a little problem,When i type a name of file which doesnot exist,compiler also shows it with some zeroes, this is my program, please help me,having problem in case 2... #include <fstream> #include …

Member Avatar for mike_2000_17
0
241
Member Avatar for yoyoo

Hello there, I need to convert mdf file into sdf file using C#. Please any help will be greatly appreciated. Thanks a lot, yoyoo

Member Avatar for muka12
0
73
Member Avatar for mark261511

cmdInsert.Parameters.Add(new OleDbParameter("@Student_Section", OleDbType.VarWChar, 50, "Student_Section")); cmdInsert.Parameters.Add(new OleDbParameter("@Birth_Month", OleDbType.VarWChar, 50, "Birth_Month")); cmdInsert.Parameters.Add(new OleDbParameter("@Birth_Date", OleDbType.VarWChar, 50, "Birth_Date")); cmdInsert.Parameters.Add(new OleDbParameter("@Birth_Year", OleDbType.VarWChar, 50, "Birth_Year")); cmdInsert.Parameters.Add(new OleDbParameter("@Gender", OleDbType.VarWChar, 50, "Gender")); cmdInsert.Parameters.Add(new OleDbParameter("@Picture", OleDbType.Binary,50, "Picture")); //<<----//I do not know the proper format of saving.. cmdInsert.Parameters.Add(new OleDbParameter("@Teacher", OleDbType.VarWChar, 50, "Teacher"));

Member Avatar for Ketsuekiame
0
204
Member Avatar for BegginerLance

Hello there? im starting to learn C# language and i really enjoy it, and my teacher wanted us to search a code that can determine an inputed number up to 10 what is lowest and highest. please sir/ maam i need a response (sorry if i don't have good english).

Member Avatar for BegginerLance
0
154
Member Avatar for Adam_21
Member Avatar for markdean1989

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is …

Member Avatar for markdean1989
0
521
Member Avatar for Ahmad Imran
Member Avatar for Duoas
-1
232
Member Avatar for sanjeewa.abeywardana

I have heard that table security for data stored in the table can be made by storing Hashbyte data in a column. So anyone comes and change values manually in a table will be identified and that record be ommited for further calculation Need help on these areas CREATE TABLE …

Member Avatar for Ketsuekiame
0
194
Member Avatar for PulsarScript

Hi all,here is the code c# Array.Copy,what does the o means in the code block? using System; class Program Hi all what does the 0 means in the code block? using System; class Program { static void Main() { int[] values1 = { 4, 4, 4 }; int[] values2 = …

Member Avatar for deceptikon
0
558
Member Avatar for mjbor1

i developing a poster software, when i'm trying to post a link it give the following exception facebook api exception #100-invalid here's my code public static bool post(string accesstoken,string status,string link) { try { FacebookClient fb = new FacebookClient(accesstoken); Dictionary<string, object> postArgs = new Dictionary<string, object>(); postArgs["message"] = status; if …

Member Avatar for mjbor1
0
1K
Member Avatar for khloud.alharazi

using switch statement writing a program for simpe calculator having functioinalities of finding addition,subtraction,division,square,cube and square root for any tow numbers obtained from user? `Inline Code Example Here`

Member Avatar for rubberman
0
71
Member Avatar for PulsarScript

//Hi all just switching from c++ to c#.Can anyone help,with the question i have: //this is a peace of code from c++ banking aplication int ShowMenu(void); void AddAccount(vector<CAccount*>& list); void DisplayAccount (vector<CAccount*>& list); void Lodgement (vector<CAccount*>& list); void Withdroawal (vector<CAccount*>& list); void InterestRate (vector<CAccount*>& list); CAccount* findAccount (vector<CAccount*>string ); bool …

Member Avatar for ddanbe
0
2K
Member Avatar for markdean1989

Hi I am working on a simple C++.Net project which will allow me to run another program (e.g., I. Ex., Word etc.). However, I can't seem to find any working codes online. Here are the codes I have found so far; ShellExecute(GetDesktopWindow(), "open", "c:\myTestFolder\myfile.exe", NULL, NULL, SW_SHOWNORMAL); requires the inclusion …

Member Avatar for markdean1989
0
342
Member Avatar for humorousone

I'm creating my first github repo in C# (compatability has only just been added), and I'm really unsure of how to structure my project. I know that many languages have folders like: /src /builds though i'm not sure how this would apply to C#. There's this C# project, although it …

Member Avatar for deceptikon
0
252
Member Avatar for mark261511
Member Avatar for yoyo30

When user click on the button "back",it should go back to "HomeStudent.aspx",but unfortunately its not working and no error shown.Do help me. <%@ Page Title="Advertisement" Language="C#" MasterPageFile="~/AccommodationStudent.master" AutoEventWireup="true" CodeFile="Advertisement.aspx.cs" Inherits="Advertisement" %> <%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> <style type="text/css"> .style1 { width: 224px; } </style> </asp:Content> …

Member Avatar for yoyo30
0
4K
Member Avatar for Luisa_1

Hello everybody, I'm searching for a book or a documentation that includes all the librairies ,and their functions, of the C++ programming language. thx

Member Avatar for rubberman
0
179
Member Avatar for doris_3

Implement a C function that can perform addition of two 15-digit (positive) integers. As in C the maximum integer number that can be stored in memory is 2147483647 it is not possible to use primitive data types in order to add very large whole numbers. For this reason, you are …

Member Avatar for Jack_11
0
216
Member Avatar for Alxprog

In my Windows Forms c# project I try to connect to an already existing ms sql database file (added binding Source on the form, then : bindingSource -> properties -> DataSource -> add source - > .... ) but when I pick this file it writes something like "You dont …

Member Avatar for Alxprog
0
289
Member Avatar for Garidius

I'm trying to add a progress bar to a working theaded program that uses a cancelation token too. The structure of the program is: I have a button "BeginButton" that calls the function "MyFunction()". The function runs in another thread and a cancellation token listens if I press a Cancel …

Member Avatar for Garidius
0
2K
Member Avatar for iqra_2

A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer’s balance falls below the minimum balance, there is a service charge of $10.00 for savings …

Member Avatar for rubberman
-1
143
Member Avatar for khadikhel.orakzai

write a c++ program that will do the . Enter 10 integer . Pushing on stack and poping on user choice . pushing on queue and poping form queue . Bring the integer in order. Display the calculator selecting oprtion by user choice (+,-,*,%)

0
92
Member Avatar for markdean1989

*** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two numbers, it has two parameters of type Integer. It has no errors whatsoever until you compile it, and it says …

Member Avatar for markdean1989
0
324
Member Avatar for ramyking
Member Avatar for BibhutiAlmighty

can anyone suggest me a good English Dictionary API for C# windows forms application. I tried using "NHunspell" but i found it very difficult to use ? Please Help !!!!!!!!!!!!!

Member Avatar for ddanbe
0
97
Member Avatar for avishekh.bharati

I am familiar with java. but now i want to learn either of these. so which would be better to learn??

Member Avatar for vegaseat
0
193
Member Avatar for verse.ability

hi below is a switch case that is suppose to go to the next "hep" # and show a message... so if hep is 0 it shows one message, if hep is 1 it shows another, etc. I have it showing a message for 0, and 1, but it ALSO …

Member Avatar for verse.ability
0
374
Member Avatar for EdJones

What's a good book to learn C if you already know Python and are comfortable with computer science terminology? I'd like a book that is downloadable as a .pdf free of charge but an html book viewable online free of charge would be fine. Also, is there an advantage to …

Member Avatar for tabanpanoam
0
278
Member Avatar for xela_1

I am new in c programing.In apps they usualy have images as background take for example a question and answer app will have a colourful backgroung.If i draw an image with corel draw how can i display as background in my c program.

Member Avatar for HiHe
0
227
Member Avatar for nuller

and my code to write into a file is ofstream file; file.open("CustomerFile.txt",ios::app); file.write((char *) & customer,sizeof Customer); file.close(); file.open("AccountFile.txt",ios::app); file.write((char *)& account,sizeof Account); file.close(); can someone figure out my mistakes. Thanks in advance

Member Avatar for NathanOliver
0
85
Member Avatar for chanedgar1791

hi, I am creating a C# application and I am wondering how can I create a custom setup project. not the conventional one provided by visual studio. I would like to add a status bar and create my own folders and insert the required files to the folders, etc.. any …

Member Avatar for gusano79
0
350
Member Avatar for juliocesar.schincariolfilho

I'm trying to load a png to my button, but it's not showing the png in my button. I create my button with this function: HWND MyControls::CreateButton(LPCTSTR text, int x, int y, int w, int h, HMENU id, HWND hwnd, HINSTANCE hInst, bool png){ if (png){ return CreateWindow("BUTTON", text, BS_BITMAP …

Member Avatar for triumphost
0
2K
Member Avatar for nuller

fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file?

Member Avatar for Duoas
0
497
Member Avatar for mikeandike22

If you are a programmer than you probably know or at least know of C++ well now a company called Digital Mars is developing the D programming lanugage. [I] "D is a systems programming language. Its focus is on combining the power and high performance of C and C++ with …

Member Avatar for The Old Man
1
476
Member Avatar for nuller

i need to make a c++ console based program for a banking system using files. i implemented some code but having difficulty with withdrawing money from the account, checking balance, transferring funds and viewing transaction. For withdrawing funds i implemented the following code but it doesn't seem to work properly. …

Member Avatar for tinstaafl
0
278
Member Avatar for kkk122

Hello, I am trying to pass file path as command line argument. If the path without spaces it works fine. with spaces it is not. Please find my code below. string scriptFilePath = "@" + Directory.GetCurrentDirectory() + "\\" + scriptFile; // exact path string scriptPath= " \"" + scriptFilePath + …

Member Avatar for tinstaafl
0
7K
Member Avatar for Erma_2

How to solve this problem? I'm getting tired thinking abou this. Help me. Write a C++ program to help the master reporter of a traffic centre to analyse the amount of traffic coming from all the different entry points to a city. The amount of traffic for each entry point …

Member Avatar for gusano79
0
190
Member Avatar for ajithkumardr

Im intrest in learn the C# programming language and also doing project in C# .Could anybody help me..

Member Avatar for ddanbe
-1
236
Member Avatar for Fil_1

I've been having a hard time for quite a while now trying to read files. These files include English text, pictures music and so on. After hurting in the jungles of Africa or the internet I found something that worked. `string str((istreambuf_iterator<char>(fileIn)), istreambuf_iterator<char>());` This made it possible to do all …

Member Avatar for NathanOliver
0
936
Member Avatar for Taufique111

I have two datagrid's in one form,so when i click by using cellclick event it shows the selected row of first datagrid in the second datagrid,so my question is how to increment it with the previous selected row of first datagrid,as i select other row the first selected row disappears??

Member Avatar for Taufique111
0
311
Member Avatar for burhanahmed92

I tried to save rows in listview control in database but i am not able to loop through each row. My listview is multicolumn, it have 4 column. I tried for loop: for (int i = 0; i < listview.Items.Count; i++) { String abc = listview.Items[i].Subitem[i].Text; //other varables } But …

Member Avatar for SteveDotNet
0
2K
Member Avatar for Noorul Ariff

Hi Friends, I want to do a project for Parsing Resume in C#. i.e when we upload resumes(More than 100), it should extract Name, email id, phone no, skills. **Please don't tell that software’s are available. I tried those soft wares, but they are not working properly.** So, I wanted …

Member Avatar for overwraith
0
1K
Member Avatar for CodyOebel

Can someone please tell me why when I check one of my boxes, and click the button I get no message box in accordance to which checkbox I checked. #include <windows.h> #include <dos.h> #include <stdlib.h> #include <fstream> using namespace std; #define IDC_MAIN_BUTTON 101 // Button identifier #define IDC_MAIN_EDIT 102 // …

Member Avatar for CodyOebel
0
1K
Member Avatar for Taufique111

Hello Everyone. I'm basically new to c# database project so any can give me code as to pass a data value from one datagrid table to other form with another data grid view table . also i wanted to know as how to get specific value of a row when …

Member Avatar for Taufique111
0
116
Member Avatar for Bungie

Hi guys I was wondering how to make a button that revealed one textblock on the first press, another on the second press, and a third on the third press. Also on the fourth press I want the button to change to another form. Is this possible?

0
137
Member Avatar for Ray_2

I'm trying to write Fibonacci code for the first 100 numbers. It works until I get to number 94. 93 12200160415121876738 ok 94 1293530146158671551 mine 94 19740274219868223167 should be this I'm stumped as to why it doesn't work after 93. Can someone point me in the right direction? The code …

Member Avatar for Ray_2
0
178
Member Avatar for lucyfersdaddy

Hi, I am a newby and am surprised I made it this far. My program is a TicTacToe program. I am having troubles with checking the validity of each move. I have tried multiple things, but could not figure it out. If someone could help point me in the right …

Member Avatar for lucyfersdaddy
0
914
Member Avatar for maria_mj

I have problem to copy data from one table to another table in SQL database. I am develop the system using C#.Net. I have searching about it from internet, but it not works. I have two table: 1) Project_Pipeline (company_name, project_name, project_revenue, gross_profit, category_pipeline, status_pipeline, bde_name, deadline, remark, pipeline_id) 2)Proposal_listing …

Member Avatar for wria12
0
6K
Member Avatar for 111ron222

Hi everybody, I have this XML file,, [code] <users type="array"> <user> <id>12345567</id> <name>Ronsna Stedinberg</name> <screenname>Donnsax</screenname> <location>New York</location> </user> <user> <id>12345568</id> <name>Sonsna Dtedinberg</name> <screenname>Nonnsax</screenname> <location>Las Angeles</location> </user> </users> [/code] and I wonder how can I read all the id's info in the xml? (the <user> </user> is repeat 50 times, so …

Member Avatar for shwetawaghmare
0
925
Member Avatar for royalboy
Member Avatar for TAIMOOR_3
-1
268

The End.