|
It's a calling convention for system functions. WINAPI expands to _stdcall .
Nibu thomas
Software Developer
|
|
|
|
|
It's a macro which expands to the appropriate calling convention. It's a macro so it can be defined differently on different platforms. On x86 based platforms it's __stdcall but on others it could be defined differently.
Steve
|
|
|
|
|
|
thank u all!!!!!
|
|
|
|
|
hi
i'm working in vc++ from last one month.i'm working on a Project.
In which i have made a Web Browser.
My project need some more points.which i'm not getting these are:
1.Communication from the Browser to the web application is done by means of sending XML data using an HTTP POST request.
2.After the web application has received this request, it processes it and sends a redirect to the Browser.
Please help how can i implement these point.
Thanx in advance
Amit
Amit
|
|
|
|
|
I am working on windows 2000. I want to send FAX from my PC using the SendFaxDocument() API. For this should use a dial-up connection & if Yes, how?
aasstt
|
|
|
|
|
hi all
I have for example 4 char variables
char c[4] = {'a','a','a','a'};
and one __int32 variable
__int32 x;
I want to write c[4] contents(binary) to x .
using shift left and & operations but I cant.
can someone help ?
|
|
|
|
|
2 ways :
__int32 i = c[0] +
c[1] << 8 +
c[2] << 16 +
c[3] << 24;
the second one is more exotic :
union {
char c[4];
__int32 i;
} u;
-- modified at 4:07 Wednesday 22nd March, 2006
|
|
|
|
|
cool didn't know about the union technique, my five
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
i share...
|
|
|
|
|
but where is mailMonty??
VuNic
|
|
|
|
|
|
VuNic wrote: but where is mailMonty??
got me
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
hi thank you, but first is not working ?
__int32 x = 0;
char s[4] = {'a','a','a','a'};
x = s[0]+s[1]<<8+s[2]<<16+s[3]<<24;
cout<<x;
when i run the proram i get such output x = 0
the second variant is not working correctly too, I get output : 1633771873 instead of 3267543746
thanks
-- modified at 4:34 Wednesday 22nd March, 2006
|
|
|
|
|
i don't know why the 1st is not working... it should !!
however, be sure that that operator<<() is overloaded for __int32
for the union solution, it works because the memory blocks overlap, so your int is automatically filled with what you write in your char[4]...
|
|
|
|
|
please view my previous post I modified it
|
|
|
|
|
big_denny_200 wrote: instead of 3267543746
How do you know this is correct!
This is my result...
3861616161
Nibu thomas
Software Developer
|
|
|
|
|
I was wrong the result was correct.
As I said I had array of four chars
char s[4] = {'a','a','a','a'}
integer value of 'a' = 97 (1100001)
theretfore the result was correct
01100001 01100001 01100001 01100001 (1633771873)
thanks to everybody
|
|
|
|
|
as nibu said, how can you be sure it prints the incorrect value ?
if printf("%X", x) displays 0x61616161 (1633771873 in decimal), then everything is ok (according that 'a' is 0x61)
|
|
|
|
|
Fine on a little endian architecture but would fail on big endian.
OK I'm being picky but work with both
The tigress is here
|
|
|
|
|
Trollslayer wrote: but Fine on a little endian architecture but would fail on big endian.
OK I'm being picky but work with both
but Fine on a little endian architecture but would fail on big endian.
OK I'm being picky but work with both
every element in char c[4]={'a','a','a','a'} is same so little or big endian architecture is not problematic
never say die
|
|
|
|
|
I have a simple application in VC6.0 and ported it to .NET 2003.
I set "Use Managed Extensions" to Yes from the Project Properties->Configuration Properties->General because am using #using .
i get the foll error
Command line error D2016 : '/RTC1' and '/clr:initialappdomain' command-line
options are incompatible
i saw a lot of articles on this which suggested to do the foll to solve this error: i.e.
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the C/C++ folder.
Click the Code Generation property page.
Modify one or both of the following properties: Basic Runtime Checks or Smaller Type Check
i tried changing options under Basic Runtime Checks but to no avail?
i still get the error?
How can I solve this command line error?
Pls help!
Sincerely
Giftsana
|
|
|
|
|
Hi,
How can i use print / print preview from a dialog in a DOC/VIEW Architecture since the onPrint is a CView member ?
Regards,
sdancer75
|
|
|
|
|
hehe, i think u can place a button to call the OnPrint message.
|
|
|
|
|
Hello everyone,
I think we can use LoadLibrary to load a .dll file and use its published interface. I am wondering whether there are some methods to un-load a library (which is adverse to LoadLibrary)?
thanks in advance,
George
|
|
|
|