Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jjjkkk77

    How to adjust timeout limit for stored procedures?

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

    What's the merit of mass including windows headers for their typedefs?

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

    What's the merit of mass including windows headers for their typedefs?

    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?
  4. jjjkkk77

    What's the merit of mass including windows headers for their typedefs?

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

    Why does query execution suddenly stall?

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

    why does visual studio 2005 do this?

    Just some addition: The program above was created as an windows console program with no precompiled header in vs2k5. thanks
  7. jjjkkk77

    why does visual studio 2005 do this?

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

    c++ interview questions

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

    c++ interview questions

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

    What's the use of Serializable

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

Part and Inventory Search

Back
Top