|
Thanks, markkuk buddy!
After a quick view of the libraty, I have two more questions,
1. I can not find the source codes of the library and only the header files and .a or .dll file.
2. The library is too large and is general purpose, but I only want to use FTP utility, so are there some simple and tiny library that only provide FTP client function?
Can you help?
regards,
Geo
|
|
|
|
|
ftplib
ftplib is a set of routines that implement the FTP protocol. They allow applications to create and access remote files through function calls instead of needing to fork and exec an interactive ftp client program.
http://nbpfaus.net/~pfau/ftplib/
|
|
|
|
|
Thanks, Anonymous buddy!
I find it very useful!
regards,
Geo
|
|
|
|
|
Well if you don't mind an ActiveX component then have a look at Chilkat FTP[^] Its free.
I haven't used their FTP component but have been using their Mail and XML libraries and been very pleased with Chilkat.
John Hudson
Nick Rowan enforcing Law and Order in the Lounge: Oi! Don't start on me now, I'm just the UN Peacekeeping force.
http://www.rainbow-innov.co.uk[^]
|
|
|
|
|
Thanks, JohnJ buddy!
I find that it is not free. Do you know where can I find a free and open source one? I just want the very basic functions of FTP.
regards,
Geo
|
|
|
|
|
George2 wrote:
I find that it is not free.
Yes it is,;P but its not open source. You can purchase Support if you need to or use the http://groups.yahoo.com/group/chilkat/[^] if you don't.
If you want anything cheaper than free then I'd start looking here[^] or even here[^]
John Hudson
Nick Rowan enforcing Law and Order in the Lounge: Oi! Don't start on me now, I'm just the UN Peacekeeping force.
http://www.rainbow-innov.co.uk[^]
|
|
|
|
|
Thanks, JohnJ buddy!
They gives me very much help, especially the articles on CodeGuru.
Have a nice weekend,
Geo
|
|
|
|
|
|
Thanks, Vitali buddy!
If I use WinINet, the application I developed will not run both on Windows and Linux platforms which is a popupar developing mode.
Do you know where I find a cross-platform FTP client library?
regards,
Geo
|
|
|
|
|
Try to look it via search engines.
Vitali
|
|
|
|
|
Hi,
i need to access a COM Object in my custom print template...
I tried to put this object in the IHTMLDocument2 from which i call the print/printpreview but it doesnt seem to work. is there any solution? (i tried the "Extending the Internet Explorer Scripting Engine By stereo" method, but i dont want to use ATL...)
As soon as my object is avalaible in the IHTMLDoc2 i think i could get it in the print template using JScript and :
var m_myObject = dialogArguments.__IE_BrowseDocument.myobject;
Is there any other way to access COM object in a print template...
---={ This message was transmitted on 100% recyclable electrons }=---
modified 17-Jun-21 21:01pm.
|
|
|
|
|
Hi everyone,
I have the following code that works GREAT except for when ComboBox controls are present...
<br />
::GetWindowRect(hWndChild, &rect);<br />
topLeft.x = rect.left;<br />
topLeft.y = rect.top;<br />
bottomRight.x = rect.right;<br />
bottomRight.y = rect.bottom;<br />
::ScreenToClient( pData->pParentWnd->m_hWnd, &topLeft );<br />
::ScreenToClient( pData->pParentWnd->m_hWnd, &bottomRight );<br />
if ( pData->uFlags & KCSB_ATTACH_LEFT )<br />
{<br />
topLeft.x += pData->nOffset;<br />
bottomRight.x += pData->nOffset;<br />
}<br />
else if ( pData->uFlags & KCSB_ATTACH_TOP )<br />
{<br />
topLeft.y += pData->nOffset;<br />
bottomRight.y += pData->nOffset;<br />
}<br />
::SetWindowPos( hWndChild, <br />
0, <br />
topLeft.x, <br />
topLeft.y, <br />
bottomRight.x - topLeft.x, <br />
bottomRight.y - topLeft.y,<br />
SWP_FRAMECHANGED | SWP_NOZORDER );<br />
<br />
Ok, here is the scenario. At some point, that code will be executed to shift all child windows on a parent dialog up by a certain offset. Everything works great, and even the combobox's shift..
BUT
If the combobox controls are shifted, they lose their ability to display their text in the contained edit control, they don't show their cursor (when focus is on them) and they don't show anything that is being entered into them (but they do store the data, and one can query the text programmatically). The drop downs work great tho
Any ideas? (I'm using MFC7 for this, but I don't think thats the problem...)
www.kinkycode.com
[Glossary Manager] [AfterThought Backup Lite]
99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
|
|
|
|
|
Hi All , i am new to Visual Studio.Net and wanna ask a beginner level question.please reply if anyone knows about it.
I am using Visual Studio .Net 2002, Whenever i complie and run any sample a from Msdn2002\Disk1\Samples\VC\ManagedExtensions\WindowsForms,I always got a Console window and then the original form (dialog) appears on the screen. can some please tell me how to hide the Console Window ?
remember there is only one sample which dose not show the Console windows (DOS) before showing the main dialog...
\Msdn2002\Disk1\Samples\VC\ManagedExtensions\WindowsForms\calculator
|
|
|
|
|
I think you have the /SUBSYSTEM switch on the linker command line the wrong way round. The operating system loader looks at the flag that's set in the executable image header to determine which subsystem (Windows GUI, console, driver, native, POSIX) the image is for, and from that, how it should start the image. The image is likely set for CONSOLE when it should be set for WINDOWS .
I don't have VS.NET 2002 handy, so I hope it's the same as VS.NET 2003. In Project Properties, select All Configurations in the Configuration drop-down, then go to Configuration Properties > Linker > System. Change SubSystem to Windows.
|
|
|
|
|
I think you have the /SUBSYSTEM switch on the linker command line the wrong way round. The operating system loader looks at the flag that's set in the executable image header to determine which subsystem (Windows GUI, console, driver, native, POSIX) the image is for, and from that, how it should start the image. The image is likely set for CONSOLE when it should be set for WINDOWS .
I don't have VS.NET 2002 handy, so I hope it's the same as VS.NET 2003. In Project Properties, select All Configurations in the Configuration drop-down, then go to Configuration Properties > Linker > System. Change SubSystem to Windows.
|
|
|
|
|
Hi guys,
I want to show my SDI o/p (VC 6.0) in a HTML. For example I am having some ICON Drawing in OnDraw() function. Is it possible to redirect this output from VC program to a html page without including any HTML syntax,If possible how?? Is it possible through CHTMLView Class ??
Thanks & Regards,
SatyaD
|
|
|
|
|
I am writing an application plug-in that will potentially be released to end users outside the US. Part of this requires me to store a password in a file. I know that there are tricky encryption laws, but I don't really know how they work. What can I do to store an encrypted password in a file that would be legal for US export?
|
|
|
|
|
You could have a look in the libcrypto part of OpenSSL, which contains a lot of cryptographic functions and should detail if any have export restrictions (which I doubt it)
|
|
|
|
|
I'm trying to build a library of specialized helper functions I can move from project to project. I'm currently building an ActiveX control, and linking with this "helper" library (dll). This is the first time I've built my own dll, and I'm having some problems. Here's the problem I'm having...
I have a class I export in my dll, and can successfully import it into my control, but if I change the arguments in one of the member functions to a CString reference, the ActiveX control crashes when it executes that function. If I change the argument to pass by value, everything is OK, but I can't modify data in my control. I realize this is a brief explanation, but I'm hoping there's something that comes to mind as far as exporting classes that try to modify data in the calling application (ActiveX control in this case) with a reference to an object (CString) in the calling application.
Thanks.
|
|
|
|
|
I'm having some problems with interprocess communication. Here's the essentials of my code. I create two FIFOs, do some read/write, and close them. All goes well until after the reading/writing; when I close the FIFOs, I start getting "Illegal seek" errors, and finally a segmentation fault. I've attached the parent / child code, and the output. The perror statements were in there for debugging purposes, but I left them in so you can see where the "Illegal seeks" start. Any idea what I've done wrong?
(rbuf and wbuf are char *'s, and these processes are created with a standard fork() call)
PARENT
Mkfifo(syscallFifo,S_IRUSR | S_IWUSR);
fdsys = Open(syscallFifo,O_RDONLY);
Read(fdsys,&irbuf,sizeof(int));
printf("The child said: %d\n",irbuf);
Read(fdsys,&*rbuf,irbuf);
printf("The child said: %s\n",rbuf);
fdrep = Open(replyFifo,O_WRONLY);
wbuf = "Hello from the parent";
iwbuf = strlen((const char *)wbuf) + 1;
Write(fdrep,&iwbuf,sizeof(int));
Write(fdrep,&*wbuf,iwbuf);
perror("Waiting for the child to end");
wait(&status);
perror("All done waiting");
Close(fdsys);
perror("Parent closed first fifo");
Close(fdrep);
perror("Parent closed second fifo");
Unlink(syscallFifo);
Unlink(replyFifo);
CHILD
Mkfifo(replyFifo,S_IRUSR | S_IWUSR);
fdsys = Open(syscallFifo,O_WRONLY);
wbuf = "Hello from the child";
iwbuf = strlen((const char *)wbuf) + 1;
Write(fdsys,&iwbuf,sizeof(int));
Write(fdsys,&*wbuf,iwbuf);
fdrep = Open(replyFifo,O_RDONLY);
Read(fdrep,&irbuf,sizeof(int));
printf("The parent said: %d\n",irbuf);
Read(fdrep,&*rbuf,irbuf);
printf("The parent said: %s\n",rbuf);
perror("Time for the child to shush");
Close(fdsys);
perror("Child closed first fifo");
Close(fdrep);
perror("Child closed second fifo");
exit(0);
OUTPUT
The child said: 21
The child said: Hello from the child
Waiting for the child to end: Success
The parent said: 22
The parent said: Hello from the parent
Time for the child to shush: Success
Child closed first fifo: Illegal seek
Child closed second fifo: Illegal seek
All done waiting: Illegal seek
Parent closed first fifo: Illegal seek
Parent closed second fifo: Illegal seek
Segmentation fault
|
|
|
|
|
Have you tried running it in the debugger? Once you close the handles then your program is not really doing anything else, and so a segmentation should be hard to achieve. As an aside, the code isnt the easiest to read as presented, but it does seem to be a mix of Win32 and Unix - which is it meant to be? Additionally, you dont need to do '&*rbuf' - rbuf will do!
|
|
|
|
|
Thanks. Actually, I had figured it out; I've been so warped by using Visual Basic that I was attempting to allocate a char * like a VB string.
|
|
|
|
|
This looks suspiciously like a l*nux question to me...
[fx: dredges up memories of working with genuine UN*X code]
You don't have a definition shown anywhere for rbuf, wbuf or irbuf/iwbuf.
I'm assuming that the first two are char [somenumber] and the latter are int's.
You don't need &* in the read or write calls, unless your compiler is crazy.
Are you certain that the buffers are large enough? That would cause a segmentation fault.
The illegal seek is being reported once, and then you're not resetting errno, so it will keep being reported.
Hope that helps a bit.
Steve S
|
|
|
|
|
I'm writing a plain Win32 dialog app with a big video window and a few basic controls. I want to implement keyboard shortcuts, but I've run across some problems: the controls take the focus away from the main window, so using WM_KEYPRESS doesn't work if the user has the focus on one of the controls. I then tried using accelerator tables; they work fine for VK_XXX keys, but using ASCII alphanumerical keys seem to send the message twice sometimes. Any ideas?
Thanks!
|
|
|
|
|
Hello everybody,
I was wondering if anybody had some experience with this.
I work in Visual Studio 6.0 and a range of libraries for specific engineering work.
You know how intellisense helps you with functions and variables for the standard libraries.
Is there any way one can extend intellisense capability to include other libraries that are being used in the project? Let me know
Any help would be appreciated.
thanks
|
|
|
|
|