|
|
CODEPC wrote: I found lActual = 12283? What is wrong?
What are you expecting lActual to be? What is the current value of the file pointer prior to calling Seek() ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Please be polite, and don't remove your post after they had been answered.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
hi,i want to build a mini webserver,in php,we can use "$_GET['param']" to get the params,when i receive the url like "GET /test/test.php?param1=test¶m2=123 HTTP/1.1" how to send the params to my php script file?
i try to execute "php.exe test.php -f param1=test param2=123",but it doesn't work ,when i seach on google ,find some about "cgi protocols" ,can anyone tell me how to do it?
|
|
|
|
|
tfzxyinhao wrote: hi,i want to build a mini webserver,in php
This is the C++ forum! Please read the guidelines and watch where you're posting what.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
because the webserver was waite by C++
|
|
|
|
|
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. <
|
|
|
|
|
hi Code-o-mat ,i try to test which way you give ,but is not work too ..
|
|
|
|
|
I found this info here[^], just go to this site and search for $argv or $argc on it, maybe you need to add this[^] to your php.ini or whatever config file.
> 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. <
|
|
|
|
|
how does apache pass params to php?
|
|
|
|
|
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.
|
|
|
|
|
maybe struct request_rec is my want!
|
|
|
|
|
I don't know about that but i kinda doubt that apache executes php.exe "externally" to parse scripts, it probably has it built in or uses it in a DLL or library or such...
> 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. <
|
|
|
|
|
|
thanks very much,there are so many warm people in foreign country
|
|
|
|
|
hi all,
i want to increase height of columns of List Control .
please tell me how can i do this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
You can either increase the font of the CListCtrl, or assign an image to the row with the wanted row-height.
|
|
|
|
|
Hi All,
I have created a MFC application with CFormView as the base class in Visual Studio 2008.The problem i am facing is that inspite of me having the below code
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow();
when the aplication starts up it is not shown as maximized window.
Please help me in this.
Thanking in advance,
Ashwath.
|
|
|
|
|
Where did You call this function ?
Please, show your code ...
|
|
|
|
|
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
ResizeParentToFit(); 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.
Good luck.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
I also think that resizing the form view without any other adjustments can end with unexpected issues in your controls or looking not so "nice". Anyways,
have you tried to add the SW_SHOWMAXIMIZED to the default modes?
I mean:
pMainFrame->ShowWindow(m_nCmdShow | SW_SHOWMAXIMIZED);
pMainFrame->UpdateWindow();
This is to be called in your CYourApp::OnInitInstance ()
Regards.
--------
M.D.V.
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.
|
|
|
|
|
HI
I require examples for controls like tabcontrol,progress bar,timer etc. , i m using in vs2005.can any one provide..
Also provide some exampls for sdi,mdi etc.,
|
|
|
|
|
Navigate to the home page of Code Project.
Click on the Desktop Development.
Here you will find links to all types of controls.
|
|
|
|
|
There are lots of samples on the MSDN[^] web site. Try and do your own research first.
MVP 2010 - are they mad?
|
|
|
|
|
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.
Comments, suggestions?
|
|
|
|