19,876 Topics
![]() | |
I've been looking for information on threading, and I found information on POSIX pthreads. Apparently, Visual Studio 2005 does not have [INLINECODE]pthreads.h[/INLINECODE] in their library. I did a search on the computer, and I found pthreadlocale.obj in the LIB directory. Does this object file have anything to do with pthread.h? … | |
Hi, Let me explain a little background of the situation in case there is a wiser solution than vectors. I've got a loop running in a program, and for each loop, I need to add a new element at the end. I need to backtrack anywhere from 5 - 250 … | |
Hi all, I programed an addin which works with ms-word. I wish to parse the text of an active ms-word document and to replase some of its words and chars. [B]How can I retrieve the documents text?[/B] How can I write text into the document? AND [B]how can I replace … | |
Hi I want to catch if someone tries to add a tuple with some existing key value. But I could not do that. Whenever I add a record with an existing key value , I get the exception EDBEngineError with message Key violation. I want to catch this exception. Where … | |
just wanted to know anyone used software firm nextage technologies [url]www.nextagetech.com[/url] for their software needs . we are going to outsource some work to them and wanted to know about your opinions on them | |
Hi people: Here is my problem: Codes: (My program is in the exact order as being represented here) [CODE] void push1(CStack stk) { stk.push(1); } int main(void) { CStack mystack; printf("Stack initially: "); mystack.print(); push1(mystack); } [/CODE] As you may read from above, the push1() function does not work at … | |
Hi, The below is a program which uses quick sort to sort numbers in 3 columns LayerCode, SubCode and BrandCode. It sorts first by LayerCode, then by SubCode and then by BrandCode. The program seems has no errors. but it is not working(i.e., not sorting the numbers). Can anyone have … | |
Hi, I have given a assignment to make a program using arrays input match played and win for five cricket teams in the month of April then give the ratings of the teams like “CITY BANK CRICKET RATING | |
Hi, I created an addin which contains a button. The button responds on click event. I wish to call back the addin-object which created the button [B]BUT [/B]the [B]addin is not known [/B]from within the button functions. ANy help will be appreciated. Regards. | |
Hi, I am still very new to C++ and need help with new/delete, I am posting what I wasn't able to find answers for on msn search or by myself after hours of testing.. 1. Am I using new/delete correctly? [code] char hehe[1024]; memset(hehe,0,sizeof(hehe)); sprintf(hehe,"Some Text"); char *testx; int testxlen … ![]() | |
[CODE]#define AND && #define ARRANGE (a>25 AND a<50) main() { int a = 30; if (ARRANGE) printf("within range"); else printf("out of range"); }[/CODE] What is the output? | |
I want to use process-shared POSIX semaphore under UNIX/LINUX. In [URL=http://pauillac.inria.fr/~xleroy/linuxthreads/faq.html#E]this FAQ (E.7)[/URL], I've found that [I]"Portable applications should test _POSIX_THREAD_PROCESS_SHARED before using this facility."[/I]. Manuals also say, that second parameter (pshared) for sem_init function should be zero, unless this feature is implemented, othrewise sem_init will return ENOSYS. But that … | |
First let me point out that this is not homework, it's just something I'm doing because I'm bored ;-) I'm trying to get my little hobby operating system to read from the hard disk. So far all I can get is the byte FF (255). I've tested this in both … | |
Hello: Now I am very close to the end of my work, thank you all for helping me out.:cheesy: There is one last strong hold: I need to somehow extract the defining parameters from their associated strings. Below is an example: Strings received from the server: BROADCAST "user_nickname" "blah blah … | |
hello friends could anybody give me idea how i can find a loop in simple linked list | |
Please can you help me mates! I have to make a program in C with lists. I should have a function to add a new record,erase, modifying or visualizing an existing one, save the records in a text file, visualize them and a funciton to exit form the program. Or … | |
Hi all: There are two function declarations in the header file: void sqEnqueue(const char *s); char *sqDequeue(); (no input arguments) Those function declarations can NOT be altered. I created a linked list in this sqEnqueue function, which has the a "first" and a "last" at the head and the end … | |
Hi friends, I am working in C on Linux Fedora Core. I need you help regarding XML Parser in C. I want to convert an XML file into plaintext format. e.g; I have following contents in XML file : [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE persons SYSTEM "http://mail.persistent.co.in/v1/addrbook.dtd"> <persons count="13"> <person … ![]() | |
Hi all: I am stuck in the middle of my programme, wishing you may help. I am writing a "quene" structure in C, and it will copy the content of a string received from a server and display it on the client monitor. Codes: [code]typedef struct Message_from_server message_from_server void sqInitialise() … | |
hello can sum1 help me with piping? ive been stuckon this question for almost a month. thanks. if u can help email me at <<email snipped>> and ill emailu the question. ur help would be appreciated.thanks | |
Hi Every body I want to know how it is possible to connect to database whether it may be Oracle,Ms-Access.I am using Turboc2 Compiler and windows OS and i found something like ProC that is file extension as .pc in Oracle 9i is there any relation between these i want … | |
i need to write the value of a pointer into file then read it can you help me thanx | |
I would like to know the diffrence among loops (for,do while & while) used for flow control & sample usage & selection of loop based on the application.....as a newbie Also why integer is limited to -32767 TO +32767? Thanks & regards Lakshmi | |
plz i want your help. if i wrote a string and the user wanted to change a word in it. sample run: the sentence is; my name is gladiator what word do you change? gladiator to? gladiator1919 the new sentence is : my name is gladiator1919 | |
Codes: #define MAX_BUFFER_SIZE 1000 int ch = 0, alpha [25] = {0}, buffer[MAX_BUFFER_SIZE] = {0} ,count = 0; .... while ((ch = (fgetc(stream)))!=EOF) { buffer [count] = ch; count++; } printf("%d", alpha [25]); ..... The problem is: alpha [25] contains buffer [0], (alpha[25] is supposed to be 0). which suggests … | |
Hello All, I've been trying to modify an app to be able to resize nicely and I've finally gotten that working. However, while the controls in my main dialog get bigger, the font stays the same size, which is a problem. I wanted the font to get proportionally bigger as … | |
Hi, Iam new to programming. Can anyone explain the following program? [CODE]#include "stdafx.h" FILE *fp_dump; /*----- Layer -----*/ /* layer Record*/ typedef struct { USHORT usCode; /*LayerCode*/ USHORT usSubCode; /*SubCode*/ USHORT usBrandCode; /*BrandCode*/ USHORT usStartY; /*Latitude*/ USHORT usStartX; /*Longitude*/ UINT uiAR_DA; /*Offset*/ USHORT usCellSize; /*Cell Size*/ USHORT usDS; /*Relative offset*/ … | |
Hi all: Got a formatting question here: Trying to send data string over to a server via send(); The problem is that I want to enclose the data string with double-quotes, "data string" should be displayed on the server side. The method I used is using two double_quotes on each … | |
disclaimer I'm a programming n00b so I may not know what I'm talking about. /disclaimer My question boils down to scopes. Let say I have code [code] { string mystring1; string mystring2; string mystring3; //code dealing with mystring1 //code dealing with mystring2 //code dealing with mystring3 } [/code] versus [code] … | |
:sad: Codes: if (sock!=INVALID_SOCKET) { if(send(sock,s,(int)strlen(s),0)==SOCKET_ERROR) { WSAGetLastError(); } } s is a char pointer pointing to the very first memory location of the data string. While in debugging mode, there was no error from `WSAGetLastError()`, but the data string was not displayed in the server. Why? Thanks | |
Hi all: Just want to confirm the process that I employed to use this "critical section" feature of Microsoft Visual Studio is correct. Say, there are two processes that I want to protect. Codes: while(1st process is active) { InitializeCriticalSection(&cs); EnterCriticalSection(&cs); Do something; LeaveCriticalSection(&cs); [B]DeleteCriticalSection(&cs);[/B] } while (2nd process is … | |
I've never seen this before and am perplexed beyond belief... by the way I'm using Visual Studio I have a rather large program/game i'm working on right now, and it reads in via ifstream file i/o from binary files in several locations to initialize variables. For some reason for one … | |
I am trying to write a program to convert a roman numeral to decimal. If I define a variable with: [inlinecode]char roman_num[15];[/inlinecode] can I then select individual characters in that roman numeral with: [inlinecode]roman=roman_num[i];[/inlinecode] where "i" is a number value of the character I want to retrieve from 0-14? Also, … | |
THe foll is a part of a prg i have to append one dummy list to a original list at destination in the original list .So plz help me i am a new user so sorry for any mistalke Here is the code :[code] #include<stdio.h> #include<conio.h> struct node { struct … | |
Hi all: Say, my program is about to receive a string "ABC", and I want to test if the string really contains "ABC". What is the best way to test it? I am thinking of read all the characters from the incoming string one by one, but not sure which … | |
Hello there, Okay well i have tried to do this program but i'm just not sure if i'm going in the right direction. Well i have to create a text file (Did that) which is inputed into the program, and the program has to count the instances of the following … | |
I need to write a function that will take a string and an int and return the string from index int onward. for ex [CODE]Line = "Enter a line: "; WriteString(RetStr(Line,4 )); //Should return er a line: AnsiString RetStr(AnsiString Str, int Start) { int ill; ill=1; char temp; while (Start!=Length(Str)) … | |
hello, i have a few questions pls help me out with them coz am really confused .. 1. can lists or vectors passed as parameters in a function? 2. can the lists or vectors be returned ? i want to use lists or vectors in classes i need to knw … | |
Hi all: According to the library, recv() will return a zero if the socket is closed, and a SOCKET_ERROR if the socket meets an error. But when I closed my socket (at least I think I closed it properly), recv() returned a SOCKET_ERROR other than zero. Wondering why? Thank you … | |
Hi all: I have successfully opened a socket to a server and trying to send some data vai the send() function. But what surprised me is: [URL="http://www.daniweb.com/techtalkforums/wsagetlasterror_2.htm"][B]WSAGetLastError[/B][/URL]() returns nothing, which means the data has been sent to the server, however all the data (a string) will only be displayed at … | |
Hi,all.I want to know why this program can not run faultlessly? Thanks to all. [code] #include <stdio.h> #include <stdlib.h> typedef struct link{ char data; struct link * next; struct link * pre; }list; main() { list * head=NULL; /* Define the head node */ list * linklist; /* Define the … | |
Hi all: I wrote a simple program to open a socket to localhost port 8201. Codes: ...... [CODE]if (WSAStartup(VERSION, &wsadata) != NO_ERROR) { WSACleanup(); return EXIT_FAILURE; } open_socket(serverName, port); SOCKET open_socket (const char *serverName, const int port) { struct hostent *server = NULL; SOCKADDR_IN serverAddress; sock = socket(AF_INET, SOCK_STREAM, 0); … | |
Hey guys just wondering how i can sort the linked list by categoryName for the drink type list. Iv done the linked list in my code but its not sorted? Could someone help me write an algorithm or sum pseudocode [code] #ifndef GJC_H #define GJC_H /* System-wide header files. */ … | |
hi, can someone understand how the new element is being attached to the list in this code? [CODE] void insertSortedList (Node **head, int value) { /* creating a new node */ Node *ptr = createNode (value); Node **pCurrent = head; /* adding the new node to the correct place in … | |
i need to somehow detect text block (i dont need OCR just area where text is, but i am dealing with pixels) within book page and then cut everything else out. i am dealing with scanned books so i have specs and smudges in the page. the easiest way to … | |
i want to know about a program to find out the number on the cd which is presently inserted in the drive | |
I'm supposed to take user input in the form of a prefix expression, convert it to infix and postfix, and then print the results. So far, I've got both working, but I would like to add some parenthesis to the infix expression once its converted. At the moment, I can't … ![]() | |
HEYZ CAN ANYONE GUIDE ME WHCIH PROJECT TO TAKE UP IN C#.... THAT IS MARKS GAININ....NEED UR HELP DEAR PEOPLE OUT DERE...LOOKIN FORWARD FOR SOME NICE IDEAS N HELP RELATED TO THOSE IDEAS....REPLY SOOONNNNNNN :confused: :lol: |
The End.