8,298 Topics

Member Avatar for
Member Avatar for candyandy212
Member Avatar for bejfake

Hi, I have such simple structure in unmanaged C++: struct Cam { char ip[16]; char login[16]; char pass[16]; char name[16]; }; and C# marshalled structure: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] public struct Cam { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string ip; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string login; …

Member Avatar for bejfake
0
2K
Member Avatar for facadie

HiHi seems like i have so many queries for programming.. EG. textbox use to set the password how can i make a program so that i can set MINIMUM character to be inserted in textbox is 7 then i can save the data if not validate[ insert password with at …

Member Avatar for vadde
0
4K
Member Avatar for kothaisaravan

Hi, I have a requirement where I need to generate the combinations of string based on some rules. For Eg: I have a string like: [x | y] z [A] Possible combinations are, z,ZA,xz,xyz,xzA,yzA The rules are, 1.[],| are symbols. 2.Any text inside [] is optional eg: [x] 3.| means …

Member Avatar for ddanbe
0
425
Member Avatar for TaylorS

Create a class named Book that includes auto-implemented properties for the International Standard Book Number (ISBN), title, author, and price. (An ISBN is a unique number assigned to each published book.) Create a child class named TextBook that includes a grade level and a CoffeeTableBook child class that contains no …

Member Avatar for Ancient Dragon
-1
233
Member Avatar for M_I_K_E_911

I am new to programming and picked up the following book by microsoft. I am taking Computer Science in college and would love to know if this is the correct step. I am very interested in how computer language works and wantto get into this a lot more. I've read …

Member Avatar for M_I_K_E_911
1
353
Member Avatar for bmcn

I am working from the sample project here: http://www.codeproject.com/Articles/8086/Extending-the-save-file-dialog-class-in-NET I have hidden the address/location bar at the top and made other modifications but I can't for the life of me manage to disable the button that lets you go up to the parent folder. Ist is in the ToolbarWindow32 class …

Member Avatar for bmcn
0
192
Member Avatar for sknake

Here is a sample code snippet of logging in a user against a user table in an MSSQL database with password encryption. Scott Knake

Member Avatar for pritaeas
10
8K
Member Avatar for nitish.mohiputlall

Question : In Bouboun University's Information Systems 3 arrays are used to store student details, 1. Stud_Names (array of strings) holds the name of 100 Students 2. Stud_Map (array of strings) hold the ids of the 100 students (whose details are stored in Stud_Name) 3. Stud_Marks_Mod1 (array of floats) holds …

Member Avatar for Ancient Dragon
0
293
Member Avatar for Vikram Sehgal

So i have a code for a menu and i am facing some problem.. code:- do { ch = getch(); switch(ch) { case 'W': case 'w': system("CLS"); cout<<" MOD v1.0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout << " --> PLAY\n\n"; cout<<" HELP\n\n"; cout<<" EXIT\n\n"; break; case 'E': case 'e': system("CLS"); cout<<" MOD v1.0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout << …

Member Avatar for jkhippie
0
261
Member Avatar for wayne.nishant

C Program - to accept 'n' strings from user and store it in a char array I am currently using Turbo C++ Version 3.0 (one with blue screen) Can any one help with the C Code of the subject ?

Member Avatar for Daemon_CC
0
2K
Member Avatar for Pilot122x

I need to find out how to cut text and insert text into a textfile.....I know about StreamReader and StreamWriter but i dont think any of these will do unless theres some method in the class that I dont know about. I want to be able for example read from …

Member Avatar for Bandarigoda123
0
562
Member Avatar for Amin Crash

I'm trying to write a program than can take two audio files (e.g. WAV) as inputs, compare them, and spit out a number that tells you how similar the audio files are. If someone has done something like this, know how to go about doing it, or just have some …

Member Avatar for Bandarigoda123
0
296
Member Avatar for DkgMarine

hey guys, so i get the "c incompatible types in assignment" error in the malloc line. would someone please explain where i went wrong? Thank you in advance. #include <stdio.h> #include <stdlib.h> struct the_struct { char FirstName[20]; char LastName[32]; int Score[20]; }; int main () { int i,n; struct the_struct …

Member Avatar for DkgMarine
0
2K
Member Avatar for ddanbe

Don’t know if this is ever been done before, or even if it is a good way to do it. I’ll just await your comments if any. What I mostly found on the web is that if you want to define a polynomial you need to have an array containing …

0
448
Member Avatar for pinkamech

Hi, I am currently working on a UNO Game using C++ and I am facing some troubles. I need to use Vectors and Pointers (for the main bulk for this assignment). I am wondering if anyone could kindly help me because the deadline is on Wednesday and I feel very …

Member Avatar for pinkamech
0
5K
Member Avatar for itslucky

Hi, Dear Friends i have complete my C# project and its working greate, Now i want to make a Setup / Installation file of my Completed C# project, so i can install it on any Machine and use it, just like a softwares we download and install them on our …

Member Avatar for Daemon_CC
0
1K
Member Avatar for riahc3

I have in a MySQL database with the column type being DateTime the following time: Timestamp: 9:34:09 9:34:23 9:34:45 9:34:50 9:35:09 9:36:17 But a DataGridView in C# only shows me 9:34 9:34 9:34 9:34 9:35 9:36 Why?

Member Avatar for riahc3
0
1K
Member Avatar for Dagmawit

how to write the fibonacci series by accepting the value of terms of the series from the user?

Member Avatar for danyal baig
0
153
Member Avatar for nhiap6

Could someone please sum up all the information or give me a link to a website why C++ is used for system programming. Ok, am realy on deadline for finishing my last highschool paper and I know this sounds like a homework question but I look it up on web …

Member Avatar for NathanOliver
0
187
Member Avatar for nekoleon64

My Name is Leonard E. Norwood Jr. I'm Undergraduate student from Norfolk State University in Norfolk Virginia. Getting down to the point, my program is supposed to print out a list of pre-set numbers in reversal. I used pointers for this, however, something went wrong so I'm trying my best …

Member Avatar for iamthwee
0
375
Member Avatar for Que336

C# Interview tomorrow Hello fellow programmers. I know this doesn't have anything to do with code but I really need some advice. I have a .NET(C#) interview tomorrow for a junior vacancy. The problem I have is that all my experience is based on PHP. I have a good understanding …

Member Avatar for deceptikon
-1
311
Member Avatar for ravi_14

IplImage *in; CvMemStorage *storage = cvCreateMemStorage (20506); CvSeq *contours=NULL; CvPoint *PointArray=NULL; for() { //image processing and feature extraction code here cvClearMemStorage (storage); //clear memory area free (PointArray); cvReleaseImage (&in); } At the end of each iteration i ma releasing memory but still i get memory shortage error after # processing …

Member Avatar for rubberman
0
334
Member Avatar for jamesc205
Member Avatar for mike_2000_17
0
456
Member Avatar for ايمان_2

It is possible to use any number of characters '/' as a delimiter in path instead of one traditional '/'. For example, strings //usr///local//nginx/sbin// and /usr/local/nginx///sbi n are equivalent. The character '/' (or some sequence of such characters) at the end of the path is required only in case of …

Member Avatar for Ancient Dragon
0
540
Member Avatar for sivamoni

Hi I want to display the html content of the web pages(url address) in a c# window applications, but it is possible to get the dynamic content of a web pages also. If yes please query your comment.

Member Avatar for nathanmannar
0
2K
Member Avatar for ravi_14

i am not able to connect to the sql server on my system. SqlConnection^ connection=gcnew SqlConnection(); connection->ConnectionString ="Data Source=blueboy\sqlexpress;Initial Catalog=DCV_DB;Integrated Security=SSPI;Pooling=False"; i got the string from database properties.(i have attached the same in this post) sql service is running. tcp ports are enables too.

0
115
Member Avatar for SQLpower

Hello, So I basically created SQL Server Database and I got it working with displaying my images and drop downlist and everything, however, I want to make it to display an image only if a continent is selected. So if I select Europe, I would like to receive a picture …

1
124
Member Avatar for sadaquat_1

I have a placeholder control where i have added the files from my folder. I have also binded a check box with each file How i can download the files if checkbox is clicked. string strDir = Request.QueryString["d"] == null ? FileBrowerProperty.IntialPath : Request.QueryString["d"]; //read the directory DirectoryInfo DirInfo = …

Member Avatar for new_nano
0
279
Member Avatar for vishalonne

Hello Does every function in C++ returns value? If yes what is that value and what is the use?

Member Avatar for Learner010
0
231
Member Avatar for agrbinoo.albaker

Write a complete C++ program that reads the attached file (values.txt) to find and print the following: a. The average value of the numbers in the file. b. The maximum and minimum value c. The count of negative and positive values (ignore zero) #include <iostream> #include <cstdlib> using namespace std; …

Member Avatar for agrbinoo.albaker
0
301
Member Avatar for beastie805

I got a small program here, I am just trying to return a string value from a function through a reference parameter but I keep getting an error. Any help or tips will be appreciated #include<iostream> using namespace std; int timesTen(int, string&); int main() { int number = 6, product; …

Member Avatar for beastie805
0
451
Member Avatar for Aditya_8

gimme the error plz it says undefined symbol _main in module c0.asm #include<iostream.h> class largest { private : int num1,num2,num3,big; public : void enter(int a,int b,int c); void max(void); void display(void); }; void largest::enter(int a,int b,int c) { cout<<"Enter numbers n"; a=num1; b=num2; c=num3; cin>>a>>b>>c; } void largest::max(void) { big=num1; …

Member Avatar for Ancient Dragon
0
167
Member Avatar for sparky58

This assignment asks to add some code from to a previous assignment I had. I have been confused about this overload operators alot and im confused on how to do it in my code any help with this will be good A) overload the >> operator to allow for reading …

Member Avatar for Banfa
0
401
Member Avatar for bignobela

**what can i do with this errors?please help me! thanks** >#ifndef WS2811_h >#define WS2811_h >#include <avr/io.h> >#include <util/delay.h> >#include <WS2811.h> **Error 1 unterminated #ifndef** >typedef struct __attribute__ ((__packed__)) { > uint8_t r; > uint8_t g; > uint8_t b; >} RGB_t; **Error 2 expected ':', ',', ';', '}' or '__attribute__' before …

Member Avatar for sepp2k
0
176
Member Avatar for sparky58

1. This assignment asks to add some code from to a previous assignment I had. I have been confused about this overload operators alot and im confused on how to do it in my code any help with this will be good A) overload the >> operator to allow for …

Member Avatar for Ancient Dragon
0
290
Member Avatar for M.Waqas Aslam

Hello! I am working on updation of an old asp classic website. I have experience in Asp.net but dont know much about asp classic. I want to show my query results in xml format. I am getting data in my record set but unable to convert it into xml and …

Member Avatar for JorgeM
0
325
Member Avatar for Stefan_2

This is what I have to code. Input an array of numbers(any numbers that user inputs from standard input, aka keyboard), remove numbers from array that are not 0 and 1. Thay array should now be bitwise moved with << or >> (again user choses the number of spaces moved …

Member Avatar for Stefan_2
0
288
Member Avatar for cgeier

I will be showing how to pass data between two forms in C#. I will be using two forms, two classes which we will define, a delegate, an event, and an event handler. It is a bit long because I wanted to make it easy to follow. If you want …

Member Avatar for deceptikon
4
4K
Member Avatar for priyanka raj

Would you please help me in writing a c code to read data from a file and perform 1)numeric sort, 2)alphabetical sort. the file may contain data of any kind.Like it may contain only numbers,only names or a database of employees of a company.(which contains their employee id,name,designation and salary,....in …

Member Avatar for aaaymen
1
7K
Member Avatar for alex.dimofte.5

I am developing a client server application in C#. I am sending from my server to client an object of `Student` type which I serialize on the server side and deserialize on client side. The serialization and deserialization are as follows : // server side serialization. Student s1 = new …

Member Avatar for alex.dimofte.5
0
280
Member Avatar for daniel1977

I've attached below my codes. I'm stumped. The funny thing is, I think I can make this work with a vector instead of the arrayListType class. I cannot figure out how to load the objects into the array. I create an arrayListType object of type extPersonType, call it addressBookType, and …

Member Avatar for Moschops
0
438
Member Avatar for razylovesyou

Good Evening. :). I just want to ask who knows any COMPLEX DATA TYPES IN C#. I badly need it tomorrow morning. I can hardly search and find the exact codes for it. Please help me. PLEASE... THANK YOU VERY MUCH. :D

Member Avatar for ddanbe
0
262
Member Avatar for GagaCode

Hey all ,,,, basicly i come from a vb language to c# and i'm using couple of varables and constant that i'm using upon all my project so is there any way that i can set like a public variable that i can use every time i need or even …

Member Avatar for deceptikon
0
223
Member Avatar for saurabhamity.it

I developed a desktop application using C#, i used crystal reports for the purpose of diffrent reports. Crystal reports working well when i run through visual studio 2010. But after making its msi file all the features working well except the crystal reports. Niether application showing me any error nor …

Member Avatar for Sulaiman_1
0
172
Member Avatar for castajiz_2

Why isn't the Microsoft built in class Random class an type static class as the Math. class is. Why didn't they make this class static?

Member Avatar for Ketsuekiame
0
368
Member Avatar for kimbula...

I want allow only to enter numeric values in a textbox in C#. Can someone assist me on this. would be a great help.

Member Avatar for kplcjl
0
5K
Member Avatar for GagaCode

hey all again i have a little issue it may be a little stupid but i'm not able to figure it out what i'm trying to do is to make a counter ,, i'm trying to get a number from database and increment 1 to it and adding it one …

Member Avatar for Sulaiman_1
0
257
Member Avatar for rico.j.rico.3

How to write a program in C++ which creates a file “grade.txt” and stores student’s grade and name.

Member Avatar for ishaan3731
0
252
Member Avatar for limitx3m

I've been assigned in my class to do this exact same problem: <snip> I'm wondering on how to get started. Any help would be appreciated. I know how to use the functions for c-strings, but I'm not sure if I should place all the contents of the paragraph into one …

Member Avatar for Ancient Dragon
0
294

The End.