« first day (1423 days earlier)      last day (1005 days later) » 

8:55 AM
//inital code
LONG variable1 = -1;

a->Function1(&variable1);


//Function1
::Function1(long *variable2)
{
*variable2 = reinterpret_cast<long>(GetFunction2(0));
return S_OK
}


//changed to

VARIANT variable1;
VariantInit(&variable1);

a->Function1(&variable1);

// Function1
::Function1(VARIANT *variable2)
{
VariantInit(variable2);

variable2->byref = (LPVOID)(GetFunction2(0));
variable2->vt = VT_BYREF;
}

what I am doing wrong. I cant use boost variant
 
1 message moved from Lounge<C++>
 
user3949359
9:48 AM
I get "Fatal error: Namespace declaration statement has to be the very first statement"
 
user3949359
<?php
Namespace Applications
{
use nutshell\Nutshell;

/**
* Nutshell bootsrapper.
* This overrides Nutshell's default bootsrapper.
*
* @global
* @return Void
*/
function bootstrap()
{
define('PUBLIC_DIR', __DIR__ . DIRECTORY_SEPARATOR);

Nutshell::setApplictionPath(__DIR__.'/../private/application');
Nutshell::registerDefaultConfig('example'); //your application name

try
{
Nutshell::getInstance()->application->NutsNBolts();
Nutshell::getInstance()->application->example(); //your application name
 
2 messages moved from PHP
 
 
3 hours later…
12:59 PM
 
1 message moved from PHP
 
 
2 hours later…
1 message moved from Lounge<C++>
 
 
6 hours later…
9:49 PM
But, whether it's nice or not, we do need a couple more close votes:
0
Q: Complete C Algorithms & Data Structures Books

Andrea SpitaleI am attending a computer science course at Politecnico of Torino which focuses on Algorithms and Data Structures in C; I should study most important data structures and algorithms, learn how do they work, implement them in C language; finally, I should give a sufficient analysis of every algorit...

2 messages moved from Lounge<C++>
 

« first day (1423 days earlier)      last day (1005 days later) »