|
sumit.durg wrote: I planning to make ...
You're planning to make something or you're planning to download something that's been already done by someone else?
Why is that immediately after you have a plan to make a web crawler, you want sample code? What can you possibly do with it? Rename and sell? Have you analysed the requirements? Are they well defined at first? Do you have at least a vague design in your mind? Do you have a proper roadmap? Have you set your goal points?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Its not like that, I need some algorithm / Logic. How it can be made.
|
|
|
|
|
There's a book titled,"Programming Bots, Spiders, and Intelligent Agents in Microsoft Visual C++" authored by David Pallmann that explains interfaces and has code examples.
|
|
|
|
|
Hi, i have a problem with an ActiveX Control that was developped in VS C++ 2005 using MFC. It works perfect in C++,VB, ActiveX Testcontainer. All events are fired proberbly (using FireEvent). Now we have to develop a program in Access 2000 and we need this control there. All methods work fine, but not a single event is fired in Access, not even a OnMouseMove event. Does anyone have similar experiences and possible solutions?
Thanks for any answer.
|
|
|
|
|
I am a newbie and this is my first program...
#include "stdafx.h"
#include "conio.h"
#include "stdio.h"
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Hello!";
return 0;
}
But when I built, it thre follwong error...
<br />
Error 1 error C2065: 'cout' : undeclared identifier e:\visual programming\practices\test\test\test.cpp 11 test<br />
Mohsin Ali
|
|
|
|
|
cout is part of the std namespace, so either write std::cout or put a using namespace std on top of your file (after the header file inclusion).
Another point: conio.h and stdio.h are for C. If you are using cout (which is part of the C++ standard library), you should #include <iostream> instead.
|
|
|
|
|
Cout is declared in iostream header.
#include "iostream"
using namespace std;
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
mohsindeveloper wrote: #include "stdio.h"
Hint: Stdio.h is for C-Style input output routines. Can you guess what header has the prototypes for C++ style input output routines?
[Add: Oh my Gawd! Two people beat me to it already ]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Add this header file
#include <iostream>
And also write cout as
std::cout<<"Hello!";
|
|
|
|
|
Yuppeee!!
Program has built.......
Now how can I run it.. i.e. I want to see the output of my program..
Mohsin Ali
|
|
|
|
|
Either add getche() before return statement and press F5.
or
Go to command prompt and run your program exe directly.
|
|
|
|
|
Error!!!
Error 1 error C3861: 'getche': identifier not found e:\visual programming\practices\test\test\test.cpp 13 test<br />
Mohsin Ali
|
|
|
|
|
to use getche() you will have to use #include <conio.h>
by the way you should choose second option.
|
|
|
|
|
Thx its done.............
Bingoo!
Mohsin Ali
modified on Tuesday, June 3, 2008 9:10 AM
|
|
|
|
|
|
Hi all,
I want to find the working mode of the Visual Studio 2003 at run time. I mean on a debug mode I want to use some commands on the console. But they are not allowed to use in release mode.
How can I do it.
Hope it's clear to you.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
CodingLover wrote: I mean on a debug mode I want to use some commands on the console. But they are not allowed to use in release mode.
#define DEBUG
. . .
#ifdef DEBUG
. . .
#endif
Now the code that you don't want to execute in the release mode goes in the above section.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Thanks for all replays.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I have one question here.
I've call a function with a command in the console. Say by test
I want to add some parameters too, something like this.
test one two
What is the easiest way to get those values.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
CodingLover wrote: What is the easiest way to get those values.
Are you asking about command line parameters? If so use GetCommandLine function.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Yes, I've explain it in wrong way. I'll say it in this way.
Say my command parameter is text 0xAF 150
I want to get each of them as it is, mean a string, a DWORD and a int. Then pass each as command line parameters. What I'm looking is how to separate those values in standard C++
I appreciate your help all the time...
CodingLover
|
|
|
|
|
int main(int argc, char *argv[])
{
for (int i = 1; i < argc; i++) {
cout << argv[i] << " "; //argv[i] has separated command line params
}
cout << endl;
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
But how it's separated. According to my command, how can I separate them.
At the time just forget the command line concept. Because I do all those things in different classes and in different stages.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Your question still makes no sense.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|