|
|
andy179394 wrote: how can i make the changes to the open dialog box that users ONLY can view the folders and files from the server...
As opposed to what?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
thanks for reply, what i want is when you press the open button from file menu, it will prompt a open dialog box, right. Basically that box can open the files from c or d drives, but now i want that open dialog box display the ftp server files, not the files from the drives.
hope you can get my mean. thx.;)
have a nice day 
|
|
|
|
|
You can still use CFileDialog or GetOpenFileName() . It will just require a starting folder. Check out the OPENFILENAME.lpstrInitialDir member variable.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Any expert can help me! how to use c++ to get all the filename from ftp server and use the list box to show all the filename.tytyty
|
|
|
|
|
Using MFC?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
ya, get the filename from ftp and put it on list box.tyty
|
|
|
|
|
So why not use MFC's FTP-related classes?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi,
I wrote Socket programming which is running good, i want to know whether all the data is received properly by the server with out any loss from client side. Meaning i need acknowledge from server side. How can i do it?.
|
|
|
|
|
All IP-packets are sent with a CRC32 checksum that the receiver recalculates to validate the data. If the checksum is incorrect, the packet is discarded.
This happens regardless of what you do, it's how the IP-protocol works.
If you're using an UDP ports, the sender will never be informed whether the receiver got the packet or not, at any OSI level, since UDP traffic is connectionless.
If you're using TCP ports, the sender will be sent an ACK for each packet. Whether the packet is to be resent or not is depending on a configurable threshold in the registry found at HKEY_LOCAL_MACHINE/SYSTEM/currentcontrolset/services/tcpip/parameters.
This means that the sender cannot be informed if the receiver got a corrupt packet since the receiving application will never get the packet since it's been discarded.
I suggest you implement a small protocol of your own at the OSI application level that send ACKs to the sender's application. You will then be informed if the receiver never got the packet by the absence of an ACK.
Hope this helps
--
Roger
It's supposed to be hard, otherwise anybody could do it!
Regarding CodeProject: "resistance is pointless; you will be assimilated"
|
|
|
|
|
sivaprakashshanmugam wrote: e. Meaning i need acknowledge from server side. How can i do it?.
Send a ACK Packet back to client simple
"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 friends,
I have an application that was designed in VS2002(VC 7).
Now when i tried 2 run the same in VS 2003, i am getting an error,
fatal error LNK1104: cannot open file 'mfc70.lib'
what might be the wrong with it ??
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Hi thank u so much for the response,
But i could not able to find out mfc70.lib in the settings.
Can u tell me where i can find mfc70.lib ??
Thanks again
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
No ,
No where i could able to find any .lib file in Linker Settings.
Had it been, VC6 i could have easily done this.But i am not able to find it in VC7 IDE.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Project Settings -> Linker -> Input -> Additional Dependencies
SaRath
"D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"
|
|
|
|
|
|
Hi,
these are the steps i have done
1.Copy and Paste mfc70.lib,mfc70.dll,mfc70d.dll to the corresponding folders.
2.Under project->properties->Linker->input->Additional Dependencies, i have added mfc71.lib and build the application.
No i am getting
LNK2022 metadata operation failed (80131195)
What does this mean??
Thanks
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hey I could able to Run it successfully.
I just deleteed the Release folder and Rebuild the application.
Thanks u guys, for u r help.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
NiceNaiduCan u tell me where i can find mfc70.lib ??
If you have it, it's most likely in the c:\windows\system32\ folder. Have you checked there?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi,
I have record a video avi, but some time I get a blank frame at first. I need to remove this but I don't know how to check if bitmap frame is blank or not. Please help me with checking for this.
Thanks in advance!
|
|
|
|
|
Hi all,
As developing an NT service I've come across a little problem that I'm no able to sort it out. The problem is as follows:
My service is running on local system account (as it is natural) and one of its chores is to launch a particular process in a particular session and with the privileges of a particular user(impersonation). I think I do everything I am supposed to:
- Retrieve environment block of the user.
- Retrieve access token of the user we try to impersonate.
- Convert the token into a primary one.
- Stablish the session for the token.
- Fill in STARTUPINFO structure with the window station and desktop information
.
.
.
-Finally I call CreateProcessAsUserW this way:
CreateProcessAsUserW(hToken,
NULL,
wszCommand,
NULL,
NULL,FALSE,
NORMAL_PRIORITY_CLASS|CREATE_UNICODE_ENVIRONMENT,
Environment,
NULL,
&si,
&pi);
Well, the code I have in my service works perfectly well in any platform save for the case when I try to create a new process in a terminal session of windows 2003 Server (64 bits) where I get error code 6 (Handle not valid). Any suggestion? Thanks in advance.
Regards,
Alvaro
|
|
|
|