15,552 Topics
| |
I use Win 32 API for thread creation : unsigned long _beginthread( void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist ); How do I pass the multiple parameters to arglist? Thanks a lot. Rgds, perlsu | |
I use CSocket with send() and recv() to send and receive structure packets of type Packet as follows: class Packet { int dataLen; char data[1024]; } packet; I tried but the received structure elements contained garbage. What would the code be on the send and receive sides of the app … | |
guys, I have a big problem. I want someone here to just read the charecters from the attachment to another file using c. The file is AES encrypted.Forget the encryption.Just read those encrypted chars and write to another file. thanks. | |
Hi all, My csocket program is as follow. The program run properly but the server don't wait the message from client and the client also don't send. Can anyone help me what's the problem in client server communciation API. Thanks a lot in advance. #include <afxwin.h> // MFC core and … | |
I have a program that need some help. I've attached a zip file for the codes. The main problem is that I need to have the RoomRate edited2 (that must include the friend and overload function) work with the main function. Any help is always very much appreciated. :?: | |
I'm trying to compile a program and the 3 linker errors I get are: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Can anyone help me. Thanks., rgds, perlsu | |
Hi everybody. I have a problem with my program. I want to make a program that can display the Fibonacci, but the number of term i must display is 2147483647. So there is a float number problem. How can i do it with fast speed. | |
Hello, the code is quite big so I'm hoping someone can help based on the errors reported: [quote] D:\Scanner\lexicalScanner.cpp(185) : error C2440: '=' : cannot convert from 'char *' to 'char' This conversion requires a reinterpret_cast, a C-style cast or function-style cast D:\Scanner\lexicalScanner.cpp(197) : error C2440: '=' : cannot convert … | |
Hello guys. I've got a query which is most likey really simple. I've got an array of char's thats : char temp[10] = "abcd"; I'm wondering why I can't put these into char a; since char a = 'abcde' would be legal right? Or can a single char only hold … | |
I am now trying to print the output to a RTF template that will defintely work since I have my formatting saved in the template but once my program writes to it , the formatting in the RTF is all deleted. Any Idea how to get around that? It doesn't … | |
I'm writting a program where I need the coordinates of the mouse when it's clicked inside the client area. For some reason, the coordinates seem to be in base 21, maybe higher (I've seen the character k). I'm not sure why this is happening. Here's the mouse section of the … | |
hi! im writing some code about a banking system i have done so far the classes and functions to create account, save date in a text file find account by last name show account info and although i can read from the file the amount of a client i cant … | |
I know I've been posting a lot into this forum with questions that might seem....dumb, but I am learning a lot actually from those questions and the help I've been given. Many thanks( mostly to Rashakil Fol. I salute you sir!) The latest and greatest problem, is that I'm not … | |
Hello, I've been asked to make my own user defined type. when we've got this on an imput stream (a+b+c$) the a = ID b = ID c= ID how can I say that when its not a reserve word assisn ID to the a,b,c? I know this is a … | |
I'm attempting to build a simple listener, preferably without a Thread, but I am lost. I have a working listener in 'console' mode but I need one that works with MFC. It should stay open indefinately - (until I send a shutdown message) This is my initial non-working attempt. It … | |
Hello, I've got this array defined as a global just to test... [code]char RW[100];[/code] but its giving me grief when I try to use strcpy with it... I'm putting since varibles and longer ones too thats all I can think of as the cause of my problems .. error quote: … | |
I have a huge set of small objects that work differently, but with a common interface. They have to stay in the same container. I cannot use templates, because I need run-time polymorphism. **Run time efficiency is critical** Can anybody tell me which of these options is the most efficient … | |
Hi I Have One Doubt. Is It Possible To Find The Large Value In A Set Of Numbers Without Using If Statement? Plz Give Reply To This | |
i have a problem to simulate program on array-based list :rolleyes: :sad: .The array can store 10 integer value.The application should be perform basic operation such as inserting,deleting and displaying the array's content :rolleyes: .Any extra operation are welcome.The application should promt user a menu as follow : 1)insert value … | |
Please can somebody help me .......... I have no idea on how to implemenet a program to benchmark functions such as insertion , deletion and iteration and deuqe. I know that I have to use the clock_t function but I can not figure out, if I need to call the … | |
Hi I am in III yr engg. Any1 wid any programming experience on steganography and/or Virtual Private Networking, please help. Your valuable suggestions are welcome. Also please suggest any other good topics for a minor project. I am out of my wits at this. | |
hi.. just want to ask if <fstream> is really needed in making a program for round robin scheduler? im currently taking my os class and our project is to make a code for RR.. :?: | |
Anyone know what function will copy contents from one folder to another, I know the source folder and the destination aso I dont have to use the mkdir. Any Ideas? | |
I am converting some code from C into delphi pascal and have come to a brick wall. As my understanding of C is quite limited i am unsure of what '%*.*ld' is doing or how to do the same thing in Dephi. The full line is a bit long to … | |
I'm trying to write a pseudocode for finding the area of a trapezoid. Is this right? THIS IS THE GIVEN INFORMATION Write a Fortran 90 program to compute the area of the trapezoid. Upon execution of the program, the user (you) will be prepared to provide the lengths of the … | |
I have a question about hashing. If you have a hash table that is 101 in size. and the items are inserted into the table using quadratic probing. I want to insert a new item with address 30. If position 30 in the hash table is occupied and the next … | |
Good Day, As u can see I have been away from programming for a while and I have a task that desperately needs me finsh a program. I am trying to use the rename(arg1,arg2),feature of c to rename files on the system. Since the path to these files are long … | |
I have a matrix class which there are matrix objects. I want to call `.value(int,int)` directly on the matrix objects and set the internal 2d vector to the value on the right side of the equal sign. Here is what I want to do: new_matrix.value(row,col) = 0; Here is what … | |
Hello Everybody, How Are You? I Have Always Wondered About How Does The 'compiled' Library Files And Our Source Code Get Fused Into One. Since The Compiled Files Must Be In A Binary, How Does The Compiler Understand Them So As To Pick Up Only Right Functions Etc From It? … | |
Hello, I know this is probably a very elementary answer, but how does one convert a character into a character pointer, for use strcpy()? For instance, I need this: [CODE] char sendBuffer[5]; char ch; // assume code in between makes ch something strcpy(sendBuffer, (char*) ch);[/CODE] However, the console window that … |
The End.