|
|
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
|
|
|
|
|
Hi, I've been coding visual c++ for a while now, and made a couple of nice little MFC applications. However I have a kind of general question about the next stage. I can get the applications to work from visual C++ but obviously that's not ideal for distribution, so my question is (sorry if this is stupid)
1. What exactly is the purpose of an installer i.e. install shield etc, as when I build my app in c++ i just get an exe file, no changes in registry or other files?(don't think my question is well worded )
2. Where do i get one/ how do i implement it.
Thanks
Andy
ps another question if i want to read a particular file format into my application say *.jpg for example, how can i do this, surely I don't have to write the code from scratch or do I have to buy a proprietary library?
|
|
|
|
|
1. Your program usually has a number of dependencies, which most commonly are DLLs implicitly used by your program at run-time. An installer makes sure that the target machine already has these DLLs and install the missing ones (an installer can do quite some things more, but this is its main functionality.) Most DLLs are system DLLs and you won't have to worry about them. Make this little test: copy your executable to a fresh machine (OS just installed) and see what happens. The system will guide you about what DLLs are missing. One important case is MFC distribution DLLs: usually, it is preferrable to build your app as statically linked against MFC (see project settings, first tab) so that you don't depend on MFC DLLs at all.
2. Most known commercial installers are InstallShield and Wise (google for them.) Windows has its on installation technology called Windows Installer, but it requires some preloaded services in the target machine which are not natively supported by older OSs. Pablo van der Meer has written a Little Install Builder[^] which may suit your needs.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|