|
Hi
I am not sure whether an API exists to get the SQL Server installation path, but frm my understanding any software installed on the PC has its entry into the registry. So, inside the registry under HKLM\Softwares\Microsoft\Microsoft SQL Server u can check for the appropriate key which contains the path where SQL server has been installed.
I hope, this piece of info is of some use to u.
Thanx
|
|
|
|
|
Hi,
How to read registry entry of a remote machine.
Warm Regards,
Mushq
|
|
|
|
|
Try RegConnectRegistry(), and associated functions mentioned in its help page.
cheers,
Neil
|
|
|
|
|
|
WhiteSky wrote: Score: 2.7 (3 votes).
why people giving you one vote.. let me square it off!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hi Alok
well you get vote 1 to two causes
(1) if you said a wrong answer you get vote 1.
(2) if you said correct answer you get vote 1,But(of course two cause is only for me)
Im wondering sometime I see if I get a vote 5 after a shrotes time its 3 (5+1) and Im wondering why?
anyway thanks
|
|
|
|
|
WhiteSky wrote: Im wondering sometime I see if I get a vote 5 after a shrotes time its 3 (5+1) and Im wondering why?
look here http://www.codeproject.com/script/comments/faq.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
first of all do you have right to that machine... i Personally believe it's better you have s/w there working same for you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Mushq wrote: How to read registry entry of a remote machine.
Might want to check with your network folks about this. Many network admins turn this feature off with a global policy. While a handy feature it is ripe for abuse.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I have a program that need a control such as VC output Textbox,but I do not know which control it is.
Thanks
lanmohsui
|
|
|
|
|
What do you need,excatly?
You can use of Edit or RichEdit for show your values
|
|
|
|
|
I want to know which control in VC interface.AS the application is in Debug state,which control is "TRace message" output textbox .
lanmoshui
|
|
|
|
|
I'm sorry I dont understand what do you need
|
|
|
|
|
lanmoshui wrote: I want to know which control in VC interface.AS the application is in Debug state,which control is "TRace message" output textbox .
lanmoshui
use Spy++ tool to find the Control!!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
I did it as you say, but this can not solve the problem .
Thank you
lanmoshui
|
|
|
|
|
Hi,
Can someone tell me the easiest way to pass a set of valued (ints, doubles) to and from a method in a class. IN my class there are two STL lists of double and COLORREF.
I'm using methods like GetColors() and GetValues() passing the list name as a return value doesn't look good. What's the most correct method???
NT
|
|
|
|
|
Pass the collection by reference.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
NILANKARAJA wrote: GetColors() and GetValues()
do you need all values at same time ! it would be better design if you encapsulated the list in that class and return only double and COLORREF from the given class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Dear All,
I am doing a sockets program where the recv() fn receives only 75000 bytes. But I am sending around 1,25,130 bytes.
What could be the reason ?
Can any one help me on this.
Thanks
Nice things do nice works
|
|
|
|
|
well thats how sockets work i guess... there is no guarantee recv() will get the exact same number of bytes that send() sent....you will probably have to call recv() multiple times to get all the data.....
you can find this sort of thing done at: http://www.codeproject.com/internet/SocketFileTransfer.asp
|
|
|
|
|
Sakthiu wrote: I am doing a sockets program where the recv() fn receives only 75000 bytes. But I am sending around 1,25,130 bytes.
What could be the reason ?
if this is the problem, why don't you break files into small frames and send it one by one.. just like sliding window protocol work
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
I suggest reading the specs for recv() carefully
Assuming you are using TCP -
Any recv() call is successful if it receives at least 1 byte. Beyond that there's no guarantee
you'll get the number of bytes you request.
In this case there was probably more bytes sent than could fit in the socket's receive buffer
so the first call to recv() will return as many bytes are available in the buffer which will
make room for the socket to receive more bytes. You'll need subsequent calls to recv() to
get the rest.
Mark
|
|
|
|
|
I know this should be simple, but I really don't get what's not working.
After two hours of research the best answer i found was to do this:
//Show form fAbout from form Form1
fAbout fForm = new fAbout();
fForm->Show(1);
I also added #include "About.h" in the Form1.cpp
The name of the form in About.h is fAbout and I always get the error C2065: 'fAbout' : undeclared identifier.
I'd like to know what i'm doing wrong here.
|
|
|
|
|
http://functionx.com/visualc/howto/calldlgfromdlg.htm
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
That doesn't work. Maybe the fact that i'm using a mix of mfc and managed c++ doesnt help(I know it's a bad idea so dont say it), but it's almost the same as I already did exept the functions are in the .cpp instead of the .h and i'm not using dialog box.
-- modified at 0:43 Wednesday 10th January, 2007
Found the problem. Looks like the include has to be absolutely in the same file as the call or it's too stupid to find it even if all the others includes are not there.
|
|
|
|