No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
Hi All, I'm trying to access php-code on another url: Local php-code test.php: [CODE]ob_start(); include( "http://www.mysite.eu/ext.php"); echo "Local call!"; echo "External call: ".GetExternal( ); ob_end_flush(); ?>[/CODE] And the code on the other url in ext.php: [CODE]<?php function GetExternal( ) { $output = "This is external text"; return $output; } ?>[/CODE] … | |
Hi all, Since I have a new provider where the error_reporting settings are more tight, I'm having difficulties with the following. The error message is: [INDENT][I]Strict Standards: Creating default object from empty value on the following line:[/I][/INDENT] [CODE]$settings->paths->absolute->site = $_SERVER['DOCUMENT_ROOT']."/qb/";[/CODE] Does anybody know how to get rid of this error? … | |
Hi all, After moving my PHP-code from a Windows Server to a Linux one I have problems with the $_SESSION variables. When I login an click a menu option, all my $_SESSION variables get cleared and I have to login again. Does anyone recognize this problem and have a solution … | |
Re: Don't understand the while loop. You should do the digit check in the for loop. Also show the code where you write the 'menu'. This doesn't make much sense..... | |
When checking my code with PC-LINT it advised me to make some member-functions const What is the advantage of doing this ? | |
Re: Because you are using a template you have to tell which types you are going to queue. Something like Queue <Something> myQ; PS. Use code tags !!!!!! See [URL="http://www.daniweb.com/forums/misc-explaincode.html"]http://www.daniweb.com/forums/misc-explaincode.html[/URL] Cheers... | |
Hi All, I want to set the version number of my application and show it in my form. Going through some forums, I read that I had to implement 'Version' in my resource file, so that's what I did. But... after setting the version in the resourcefile to 0.0.0.99 and … | |
[code] class MyControl : public BaseControl { } class Base { proctected: BaseControl &mControl; } class MyClass : public Base { public: MyClass( MyControl &control ); void ReadControl(); } MyClass::MyClass( MyControl &control ) :Base(control) { } void MyClass::ReadControl( void ) { MyControl &control = (MyControl &)mControl; // <=== ??? control.DoSomething(); … | |
Hi all, This is my problem: [code] void StartRun( void ) { std::auto_ptr<Validate> val ( new Validate( "input.txt" ) ); val->DoIt( ); } // Destructor Validate::~WValidate( ) { if( mFileIn.is_open()) { mFileIn.close(); } if( mFileOut.is_open() ) { mFileOut.flush(); mFileOut.close(); } } [/code] The function DoIt() makes use of a DLL. … | |
I'm trying to retrieve the name of the computer that my programm is running on. This is the code: [code] TCHAR compName[MAX_COMPUTERNAME_LENGTH + 1]; DWORD cnt = MAX_COMPUTERNAME_LENGTH + 1; std::string name = [COLOR=#800000]""[/COLOR]; [COLOR=#0000ff] if[/COLOR]( GetComputerName( compName, &cnt) ) { name = compName; } [COLOR=#0000ff] return[/COLOR] name; [/code] The … | |
Goodmorning, Can anyone tell me how to convert a TCHAR to a std::string ?? Thanks.... | |
Re: 1. To read your data with space use cin.getline( ... ) 2. To use the player-data in you functions you need to pass it as reference or as a pointer for example: [code]void printPlayer(playerType &player) ... printPlayer(player); [/code] or [code]void printPlayer(playerType *player) ... printPlayer(&player); [/code] | |
Re: First of all use the code-tags when displaying source code !!! Second use a try-catch in the catch from the first exception. I hope this is what you mean.... | |
Re: This should realy work.. [code] //cin.ignore(); // Will skip first character in input so remove cin.getline(players[index].name , SIZE); [/code] And Ancient Dragon is right. An int should do for Points. Tip: Put your const en struct in a headerfile. | |
Hello, Can anyone tell me what the code beneath means. I've searched but can't find a clear explanation. Maybe someone can give an example of how to use it. Thanks... [code] [COLOR=#0000ff]bool[/COLOR][COLOR=#000000] MyClass::[/COLOR][COLOR=#0000ff]operator[/COLOR][COLOR=#000000]()()[/COLOR] [COLOR=#000000]{ [/COLOR] [COLOR=#000000] ....[/COLOR] [COLOR=#000000]}[/COLOR] [COLOR=#000000]class MyClass[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#0000ff]virtual[/COLOR] [COLOR=#0000ff]bool[/COLOR] [COLOR=#0000ff]operator[/COLOR]()(); } [/code] |
The End.