Hi dear all,
I have a long-running stored procedure that sometimes runs over 1 hour and gets aborted by sql server with the following error
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I think by default sql server let...
So what do you do with the platform dependent typedefs? Do you just do what I showed in the opening post? Wouldn't that make your code not portable? Thanks.
Thanks xwb and cpjust
xwb you said 'If you use typedefs, you only need to modify one file.'. So is it your practice to place all your project's typedefs in one header file?
Hi pros,
Recently I have been reworking a c++ project from a commercial software company.
I found they do the following a lot in their code:
include winThis.h, winThat.h, winBlah.h etc. etc. and in the end their code only end up using some simple typedefs in these windows headers, e.g...
Hi dear fellow SQL programmers,
I recently witnessed some strange behaviour of SQL Server 2005.
I was running some dynamic sql generated over a group of tables with same structure. Each of the tables holds the data in one date. So when I wish to do the query over one month for example I have...
hi guys,
I tried to compile a program like this
#include <iostream>
using namespace std;
int main()
{
float f, g = 0;
cin << f; //wrong here, should be >>
return 0;
}
So I just deliberately inverted the direction of io stream direction. Then visual studio 2005 compiled this with 41...
thanks cpjust.
Q1:
Does "Test b();" give a complete definition of a function? If it does, why does the following fail to compile when I tried to call a similarly-defined "int f();"?
class Base
{
public: int f();
};
void main()
{
Base b;
b.f();
}
error LNK2019: unresolved external symbol...
hi folks, I need help on how to answer the following questions. Could someone kindly help. thanks.
Q1
struct Test
{
Test( int ) {}
Test() {}
void fun() {}
};
void main( void )
{
Test a(1);
a.fun();
Test b();
b.fun();
}
The above program generates a compilation error
"error C2228: left...
Hi guys,
Just got a noob question here:
Why does the designer of C# (and Java too) make it that you have to mark a class as Serializable (or inherit ISerializable) to be able to serialize it? What's wrong of being able to serialize any object when you want to without explicitly saying you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.