18,490 Topics

Member Avatar for
Member Avatar for kv79

Hi ,i am creating some file and i need to open an exe file. Like this ,I creating preface application because installation of the game . So i need that when Computer finish the installation that he start another exe file who have nothing with my preface application. I using …

Member Avatar for zhelih
0
80
Member Avatar for vnykr

These two files i have created in som efolder in home dir 1)hello-1.c 2)Makefile #include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Needed for KERN_INFO */ int init_module(void) { printk(KERN_INFO "Hello world 1.\n"); /* * A non 0 return means init_module failed; module can't be loaded. */ …

Member Avatar for vnykr
0
259
Member Avatar for sn_sundeep

Hi, Is there any way so that I call mspaint through my C program and edit the resolution or resize my photos? Sundeep

Member Avatar for Belrog
0
100
Member Avatar for jeme

i would like adding tow number by postfix when the inputs like : 5,7 then the out put: 57+ i hope there is recommendable code for that program

Member Avatar for Belrog
0
111
Member Avatar for kv79

Hi , How can i get access to ( .rc)file when i already load it(already start my program). I want to make some changes from main window. Thank you for your effort of reading .

Member Avatar for Belrog
0
120
Member Avatar for achillez

[code=c] #include <stdio.h> int main() { unsigned short i = 0; scanf("%u", &i); printf("%u", i); } /* int main() { unsigned short i = 0, j = 0; scanf("%u", &i); printf("%u", i); } */ [/code] hey try the above prog, cc short.c -o short then ./short enter a number, you …

Member Avatar for Belrog
0
157
Member Avatar for francisprite

This is a piece of code that I can't seem to get right. Hehe. I've initialized the string "sym" to have the values '0' and '0'. I then call the function "cnvrt" and use "sym" in the parameter(not so sure if that's the right term) of "cnvrt". Since strings are …

Member Avatar for WaltP
0
108
Member Avatar for Maelstrom80

I bet the answer to my problem is hidden somewhere in these forums as this seems to be a fairly common question, yet after literally 2 days of searching for an answer I can't find it so please bare with me. What I'm trying to do here is to read …

Member Avatar for Ancient Dragon
0
143
Member Avatar for Member #264455

Hi, I've got really strange problem. I am using this function [CODE] function Download.GetInetFile(const fURL, FileName: String):boolean; const BufferSize = 1024; var hSession, hURL: HInternet; Buffer: array[1..BufferSize] of Byte; BufferLen: DWORD; f: File; sAppName: string; r:boolean; begin r:=false; if Agent = '' then Agent := 'Server Status Controller, Matej Tomcik …

0
58
Member Avatar for hallinan

Hello I'm doing a C project for College.It is a banking system where you take in customer name address etc, Print a statement based on a month by month bases.I need to use binary files I have two versions(well Attempts) of this project the one I'm having biggest trouble with …

Member Avatar for hallinan
0
562
Member Avatar for LisaLLL

I am trying to edit a string in c. I need to remove the last 84 characters from a string[400], insert text and re-insert the 84 character string at the end. No problem adding text or coping text in C, but I can't remember how to reorder/manipulate the text string. …

Member Avatar for Agni
0
81
Member Avatar for kv79

Hi, I never enter a PHP or html or any other language for web design . I want to use C/C++ with web designs ,so what i need to download for making a webs.? I want that software be free.

Member Avatar for serkan sendur
0
43
Member Avatar for jaepi

Hello there! I come across this function and I was having a hard time dealing with it because it has two function prototype. [B]int swprintf(wchar_t* buffer, const wchar_t* format[, ...argument])[/B] and [B]int swprintf(wchar_t* buffer, size_t count, const wchar_t* format[, ...argument])[/B] I used the first one in Windows and it worked …

Member Avatar for Salem
0
113
Member Avatar for mikeandike22

I need help with this program im working on where you get input from a file and the program checks if the numbers are in ascending order or not and which one is the smallest and largest number in the series..cant use arrays.. This is a my input.txt right now …

Member Avatar for Ancient Dragon
0
227
Member Avatar for wollacott

Input an integer containing only 0’s and 1’s( ie. “binary” integer) and print its decimal equivalent. {hint: use the remainder and division operators to pick off the binary numbers digits one at a time from right to left. Just as in the decimal number system, in which the right most …

Member Avatar for Duoas
0
115
Member Avatar for vinsudhir

Wanted to know if this is possible and if so what it means. 1 typedef struct tree{ 2. int height; 3. int width; 4. int weight; 5. } banyan; 6. int main(){ 7. banyan* count[2]; // This is the statement I am interested in 8. count[0].height = 100; 9. count[0].width …

Member Avatar for Agni
0
110
Member Avatar for Lovemachine1025

Yeah so I have to write a program that will open the disk drive of a PC and close it after 5 seconds, then open it again after 5 more seconds and I don't have a clue where to begin. Please help. :eek: Lovemachine

Member Avatar for WaltP
0
121
Member Avatar for HLA91

Hi all My bro rang me up, and for some reason he asked me to make him a "simple" program that creates a folder and the user enters the name for that folder then it acopies pre set files in to that new folder. The folder will be created in …

Member Avatar for Aia
0
310
Member Avatar for kxh29

Hello All! I would like to create a message box from one of my "C" applications. I have looked at prior posts and received a snippet such as this one: [code] #include windows.h MessageBox(hwnd, "You have bla bla", buffer, MB_OK);char buffer[100]; [/code] Well, the problem is that during the build …

Member Avatar for Aia
0
2K
Member Avatar for CompSec

Hi everyone. My friends recommended me to this site. Hopefully someone out there knows a bit about the Socket Api. ... I am trying to transfer a text file from one folder to another (all on the same machine). On the server side, I am able to put the entire …

Member Avatar for zhelih
0
92
Member Avatar for kamathmahendra

Hello All, I have very basic knowledge of C and I'm trying to write a program to read a single line from an ASCII data file which has following format " 1337936.4550 6070317.1261 1427876.7852 APPROX POSITION XYZ" The problem is the position of line is not fixed. Its different in …

Member Avatar for Aia
0
233
Member Avatar for jan1024188

Hello, I want to make a message box which would show me how many points have I earned. So I have: [CODE]unsigned int points; //code points++; MessageBox(hwnd, "You have bla bla", "Total points /*HERE I WANT TO DISPLAY CONTENTS OF points VARIABLE*/, MB_OK);[/CODE] Is possible to do that?

Member Avatar for Aia
0
151
Member Avatar for shaikh_mshariq

I want to develop process viewer for windows in c or c++. Is there any api or any information so i can start from that. Anyone know about this please help. Thanx in advance.

Member Avatar for shaikh_mshariq
0
118
Member Avatar for gallantmon1

I'm making this program and keeps telling me these errors: 35 expected `;' before ':' token 35 expected primary-expression before ':' token 35 expected `;' before ':' token 17 label `ins' used but not defined I can't seem to find what the error is, it may only be a simple …

Member Avatar for gallantmon1
0
568
Member Avatar for sasdap

Hi frenz, Many of the programs are written in C/C++ language. I want to call a function in C/C++ from python program. Can anybody tell me how to do it?

Member Avatar for vegaseat
0
241
Member Avatar for prakash.kudreka

Hello, Can anyone provide me the optimized and with low complexity program to remove the repeated elements in an single linked list program?

Member Avatar for Salem
0
120
Member Avatar for Villanmac

I have a similar program to reun although its a bit different with no histograms or anything and its on c++ Could i ask, where the vlaues in the array size 20 below come from?? int range[SIZE]={0}; int sales[20]= { 267, 359, 468, 525, 678, 710, 856, 867, 920, 1067, …

Member Avatar for twomers
0
114
Member Avatar for mauro21pl

Hi to all. I need help. Quick and easy question. Is it possible to randomize and than delate stream of character pairs(one by one) from the input file? How can I do that? The input is a stream of character pairs that represent playing cards. For example: 2C, 3H, JH... …

Member Avatar for WaltP
0
116
Member Avatar for kv79

Hi all. I need to copy file (like C:\home.exe to C:\windows) I need to do it for C or C++ compiler so i do not know the command . I was looking in the reference but i did not find anything about this. Thank you all for reading . I …

Member Avatar for Ancient Dragon
0
96
Member Avatar for Tom Tolleson

Hello! I'm a web developer and have not ventured outside of the AJAX threads. However, we're trying to take on a desktop application project here at work, and I'm wondering what language to specify it to be built in. We have programmers in C++ and Java (as well as C). …

Member Avatar for Narue
0
109
Member Avatar for Tom Tolleson

Hello! I'm a web developer who is taking on the creation of a desktop application as a side project. I need to hire someone to cerate the application. Knowing little, I want to make sure I'm choosing the right developer and language. All I know about Java is that it …

Member Avatar for Narue
0
110
Member Avatar for nnobakht

Hey guys, So im working on this project which is create a shell in C using fork() and execve() commands in POSIX. The main things is a read_command() functions and a main which just has a while loop with fork and execve with an if statement that takes out the …

Member Avatar for Salem
0
110
Member Avatar for ankita_ribose

Q:The genome of an organism is inscribed in DNA, or in some viruses RNA. The portion of the genome that codes for a protein or an RNA is referred to as a gene. Those genes that code for proteins are composed of tri-nucleotide units called codons, each coding for a …

0
73
Member Avatar for paurik

Hi, is there any1 who has tried to read the SMBIOS using C. If yes, then i m having some problems in it. If possible help me out. As a starting to extracting Hardware information from SMBIOS, i hv written this code to find out the Structure Table Address. First …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for joomy

To Narue: Iam understant what you tell me,we are not a homework service. and i want now why you speake with me like this , what iam do for you to speak like this??? i want tell you evry body sign in this web you give the solution. Thank you …

Member Avatar for Ancient Dragon
0
42
Member Avatar for missileh

If i have 4 contiguos bytes (Example: 78h, F2h, 43h, A0h) in memory that refer to a 32-bit physical address. Then how can i form a 32-bit physical address out of these? After forming the physical address how can i read contiguous data (1byte at a time) from that address …

Member Avatar for Ancient Dragon
0
146
Member Avatar for joomy

Hi: please why you did not tell me the solution,becaues i want this solution. pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeese...... realy i want this solution fast. Thanks so much for any one want help me. ioomy...

Member Avatar for Narue
0
101
Member Avatar for rmd

hey there, i want to write a c program to read array from a text file .....which looks something like this ex.txt 123 245 465 12 37 84 984 i want to write a program to read these values and subtract each value from the next one(like 245-123,465-245,....and so on …

Member Avatar for Salem
0
129
Member Avatar for hattusili

hi, when i compile my c code at visual C++ 6.0, i got some errors and i can't fix it, please help.. my C file uses the unistd.h and the code is /* This is defined as a real library function to allow autoconf to verify its existence. */ int …

Member Avatar for Salem
0
278
Member Avatar for joomy

please: I want algorithm the job of this algorithm is transfer from post fix to tree. and pre fix to tree.......... please help me quicly..... dont forget me.. from: joomy. Thanks so much.

Member Avatar for Narue
0
122
Member Avatar for smiles

Hi ! I am trying to write C program for a microcontroller (CCS compiler software), here is the part that I get error "Expect a close paren" [CODE] void Speech(char words); void main() { //INTRO OR GUIDED WORDS char hello[]="HELLO WORLD!\n"; Speech(hello,0xC0); [COLOR="Red"]//it says error here[/COLOR] } void Speech(char words,int …

Member Avatar for smiles
0
117
Member Avatar for nivea_jmd

hi i wanted to know how to read the status of RTS/CTS line using ioctl calls....i am programming using c/c++ and linux if someone can post a code snippet or suggest a book for the same...it will be very helpful.... 2. also i will like to know can a windows …

Member Avatar for Passmark
0
170
Member Avatar for kv79

[code=c] struct CircleStruct { int x ; int y ; int width ; int hight ; }; struct CircleStruct CreateCordinate = {40,0,80,40}; //this is the global declaration maybe void Draw(); void newfunction(); [/code] And can i do this ? Why? [code=c] void newfunction() { CreateCordinate = {40 ,40 ,40 ,40}; …

Member Avatar for Paul.Esson
0
94
Member Avatar for zeiken

I would like to know what are those step in making the compliler?

Member Avatar for Ancient Dragon
0
138
Member Avatar for toboto

please somebody run this program i have problem with #include <graphics.h> [code=c] #include <stdio.h> #include <math.h> #include <graphics.h> #include <conio.h> Void DrawFunction (int Npoint, double data[], double H) ;/* Display results */ Void MakePotential (int Npoint, double x0, double dx, double V0, double v[], double vd[]) ; /*potential*/ Void MakePacket …

Member Avatar for Nick Evan
0
167
Member Avatar for bobei89

okay, here is the code my teacher gave...but i do not understand some part... [code=c] #include <stdio.h> #include <time.h> #include <stdlib.h> void printfAll(int size, int ary[]) { int a; for(a=0; a< size; a++) { if(!(a%10)) //why a%10 and what not equal to it// printf("\n"); printf("%5d", ary[a]); } printf("\n"); } void …

Member Avatar for bobei89
0
170
Member Avatar for Matt You

I'm trying to make a function that can scan a char array, and finish it's business when it comes to a '\0'. so here is the for loop i came up with: [CODE]for( i=0 ; charArray[i] != '\0' ; i++ )[/CODE] But here is an example of entered data: "1234 …

Member Avatar for Matt You
0
524
Member Avatar for shreevidya

i am doing a project where i require some message from php file to be transfer to c.is it possible to do. if so can u specify certain links for looking and studing too area

Member Avatar for digital-ether
0
103
Member Avatar for rjain

please help me in developing editor same as C++...it must look as if i have developed C++ itself...all menus and functions?? please reply. thanks

Member Avatar for Salem
0
279
Member Avatar for mm-marek

Hi, im newbie in C, now I want to make a program which can search something in file (now it will be two letter word) I want to command it from cmd by [B][I]test text.txt ab[/I][/B] i have a problem with argv filed, everytime when i run this script it …

Member Avatar for mm-marek
0
245

The End.