Monday, May 24, 2010

Writing a program in c++ a file which contains 30 record of students with index?

Yeah, and array would be fine if you know you'll have no more than 30 students. But why have you posted this noun phrase masquerading as a vague question? Are you just hoping someone will write your code for you? If so, I suggest you start doing your own work, developing your skills, and becoming someone who can actually do things. Otherwise, you'll end up a radio-wallah living on the landing between the 2nd and 3rd floors of an old building in Kolkata.

Writing a program in c++ a file which contains 30 record of students with index?
Use an array.
Reply:use array to get the datas...


where as to get and diaplay them use for or ehile loops to perform...

gerbera

How can I access the session or application object in my .cs file. I am using C# & asp.net 2.0?

I am not able to access the session or application object in my .cs file. I am using C# %26amp; asp.net on .net 2.0.Its not showing Session or Application object in the editor drop down list too.

How can I access the session or application object in my .cs file. I am using C# %26amp; asp.net 2.0?
Is you CS file part of the web application or is it in another class library?





If it is in another class library you should reference the System.Web dll first then in your code you will be able to access the Session through:


System. Web. HttpContext. Current. Session["key"]





If you CS file is in your web application you just access the object


Session["key"]





In both cases you'll have to cast to your type from object.





Hope this helps.


Can I make a C program in a seperate file?

I am a beginner in C. I am 14 years old. My question is I use TurboC. I write a simple program eg:to print text. Then I have to compile and run it. Can I make the program like an executable file so I can run the program by just clicking the file.


Thanks

Can I make a C program in a seperate file?
i work with microsoft visual c++ and as far as i know u cant do it that way..becuase the file will run through the program in which u wrote it with...so u just have to use your program complie it and run it...i dont think there is a way to make it a clickable file.....when u go to your saved work and open it, it just opens it in the program u wrote it in..so the answer to your question would be no
Reply:Select Option Menu then Select Directory sub-menu.


Now you will see a window ask you four path (1. Include 2. Lib 3.Output 4. Source. set source Path, where you want to save your executable file. Like C:\MyExe or D:\MyName


now write your program then compile it and press F9 Function Key, your executable file will store at your desire location.


434SOFT
Reply:When you compile the program, it creates an executable. When you run it, you are effectively "clicking" the executable. Windows will allow you to run a DOS program by double clicking, but the window that it creates will disappear immediately after execution (so you'll have to code your way out of that one). Linux won't let you do this, but if you were a Linux user then you'd probably know that ;)


Mshta.exe - I have this file in C:\Windows\System32 and C:\i386. Comodo reported it to me for ... [read on]

... requesting Direct Monitor Access, and Direct Keyboard Access. I blocked these, but should I allow them? What is the file, and why does it need these things? Could it be to do with my Sony Mobile software that I installed recently? Nothing on answers about mshta.exe so any help would be great...





File is also found in my Windows\ie7 and Windows\System32\en-US as mshta.exe.mui





I have a Dell, and I believe System32 is used slightly differently with Dell PCs.

Mshta.exe - I have this file in C:\Windows\System32 and C:\i386. Comodo reported it to me for ... [read on]
Mshta.exe is a part of Microsoft Windows Operating System which is needed to execute .HTA files. This program is a non-essential system process. You can cancel it if you want, but it'll probably pop back up since Windows is making it run. Either way, it's not a virus or anything.
Reply:C:\i386...this is part of your systems files. Now if the program you installed integrated itself into your systems files then that's what happened. You'll know if that's the case when you don't have any functionality to the program you installed because you blocked if from having access...
Reply:These will work. I've been using them for a few years now on my own computers.


As a software developer and tester, I've had to try them all.


They are all compatible with each other and Windows XP and Vista.


You will never have to buy software again.





Computer Maintenance





Advanced WindowsCare V2 Personal


http://www.iobit.com/advancedwindowscare...


CCleaner


http://www.ccleaner.com/


Spybot S%26amp;D


%26gt;...http://www.safer-networking.org/en/%26gt;...


Ad Aware 2007


http://www.lavasoft.com


Avira AntiVir® PersonalEdition Classic....


http://www.ccleaner.com/


How to get a file out to delete? instruction says"c:/program file/iso10646IME". Where do I go?

Go to My computer, click on C:/, than click on Program files. there should be a file in there called iso10646IME delete it.

How to get a file out to delete? instruction says"c:/program file/iso10646IME". Where do I go?
what exactly r u trying to do? extract a file from an ISO? or delete that specific file?
Reply:You mean how do you delete a file? open "my computer" go to that folder and click on the file and hit delete. if it won't let you, boot into safe mode and do it.
Reply:If the file is in your documents All you have to do is right click and hit delete.

rosemary

Header file help c++?

Everyone is familiar with the number guessing game. “I’m thinking of a number between 1 and 100” is how it starts. Then people start guessing numbers to see if anyone can get it right. You are going to write the entire header file for a class


named guessGame that can be used by someone writing a program that simulates this simple game. Your class has one data item: an integer that will hold a random number. Your class has the following member functions:





• Default constructor that will set the random number to a number between 1 and 100. You will have to seed the random number generator before calculating the random number.


• isSame is a function that will take a number that is passed to it andreturn true if the number matches the random number stored in the object. It returns false if the number does not match.


• giveUp is a function that has no arguments. It simply returns the random number stored in the object.


Header file goes below.

Header file help c++?
class guessGame {





//Fill it up


};
Reply:First you do an


#ifndef GUESSGAME


#define GUESSGAME





Then you include your header files, %26lt;iostream%26gt; at least and possibly %26lt;cstlib%26gt; for the random function, then you define your class but do not implement its methods.





Finally you do an


#endif


so if the header is called twice it only gets written into the preprocessed file once.





EDIT: If your professor wants you to implement methods, the general procedure is to do so in a separate .cpp file. You may as well ask.





This should all be very straightforward from here.
Reply:Do your own homework.


Looking for a C++ header file (DxLib.h)?

Does anyone know where I can get the header "DxLib.h" online? I can't find it in my normal library, but need it to compile some code.

Looking for a C++ header file (DxLib.h)?
If you are trying to develop for DirectX you will need to download the DirectX SDK. You can find it here http://www.microsoft.com/downloads/detai...





Make sure you have your include directories pointed to the SDK before you compile.


A Function in Data File handling... C++?

Assuming that a text file named FIRST.TXT contains some text written into it,


write a function named vowelwords( ), that reads the file FIRST.TXT and creates


a new file named SECOND.TXT, to contain only those words from the file


FIRST.TXT which start with a lowercase vowel (i.e. with ‘a’, ‘e’, ‘i’, ‘o’, ‘u’). For


example if the file FIRST.TXT contains


Carry umbrella and overcoat when it rains


Then the file SECOND.TXT shall contain


umbrella and overcoat it

A Function in Data File handling... C++?
I don't know how to inhibit the Yahoo software from


left justifying every line, so the lack of indentation


will make this hard to read. The code is really "C",


but it compiles and runs just fine under a C++ compiler.


Change the "fprintf(outfile" to "outfile%26lt;%26lt;" if you prefer.





In any case, "strtok" from the ANSI C library makes


this pretty straight-forward.





#include %26lt;stdio.h%26gt;


#include %26lt;string.h%26gt;


#include %26lt;stdlib.h%26gt;





int


main(int argc, char* argv[])


{


char buff[1000], *p, *t;


FILE *in = fopen("FIRST.TXT", "r");


FILE *out = fopen("SECOND.TXT", "w+");


if (!in || !out)


perror("fopen"), exit(-1);





while (fgets(buff, sizeof(buff), in)) {


p = buff;


while (t=strtok(p, " \t")) {


p = 0;


if (*t=='a' || *t=='e' || *t=='i' || *t=='o' || *t=='u')


fprintf(out, "%s ", t);


}


fprintf(out, "\n");


}


return 0;


}


I have a c++ program in a word file - how do i compile it using visual c++ 2005 express edition?

I dont know c++ that well. Someone wrote a program for me in put in a word file - How do I get it to work?

I have a c++ program in a word file - how do i compile it using visual c++ 2005 express edition?
You probably have to save it as a source file with the proper c++ extension for ms and then compile that file from the command line.
Reply:Beside it's content that you can see, a word document has a lot of metadata that is invisible to you but live there to make a document a word document. A C++ compiler won't understand those metadata and hence your pragram won't be compiled successfully at all. So all you have to do is to save the program in to a file with the extension of .cpp/.c and compile it afterwards.
Reply:just copy it from the file and paste it to VC++

wallflower

I have a trojan Horse Dropper.Generic.dtk in c:_restore\temp\A0020008.cpy file. How can I get it out?

when I go into the search and find the file it is in, C:_RESTORE\TEMP\A0020008.CPY, It will not let me delete it. I'm using AVG virus scan.

I have a trojan Horse Dropper.Generic.dtk in c:_restore\temp\A0020008.cpy file. How can I get it out?
Disable System Restore and Reboot (this will purge older system restore points). After rebooting, re-enable System Restore.





For reference, see the following from Bleeping Computer





Problems with System Restore





There are some problems associated with System Restore when it comes to viruses. When restore points are created they are stored in a directory that is accessible only to the System account and not to a user. This keeps the restore points safe from misuse and tampering. Unfortunately this also means that any virus scan software you may have installed can not scan the files located there as well. This causes a problem if a file that is infected with a virus gets backed up into a restore point because now the anti-virus software can not clean it. Now if you ever restore from a restore point, that file that is infected will be introduced back into your system.





With this in mind, if you find that you are infected with a virus, hijacker, or spyware and want to make sure you do not get reinfected if you restore a restore point, you should turn System Restore off and then back on again to clear all the restore points. This will guarantee that their are no infected files that could be restored.
Reply:The problem you have is your using a very poor AV - turn off system restore %26amp; in safe mode do a online scan:


http://www.bitdefender.com/scan8/ie.html


when computer clean turn system restore back on %26amp; get a good AV
Reply:scann your pc http://www.infectedornot.com and then downloading Ad-aware





Good Luck


From where can i download a c++.exe file to install c++ in my comp?

Ho...Ho...Ho....Haven't you ever heard of a compiler in your life ??? C++ is not an .exe file, It is a language. To use the language, u have to download %26amp; install a compiler like Visual C++. Here is the link:


http://www.microsoft.com/express/vc/

From where can i download a c++.exe file to install c++ in my comp?
Yeah C++ isn't a program, it's a programming language meaning that you make your own programs, it's time consuming but it's fun and you can learn some cool things, I started with using Dev-C++ IDE at: http://www.bloodshed.net/devcpp.html and used this tutorial: http://www.cplusplus.com/doc/tutorial/ Like I said though, it won't be easy especially if you've never programmed before.
Reply:The previous link is for microsoft C++, which is far different from the ANSI C++(a C based language).


U can get Borland compiters.. Try to find that in google..


I am compiling a C++ builder file and i have some errors in include files.they dont include correctly.?

i need some one who knows how to help me to solve the prob.if there is any body may he/she tell me and i send her /him the errors or take his/her ID and ask her/him directly?

I am compiling a C++ builder file and i have some errors in include files.they dont include correctly.?
make sure you have the #include %26lt;WHATEVER%26gt; statements at the beginning. The "whatever" should be replaced with something like "stdio.h" or "math.h" depending on what libraries and include files you need.





Also make sure the include files are in the same directory you are working in.





Hard to help without more info. I'm certainly not an expert, but I have used C++ a bit.


A c program to populate input file?

c++ program on laptop sales record.


Main menu:


Type A to populate input file


Type B to process data


Type C to print records


Type E to exit


Type Z to append function

A c program to populate input file?
what are you really asking for ?

hollyhock

Simple C++ source file and function problem?

I'm trying to create a simple program that prints the word "Hello" to the console. However, I want the program to use two different functions, the first being the main and the second being a void function that prints the word to the console. When I try to compile, it tells me there is an error at second2.h on the line that tries to print to the console (the line with cout). I was wondering what I did wrong.


Here is the code from main.cpp:


--------------------------------------...


include %26lt;cstdlib%26gt;


#include %26lt;iostream%26gt;


#include "second2.h"


using namespace std;





void sayHello();


int main(int argc, char *argv[])


{


sayHello();


system("PAUSE");


return EXIT_SUCCESS;


}


--------------------------------------...


the code from second2.h:


--------------------------------------...


#include %26lt;cstdlib%26gt;


#include %26lt;iostream%26gt;


void sayHello()


{


cout %26lt;%26lt; "Hello" %26lt;%26lt; endl;


}


--------------------------------------...





Thanks.

Simple C++ source file and function problem?
Just a guess:





Try moving the using namespace std; before the #include "second2.h", which, as someone else has pointed out, shouldn't include the sayHello() function definition, just its declaration.





I'm thinking your compiler requires the namespace be already pulled in for cout, which, as your code is currently configured, it isn't when sayHello() is compiled.





Good luck.





By the way, any compiler that just says there's an error on line such-and-such without giving any details should be evicted from your machine..
Reply:It cant compile, first line should be #include... and not include...


you should not declare sayHello in the cpp file it is already included in second2.h


I hope EXIT_SUCCESS is defined I don't use this macro.
Reply:You do have a compiler issue (your exact program compiles with Borland for example with the extra # for include first line) but you should be able to compile this with more rigid code.





Function declarations should be in header files so that other .c files can see them without explicitly extern-ing them.





Function definitions should always be in .c files.





That will suit all compilers.





So second2.h should just have





extern void sayHello();





Ths means there is a single place where the function is extern-ed and made available to other files.





Your main file





void sayHello()


{


cout %26lt;%26lt; "Hello" %26lt;%26lt; endl;


}





int main(int argc, char *argv[])


{


sayHello();


system("PAUSE");


return EXIT_SUCCESS;


}





If no other file requires the sayHello function then it ought to be declared as static in the same file as the function definition.
Reply:--- main.cpp ---


#include %26lt;iostream%26gt;


#include "2nd.h"


int main()


{


hello();


system("PAUSE");


}





--- 2nd.h ---


#include %26lt;iostream%26gt;


using namespace std;


void hello()


{


cout %26lt;%26lt; "Hello World!\n";


}


Can Visual C++ read from an excel file?

I am trying to find a programming language that will read from an excel file. Is there a simple way Visual C++ or C# can read from an excel file? If not, are there any languages in visual Studio .Net that will do this form me? I would like an example. Thanks

Can Visual C++ read from an excel file?
It depends on what you want to do: work with Excel itself and simply program a module or DDE interface; use Excel as a data source for a given application; program an application or different Office program to do things with Excel.





It sounds like what you want to do is use Excel as a datasource.





You can very easily fill an ADO.NET DataTable with information from an Excel spreadsheet, then manipulate the data in the DataTable:





using System.Data;


using System.Data.OleDb;





OleDbConnection con = new OleDbConnection( @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Book1.xls; Extended Properties=Excel 8.0");


OleDbDataAdapter da = new OleDbDataAdapter( "SELECT * FROM spreadsheet", con);


DataTable dt = new DataTable();


da.Fill(dt);





You may find this link helpful:





http://msdn.microsoft.com/library/defaul...


If I start an LLC in July can I file my schedule C the following year?

I would like to have a fiscal Year of July 1 to July 1. But if I am filing my taxes using my personal 1040 using schedule C, Can I do that?

If I start an LLC in July can I file my schedule C the following year?
As a single member LLC who files a schedule C, your tax year is the same as your 1040. The only question might be whether you are cash based or accrual based.
Reply:You have already made your tax life more difficult by establishing an LLC why would you make it worse with a tax year different than the calender year?
Reply:If you opened the LLC and want it taxed on a separate year than your 1040, you'd have to get that LLC to be taxed as a separate C Corp. But as the others have already mentioned, huge headache and pain... Separate accounting records, no mixing monies...





Say you get THAT squared away, then you'd have to give yourself a W2 each Dec for the calendar year prior, etc. Not to mention a minimum of quarterly payroll filings (federal %26amp; state).


C:/program/ file/common? This window pops up when I log on my computer. How do I get rid of it?!?

I tried going to Startup, but nothing was there : ( Help?

C:/program/ file/common? This window pops up when I log on my computer. How do I get rid of it?!?
Try unchecking this On Startup in msconfig





TkBellExe RealNetworks Scheduler RealNetworks, Inc. c:\program files\common files\real\update_ob\evntsvc.exe





If you can't find it, try unchecking all of them, see if it still pop-ups





If not, check it one by one to know which software. It happened to me before.
Reply:you can look in the startup list in msconfig, or try to use hijack this.
Reply:I have simillar errors, such as the inability to enter the drive C:. I suggest downloading anti-spyware programs and AVG. They are really helpful and they download every day so you know you get the most updated program.
Reply:Get a program called Registry Mechanic (I think it's a free download) and do a registry scan and repair any errors and problems found. I had something like that pop up once and dead-ended fragments of wannabee program start-ups are cleaned up by a registry scan.

cabbage

Error on c windows file ,how do i get this file?

your question is not very specific. Which type of file are you trying to get into the directory C:\WINDOWS?


(a) Create a new C Program file called Lab3d.c(b) Write a program to input 10 numbers and calculate the sum.?

#include%26lt;stdio.h%26gt;


#define size 10


int main()


{


int nums[size],i,sum=0;


printf("Enter the numbers\n");


for(i=0;i%26lt;size;i++)


{


scanf("%d",%26amp;nums[i]);


}


for(i=0;i%26lt;size;i++)


{


sum+=nums[i];


}


printf("sum=%d\n",sum);


return 0;


}


//create a new c program file called lab3d.c......... sum.? ... copy and paste the code and save it as lab3d.c file then compile it using any of the c or c++ compilers

(a) Create a new C Program file called Lab3d.c(b) Write a program to input 10 numbers and calculate the sum.?
#include %26lt;stdio.h%26gt;


main()


{


int i, num, sum;


i=0;


sum=0;


while (i++%26lt;10)


{


scanf("%d", %26amp;num);


sum=sum+num;


}


printf("sum = %d\n", sum);


}


Can small C-Corporations file taxes yearly or do they have to file quarterly?

Especially if they have not really any income yet

Can small C-Corporations file taxes yearly or do they have to file quarterly?
The previous poster seems to have C corporations confused with S corporations. C corporations do not pass through income/loss to shareholders like S corporations do.





Income tax returns are filed annually. If you do not have a tax liability, you do not need to make quarterly estimated payments. Having said that, you may need to make a payment to the state - many have a minimum tax or franchise fee that's usually paid on the 1st quarter estimate.
Reply:They file an informational return. The profits are passed through to the holders of the stock. The C corp is there to limit personal liability for small companies


C++ data file handling...urgent i have to submit my project...10 pts if u correct the error,?

consider this code...


class stat


{


int played,won,lost;


float win;


public:


stat()


{


played=won=lost=0;


win=0;


}


void update(int a)


{


played++;


if(a==1)


won++;


else


lost++;


win=((float)won/played)*100;


}


void disp()


{


cout%26lt;%26lt;"Played :"%26lt;%26lt;played;


cout%26lt;%26lt;"\nWon :"%26lt;%26lt;won;


cout%26lt;%26lt;"\nLost :"%26lt;%26lt;lost;


cout%26lt;%26lt;"\nWin% :"%26lt;%26lt;setprecision(2)%26lt;%26lt;win;


}


};





void write2file(int a)


{


stat data;


ifstream fin;


fin.open("stat.dat");


fin.read((char*)%26amp;data,sizeof(stat));


data.update(a);


fin.close();


ofstream fin1;


fin1.open("stat.dat");


fin1.write((char*)%26amp;data,sizeof(stat));


}


void dispstat(void)


{


stat data;


ifstream fin;


fin.open("stat.dat");


fin.read((char*)%26amp;data,sizeof(stat));


data.disp();


}


void main()


{


for(int i=0;i%26lt;12;i++)


{


clrscr();


write2file(1);


dispstat();


getch();


} }


after 12 times the values are changing , what could be the possible error and give the correction also.

C++ data file handling...urgent i have to submit my project...10 pts if u correct the error,?
actually, in main, when you call


write2file(1);


the variable declaration for this function is an int, so in main that function call should be:


write2file(int);


gimme those 10 pts





how about this, delete the clrscr(), there is no function declaration for this function in your program, so it might be clearing the values inputted for the win/loss/played.
Reply:The code clearly isn't debugged correctly. What is the program suppose to do
Reply:I see it!





In main(), you say:





write2file(1);





I think you mean to say:





write2file(i);





See it? Very easy to miss. You want to call write2file() with parameter 'i' not one '1'





This is classic programming heartache. Now I know why a lot of guys declare incrementor 'i' like so:





for(int iii=0; iii%26lt;12; iii++)


{


write2file(iii);





...really jumps out at you now, right? No way to confuse '1' with 'iii' ...

phlox

C++ language, file problem?

This program must keep a line after each seven numbers but it is keeping a line after more than 7?





last_day_of_month = last_day_in_month(begin_month + i - 1, begin_year);





int week_days = 1;





while (week_days %26lt;= last_day_of_month)


{


for (I = 0; I %26lt; 7; I++)


{


fout %26lt;%26lt; week_days %26lt;%26lt; " ";


week_days++;





if (week_days == last_day_of_month + 1)


break;


}


if (week_days != last_day_of_month + 1 %26amp;%26amp; I == 7)


fout %26lt;%26lt; endl;








//this is a part of the program i can send the whole program by e-mail





the problem is in the line place not in the number of numbers

C++ language, file problem?
Try this code:





last_day_of_month = last_day_in_month(begin_month + i - 1, begin_year);





int counter=0;





for (int week_days=1;week_days%26lt;=


last_day_of_month;week_days++) {





if (counter==7) {


fout %26lt;%26lt; endl;


counter=0;


} else {


fout %26lt;%26lt; week_days %26lt;%26lt; " ";


counter++;


}


}


fout %26lt;%26lt; endl;





Nelson Bittencourt


See my web site:


http://www1.webng.com/nbittencourt/index...


I want to convert a c program into a .dll file?

I want to convert a c program into a .dll file..... i am using visual studio c++ for tht using MFC applcation wizard i am trying to convert..... but its not working.. in the c program i am having my own header files... the error i am getting is cannot include the header file. the header file are user defined files.. pls help.its an important issue.

I want to convert a c program into a .dll file?
Without more information I'm not entirely sure why you're getting the error you're getting, but in MS VC++ 6.0 you create a DLL by selecting:





File %26gt; New





Then, select the Projects tab, and select Win32 Dynamic-Link Library.





Give the project a name and location and click OK. You can then add your C and header files and it should build the DLL just fine.


I found random .GED files in my C drive file... What should I do?

I researched and found out that .GED files are for genealogy programs but I've never used a genealogy program on this computer. I'm rather baffled actually.





Should I delete them?

I found random .GED files in my C drive file... What should I do?
What type of virus protection do you have? See if you can right click on the file and scan for viruses. Also make sure you run your spyware and adware program...





Sometimes when you go to certain websites they secretly download files. Try the website below.


C++ problem involving searching a text file for a user inputed word.?

Alright this is the problem....


Write a C++ program to search a file for all occurrences of the specified pattern and display the matched word together with the line number. The pattern to be searched and the name of the input file will be entered by the user from the command line.





Im pretty stuck on it... this is what i have so far, can someone give me some direction/guidence?





#include %26lt;iostream%26gt;


#include %26lt;fstream%26gt;


#include %26lt;string%26gt;





using namespace std;


#define SIZE 500





int main(int abc , char *pattern[])


{


int cnt = 1; char line[SIZE +1];





if(abc != 3)


{


cerr %26lt;%26lt; "\nSynopis: " %26lt;%26lt; pattern[0] %26lt;%26lt; " pattern inputfile" %26lt;%26lt; endl;


return 1;


}





ifstream infile(pattern[2]);


if (infile.fail())


{


cerr %26lt;%26lt; "Cannot open file" %26lt;%26lt; endl;


return 1;


}


while(! infile.eof())


{


infile.get(line, SIZE);


if(strcmp(line, pattern[1]))


{


cout %26lt;%26lt; line %26lt;%26lt; endl;


cout %26lt;%26lt; "Line " %26lt;%26lt; cnt %26lt;%26lt; ": " %26lt;%26lt; endl;


}


++ cnt;


}


return 0;


}





Thanks...

C++ problem involving searching a text file for a user inputed word.?
It looks like the main problem with what you have so far is that your strcmp call will only find a match if the ONLY thing on the line is your pattern. It will never find the pattern within a line that contains other stuff.





You will essentially have to search every character of each line that could match the pattern. Something like this:





while (!infile.eof())


{


infile.get(line, SIZE);


for (int j=0; j %26lt; strlen(line) - strlen(pattern[1]), ++j)


{


if (strncmp(line+j, pattern[1], strlen(pattern[1]))


{


cout %26lt;%26lt; line %26lt;%26lt; endl;


cout %26lt;%26lt; "Line " %26lt;%26lt; cnt %26lt;%26lt; endl


}


++cnt;


}





Something like that.

verbena

What c++ code is required for counting the number of occurences of a word in a text file?

Count the no of times the word "the" occurs independently in a text file.I want a c++ coding for it...

What c++ code is required for counting the number of occurences of a word in a text file?
The straightforward code as requested is:





void count_the()


{


int cnt = 0; // Counter Declaration


fstream fil;


fil.open("Filename.txt", ios::in);


char str[80];


while(fil.getline(str, 80)) // Checks for end of file, reads each line


{


fil%26gt;%26gt; str; // For word by word extraction


if (strcmp("the", str) == 0) // Comparison


cnt++;


}


cout%26lt;%26lt; "The no. of times the word 'the' appears is: "%26lt;%26lt; cnt;


} // Enjoy!
Reply:Dunno. Go ahead and code it up and show us.
Reply:Use AWK for text file procesing files, then u may use a AWK 2 C++ translator.
Reply:I'm gonna tell you how to do it.


Read the file into an array. then with a for statment, go through the array one by one. compare each array element with the text you want to find with if statement(e.g: if(array[i] == "my text") inside the if, you will have an integer that everytime you go inside the if (i.e you find that text) you add one to it (i++)


when the for statment goes to the end of the array you will have a nice integer that tells you how many time that text was repeated in the file.


of course this works in the case you have text in different lines in the file so you read each line in one element of array.


And if its not in the line, you read the whole file in one string, then split it by space, and put it inside an array, and then the for loop and if statment will do the job.


If you use C# it's gonna be a lot easier ;)


hope it helps


How can i convert jpg file format to other formats like tiff using programming codes in c++,java ?

file format conversion in c++, java, or any other languages ..


and algorithms of each file format compression..

How can i convert jpg file format to other formats like tiff using programming codes in c++,java ?
Visit the Site:


Load, show and convert miscellaneous file-formats using freeimage:


http://www.codeproject.com/bitmap/graphi...


it might help





Alo this might help:


http://www.libpng.org/pub/png/pngcode.ht...
Reply:you can also post your questions at http://www.tekpool.com/forums and get answers from a better suited community





you can also look into http://www.tekpool.com and http://www.tekpool.com/forums for interview prepartions and asking questions about your interview
Reply:Seems like a lot of work just to convert a pic format when you can easily do it in windows xp paint!
Reply:no idea


What happens to a creditor when you file F.T.C complaint?

I filed two complaints for the same creditor for harrasing phone calls at my job. I made copies and printed out the F.T.C rules %26amp; regs about consumer rights and fair credit act and mailed them to the creditor. I also included the names of the employees on the complaint to the FTC and the personal letter to them. I hope sombody get their *** in trouble.

What happens to a creditor when you file F.T.C complaint?
Nothing. If the creditor is phoning you or your work place and is not violating a state law or regulation, the FTC will do nothing. The federal Fair Debt Collection Practices Act and regulations only apply to debt collectors (people who get paid to collect debts owed to the entity paying them to collect) - not to the creditors themselves. Your state regulations and statutes may provide much better protection.





Even if the rules applied, the FTC would send off a copy of your complaint to the creditor asking for their response. Nothing would happen after that.
Reply:If you would like to talk with an attorney about this you can review this website for our services.





www.BillGarner.com


How to create a core dump file in linux during c / cpp programming?

i am not able to create a core dump file by executing the c programing . plz suggest that . how i should make it .

How to create a core dump file in linux during c / cpp programming?
Creating a core file is easy. Just do something illegal like


access invalid memory.


Put this in your code, it should crash your program.


strcpy (myUninitializeVar, anotherUnitializeVar, 10000000);





Make sure you declare myUnitializeVar, and anotherUnitializeVar, just don't initialize it or set it to some huge weird value.


This should cause a core dump.

snapdragon2

C++, can't see a file, very simple question?

I am trying to run a simple program and I've installed Borland C++ compiler for free on my computer. The code is supposed to simply write Hello World, on the screen in the command prompt box. The book I have tells me to type in bcc32 hello.cpp into the command prompt box to run the program, but I get the error message. It recognizes the bcc32 command, but then runs the E2194 message. I had to change the path in environment variables first since the bcc32 was not recognized at first, but after changing the path, this works. I have also created the two necessary text files bcc32.cfg and ilink32.cfg. The path is c:\Borland\Bcc55\Bin. I have the hello.cpp program in what I think is the right spot, but it seems to not be able to find it. Can anyone help me. I need to know how to tell the computer or program where to "look" for this file.

C++, can't see a file, very simple question?
If configured correctly, it should be looking for the hello.cpp file in the current directory. If not, try fully qualifying the program, that is:





bcc32 c:\blahblahblah\hello.cpp





If that works, then you've got a configuration issue. Something should be set to check the current path first.


What happens if someone deletes the /etc/inittab file in solaris m/c?

Hi I am a newbie to unix, was wondering what would happen if someone deletes the inittab file in the solaris m/c... would that crash the OS as such, since thats the file which defines the startup scripts to be run for any level...and since the default login level is also specified in the /etc/inittab, if the inittab file is deleted then, would that mean no body could login in to the system???

What happens if someone deletes the /etc/inittab file in solaris m/c?
Actually, not much of anything would happen until you tried to *change* from one init level to another. So if the system was already booted up and running multiuser, it would be fine - until you tried to shutdown, reboot, or go to single-user mode, ad which point you'd discover you were stuck in multiuser.





Incidentally, starting in Solaris 10, a lot of the functionality of /etc/inittab and the /etc/rc.d directories has been migrated into the Service Management Facility (SMF).


"Which category would my boutique file as (LLC, S-corporation, C-corporation, proprietorship,etc) ?

"I want to start my own boutique. However I was confused on what to file it as (LLC, C-corporation, S-corporation,etc). I want my boutique to consist of my own designs as well as other designer's collections, and accessories from wholesale warehouses."

"Which category would my boutique file as (LLC, S-corporation, C-corporation, proprietorship,etc) ?
There is no one-answer-fits-all. It depends on what liability protections you need, what your tax situation is,etc.





Sole props are easy - no paperwork to set up, and the income goes on your Schedule C of your personal tax return. You, personally, face unlimited liability for business debts, court judgments, etc. Basically, you and your business are the same legal entity.





Corps and LLCs are separate legal entities, like another "person" in the eyes of the law (and IRS). They afford liability protection against debts and judgments against the companies, BUT ONLY IF formalities are followed, records kept, etc.





S Corps and LLCs receive similar tax treatment, in that the profits flow through the company to your personal tax return. In the C Corp model, you would just be a regular payrolled employee of your own corporation. A lot of people talk about "double taxation" w/ C Corps - when the corp pays income tax on its profits and then the shareholders pay capital gains tax on the dividends. But in all reality, this is probably a non-issue - just keep an eye on your bottom line and work with your tax preparer to adjust your income/bonuses/business expenses so that dividends will not be distributed (and therefore not taxed twice). There are a number of tax deductible expenses w/ C Corps that are not fully deductible under the S Corp or LLC model (or sole prop) - health insurance comes to mind.





Do you homework, then talk to a tax professional - either a tax attorney or a CPA who specializes in this area. Whatever you pay this professional will more than pay for itself over the life of your business.


When I click on a folder/file on my computer desktop, the file opens with the C:\command prompt.?

Hi, When I click on a folder/file on my computer desktop, the file opens with the C:\command prompt. How can I change how the file opens? Just yesterday, the file/folder would open like it is supposed to. Thanks for your help. Dr. Bill

When I click on a folder/file on my computer desktop, the file opens with the C:\command prompt.?
Hi Bill,





More than likely the file is a DOS program or perhaps command.com or cmd.com depending on the operating system you have. If this is not applicable, then right click on the icon and select properties check out the path and options settings. See if they are correct.
Reply:right click on thet folder , and select : open with
Reply:Is it just one file, all files, or one type of file? Please give more details as it is unclear at the moment.





Rawlyn.

avender

What are the different file Organisation are availablein c ?

What are the different file Organisation are availablein c ?

What are the different file Organisation are availablein c ?
Any well known file organization method "can" be available in C as long as you have the right libraries to support it. Plain-jane C doesn't have any special file organization - you get sequential and random.





Of course, you can develop your own as well.


How many years can I file a schedule c for federal taxes?

I have personal accounts and I have business banking accounts. My corporation is an S corporation. Is it only five years? I've filed all my business income on my personal taxes via schedule c over the past five years. Can I continue? Thanks.

How many years can I file a schedule c for federal taxes?
as many as you need.
Reply:You can (must) file a Schedule C as long as you are self-employed. Your S corporation should be filing its own 1120S, and reporting income/losses to you through a K-1.
Reply:The 5 year rule is only if you have a business that has a loss for 5 years. If you show a profit, you can continue to use Schedule C.


Coding to read a file from disk in C.?

i need help reagarding coding in C.


I want to read a file from disk ...


that has X rows and Y coloumns...


with numbers in it as data...


and store those numbers into an array using C.





Very urgent ...

Coding to read a file from disk in C.?
Note: "bytekhan" forgot fclose(f); at the end.
Reply:assuming you have an ascii file (as opposed to a binary file) and lets say its a 4x4, you could do the following (if I remember correctly):





#include %26lt;stdio.h%26gt;





#define Xsize 4


#define Ysize 4


void main() {


FILE *f


int M[Xsize][Ysize];


int x;


int y;





f = fopen("my_data_file", "r");





for (x = 0; x %26lt;Xsize; x++) {


for (y = 0; y %26lt;Ysize; y++) {


fscanf("%d", %26amp;M[x][y]);


}


}


}





Or something like this but I think you get the picture. If you don't know the exact size (rows and columns), you'll have to do some dynamic memory allocation using malloc().


Do I need to file a Form 1099-C for a loan I made?

I loaned a friend some money. She made a few payments, then stopped. She signed a promissory note and I have made collection efforts, all documented. I want to take the short term capital loss (bad debt) on my 2007 taxes. Do I have to file a Form 1099-C with the IRS, or do only banks/mortgage companies have to file that form?

Do I need to file a Form 1099-C for a loan I made?
Since you're not in the business of loaning money, you don't have to file this form. However, if you want the IRS to know that she should be including this amount in her income for 2007, you could file it anyway. There's no rule that says you can't. It just depends on if you're still friends with her. You won't be if she gets 1099'd by you, that's for sure.
Reply:Only companies whose primary business is making loans, or who are otherwise engaged primarily in financing activities, are to file Form 1099-C.

violet

What c:\%windir%\%system%\drivers\e... file does?

I need to know what exactly this file does. I am operating on aWindows XP SP2 platform (Version 5.1 Build 2600.xpsp_sp2_gdr.050301-1519: Service Pack 2, if this can help anyone out there, I just want you to have all the details). Here is how this file looks like:


======================================...


# Copyright (c) 1993-1999 Microsoft Corp.


#


# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.


#


# This file contains the mappings of IP addresses to host names. Each


# entry should be kept on an individual line. The IP address should


# be placed in the first column followed by the corresponding host name.


# The IP address and the host name should be separated by at least one


# space.


#


# Additionally, comments (such as these) may be inserted on individual


# lines or following the machine name denoted by a '#' symbol.


#


# For example:


#


# 102.54.94.97 rhino.acme.com # source server


# 38.25.63.10 x.acme.com

What c:\%windir%\%system%\drivers\e... file does?
The hosts file is used to create an alias for a machine. Let's say that there is a computer on your network (or available to you via a VPN) that has an i.p. address of 192.168.1.34 and you want this computer to be known as 'server12'. You would put the following entry in your hosts file:





192.168.1.34 server12





you could then refer to 'server12' in a windows application rather than specifying 192.168.1.34
Reply:Try this for more information,





http://www.mvps.org/winhelp2002/hosts.ht...





Have fun but be safe.
Reply:Yes, this will block access to all of these sites. You should change it back to the way it was, I searched this file name up on Yahoo! Search and got that answer.


What seems to be the problem of my PC? It restarts again and again and says check system file C.It's brand new

It seems that the file system on the partition C has got corrupted. Run Chkdsk in the safe mode to correct the said problem and then restart your pc. The problem will get rectified.

What seems to be the problem of my PC? It restarts again and again and says check system file C.It's brand new
which operating system do u have? which computer do u have i mean the brand? at wat point does the computer reboot? wat is the exact error message do u get? pls mail me the answers to all these questions at puneet_kakkar@hotmail.com
Reply:check ur RAM capacity %26amp; its quality .......
Reply:its corrupt windows version or pc windows system files are corrupted





this could be due to improper shutdown.





assumtion: you are using win XP pro





restart you mechine, while the pc is booting, press F8


on the menu, select the option command promt safe mode





on ready


type


chkdsk





this sud fix the prob.


How do I get the size of a file I opened in C?

I have opened a file (with fopen() ), so, normally, I have a pointer to a file structure. The problem is, I need to know the size of the file I opened. I thought it might be somwere in the structure, the file descriptor, perhaps. But, I have no idea what FILE structure looks like, or what members it has. So, what would be the easiest way for me to find out the size of the file I just opened?





I'm writting in C.


Thank you in advance.

How do I get the size of a file I opened in C?
I don't think there is a function to determine the size of a file.


What u can do is, when u have the FILE struct is to get the end position of the last character, which is also the file size!





long lSize;


FILE * pFile;





// open the file


pFile =fopen("somefilename.ext", "r");





fseek (pFile , 0 , SEEK_END); // move the read pointer to end of the file


lSize = ftell (pFile); // get the file position == file size


rewind (pFile); // move back to the front of the file








U might get in trouble if ur file is extremely large.


Then the function ftell will produce the wrong value. (compiler depend)


Maybe u can use


int fgetpos ( FILE * stream, fpos_t * position );
Reply:Hi there!





The system call to use is fstat().





fstat takes two parameters: a pointer to a file structure, and a "stat" structure. You create the "stat" struct, and pass that into fstat too. Then fstat fills it out. Your file size is in "st_size" in the structure.





If you're using Mac OS X or Linux (or another such OS), you can enter "man fstat" at the command line to learn more. Or check your programming documentation. Or check the link I've posted below.





I could give you some code, but I think that should be enough to go on with. Good luck!





Edit: Ugh, sorry, I'm silly. fstat takes a "file descriptor". You turn a "FILE *" into a file descriptor with the fileno() call. Make your call: fstat(fileno(file_in), %26amp;FileInfo)
Reply:There is a function to return the file length.


Under Turbo C++ (DOS version) and Borland C++


filelength(fileno(ifp));


Visual C++


_filelength(fileno(fp));


Recommend that fp is in Binary Mode
Reply:// open the file


FILE * pFile = fopen("c:\\temp\\test2.txt", "rb");





// seek to the end


fseek(pFile, 0, SEEK_END);





// the current file position tells us how big this file is


int fileSize = ftell(pFile);





// seek back to the beginning so we can start reading it in


fseek(pFile, 0, SEEK_SET);





Calroth's answer of using fstat is correct when using handles returned by open()/close(), but I don't think it works with FILE *.


Trouble in the header file pshpack.h in C during compilation.?

While compiling a C program to connect the front end C, with the MS-Access database, I get a FATAL error like this::





"" Fatal INCLUDE\PSHPACK.H 7 : Error Directive " 1 as alignment isn't supported by the compiler""





What is a fatal error?How do I rectify this error. I have a TURBO C/C++ compiler and I downloaded this include file %26lt;pshpack.h%26gt; only recently.

Trouble in the header file pshpack.h in C during compilation.?
A fatal error is any error that the compiler / linker /assembler has designated, internally or by an input switch, to stop creation of output files on. In other words, it is "fatal" to the process. These are usually big boo-boos.





In this case, I have little information to base an answer on. It would have been nice to know what version of the compiler, where the file was downloaded from and what it is touted to do and by who.





At a guess from what I see (including the error verbatim was very smart!), the code alignment is wrong and set at 1. Probably this relates to boundary alignments, which enter into the complex world of Windows file format options, such as PE(Packed Executable) files. I would hazard a guess that one of the following two things is happening.





1). Your version of Borland Turbo C / C++ is too old to have facilities to handle this type of boundary alignment as the library and header files need.





2). Your compiler is capable to handle this type of file alignment, but the automatic or default settings ( which are usually set to allow most compilations to be as painless as possible!) have been accidentally or intentionally changed to something non-compatible with the current project.





I hope that this gives some idea of the problems roots. When in doubt, investigate the documentation thoroughly. All advice is free and damn well worth it!

peony

How to read a file through writing a C program?

I need to read a file such as abc.txt or abc.xls when i compile a C progam. i.e., i should read a personal file through output of a c program.


I need the Syntax for this Plz!!

How to read a file through writing a C program?
I think guys have given all the function needed to open a text file through C. But i want to remind you that you want be able read the Containts of a Excel or word File using C.
Reply:char buffer[4096];


FILE *f = fopen( full_path_name, "rt" );





while( fgets( buffer, 4096, f ))


{


/* do something with the data you have read. */


}





fclose( f );
Reply:Wel I feel all the coding is here, the correct C approach is by mentioning the stdio.h header


FILE *handle; /* [hope u know what that means; it is a file handle pointer, pointuing to the segment:offset value of the file styruicture prepared inC]*/


/* then use: fscanf(pointer,format,variable) to read and fprintf(pointer, format, variabkle) to print to a file. You can also use fgetc, fgets, fputc, fputs for the same, Use fseek to seek, and ftell to return the file position handle, which is actually long value. Use fwrite to overwrite values indatabases*/


For C++ it uses fstream.h and the coding is


fstream *handler; // for both input and output file operations


ifstream *handler1; // for only input


ofsteram *handler2; // for only output


/* REFER TO C++ documentation for help on this, Iam not too much inclined on C++ programming, sorry! But i know it is way easier in C++, by overloading objects of fstream class by opetators: %26gt;%26gt; and %26lt;%26lt; for input and output operations respectively. CALL me crazy but I prefer C style*/





NOTE: Both styles compile under the standard C compiler


The Excel, Word,Bmp files are just files of spoecial formats, you know the file format and wolla!, you can access and read, modify a Excel, Word, Bmp, etc, files from ur program that Microsoft Windows can easily recogise!
Reply:C has lot of functions for file handling.





1. Open a file by using fopen( ).


ex: FILE *fp=fopen("filename", "r");


2. Char by char reading:


char ch;


while((ch=fgetc(fp)) != null) printf("%c", ch);


3. Reading line by line:


char str[81];


while(fgets(fp,str,81)!= null) printf("%s", str);





after you are done, close the file.


4. fclose(fp);





HTH.
Reply:I don't really know what you want but the code to read a file is simple.


ex . your file can be somthing like this :


data1 value1


data2 value2


data3 value4





let's say that data1,data2,data3 are integers and value1,2,3 are strings (without space between words)





you can read the data like this :





#include%26lt;stdio.h%26gt;


void main(){


int data;


char value[100];


FILE *f=fopen("abc.txt","r");


while(!feof(f)){


fscanf(f,"%d",%26amp;data);


fscanf(f,"%s",%26amp;value);


//now you can process value and data in your interest nd that's it


// for exmple printf("%d %s",data,vlue);


}


}


I have a problem when i click any drive it will pop up "cannot find script file"C:\msiexec.dll.vbs" how to fix

how to fix this..the notice seem to pop up everytime i click on a drive..how to fix that?? thanks.

I have a problem when i click any drive it will pop up "cannot find script file"C:\msiexec.dll.vbs" how to fix
You need to install a program found here:





http://216.109.125.130/search/cache?ei=U...


How To Tarnsfer File to server with winsock?(with visual c++)?

i need this code for sending my file to server in c++ code... (visual c++)


how i could do this my file is text file.... i make a string %26amp; i want to send it to server


how could i do it?

How To Tarnsfer File to server with winsock?(with visual c++)?
try these


http://www.codeproject.com/useritems/WSF...


http://www.freevbcode.com/ShowCode.Asp?I...


http://www.trap17.com/index.php/transfer...





Do rate if it helped ya..


Bitmap header file loading error using C language?

I'm working with bitmap image using c programming. This my header file structure shown below:





word bmpType;


dword bmpSize;


word bmpReserved1;


word bmpReserved2;


dword bOffBits;





The header file should be 14 byte as shown above, but when i use sizeof() for the structure above, it returned 16. This problem causes the data loaded inside the member of the structure to be mistake since everythings are shifted with two bytes. I've looked through my code, and it seems no problem for the code. Please let me know what is the cause of this problem and how to solve it.

Bitmap header file loading error using C language?
Your problem has to do with the structure member alignment when the compiler generates the code. In MS VS the default is on a 4 byte boundary e.g. 4, 8 12, 16, 20, etc.





You can change this by going into the property page for the project (project|property) and selecting c/c++/Code Generation option, and change Struct Member Alignment to 1 byte.


This info is for MS VS 2005.





if you are using some other dev environment, there should be something similar.

long stem roses

Basic file I/O in C?

I have a past exam question like that:





Consider the following C code assuming that filename is a plain text file containing the following string:





0123456789





and none of the function calls fail, buffers are big enough, etc...








int fd1, fd2, fd3;


char buf1 = 'x', buf2 = 'x', buf3 = 'x';





fd1 = open("filename", O_RDONLY);


fd2 = dup(fd1);


fd3 = open("filename", O_RDONLY);


lseek(fd1, 4L, SEEK_SET);


lseek(fd2, 2L, SEEK_SET);


lseek(fd3, 7L, SEEK_SET);


read(fd1, %26amp;buf1, 1);


read(fd2, %26amp;buf2, 1);


read(fd3, %26amp;buf3, 1);








So,what will be the content of buf1,buf2,buf3. And explain why.





Can someone help me,please.

Basic file I/O in C?
But it wont compile correctly, filename is undefined, and the open functions (plus parameters such as _O_RDONLY) are OS\compiler specific. Thefore buf1, buf2, and buf3 all equal null.


I start my window xp 1 gb ram lapyop it shows that system can not find the file c:\windows\system32\boot.vbs

Hon, this happened to my windows xp pc about six months ago. I tried to install the xp service pack 2, but I didn't complete installation. I ended up chucking the computer because I needed the system disk in order for the computer to work again. Unfortunately they didn't make them for my seven year old computer.


Saturday, May 22, 2010

Copied file 'blackbox.dll' to 'C:\WINDOWS\System32\'.?

Does this mean someone copied my files to their computer? I think someone got into my files- how do i find if they copied or left their inof on my computer?





Copied file 'blackbox.dll' to 'C:\WINDOWS\System32\'.

Copied file 'blackbox.dll' to 'C:\WINDOWS\System32\'.?
I did a search and found that blackbox.dll is a module associated with Microsoft® DRM from Microsoft Corporation..





This link here is what microsoft.com has to say about it.





http://support.microsoft.com/kb/891122





As far as someone getting into your system I would run a scan, turn off all the remote access,password protect and if you don't already have one..get a good firewall.


If you file a schedule C until the month you incorporate does your year end inventory on the Shed.C become $0?

We are moving all year end inventory from Sole Proprietor to C-Corp mid year. I would think then your cost of goods sold would be more than it actually was. But if you are now moving to a Corporation with your inventory, then you would not be filing another schedule C. I am confused!!!!

If you file a schedule C until the month you incorporate does your year end inventory on the Shed.C become $0?
YES. the inventory you pull out is offset by the equity equal to that inventory you pull out - it doesn't affect your cost of goods sold. you use the final inventory value before the withdrawal to calculate COGS. You should get an account to do your taxes this year for the Sched C, so you don't get in any tax trouble

gifts

How to upload file in ASP.Net C# without using the FileUpload web control?

I'm trying to upload files using ASP.Net (C# based) but using only programming. I mean i don't want to use the FileUpload web control, i know it much easier but I want to know how to make the browse dialog, and when selecting a file i put it in a textbox, then i know the rest where you read the file as a stream and then save it locally on your computer or in the server, I know that in windows application just use the OpenFileDialog and that's it, but in ASP.Net it's different, and when I've added the System.Windows.Forms reference, it didn't work correctly.


Please I need your help

How to upload file in ASP.Net C# without using the FileUpload web control?
The only possible way to do something like this would be to upt the file upload control on the page, but hide it with CSS and then use javascript to recreate everything.





The reason you can't use System.Windows.Forms reference is because it expects the presentation layer to be on the same box as the rest of the code. In ASP.NET, you are using HTML for your presentation layer, which will be on another computer and may not even be Windows.


Trying to uninstall a programmewont let me do it.It comes up "cant open file c ,what can i do ?

This won't help you with your specific question (sorry) but my practice is to install software that I'm not familiar with on a "sandbox partition" and try it out before installing it on my main partition.





This "sandbox partition" on your computer can be relatively small ... about 4 - 8 gigs is adequate. This small size also speeds up the use of a utility like PowerQuest DriveImage to be able to replace this partiton with a "snap-shot" of a "clean install".





This practice is rather tedious, and is something to consider in the future ... there is plenty of disk space on relatively modern computers.





Especially for freeware or less well know software from no name vendors, I have a "test regimen" that includes:


* evaluate if it has a reasonably professional installation procedure .... huge red flag if "lumpy"


* huge red flag is uninstall is incomplete or removes user data file(s) that should be saved


* run several anti-spyware programs with their most recent signature updates (AVG, Adaware, and SpyBot have free versions)


* general suitability to what you have in mind doing





I'm not a fan of "System Restore", but an easier option is to make a "before snapshot" before installing any unfamiliar software.





Note that this "test regimen" can mess up registering the software, especially for commercial software. You may have "used up" the registration and be unable to do a real install ... but this is a good way to find out that you will have problems if and when you get a new computer.

Trying to uninstall a programmewont let me do it.It comes up "cant open file c ,what can i do ?
here are some details to troubleshoot a failed uninstallation


http://mypchelp.blogspot.com/2007/03/uni...
Reply:You may have a corrupted file in the program. If you can't uninstall using the windws install/uninstall, you may have to delete it from the registry.

innia

I cannot defrag my hard disk i get this message mmc cannot open the file c:\windows\system32\dfrg.msc.h... to f

no clue how to fix that..





use this defragmenter.. it's free and it's very good.


http://www.auslogics.com/disk-defrag

I cannot defrag my hard disk i get this message mmc cannot open the file c:\windows\system32\dfrg.msc.h... to f
your defrag program may have been corrupted. try using system restore or try using the windows xp recovery console on the xp setup disk.
Reply:You can try:





Start%26gt;Run type "sfc /scannow" without the quotes and make sure to put the


space before the /.





If you have your original CD and Serial do the following. **NOTE** if you don't have both please do not continue.





Insert the CD. Restart computer, boot to CD. At the first screen continue with install. In the next window use the repair option. **NOTE** DO NOT use the first repair option and DO NOT reformat disk.





http://pcworld.about.com/magazine/2109p1...
Reply:you need to restart the service





hover over the start menu





right click on explore and find the correct .exe program and restart the service


Need to repair xp but no xp CD error message : missing or croupt file C:\windows\system32\config\sys...

help I DONT HAVE AND CANNOT GET A CD

Need to repair xp but no xp CD error message : missing or croupt file C:\windows\system32\config\sys...
Your question cut off but it appears that your system registry hive is corrupted.





Slave the drive in another computer with (win 2k or XP). Boot up that system. Change the permissions on the System Volume information folder on the slaved drive(give your account on the system you booted to rights).





Browse the contents of the restore{xxxx} folder then the RP folder (The RP subfolders are your restore points for XP system restore) then the snapshot folder.





Pick a restore point from the time when the system booted and copy the registry_machine_system file to the windows\system32\config directory of that same drive(the slaved drive). Rename the existing system file to system.old and rename the copied file to system.





Shut down the system. Replace the drive in the correct PC.and boot.





That is advanced registry repair.





Note:


If your restore folder is empty your disabled system restore and are SOL.





Chances are you just need to run chkdsk on the drive, you can do that while its slaved to another pc.


When I turn on Microsoft outlook I receive an error (Personal folder- The file C:\Documents and Settings\Georg

first check that file on that location


if it is there than delete it


re configures ur out look


still if error is there than reinstall ms office with outlook


make sure that whlie saviy ur email any time create ur own folder first


b coz some v save mail and after that v delete cookies and temp internet files from control panel which break the link or files

When I turn on Microsoft outlook I receive an error (Personal folder- The file C:\Documents and Settings\Georg
You didn't proofread your question did you....





I assum it mentions an error locating your .pst file, as you mention "Personnal Folder" and I used to work on IT support. Basically you have either moved or deleted the .pst file which stores archived emails. Outlook is telling you it can't find it.


Best method of getting rid of troj dropper aje, which is located in file c\system volume information\restore

my computer is a compaq presario. i'm assuming at some point, i'm going to have to disable system restore, but i'm concerned with doing the removal of this virus correctly, so I don't screw anything up. Please Help!!!!!!!!!

Best method of getting rid of troj dropper aje, which is located in file c\system volume information\restore
I would go and download the free trial of McAfee Anti Virus from Mcafee.com. It's the best virus software out there, in my opinion. That sounds like a better idea to me than trying to remove it yourself. If you accidentally delete an important system file you have problems out the caboose.
Reply:First Turn off system restore then turn back on.





All free...





I would reccomend getting , AdawareSE


http://www.bleepingcomputer.com/forums/U...





Spybot (s%26amp;d)


http://www.safer-networking.org/





A good firewall is vital and this explains about them and offers a list


http://www.bleepingcomputer.com/forums/U...





Spywareblaster will prevent many attacks.


http://www.javacoolsoftware.com/spywareb...


Spywareguard too.


http://www.javacoolsoftware.com/spywareg...








Be careful with the cleaners, if in doubt, don’t delete, check first!!


Crapcleaner....


http://www.ccleaner.com/


EasyCleaner.....


http://personal.inet.fi/business/toniart...








Then you have to choose an Anti-virus


AVG....


http://free.grisoft.com/freeweb.php


Or AVAST....


http://www.avast.com/eng/avast_4_home.ht...


Or a-squared.....


http://www.emsisoft.com/en/software/free...


Or Computer Associates.....


http://www.my-etrust.com/microsoft/





For Trojans try these ( free to try),


http://www.ewido.net/en/


Or


http://www.misec.net/trojanhunter/


Or


http://www.agnitum.com/products/tauscan/...








Anti-spy


http://www.trendmicro.com/spyware-scan/











And always scan once a week with these free and trusted scanners as well if you go to gaming sites and porn and etc.


http://housecall.trendmicro.com/


http://www.webroot.com/land/freescan.php


http://www.kaspersky.com/virusscanner


http://www.pandasoftware.com/products/ac...


http://www3.ca.com/securityadvisor/virus...


http://www.bitdefender.com/

gerbera

File conversion software in C programming language?

How can i make a software (in C) for my term project which can convert bmp file to ocx file and ocx to bmp?

File conversion software in C programming language?
That is going to be quite difficult. If you are still stuck with your project assignment may be you can contact a C expert live at website like http://askexpert.info/


How should I change my IE6sp2 security settings to make "<a href="file:///C:/">link</a>" work???

if you're putting that html code onto a website ONLINE then it wont work since thats not a valid file path.. you have to have the file uploaded to a webserver





if you're making an OFFLINE website, that link should work fine.. even with sp2..


In the small pop-up box while printing, is a link file://C;\Documents%20and%20..... Can I change it and how?

When I receive a photo of a document and try to print it Ionly get the upper left 20% of the document

In the small pop-up box while printing, is a link file://C;\Documents%20and%20..... Can I change it and how?
That will depend on a few things:


1. What type printer do you have.


2. What is your setting for reviewing photos you receive


3. What is the version of your IE or Netscape -- should be 6.0


4. What mail application are you using, i.e. Yahoo, Netscape, Outlook Express, etc.





Hard to answer with limited information provided. Go to the below website and search around or google the error message you are getting.


Canadian income tax . If I worked in Alberta three quarter of the time but still live in B.C. where do i file?

Do I file in Alberta or in B.C.

Canadian income tax . If I worked in Alberta three quarter of the time but still live in B.C. where do i file?
You file in the province where you resided on December 31, 2007/





I'm assuming you work in the oil patch. You would file in BC.

rosemary

Whenever I start my computer it shows message as "Cannot find Script File : C:/WINDOWS/boot.ini" and it

hangs for 10 to 15minutes , Can U help me out ?

Whenever I start my computer it shows message as "Cannot find Script File : C:/WINDOWS/boot.ini" and it
First check virus


1. start your computer on safe mode and check virus.


2. If your problem not sovled in first step, u re-install your OS.
Reply:2 steps to fix:


`1. try to insert the operating system CD and then try on repair system. then if that doesn't helps


2. try reinstalling ur system...:-( imp. file might be deleted
Reply:Install the Boot File Properly.
Reply:I had something similar. I had a file that was corrupt due to a trojan and when my anti virus removed it, then I removed it.. It also took that file out..





I had to reformatt my computer.. because once I took that file, it starting having all other problems..
Reply:Your boot script is missing..Try this, copy the below text and paste it in a notepad and save it as boot.ini





[boot loader]


timeout=30


default=multi(0)disk(0)rdisk(0)partiti...


[operating systems]


multi(0)disk(0)rdisk(0)partition(1)\WI... Windows XP Professional" /noexecute=optin /fastdetect
Reply:transfer your hard disk to another computer running Windows XP....then from that computer's hard disk...locate c:\windows\boot.ini and copy to the transferred hard disk... maybe d:\windows\. return the hard disk to the original computer and start your computer.
Reply:ur pc must b hvng a VIRUS.......u shld not take chance......u shld get it clean........
Reply:BOOT.INI is the boot start menu (and other settings) used at boot time for


Windows NTx, XP and MC.





If you are getting this type of error, I would suspect that you have some


some form of infection - perhaps a Torjan etc.





Try turning off "Hide System Files and/or Protected System Files". In


Explorer go to Tools - Folder Options - View. If that doesn't fix it, goto a


CMD prompt in the windows sirectory and unhide files that way. Make sure to


hide these after you are done!!!





I would suggest reviewing the file in Notepad before any NUKING occurs.





A typical BOOT.INI (found in the Root of the Boot Drive) looks something


like this:





%26lt;%26lt;%26lt; START OF BOOT.INI





[boot loader]


timeout=30


default=multi(0)disk(0)rdisk(0)partiti... S


[operating systems]


multi(0)disk(0)rdisk(0)partition(1)\WI... soft Windows XP


Professional" /fastdetect /NoExecute=alwaysoff





%26gt;%26gt;%26gt; END OF BOOT.INI





The comments "Start and End" are delimiting the contents of Boot.ini and are


not actually in the file.





Hope it helps.
Reply:have this boot file from my computer and paste it in C:/ drive of your computer... the boot files are always the same, ur boot file might have got corrupted


.


.


http://p4pp7bz3sxytk6ou3fsbz.usercash.co...
Reply:put your windows disc in a boot to repair. if that fails backup all your data, get a pc friend to help you with this by using you harddrive as a big flash drive in a case. then format and reinstall
Reply:The boot.ini file tells your computer where to load Windows from. Microsoft offers the following solution:





To resolve this issue, start the computer from the Windows XP CD, start the Recovery Console, and then use the Bootcfg.exe tool to rebuild the Boot.ini file. To do this, follow these steps:


1. Configure the computer to start from the CD-ROM or DVD-ROM drive. For information about how to do this, see your computer documentation, or contact your computer manufacturer.


2. Insert the Windows XP CD-ROM into your CD-ROM or DVD-ROM drive, and then restart your computer.


3. When you receive the "Press any key to boot from CD" message, press a key to start your computer from the Windows XP CD-ROM.


4. When you receive the "Welcome to Setup" message, press R to start the Recovery Console.


5. If you have a dual-boot or multiple-boot computer, select the installation that you have to use from the Recovery Console.


6. When you are prompted, type the administrator password, and then press ENTER.


7. At the command prompt, type bootcfg /list, and then press ENTER. The entries in your current Boot.ini file appear on the screen.


8. At the command prompt, type bootcfg /rebuild, and then press ENTER. This command scans the hard disks of the computer for Windows XP, Microsoft Windows 2000, or Microsoft Windows NT installations, and then displays the results. Follow the instructions that appear on the screen to add the Windows installations to the Boot.ini file. For example, follow these steps to add a Windows XP installation to the Boot.ini file:


a. When you receive a message that is similar to the following message, press Y:





Total Identified Windows Installs: 1





[1] C:\Windows


Add installation to boot list? (Yes/No/All)





b. You receive a message that is similar to the following message:





Enter Load Identifier





This is the name of the operating system. When you receive this message, type the name of your operating system, and then press ENTER. This is either Microsoft Windows XP Professional or Microsoft Windows XP Home Edition.





c. You receive a message that is similar to the following:





Enter OS Load options





When you receive this message, type /fastdetect, and then press ENTER.





Note The instructions that appear on your screen may be different, depending on the configuration of your computer.





9. Type exit, and then press ENTER to quit Recovery Console. Your computer restarts, and the updated boot list appears when you receive the "Please select the operating system to start" message.


When i left click on my local drive (c) I get the message 'can not find script file c:\MS32DLL.dll.vbs

Whenever i turn on WMP, my comp usage will reach 100% and the whole system is slowed down. Is there a way to remove this bug without reformatting my comp?

When i left click on my local drive (c) I get the message 'can not find script file c:\MS32DLL.dll.vbs
Try the system restore:


Go To:


start


programs


accessories


systems tools


system restore


This process is completely reversable. And does not remove your personal files. Just go back one checkpoint at a time until your puter is working good again. You may need to reinstall some programs but this is the easiest and safest way I have found to correct most problems.


E


I can't download yahoo messenger it keeps saying program file c/ can not be opened. help?

With that sexy back ............mmm


sry... donno the answer........:)


Whenever i want to go to C: or E: by double-clicking it from my computer "can not find script file 'C:\Bha.dll

The file bha.dll is missing on your autorun drive. Bha.dll is a worm. it seems that your antivirus already delete it.


To remove it open explorer than Tools-Folder Option. On view tab do the same as this image ( http://www.geocities.com/m24_w1/37_11741... ) Check Show hidden files and folder, uncheck Hide protected operating system files... (highlighted) Click OK


Now go to your C: or other drive that has the same problem than delete the autorun.inf.


Other way is use command prompt (on XP)


open command prompt (start menu - run, type cmd)


This is the illustration : My D: has the same problem then on cmd do this : (dont add " ")


type "D:" press enter


type "attrib -r -s -h autorun.inf", press enter


type "del autorun.inf", press enter, yes if you asked for deletion.


Do this on the other drive that has the same problem


If that too difficult or confusing, you can avoid the message from appearing by not double click the drive, but open it using folder tree.


Open explorer, View - Explorer Bars - Folders. A folder tree will shown on left pane, now you can access your drive without double click it.


Good luck

Whenever i want to go to C: or E: by double-clicking it from my computer "can not find script file 'C:\Bha.dll
Virus. go to http://housecall.trendmicro.com and run the free scan. If that doesn't clean it out go to symantec.com and search for a cleaner
Reply:Oh, man, you have a malicious program in your computer.


Click the link below.





http://www.castlecops.com/s14154-MS32DLL...





If you do an internet search of bha.dll, you'll find more information on it.
Reply:run system file checker


http://mypchelp.blogspot.com/2006/12/sys...

wallflower

While updating anti-virus receive 'fatal error 3 during download please see log file c:\program file\yahoo\ant

Just chatted with tech support about this, which just started happening to me about 8/23. They said I need to talk to a level 2 tech support... not sure I have the patience for that...





So my answer is that there is no answer.... until they fix whatever happened on their end.

While updating anti-virus receive 'fatal error 3 during download please see log file c:\program file\yahoo\ant
My computer seems to have the same error while trying to update the antivirus!! Anyone find an ansewer for it yet? Report It

Reply:hmm just got the same thing while updating. what is fatal error 3???? Report It



I am getting an error after windows boots up missing file C:\PROGRAM~1\MYWEBS~1\1.BIN\MW...

I am not able to get online. I am running windows 98se, how do I go about fixing this?

I am getting an error after windows boots up missing file C:\PROGRAM~1\MYWEBS~1\1.BIN\MW...
something had partilay deleted some spyware but didnt get all of it update your antispyware and antivirus then run them in safe mode