Click here to Skip to main content
15,909,747 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to connect to MS Access database that is plased on a hosting server using C# Pin
David Skelly2-Dec-09 0:52
David Skelly2-Dec-09 0:52 
GeneralRe: How to connect to MS Access database that is plased on a hosting server using C# Pin
sher_azam2-Dec-09 1:38
sher_azam2-Dec-09 1:38 
GeneralRe: How to connect to MS Access database that is plased on a hosting server using C# Pin
Calla2-Dec-09 2:01
Calla2-Dec-09 2:01 
GeneralRe: How to connect to MS Access database that is plased on a hosting server using C# Pin
sher_azam2-Dec-09 19:33
sher_azam2-Dec-09 19:33 
GeneralRe: How to connect to MS Access database that is plased on a hosting server using C# Pin
Calla2-Dec-09 21:37
Calla2-Dec-09 21:37 
Question(NegotiateStream) The server has rejected the client credentials Pin
abiemann1-Dec-09 22:30
abiemann1-Dec-09 22:30 
AnswerRe: (NegotiateStream) The server has rejected the client credentials Pin
abiemann2-Dec-09 7:18
abiemann2-Dec-09 7:18 
QuestionUnexpected Errors in Multithreading Pin
Razanust1-Dec-09 21:35
Razanust1-Dec-09 21:35 
Well there a few major errors occcuring in the following program:

1) line 18: usleep was not declared in the scope
2) line 14,15,23,..: stray'\160' in the program
3) Also i am getting an error in my process.h file. Can somebody tell where i can get this file. I got it from:

http://www.koders.com/c/fid1DB5A7F33E56F9DDD9AFDC7EF0F05CF767EA426A.aspx

Here is the program:

#include<stdio.h>
#include<windows.h>
#include<pthread.h> 
#include<process.h>
#include<unistd.h>
#include<stdlib.h>

/* This is our thread function. It is like main(), but for a thread */
void *threadFunc(void *arg)
{
char *str;
int i = 0; 
str=(char*)arg; 
while(i < 10 )
{
usleep(1);
printf("threadFunc says: %s\n",str);
++i;
}
return NULL;


int main()
{
pthread_t pth;
int i = 0;  // this is our thread identifier
/* Create worker thread */
pthread_create(&pth,NULL,threadFunc,"processing..."); 
/* wait for our thread to finish before continuing */
pthread_join(pth, NULL); // void ** return value could go here
while(i < 10 )
{
usleep(1);
printf("main() is running...\n");
++i;

return 0;
}
AnswerRe: Unexpected Errors in Multithreading Pin
Calla1-Dec-09 21:37
Calla1-Dec-09 21:37 
AnswerRe: Unexpected Errors in Multithreading Pin
Richard MacCutchan1-Dec-09 21:40
mveRichard MacCutchan1-Dec-09 21:40 
Questionhow to waiti for specific events that occurs Pin
Ronenb1-Dec-09 21:30
Ronenb1-Dec-09 21:30 
AnswerRe: how to waiti for specific events that occurs Pin
freakyit1-Dec-09 22:55
freakyit1-Dec-09 22:55 
AnswerRe: how to waiti for specific events that occurs Pin
abiemann2-Dec-09 7:37
abiemann2-Dec-09 7:37 
QuestionHow to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 21:16
gwithey1-Dec-09 21:16 
AnswerRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
dan!sh 1-Dec-09 21:49
professional dan!sh 1-Dec-09 21:49 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 21:53
gwithey1-Dec-09 21:53 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
freakyit1-Dec-09 22:06
freakyit1-Dec-09 22:06 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 22:41
gwithey1-Dec-09 22:41 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 22:20
gwithey1-Dec-09 22:20 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
freakyit1-Dec-09 22:39
freakyit1-Dec-09 22:39 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 22:50
gwithey1-Dec-09 22:50 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
freakyit1-Dec-09 22:57
freakyit1-Dec-09 22:57 
GeneralRe: How to check a groupbox for checked radiobuttons dynamicaly Pin
gwithey1-Dec-09 23:08
gwithey1-Dec-09 23:08 
QuestionOpen a text file in Notepad Pin
Hardus Lombaard1-Dec-09 21:12
Hardus Lombaard1-Dec-09 21:12 
AnswerRe: Open a text file in Notepad Pin
Calla1-Dec-09 21:19
Calla1-Dec-09 21:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.