Seems like you have $argc and $argv for using parameters from the command line, just like in C. If you execute php.exe from your webserver to execute php scripts i guess you will either have to pass parameters thoroguh $argv or maybe dump them into a temp file and then read them up in the php script, you could probably make a "converter", a php "header" or somesuch that would generate a "_GET array" from these parameters if you need that.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
Normally PHP runs as an Apache module and parameters are passed in a struct request_rec. If PHP scripts are run through CGI, then parameters are passed in environment variables as I explained in a previous message. Command line arguments aren't used in either case.
I've never tried maximizing a form view based application, and in fact I modify the code to prevent that since only the frame maximizes - the controls stay where originally placed and in their original size...it just looks bad in my opinion.
Having said that, however, you may find your problem is caused by the view class. In a form view based app, the OnInitialUpdate in the view class contains the line
This resizes the main frame to fit the form you created.
As I say, I haven't done this, but perhaps if you comment out that line, you may succeed with your maximizing.
This is to be called in your CYourApp::OnInitInstance ()
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
I'm working on an application that will be used to program an external hardware item via the USB port. In addition I am going to allow remote access via the internet to my program. That way the hardware can be programmed remotely.
I have the USB working locally and am ready to start the remote access code. I have done remote access in the past so it won't be any big deal to implement.
But now the customer has decided they want the application to be written in C++/CLI. The main reason is they like the looks of Windows Forms. They also like the idea of the child form being locked inside the parent form and the way graphics can be displayed. I could probably do the same thing in MFC with some extra work.
I haven't done any C++/CLI programming. I have 3 questions. Will USB and Windows Sockets be relatively easy to implement using C++/CLI? And is there a long learning curve for C++/CLI. If I use C++/CLI how much trouble will it be for the end user to install the application? With MFC I would just send them a statically linked exe file and there wouldn't be any installation.
Using C++/CLI has the side effect of the .Net framework becoming a dependency, which will then need to be redistributed and installed on every PC.
The learning curve is not so much, especially for C++/CLI.
But I recommend you understand how the .Net garbage collector works so that you can write programs that run efficiently.
But you will have the extra overhead of doing an interop with unmanaged code especially the USB part.
The reasons for the change do not look convincing to me for a shift from unmanaged to managed.
This is because dialogs in Windows look the same irrespective of the language used to develop it.
Like you said you may need to do a little extra work with MFC.
Superman, thanks for the comments. I will look at the feature pack to see what it offers.
Richard, I am reading Ivor Horton's Visual C++ 2008 book. In the book he says you can mix managed and unmanaged code but he says you really shouldn't do it unless absolutely necessary. Plus he says there is extra overhead involved in managing the communications between the two.
Other comments will be welcomed as I am looking for as much input as possible.
After I'm finished sorting the files, I use CopyFile. It all compiles fine, but when I use it, it gives me an error about access to the file(s) being denied. It appears that it triggers WinXP's DEP. I'm quite stumped on this one. It would help if I could debug the thing, but it doesn't want to be debugged, apparently.
Is there a better way to copy files/folders than CopyFile? Is there a way to debug my app?
I want to instrument a C++ program by entering probes inside every block.
But i m finding it difficult for single statement condition statements without braces.Eg
I want to put braces in the program so that i can insert my probes in them.
Last Visit: 20-Jan-20 0:27 Last Update: 20-Jan-20 0:27