Yeah Sorry, this is just the class file not the main and for you saying it's messy, this is how i was taught in vb and i'm trying to rewrite the code and apply some of the same techniques in c#, plus...
Type: Posts; User: GolDRoger
Yeah Sorry, this is just the class file not the main and for you saying it's messy, this is how i was taught in vb and i'm trying to rewrite the code and apply some of the same techniques in c#, plus...
i wrote this bit of c# code to go into the database and fetch a username but it keeps on saying the connection is not open but i opened it so i do not understand. This code is written within a class...
this is the same way i did it in vb and i understood it but now i'm haiving trouble implementing it in c#, i've tried "username = (string)dr["username"]" and i still get the same error so i don't...
Okay i'll dispose the database objects but with your answer to my question(using square brackets) i tried it and got this error :
"Only assignment, call, increment, decrement, and new object...
I'm not really looking for how to authenticate i'm just looking for how to retrieve a value from a database.
This is the full code it now gives me the same error when i try using dr("username").(dr is a variable but is being used like a method)
i am now learning c# and am trying to search and retreive...
i originally wrote this code in visual basic and it worked fine but when i tried rewriting it in c# it raised an error saying 'dr is a variable but is being used like a method' , please how do i fix...
And Salem maybe if you had given me a quick reply i wouldn't have had to "Cross Post?!"
It's all right i solved it.
read from a file okay
for each line i save the respective data into their respective variables
i output each variable to see if the data has really been saved.(it has)
but when i try using the...
Nuthin really i just dont know how to start.
Can anyone teach me how to make a copy program in C to copy all kinds of files and stuff.
PS: Please add comments and guides in the code.
@claudiu: I'm way past 'Hello World' and i'm looking for new things to learn.
i want to learn to to make a program download stuff from the net on it's own and check for updates of software i already have installed.
I just need an algorithm and i can try to figure out the rest...
Anyone know where i can get a good .pdf on how to use the graphics.h function in c?
#include<stdio.h>
int main()
{
int count = 0;
int num_limit = 100;
int factor = 1;
int result = 0;
for(num_limit = 100; count <= num_limit; count++)
#include<stdio.h>
int main()
{
int count = 0;
int num_limit = 100;
int factor = 1;
int result = 0;
for(num_limit = 100; count <= num_limit; count++)
if(num1 > num2){
printf("%d is greater than %d", num1, num2);
}
#include <stdio.h>
#include <string.h>
struct create_account
{
char username[16];
char pass[16];
char conf_pass[16];
};
thanx a whole lot don't know how i could have missed that, must be getting tired. :D :D :D
changed "while(k = 0)" to "while(k == 0)" it compiles alright but it doesn't run.
#include <stdio.h>
#include <string.h>
struct create_account
{
char username[16];
char pass[16];
char conf_pass[16];
};
Thanx i'll try that and as for the 2 structs even though they do the same thing they serve different purposes, i just like to try to make my code easy to interpret.
#include <stdio.h>
#include <string.h>
struct create_account
{
char username[16];
char pass[16];
char conf_pass[16];
};
#include <stdio.h>
#include <string.h>
int main()
{
char username[16];
char pass[16];
char conf_pass[16];
short int condition = 0;
short int i = 0;