er the option of a MFC
-
I have written a program C++. I want to be able to give the user an option to print or print preview the putput or exe file. Are there any tutorials that explain how to create a page like this in MFC. I have a little idea but do not know how to enter my C++ code into the MFC template in order to create the complete program. Thank You all for all of your assistance.
-
I have written a program C++. I want to be able to give the user an option to print or print preview the putput or exe file. Are there any tutorials that explain how to create a page like this in MFC. I have a little idea but do not know how to enter my C++ code into the MFC template in order to create the complete program. Thank You all for all of your assistance.
-
REPOST ! :mad: and i'm not sure you want to print "exe files"... do you know what is exe files ? do you already opened a compiled file into a WYSIWYG editor (like notepad, ultraedit...) ???
TOXCCT >>> GEII power
[VisualCalc][toxcct]The exe file is what I get after I compile and build my program. I run it and out comes an exe file. The program perfroms exactly how I want it to. Now I want to be able to take my code and enter it into MFC so I will have a more functional program that give the user the option to print out the results. With the exe you can only view it. Of course they could maybe cut and paste but that is not to professional. Thank You
-
The exe file is what I get after I compile and build my program. I run it and out comes an exe file. The program perfroms exactly how I want it to. Now I want to be able to take my code and enter it into MFC so I will have a more functional program that give the user the option to print out the results. With the exe you can only view it. Of course they could maybe cut and paste but that is not to professional. Thank You
so, you have an executable (A) that when run will extract/generate another executable (B) ? and when you run B, you want it to be able to print what it displays ? if so, you need to reprogram B to handle the print process. Am I understanding corretly your situation ?
Maximilien Lincourt Your Head A Splode - Strong Bad
-
The exe file is what I get after I compile and build my program. I run it and out comes an exe file. The program perfroms exactly how I want it to. Now I want to be able to take my code and enter it into MFC so I will have a more functional program that give the user the option to print out the results. With the exe you can only view it. Of course they could maybe cut and paste but that is not to professional. Thank You
so what do you want to print ? binary datas ? source codes ? document files manipulated by your "exe" (program) ? ps : MFC is not a functionality or anything like that. MFC means "Microsoft foundation classes". it is a framework that provides you a set of classes and functions to ease you windows programming?
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
The exe file is what I get after I compile and build my program. I run it and out comes an exe file. The program perfroms exactly how I want it to. Now I want to be able to take my code and enter it into MFC so I will have a more functional program that give the user the option to print out the results. With the exe you can only view it. Of course they could maybe cut and paste but that is not to professional. Thank You
BRIMID wrote: The exe file is what I get after I compile and build my program. We all agree on this much. Hereinafter is where things get sketchy. BRIMID wrote: I run it and out comes an exe file. This implies that your program produces another .EXE file. Yes? BRIMID wrote: The program perfroms exactly how I want it to. What exactly does it do? BRIMID wrote: Now I want to be able to take my code and enter it into MFC so I will have a more functional program... Are you saying that you want to base your program on MFC rather than the standard Win32 API? BRIMID wrote: ...that give the user the option to print out the results. The results of what? BRIMID wrote: With the exe you can only view it. What is it viewing?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
BRIMID wrote: The exe file is what I get after I compile and build my program. We all agree on this much. Hereinafter is where things get sketchy. BRIMID wrote: I run it and out comes an exe file. This implies that your program produces another .EXE file. Yes? BRIMID wrote: The program perfroms exactly how I want it to. What exactly does it do? BRIMID wrote: Now I want to be able to take my code and enter it into MFC so I will have a more functional program... Are you saying that you want to base your program on MFC rather than the standard Win32 API? BRIMID wrote: ...that give the user the option to print out the results. The results of what? BRIMID wrote: With the exe you can only view it. What is it viewing?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
I will try to explain a liitle simpler. I wrote a program to add 1+2=3 I Compile it, Build it, and then execute it. I have a exe file. Right? Everytime I run the exe file is see 1++2=3. But the file does not have the option to print. I would like to be able to print out the results of the program i.e., 1+2=3.
-
I will try to explain a liitle simpler. I wrote a program to add 1+2=3 I Compile it, Build it, and then execute it. I have a exe file. Right? Everytime I run the exe file is see 1++2=3. But the file does not have the option to print. I would like to be able to print out the results of the program i.e., 1+2=3.
So all you are really wanting to do is output the sum of 1 and 2 to the screen? With C:
printf("%d\n", 1 + 2);
With C++:
cout << 1 + 2 << endl;
Does that help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
So all you are really wanting to do is output the sum of 1 and 2 to the screen? With C:
printf("%d\n", 1 + 2);
With C++:
cout << 1 + 2 << endl;
Does that help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
So all you are really wanting to do is output the sum of 1 and 2 to the screen? With C:
printf("%d\n", 1 + 2);
With C++:
cout << 1 + 2 << endl;
Does that help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
I have that. I am able to display output to the screen using cout<<. I want to send the output on the screen to the printer.
Well, if you are running your program from a command prompt, just redirect its output to the printer like: C:\> myprog.exe > prn or C:\> myprog.exe > lpt1
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow