18,490 Topics

Member Avatar for
Member Avatar for Drowzee

Do you always have to put file access in the view? I think it would be more appropriate in the document, and it works fine to implement a CFileDialog object from the document file. Considering all the parsing and data storage I've got to do, that makes sense to me. …

Member Avatar for Drowzee
0
150
Member Avatar for sanjeewa131

Hi, I'm trying to test IMF filter with my application. I need to customize it so that i try to exicute the sample program named CustomFilterSink given under SDK for spam filtering. I get the following two errors when I compile the program. C:\Program Files\Exchange SDK\SDK\Include\Seo.Idl(773) : error MIDL2011 : …

0
124
Member Avatar for truxpinoyxrl17

I need help. I need help on reading input file using .READ and normal streams. I also need help on sorting input file and passing data to the structure rec and output it without showing any null characters..... here's my confusing code... #include <iostream.h> #include <iomanip.h> #include <fstream.h> #include <string.h> …

Member Avatar for truxpinoyxrl17
0
532
Member Avatar for Drowzee

This is currently something in design phase, but I'd like to have the idea checked over. The situation is roughly as follows: I've got a display that can show some amount of structs with varying byte counts per struct. I've got a big binary file, over a gigabyte in size, …

Member Avatar for Drowzee
0
560
Member Avatar for webempress

Please shed some light on the procedure one must take to pull values (i.e. from database or variables with default values to a dialog. I am trying to pull values to a dialog using "strcopy(tempvariable, "Value");" but it is not working. Please help me. Nis

Member Avatar for webempress
0
131
Member Avatar for chiwawa10

I have been trying to find out what is the meaning of m_nRetCode (value=1012). I get this exception when my program try to execute insert entry into database. Can anyone pls tell me what is the meaning of the value 1012 which is the value of m_nRetCode? Where can i …

0
84
Member Avatar for pscha3

Hi, my question is about the fstream object. How does it work? since I was writing a program and I defined many files for the object. [U]I want to know if I can display all the files of the object at once and if so how.[/U] Thanks for understanding. This …

Member Avatar for Narue
0
144
Member Avatar for ramow

Hi everyone, i am havinh problems linking OBJ files that uses the following: #include <stdio.h> #include <winsock2.h> #pragma comment(lib, "ws2_32") I am working on MEX matlab files. When i link them, i get the following errors: >> mex timestwomex.c C:\MATLAB6p5\sys\lcc\lib\ws2_32.lib timestwomex.obj .text: undefined reference to '_gethostbyname@4' timestwomex.obj .text: undefined reference …

Member Avatar for ramow
0
144
Member Avatar for rony

I am using Dev-C++ to create a dll file which will link Java-JNI-C-Fortran The project contains CCode.C and JavaCode.h and when I compile, I find the following error: Linker Error>Undefined referece to 'sumsqauredf' The CCode.C file is [code]// CCode with documentation #include <stdio.h> #include "JavaCode.h" // Required header for JNI …

Member Avatar for Narue
0
340
Member Avatar for davidianstyle

I have a homework assignment that I have been trying to figure out for over 12 hours now...The program I am trying to write is too complicated to post, so I created a simpler program which lets a user enter two integers and an operation to perform. If someone can …

Member Avatar for indianscorpion2
0
264
Member Avatar for Rearden

Can someone explain this to me once and for all? I keep getting different answers everywhere I look. What is the correct way to separate the class declaration from it's member functions? The way I am doing it now is that the declaration and all of the member functions are …

Member Avatar for Narue
0
225
Member Avatar for shre86

hey.. could someone give me some good resources on how to implement and use dialog boxes in windows applications..

Member Avatar for winbatch
0
136
Member Avatar for Mahen

hi there. Am working on a program that finds the binary executable of a particular program when we input its filename. For example: INPUT: cmd.exe OUTPUT: c:\windows\system32\cmd.exe Am using the following API's: FindExecutable() SearchPath() if you got any other API or any other ways to find executable progrmatically, please share …

Member Avatar for Alvein
0
234
Member Avatar for lax_irtt

c program to find smallest among three numbers without using comparsion operator C program for the simulation of unix grep command

Member Avatar for Narue
0
144
Member Avatar for FalconGT

Trying to download a file from a url I used Urldownloadtofile command, it works once but if you repeat the command with same details like put it on a loop it works once only. I've already tryed to do w/o loop manual same outcome. Any help would be great FalconGT

0
110
Member Avatar for Mahen

Hi everyone, am currently building a program with VS 6.0 but am having problems with string coruption, especially with strncpy(), [code]#include <stdio.h> #include <string.h> int main() { char prog[200]; int count; int su2; char mir[200]; strcpy(prog, "cmd.exe"); // we add cmd.exe to prog count = strlen(prog); // we measure the …

Member Avatar for winbatch
0
654
Member Avatar for djbsabkcb

I must ask user number of students who took test, then create a dynamic array and then get the scores for each student. Then calculate the sum,average of the scores. My problem is that once it calculates it continues to ask user for student scores. I am confused with this …

Member Avatar for winbatch
0
228
Member Avatar for chriswell

i need to write a program that can count the number words the user enters and and the recurences of each letter. ex: Have a nice day Total words: 4 a = 3 d = 1 e = 2 ... Can't get the program i've writen so far to count …

Member Avatar for bgunn
0
238
Member Avatar for jcs2380

I also have the same problem my virus scanner says that c:\counter.cab:\counter.exe is infected with a trojan but it cant delete it. Not sure what I should do. Heres my hijackthis log: Logfile of HijackThis v1.99.1 Scan saved at 8:33:14 AM, on 7/21/2005 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: …

Member Avatar for crunchie
0
166
Member Avatar for Mr.

Hello, this is a simple model for a simple program that will spawn a thread to run a given option in a menu (only option 1 and 2 run threads). The loop will need to wait for a thread to complete, so it uses the thread_join function [code] pthread_t newthread; …

Member Avatar for Mr.
0
184
Member Avatar for toruhikaru
Member Avatar for zerenoa

Hi, In my assignment , I need to print out the ID,Name and more in a line..with no space bar allowed..besides using the \t ,is there any method to print out... Student Student Course bla bla ID Name Info xxx xxxxxxxxxxxx xxxxxxxxx when i use the \t, my output aint …

Member Avatar for Dave Sinkula
0
181
Member Avatar for Drowzee

Hello, everyone. Today, I'm working on giving myself a headache. The reason is simple. I'm rusty on, or maybe ignorant of, dynamic declaration of arrays. What I'm doing is MFC related, but I've got the MFC questions ironed out for the most part. Now, I've got to make a good …

Member Avatar for Drowzee
0
194
Member Avatar for nihar_29
Member Avatar for TCI

how to implement a c code for following cpu sheduling algorithms. least remaining time round robin

0
107
Member Avatar for djbsabkcb

Below is the start of my source code for a program I am trying to figure out. We have to compute the approximate value of PI with random throws at a dartboard. It is considered a hit if it lands inside unit circle (0,0) and radius 1. Any help on …

Member Avatar for djbsabkcb
0
2K
Member Avatar for Quickslvr

Hmm...how do i go about doing a conversion only the first letter of the string? << Thread split from [thread=13727]original[/thread] since this is taking on a life of its own. >>

Member Avatar for aismm
0
6K
Member Avatar for Swiftt
Member Avatar for karen_CSE

hi, I'm supposed to design a banking software project. I'm trying to make the password shown as asterisks. but I don't know how. can someone help me. please? Karen

Member Avatar for Dave Sinkula
0
68
Member Avatar for erfg1

I play a game called JediKnight 3. I got the source code online from a website, and I wanted to do a command but don't know how to even start it. Under the g_cmds.c file is where we execute commands. Such as /sit and you will begin the sit animation …

Member Avatar for Narue
0
136
Member Avatar for freemind

Hi! I paste a short sample for a subfunction of a class of mine. I get an error about the declaration of "of" and I'm not quite sure what's wrong :rolleyes: To this I would like to ask if anybody knows how can I check in a new file for …

Member Avatar for zyruz
0
138
Member Avatar for userlain

The structure: [code] typedef struct{ int val[256]; }values; [/code] The function(needs to pass information into the structure array 'val'): [code] void changeval(values *obj, int v, int a){ (*obj).val[v]=a; } [/code] ^^That piece is the piece I am having issues with... And finally, the call: [code] int main(){ values item; changeval(&item,0,50); …

Member Avatar for CrazyDieter
0
385
Member Avatar for sp_kenny

I am in need of a program to monitor a simple gauge inside of an external box. I need program recommendations and interface recomendations. I am prototyping something that requires a gauge ranging from 0 to 20 to be installed in a box. The gauge then needs to be monitored …

0
60
Member Avatar for alone2005

Potion of my code: [code] class UserCommand{ string cHandle; //definition of command int numPara; vector<int> cPara; //parameter of command public: UserCommand(string ucData); //copy constructor UserCommand(const UserCommand& uc); inline const string getHandle(){return cHandle;}; inline const int getPara(int i){return cPara.at(i);}; inline const int getNumPara(){return numPara;}; //overload operator = here inline UserCommand operator=(UserCommand& …

Member Avatar for alone2005
0
157
Member Avatar for bballmitch

alright, in a snippet it says im supposed to use the topic code but it says that that directory does not exist. i tried adding a bunch of libraries in the project options, but it still didn't work. any ideas?

Member Avatar for CrazyDieter
0
72
Member Avatar for fEaRdArEaPeR

Aight ppl i am in search of a script which will be helping in my work alot. i need a script, which can read one file and detect changes in it. eg: like i want to track the gain/loss of castles in a game. Rank Name Castle Land Kingdom Strength …

Member Avatar for Narue
0
260
Member Avatar for Fanion

I have just started doing a little C programming and, looking here and there, I have noticed a lot of people prefers to use <iostream.h> library (and related commands "cout" and "cin") instead of using <stdio.h> library (and related commands "printf" and "scanf") What are the advantages and/or disadvantages (if …

Member Avatar for Narue
0
118
Member Avatar for shre86

I would like some help regarding multithreading... i want to know what exactly happens when i start a new thread... i.e how it affects the variables etc. in the program... one query i have is what happens if i start 2 threads starting with the same function.. will their running …

Member Avatar for shre86
0
104
Member Avatar for AhmedHan

May please one of you explain me what the hell are these sucking error messages and how can they be fixed that the sucking DevCPP compiler generates out for no reason which I have been trying to solve for two entire days? [Linker error] undefined reference to `wglCreateContext@4' [Linker error] …

Member Avatar for AhmedHan
0
126
Member Avatar for fm_chicago

Think of typing a password. You type your password but what you see is merely a asterisk sign. If you use `getch()`, no problem! Put the problem is that I can't use the getch. See the code: struct Func { char password[9]; char name[34]; char code[8]; }element; do{ gotoxy(21,6); printf("****************************************"); …

Member Avatar for Narue
0
383
Member Avatar for Koteswar

Hi, These i am getting calls for opening in Telecommuncations domain. what exactly is this. They are looking for Programmers in C lang. with telecom domain. Can any body plz tell what is that exactly and what i need to know in C lang. I am working on Linux environment …

Member Avatar for Narue
0
90
Member Avatar for schoolgirl05

I would appreciate some input if you don't mind. Can someone please explain to me why converting a base class pointer to a derived class pointer is considered dangerous by the compiler.

Member Avatar for Narue
0
158
Member Avatar for galmca

this is a code for the binary search program in c language.now the program is not showing any error but when i run this program then the output is like: enter the total numbers:6 enter the array elements: 5 4 7 1 3 2 the sorted numbers are:1 2 3 …

Member Avatar for Narue
-1
381
Member Avatar for djbsabkcb

Below is my new code for this julian day program. I have fixed some of the errors I mentioned earlier. However, the day is still one short for the julian day and my conditional if statement seems to be the problem. I have tried a couple of ways to fix …

Member Avatar for zyruz
0
665
Member Avatar for hinde

I am pretty much done a shell program I have to write for my operating systems class. The only problem is that I can't seem to figure out how to make this function work. It is supposed to separate out a list of tryable paths that is from the getenv("PATH") …

Member Avatar for hinde
0
214
Member Avatar for Fare

I have an idea for a game project. i have started to write out the outlien of the game and i have me and another person starting to work on the modeling and skinning of the needed models. This pays nothing but i thought that someone might like to join …

Member Avatar for yeohhs
0
93
Member Avatar for kashif07

Dear Friends i want help about the Simulate a Linux/UNIX shell, called MASH (for MiniAture SHell) in the C. plz read the the my problem and send the best solution of my problem as soon as possible. Objectives: After the completion of this assignment you’ll be able to: Simulate a …

Member Avatar for Dave Sinkula
0
398
Member Avatar for Giant

Hi all, I am trying to malloc some memory and then pass the address of the first array into another function however I keep getting the same error (see thread name). [CODE]Error:error C2664: cannot convert parameter 1 from 'float **__w64 ' to 'float *[/CODE] Here is a short version of …

Member Avatar for Dave Sinkula
0
603
Member Avatar for arpan_dce

hi everyone, this is first time i am writing in DaniWeb community.. i never did this earlier because i always find someone with a similar problem to me on this site but this one is an unique one... i am working on a plugin of quark express 6.0 in codewarrior8.3 …

0
62
Member Avatar for djbsabkcb

Below is my Julian day program. I have to convert a day into julian and then get todays date and tell how many days from the julian date it is. I am having problems with the output of the julian date is off by 1 day and my difference output …

0
134

The End.