|
How i can get the address of HTTP from HTTP Proxy when browse some web site. It's like ZoneAlarm's Web filtering. Can you show me the sample or some infors
Nothing
|
|
|
|
|
I am working on a dialog type project using the base class CFormView and SDI and I am also using another with MDI. Both involve using edit boxes and basic variables such as INT, CString, etc. also will involve simple math, my problem is in the serialization of the data. How do you serialize the data when using CObject as a class, one of my variables is m_sName, is this wrong for serializing or not, yes I am a newbie to C++ and I have lots of books on serializing and they confuse the heck out of me. I have used Cobol and can do this in Cobol but C++ is hard for me to learn, maybe you can suggest some web sites with examples I can learn from. I realize you could write a book explaining serializing but I could use some general guidelines. Thanks for your help and I won't lose any more hair over the frustration.
|
|
|
|
|
Hi There,
I want to know how I can support multiple ‘FormViews’ by having a single ‘Document’ class in my ‘SDI’ Application. The class which ‘MFC Wizard’ makes it for us supports the document. But the additional ‘FormViews’ which I put in doesn’t have access to the ‘Documents’ variables.
The code which I tried my self are as follows:
These are the additional or the ‘Nth’ classes
Class CSection : public CFormView
{
…
};
void CSection:: OnInitUpdate(void)
{
CMyDoc* pDoc = (CMyDoc*) GetDocument();
This code works in an SDI application in which classes are derived from ‘CRecordView’.
}
void CCourse:: OnInitUpdate(void)
{
CMyDoc* pDoc = reinterpret_cast<cmydoc*> (GetDocument());
}
|
|
|
|
|
|
Let say I want to create animation picture so this picture have to draw by myself or can import from picture file?
Thank You
|
|
|
|
|
I got a problem here
Is it possible to programme using C++ without asking the user to key in the values but rather the programme can itself search for values from a list of data output from another programme
Thank for any ideas
|
|
|
|
|
|
But how do I go about doing it?
|
|
|
|
|
You might pipe the file into the standard input stream of your program (which you would treat similar to how you do keyed user input).
You might connect to a database or read some files located in the filesystem.
You might make a web-services call or use another RPC to communicate with a program running elsewhere.
What exactly are you trying to achieve?
Ian Darling
"The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
|
|
|
|
|
Actually I am doing a project on face detection
Now i have got the output coordinates of facial features but there are too many of them and i need only a few of them to do analysis so as to achieve face expression detection.
So will the coordinates selected, like x,y (12,23)for neutral expression I want to compare will another x,y (45,76). If if it satisfy the happy criteria, then output will be happy
So how should I link two programmes together?
The first programme output a list of coordinates while the want I am doing will get some valuse and output the expression
Thank for your reply and i do hope you will help me
|
|
|
|
|
ok, I have my .jpg image, let's call it "picture.jpg"
Now, I want to get a pixel color from picture.jpg at coordinates (50,80)
How could I do this?
Thanks a lot
Michael
|
|
|
|
|
ATL has a CImage class which lets you load an image from file and do whatever you want with it...
Just check out the CImage class in MSDN to get you on the road.
Don't think you are, know you are...
|
|
|
|
|
Hello, I have a problem with the .exe's that I make. I open them and they close very fast so you can hardly read it or not. I asked this question a while ago but now I ask if one of you would write the programm "hello world"
with the getch() command because that's what they advised me but I have no Idea how.
n00b Thomas
|
|
|
|
|
Like this:
#include <conio.h>
int main(...)
{
// your program here
getch();
return 0;
}
|
|
|
|
|
this is what I did and when I try to compile now he gives an error
#include <conio.h>
#include <iostream.h> //I thought I needed this one as well
int main()
{
cout << "hello world";
getch();
return 0;
}
|
|
|
|
|
What is the compile error you get?
The program in VS6 (generated console app wizard) should be as simple as
#include <stdafx.h>
#include <conio.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
getch();
return 0;
}
Michael
|
|
|
|
|
Tick the "do not treat <'s as HTML tags" box so we can see what you're including.
|
|
|
|
|
#include conio.h
#include iostream.h
void main (void)
{
cout << "Hello World!\n";
getch();
// If I use return 0; there comes an error
}
Thomas
|
|
|
|
|
"return 0;" gives you an error because void functions return no values.
|
|
|
|
|
Your signature for main is strictly wrong - should be
int main(int argc, char* argv[])
Then you return an int - ie 0 or anything else u want
|
|
|
|
|
In the book that I hired from the library and another one that I have at home both say this:
#include iostream.h
void main(void)
{
cout << "hello world";
}
The problem is they used to work but know I can only open them in DOS that's not a problem for me but if I want to mail someone else my work and they don't know how to use DOS then it's a little problem.
Thomas
|
|
|
|
|
jaapdeboer wrote:
The problem is they used to work but know I can only open them in DOS that's not a problem for me but if I want to mail someone else my work and they don't know how to use DOS then it's a little problem.
The executable itself will launch inside a command prompt as you have written it. If you want a windowed application you will need to write it as such.
- Nick Parker My Blog
|
|
|
|
|
jaapdeboer wrote:
In the book that I hired from the library and another one that I have at home both say this:
#include iostream.h
void main(void)
{
cout << "hello world";
}
Not being funny, but those books are either full of crap, or seriously outdated (by at least 5 or 6 years). main returning void is non-standard (it can accept a void type for the parameter list). main does not require a return, however if it is missed, then there is an implicit return 0 included.
Ian Darling
"The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
|
|
|
|
|
Hi!
I'd like to display a transparent PNG in a CDialog using MFC. How to do that best?
Kind regards...
Michael
|
|
|
|
|
I've used Davide Pizzolato's CxImage[^] library to do this sort of stuff; it works like a charm.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|