- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 5
- Downvotes Received
- 7
- Posts with Downvotes
- 5
- Downvoting Members
- 5
R&D Director
Re: You can buid a DLL and call from your .NET program. | |
Re: You can use something like this: while ((c = getc(fp)) != EOF) if(c == 32) .... | |
Re: If I understand your question, you want to send your local file names to server and then server read them and calculate the response. When you send your request to server (HTTP-GET), the server is not able to read your local files. You need to send files binary data to … | |
Re: You could use http://32feet.codeplex.com/ library. | |
Re: You dont need last if else. instead just use else ... ... else //4095++ { volt = 10 ; } You also need to define result variable as a unsigned. | |
Re: We don't provide code. If you have any problems post your code and people will help you. But for now and your start point and for the last time: for(int iIndex = 1; iIndex<=100; iIndex++) { cout << iIndex << endl; if( iIndex%5==0 ) cout << endl; } | |
Re: Maybe you could use somthing like this: #include<stdio.h> #include<stdlib.h> #include<string.h> #define RESULT_FAILURE -1 #define RESULT_SUCCESS 0 int16_t fun(char *iaddr) { char* p = NULL; int i = 0; int len = 0; int rc = RESULT_SUCCESS; if(strlen(iaddr)>0) { len = strlen(iaddr)+1; p = (char*)malloc(len ); strcpy(p,iaddr); for(i=0;i<len;i++) { printf("%c", p[i]); … | |
Re: as I know GloMoSim software does not have C/C like developing environment. buddy you are in wrong place | |
Re: As deceptikon said, a declaration of variable is saying to compiler "I will use a variable it is defined before and on another file." | |
Re: C is Case Sensitive it means you must use all variables, macros, functions, ets as is in decleration. You also have to declare all variables before you are using them. I recommend you to use Camel Notation in naming of everythings except macros. | |
Re: Because you have to allocate a memory block for each pointer. Pointers as its name explain are variables those point to address of memory blocks, so when you declare a pointer it is not garantee to point to suitable area of system memory so you have to do that by … | |
Re: In windows you need to know system programming for using mouse event. | |
Re: This is working code on Watcom C/C++ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #include <string.h> int iConvertString2Integer(char *string, int iIndex, int iIntegerValue); int iString2Integer(char *string); int main (void) { char string[512]; printf("Enter a string of integers: "); scanf("%s\0", string); printf("The integer entered is : %d\n", iString2Integer((char *)string)); system("PAUSE"); … | |
Re: > Using puts() -- BRAVO!!! Finally someone who doesn't use printf() :o) I think you are a good C programmer. A few persons are using puts in their code, but puts performance is better than printf. | |
Re: change your lines 5,6 as below: `int s1[3],s2[3],s3[3],total[3],per[3],i; char name[3][20],pid[3][10];` and change line 31 as below: `printf("\n Your Total of Marks is:%d",(total[i]=s1[i]+s2[i]+s3[i]));` | |
Re: I think it is stupid thing to use pointer to pointer in this case. | |
Re: `#include <stdio.h>` is a precompiler command and said to compiler 'before starting to compile my file add stdio.h file to this line' There are several precompiler commands and #include is one of them. stdio.h file name is header file and there are alot of header files. | |
Re: Use GCC if it is in your decision. [Turbo/Borland C](http://blog.mousavi.net/2012/05/14/borland-c/) is from 80s and 90s. | |
Re: You need to read a little more about [pointers](http://blog.mousavi.net/2012/09/14/what-is-a-pointer/). For example in line 117 you attempt to create an new node by using emp variable before you were assigning any values to emp members. Because emp members (account structure) are pointer and you have to assign a variable. Pointers are … | |
Re: [Bluetooth Device Development using C#](http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx) | |
Re: I recommend you to use binary file read write for POS applications. Create an array of WaiterInfo and re-write all data to file every time that fields changed. Dont append to file or something like that. In this way you must add to or delete from array then write whole … | |
Re: You need to write your own C# compiler. there are not any compiler in the market for this purpose. | |
Re: I cant understand what is your problem because you could use multiple generics as you wrote above. for example: public class Node<K, T> { public K Key; public T Item; public Node<K, T> NextNode; public Node() { Key = default(K); Item = default(T); NextNode = null; } public Node(K key, … | |
Re: If you want that your WinForm application react as a web service server first you have to write TCP/IP server then implement one of web service protocols you want to use, usually SOAP. For more information about protocols [Click Here](http://blog.mousavi.net/2012/05/31/web-service-protocols/) | |
Re: both are the same thing. Look to this link [Click Here](http://blog.mousavi.net/2012/05/30/difference-between-string-and-system-string/) | |
Re: Just call the method that defined for button event into timer event method. private void timer1_Tick(object sender, EventArgs e) { button1_Click( sender, e); } you also could put null for parameters. private void timer1_Tick(object sender, EventArgs e) { button1_Click( null, null); } | |
Re: If there is a loop and you try to change ProgressBar value from this loop you have to check is your ProgressBar in the same thread of loop is working. (Use [B]InvokeRequired [/B]and if it is true [B]Invoke [/B]the method) I recommend you dont change the value of a ProgressBar … | |
Hi folks, I am working on a Windows Form project that all things in it are dynamically created during run time. So all controls are created during running application and also events are assigned to controls. Also I have to mention all controls are user defined controls. All event functions … | |
Re: Dear Epmpror, please put your own code so we will say you what is going wrong. This is not a forum for solving your homework. We just help you for your improvment. By the way you could look at this [url]http://www.daniweb.com/forums/thread43314.html[/url] |