|
Of course you can use DLL with VC++.
|
|
|
|
|
Hi Everyone,
How can we write the commandline instructions in VC++? For example, i want to copy Excel file from one location to another location in another place(LAN). I have a copy button in my dialog. When i press the copy button, the excel file should be copied over to another location. Is it possible to do so?
Thanks in Advance.
Chetan.
Helping others satisfies you...
|
|
|
|
|
system() if you directly use DOS commands.
otherwise, use CopyFile()
|
|
|
|
|
Thank you.
Is it possible to copy a file from one computer to other computer in a LAN using CopyFile().
Chetan.
Helping others satisfies you...
-- modified at 5:10 Wednesday 22nd March, 2006
|
|
|
|
|
looking at the MSDN[^], i think so
what you have to do for that is prepend the file name with \\<server>\ ...
|
|
|
|
|
int WINAPI function1(param);
int is the return value,function1 is teh function name,
then what does WINAPI do?
|
|
|
|
|
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)
|
|
|
|