last day (15 days later) » 

1:23 AM
what was he talking about making a .hta file ?
 
@Cheers and hth.-Alf
 
was he serious that this could solve the problem ?
 
yes, he's not a clown, I'm trying to get him into this room
 
nice
 
room topic changed to Room for Alf and george mano: (no tags)
 
@MooingDuck how can I make this kind of rooms ?
 
Click on a user's pic in the upper right, and there's an option for it. There's also options in the full room list
 
1:37 AM
@MooingDuck I have problem with the new project. I added all the file that I used in the last project. It gives me back 28 errors that it didnt find StdAfx.h header in the source files . But the stdafx.h file is in the headers. Have you seen this before ?
@CheersandhthAlf hello mate
 
?
ok i made some skeleton code
it just demonstrates principle
 
@georgemano yes, go into the project's properties and add the previous project to the include path
 
@CheersandhthAlf you are crazy man . hahaha
 
i'll paste it somewhere
 
@MooingDuck you are unbelievable knowing so many things
 
1:43 AM
@georgemano and Alf's advice is still about the hta, while mine is not
 
@georgemano I just have some experience. Alf knows much more than I
 
That code runs a program called "uh.console_app" (in current directory) every time you press the update results button
it uses the user input from the edit field, passing that to input of program
and it presents the output of the program in a div with white text on black :-)
but that div needs to be resized
 
@MooingDuck Sorry , It was going to Alf
 
etc., lots of details to fix.
hm, i'll post that link also in the c++ lounge
i'm not sure, is that any way towards what you were thinking of?
 
1:49 AM
@CheersandhthAlf wait a moment , I am writing something for you
@CheersandhthAlf Look Alf, that was very good. But I just need the things that you write at the edit box to be passed in a specific txt. After that mathimatic equations with take numbers and output the results.
@CheersandhthAlf as you can understand. I just was given a code. And I need to give back the gui.
@CheersandhthAlf I have to present gui, showing that I have done some job.
 
oh, homework
well then you need to use the programming language and framework (whatever) required by the assignment
but as a practical matter, creating a Windows GUI for a simple console application is just about simplest as an HTML app, just scripting it
 
@CheersandhthAlf Dont tell me, I wont help you. You have to learn. I dont believe a person with my skills must do this thing
 
@CheersandhthAlf I didnt mean to be rude
 
well i don't understand, ok
 
1:54 AM
@CheersandhthAlf I am just telling you 6000 lines console program to gui, its a bit dificult
 
what does it actually do, from the user's point of view?
 
The old program ?
 
or what the new one
 
the program you've been given
like, does it ask the user about things?
or just it take command line arguments?
 
1:56 AM
the old one takes some initial values. and runs them for 10000 times . And gives the input
@CheersandhthAlf Does not ask nothing from the user . Takes values from files .
 
And are those files hardcoded or are they specified in some way when you run the program?
 
@CheersandhthAlf Be more specific please
 
Are the file names always the same?
 
@CheersandhthAlf yes
@CheersandhthAlf always the same always in the same path
 
ok, so just need to run the program, no varying input, and catch the output?
 
1:59 AM
@CheersandhthAlf you cant vary the input as the program runs
@CheersandhthAlf you put some initial values and you run the program.
 
where do you put the initial values?
 
in the txt files
 
ok, so you just need to run the program, and present its results
 
x=45454 y=4545464
 
that is less than the HTA code I've given you does
so, I think that is the simplest approach, if you are free to do the GUI any way you want
 
2:01 AM
@CheersandhthAlf the program presents this results
 
did you once use to post to Microsoft groups, george?
 
@CheersandhthAlf WHat?
You dont just , z=x+y . There are mathimatic equations in the problem
the problem is about taking values of the currents of the heart . Myocyte. And testing if it appears like the labratory test .
 
what happens when you run the program?
does it present output on the screen?
 
for 1 till 10000 numbers near 90 appear
like 89.997
90,343
 
and what is the GUI supposed to do with these numbers?
 
2:05 AM
I will just upload the code to see , ok ?
appear them in a box
 
oh that's simple, the HTA code I gave already does that
 
Sorry I didnt understand, the HTA code takes the output of the console and presents it ?
 
no fuk
 
2:08 AM
@CheersandhthAlf so the exe must be at the same directory as the hta code ?
I saw the code
 
well you can arrange things any way you want it
 
var process = wshShell.Exec( "uh.console_app.exe" );
 
in this line I must write the full path or only the name ?
 
as you can see I just wrote the name of the app
i had the app in the same directory as the HTA
it's an engineering choice. unqualified path means the HTA and program can be anywhere. qualified path decouples HTA and program location, at the cost of fixing the program location to one place
ok, i think that's it
cheers
 
2:13 AM
wait man
I believe the right thing is to have one hta or one exe file
not an exe and a hta file
 
@CheersandhthAlf the thing is that I run the hta and changed the name of the exe file in the code . The exe run normaly in the console
console appeared and the program output appeared there
 
does it not ever finish?
 
it flushes
because it needs things from the project folder
 
well you can just modify the code so that it doesn't wait for the exe to finish
 
2:25 AM
@CheersandhthAlf can you tell me what can this hta file do?
 
"That code runs a program called "uh.console_app" (in current directory) every time you press the update results button
it uses the user input from the edit field, passing that to input of program
and it presents the output of the program in a div with white text on black :-)"
 
2:48 AM
@CheersandhthAlf can I make it appear more than 300 lines?
 
why not just try it? with a program of your own
for a few hundred lines of output adding a scrollbar to the div is probably good enough user interface. I think that's an CSS attribute called "overflow".
and well, for efficiency you'd better (I think) use the ReadAll method, instead of the loop
like var output = process.StdOut.ReadAll();
good resource for handling dynamic size of the output area:
108
Q: Make a div fill the remaining screen space

Vincent McNabbI am currently working on a web application, where I want the content to fill the height of the entire screen. The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom. I have a he...

 
3:06 AM
@CheersandhthAlf The point is that this .hta file does not compile. It just prints things that the exe would print
the point is that with different inputs there will be different outputs
 
save the input to the file(s) that the program reads
here's some Microsoft example code that creates a text file with some data:
function CreateFile()
{
   var fso, tf;
   fso = new ActiveXObject("Scripting.FileSystemObject");
   tf = fso.CreateTextFile("c:\\testfile.txt", true);
   // Write a line with a newline character.
   tf.WriteLine("Testing 1, 2, 3.") ;
   // Write three newline characters to the file.
   tf.WriteBlankLines(3) ;
   // Write a line.
   tf.Write ("This is a test.");
   tf.Close();
}
"fso" is short for File System Object
 
and after who is going to make the calculation ? the hta file ?
@CheersandhthAlf there are calculations to be made. Not only printing the outputs
@CheersandhthAlf the boxes are the inputs that are calculated and they are printing the output
 
3:21 AM
i'm sorry, i can't make sense of that
 
@CheersandhthAlf The inputs that the user is going to give have to be calculated with diferatial equations so the output will result. This kind of diferatial equations are 3000 lines that I cant transform to html.
@CheersandhthAlf There is no reason to input something if you dont change the output. That is what happens in the .hta code now.
 
Are you talking about two programs, one of which generates input to the other?
 
3:46 AM
@CheersandhthAlf nevermid, I am going this way , knowing that the program will not work
Do you know how the button can be place the one under the other ?
 
do you want the button under the edit field?
you can just use <br/> tag to start a new line
 
I want all the boxes to be at the same column. not the buttons . The boxes
 
well a purist would probably advice you to struggle with magical CSS incantations
but I just say, use a table
don't use table for ordinary layout, but when you have something that really is a table, use a <table> ;-)
By the way, to fix the look of the thing ...
Here's improved version:
 
4:22 AM
perhaps you could place the output area to the right? what does the output look like?
 
4:48 AM
@CheersandhthAlf Let me tell you now that I have finished why this will not work .
@CheersandhthAlf Are you there?
 
The program hta takes inputs .
 
These input have to go to files
or whatever
 
4:50 AM
have to alter some things
 
if you have a diferancial equation
 
well now you're talking about something unrelated
 
to solve it lets say you need x,y and z
let me finish
you input x,y,z though the hta program
then you need to process them
 
isn't processing what the console program does?
 
4:53 AM
And if you want to proccess them with the hta-file-way you need to transform the already writen code (C++) to HTML . For 3000 lines of C++ code this is not a big pain .
 
well you lost me there, i'm sorry
 
@CheersandhthAlf You compile a file that does the x
+y=output
 
earlier you said that the console program reads its input from text files
 
yes
 
does it not?
 
4:55 AM
yes it does
 
and the text that it reads, how is that text produced?
 
But handwriting
 
You write x = 67.888
y= 5775
if you want to change it, you go to the file, erase it the value and you write the new value
 
i did not see x and y among the inputs on your HTA?
 
4:58 AM
x and y where a minimalistic example
 
so, do you have a real-world concrete example?
 
x and y could be a concrete example
really
A simple example if the program does x+y= output . And you have a file that you store x and a file that you store y . You run the program and the output will be right because you have read the right files .
 
so that would work?
 
In the new-HTA-file style you input the x and y by filling the boxes and you run the program that already has been run
the box-inputs must alter the files
that is what I am trying to say
 
yes ok
if you look up-thread
i posted some Microsoft example code that writes to text files
perhaps that could help?
 
5:04 AM
instead of CreateTextFile we need changeTextFile . Just a notice
or replace
If this is replace we are ok
 
replace is good. simple to do.
yes
 
haha
So, you dont make anymore GUI with visual studio , instead you do them this way ?
 
depends on the complexity
wrapping a console program is simpler this way
 
50-50 % ???
Do you work in a software company or do you have a personal company ?
 
i don't know, i'm not a professional any longer (meaning i just do hobbysing thing)
^ docs
 
5:09 AM
So you do other stuff for living? not programming ?
 
Something else
Run the program from VS and everything runs ok .The console says that it is at the Project/./Release/hello.exe and it appears and dissappears in a sec. I have placed the cin in order not to close . What is the problem and what is the /./ in the path ?
 
just arbitrary stuff added by visual studio, i guess
the compiler sometimes needs a "." in order to treat paths correctly.
e.g. at least in older version it would not accept an include path like "c:\", but needed "c:\."
 
and why cant I run it right from the folder?
 
do you mean from [cmd.exe]?
 
5:22 AM
Its OK
Thanks Very very much for the help. I am Grateful
 
you can pay it forward by helping someone else ;-)
The expression "pay it forward" is used to describe the concept of asking that a good deed be repaid by having it done to others instead. In contract law, typically there are two parties but there is the concept of third party beneficiaries. Pay it forward merely applies this contract law concept so that third party beneficiary be a stranger to the creditor. More specifically, the creditor offers the debtor the option of "paying" the debt forward by lending it to a third person instead of paying it back to the original creditor. Debt and payments can be monetary or by good deeds. In ...
 
It are right man. Good moto for life
 

last day (15 days later) »