|
Sir,
Can u please suggest me any link that teaches how to make a web application in vc++.net.
Thanks
-- modified at 12:21 Monday 25th September, 2006
|
|
|
|
|
sir
i wanna pass an array to a fn by refrence.. The array should be allocated dynamically.. how can i it..
Can any one help me.. reply will be highly appreciated.
pls send me prototype of fn, calling fn etc. with simple eg
Thanx in advance..
shamnar
|
|
|
|
|
You're wanting to pass a managed array ? I thought that array being a class, it would have been by reference by default. Or did you mean the C++ forum ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Do u know something about link list?
|
|
|
|
|
Are you talking about a managed array? Managed arrays are a reference type so it would pass in a reference to that array.
static int Sqrt(int x) { if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) {="" y+="b;" v-="temp;" }="" while="" ((b="">>=1)>0); return y;
|
|
|
|
|
Hi all.
I'd search in the board how an can get text that is at the coordinate x,y (I have a flexgrid on external program and want to get the text of some row/column by its x,y coordinates.
I didn't found nothing. Can someone help me?
Please, help me.
Thx in advance.
Best Regards,
Marco Alves.
|
|
|
|
|
Marco2250 wrote: I didn't found nothing
I assume you mean you DID find nothing ?
This is the managed C++ forum, were you looking for a managed C++ solution, or just a C++ one ?
Either way, I've seen lots of people ask this question. I'm yet to see a full solution. If the text is in a window, then WindowFromPoint and GetWindowText are the things most likely to work.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi guys,
I have a big problem with System::Process, i currently write an application
which starts an exe file from a network share (foreign computer) and waits until the other process is finished and closed.
It works fine but i have a big problem when i call
Process::Start()
XP ask the following securtiy check:
"Always ask before opening this type of file."
How can i disable this??
Thanks!
|
|
|
|
|
|
You're in the managed C++ forum, do you mean a managed array of the managed string class ? They have a handle, not a pointer. To get a pointer, you need to pin it, I believe.
That's assuming that is what you meant.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
OK, then a string array IS a pointer.
string * pStrings = new string[20];
If you need more info, I recommend posting in the right forum ( Visual C++ ), and choosing a subject that describes your problem.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
I did say to ask in the right forum...
That's NOT a string array, it's a char array.
char test[20] = "12124312321412432";
char * p = &test[0];
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Hello Premson,
Despite Christian repeatedly telling you that this is the wrong forum, why did you insist on pursuing the thread here?
|
|
|
|
|
Hi..
Is there a way to prevent a file from being opened in windows desktop ....
The System is not a part of any network..
There is No other users except Administrator is available in the system.
Thanks
Luck is Opportunity with hardwork
|
|
|
|
|
You can run a program which opens the file, which will lock other users from doing so. Why is this in the managed C++ forum ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi Thanks for the reply,
Im writing this in c++ forum because i came to know that it is possible only in c++.
IM developing an application which monitors the activities of the system.so whenever a user double clicks on a file.The application which is monitoring the activities receives a message that a user is trying to open a file and it is through the application that we decide whether to allow access to the file or deny.The file should open only if the application grants access.Anyway if the application is sttoped the user should have access to the files.
Any Ideas...
Luck is Opportunity with hardwork
|
|
|
|
|
What Christian replied should work if you wanted to lock a file.
sundar156 wrote: Im writing this in c++ forum because i came to know that it is possible only in c++.
Not quite true. Language is just a matter of choice or convenience. BTW, if you just want VC++, not C++/CLI, post your questions on "VC++/MFC" forum.
sundar156 wrote: whenever a user double clicks on a file.The application which is monitoring the activities receives a message that a user is trying to open a file
You may get a mouse click message, but how could you tell that the user is trying to open a file? Apparently this needs more thinking and design.
Best,
Jun
|
|
|
|
|
sundar156 wrote: Im writing this in c++ forum because i came to know that it is possible only in c++.
As has been said, this is not true, and in any case, you're not in the C++ forum but the C++/CLI one
You may be able to write a system wide hook that establishes the attempt to open a file, but it sounds like it's going to be a complex task.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for the reply,
Yes it appears to be complex! And i have posted in lots of forums and i didnt get a feasible solution yet! In some they say it is only possible in Linux! Some say that it isnt possible,yet others say it is possible by API hooking.I have not done any hooks until now.
but system wide hooks should be done using c++.Am i right? Anyway if this is not the right forum please tell where to post?
Luck is Opportunity with hardwork
|
|
|
|
|
sundar156 wrote: In some they say it is only possible in Linux!
That is possible, because you're talking about something OS specific ( how the OS works with files )
sundar156 wrote: but system wide hooks should be done using c++.Am i right?
Probably.
sundar156 wrote: Anyway if this is not the right forum please tell where to post?
The Visual C++ forum
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you Christian.I will try in Vc++ forum.
Luck is Opportunity with hardwork
|
|
|
|
|
hello every one i am new in C++
i want to interface to my mouse in my c++ program.And found error. i dnt hav a mouse.h file . how can i interface to mouse with out it. plese help me
|
|
|
|