Q: How to call a function without calling inside main() function in C/C++ ?
A:
#pragma startup
#pragma exit
These two pragmas allow the program to specify function(s) that should becalled either:
■ upon program startup--before main() is called,
or
■ upon program exit--just before the program terminates through _exit
■Function must be declared or defined before the #pragma line reached.
Example:
#include
void f(void);
#pragma startup f
void main()
{}
void f()
{
printf("i'm called before main()...");
}
Happy Programming!
Tuesday, December 11, 2007
C/C++ Tips
Posted by
FrancisMichael
at
11:16 AM
0
comments
Sunday, December 9, 2007
Web Technologies
Acronym for Java 2 Platform Enterprise Edition. An application server framework from Sun Microsystems, Inc., for the development of distributed applications.
What is .Net:
The set of Microsoft technologies that provides tools for connecting information, people, systems, and devices.
Wait Guys!
I'll Get back with lot of contents ;-)
Posted by
FrancisMichael
at
12:20 AM
0
comments
Saturday, December 8, 2007
VB Crystal Reports Doubts
Answer
hi
my problem over. i got "Runtime Error: 20728" With a Single letter "F"?. Its because of lower version of file crystl32.ocx and crpe32.dll.
Thx for your reply.
With regards
Question
hi
In VisualBasic, i got "Runtime Error: 20728" With a Single letter "F"?.
Posted by
FrancisMichael
at
12:56 AM
0
comments
Subscribe to:
Posts (Atom)