Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~3K People Reached
Favorite Tags
c++ x 17
php x 7
c x 5

15 Posted Topics

Member Avatar for disc

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] …

Member Avatar for ohmagoleh
0
81
Member Avatar for disc

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? …

Member Avatar for pritaeas
0
68
Member Avatar for disc

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 …

Member Avatar for cwarn23
0
186
Member Avatar for kz07

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.....

Member Avatar for kz07
0
1K
Member Avatar for disc

When checking my code with PC-LINT it advised me to make some member-functions const What is the advantage of doing this ?

Member Avatar for disc
0
183
Member Avatar for ROTC89

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...

Member Avatar for ROTC89
0
128
Member Avatar for disc

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 …

Member Avatar for replic
0
86
Member Avatar for disc

[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(); …

Member Avatar for disc
0
244
Member Avatar for disc

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. …

Member Avatar for WaltP
0
87
Member Avatar for disc

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 …

Member Avatar for disc
0
106
Member Avatar for disc

Goodmorning, Can anyone tell me how to convert a TCHAR to a std::string ?? Thanks....

Member Avatar for disc
0
194
Member Avatar for SHWOO

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]

Member Avatar for disc
0
109
Member Avatar for mocherla14

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....

Member Avatar for disc
0
59
Member Avatar for joelw

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.

Member Avatar for may4life
0
189
Member Avatar for disc

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]

Member Avatar for disc
0
165

The End.