|
Yes.
Bigger is better.
Yes but don't.
If you are also opening the FILE* yourself, there might be lots of better ways to do this, like memory-mapping the file and writing in page-sized chunks.
Steve S
|
|
|
|
|
I'm using the SetNameOf function to rename a folder relative to its parent folder.
The Renaming works well but the pidl I get back is not the one I expect.
When I rename C:\Foo\Bar to C:\Foo\Bar.temp
the pidl I get back corresponds to C:\Documents and Settings\Arjan\Desktop\Bar.temp
<br />
LPCOLESTR lpNewName = A2OLE(GetItemText(m_hLockedItem));<br />
LPITEMIDLIST pidlNew;<br />
<br />
HRESULT hr = pParentFolder->SetNameOf(AfxGetMainWnd()->GetSafeHwnd(),<br />
pidlRel,<br />
lpNewName,<br />
SHGDN_INFOLDER,<br />
&pidlNew);<br />
<br />
CString s;<br />
SHGetPathFromIDList(pidlNew, s.GetBuffer(MAX_PATH));<br />
s.ReleaseBuffer();
What am I doing wrong here?
Thanks,
Arjan.
|
|
|
|
|
Hi,
I need to install the SOAP client software, and not to install the whole Soap Toolkit. I have found an Soap_core.msm and a Isapi_files.msm, the problem is that I cannot use that files in my installer .
Is there any way to install the dll's manually ? ( without screw up XP or 98... ).
Greetings
Braulio
|
|
|
|
|
Hello, everyone!
I am writing a FTP client and I do not want to write the program from scratch. I want to know whether there are some free and open source FTP library that I can use to build my FTP client program quickly? For example, the library provides functions that can be used directly to upload a file, or connect to specified site.
Better the FTP library is based on standard C/C++ and not based on MFC.
regards,
Geo
|
|
|
|
|
Type ftp into the Search box up above and you'll find several ftp clients here on CP.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Thanks, Neville buddy!
I find they are all written in C# or based on MFC classes. Are there some FTP client library that is written in stardard C/C++ and not based on MFC? I want the library easy to port on different platforms.
regards,
Geo
|
|
|
|
|
Libwww contains FTP client code.
|
|
|
|
|
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)
|
|
|
|