|
Hi All
How can i Zip folder through code?I have folder A which size is 30MB .How can i compress folder a through code?Plz help me
|
|
|
|
|
|
Thanks for reply.i go through this but it's showing to many error.Ca you give some more idia.
|
|
|
|
|
Davitor wrote: Thanks for reply.i go through this but it's showing to many error.Ca you give some more idia.
Do you feel the need to tell 'what' errors?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What were errors?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
|
Hi,
Can anyone help with using Smart card and winscard.lib in embedded visual c++ (WinCE 5.0).
I am trying to establish context with the smart card resource manager using the following sample code from MSDN.
// Establish the context.
lReturn = SCardEstablishContext(SCARD_SCOPE_USER,
NULL,
NULL,
&hSC);
if ( SCARD_S_SUCCESS != lReturn )
{
-
-
}
else
{
// Use the context as needed. When done,
// free the context by calling SCardReleaseContext.
// ...
}
However, I get the following compiler error:
error LNK2019:: Unresolved external symbol 'SCardEstablishContext ...'.
fatal error: 1 unresolved external(s).
I have included the header file, ie
#include "winscard.h"
and add in the linker option to link the library, ie
Project>>Settings>>SettingsFor (AllConfiguration)>>Input>>Object/LibraryModules
Below this there is an edit box where i specified
winscard.lib
I also gave the path where this library is present in the "Additional library path:" option
"C:\Documents and Settings\Desktop\Sample
the library is present in the sample folder in the desktop
but I still get the error.
Can someone please help me?
Thanks!
|
|
|
|
|
So, instead of reposting, did you check what I suggested ?
|
|
|
|
|
Yes,
That libarary works in > WINCE3.0, i am using WIN CE 5.0
|
|
|
|
|
I get the above said error when i build in the following combination
Pockect PC 2003 ;
Win32 (Win CE Emulator debug or Release) ;
Pocket PC 2003 device;
but when i chage the configuration to the following
Pockect PC 2003 ;
Win32 (Win CE Arm debug or Release) ;
Pocket PC 2003 device;
I get the following error :
winscard.lib(WINSCARD.dll) : fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
Any clue why this happens ?
Thanks !
|
|
|
|
|
How do I read a comma delimited Excel file in C++
Dercio@C++
|
|
|
|
|
Some options -
CreateFile/ReadFile
ifstream/getline
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
The search keywords would be "CSV parser C++". I prefer Google, but whatever pleases you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
- Ask Google[^]
- Ask CodeProject - there are several articles (such as this one[^]) that talk about reading CSV files
|
|
|
|
|
I suppose you've to write some code for that.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Here is one example. Another is to use Excel Automation.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Simple way: They are just plain text files. Use general file operations.
Complete way: Office Automation. You can find a sample in the MSDN.
|
|
|
|
|
In a particular VC++ 2005 MFC dialog, the "Question Mark button" (near Close button) shows up even after I set "Context Help" property to False.
In other dialogs the button shows up or disappears properly after setting or resetting that property.
Can somebody tell me whats wrong? or What else controls the display of that button?
Thanks.
|
|
|
|
|
Is there any way to disable "My Computer", so the user can't select "My Computer"?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Does that mean you want the user to only be able to select file-system folders? If so, you want to set the BIF_RETURNONLYFSDIRS flag in ulFlags in the BROWSEINFO you're passing SHBrowseForFolder .
|
|
|
|
|
I already have that flag but it seems to have no effect, My Computer can still be selected
here's my code:
BROWSEINFO bi;
LPITEMIDLIST pidl;
LPMALLOC pMalloc;
if (SUCCEEDED(SHGetMalloc(&pMalloc)))
{
ZeroMemory(&bi,sizeof(bi));
bi.hwndOwner = hwndOwner;
bi.pszDisplayName = 0;
bi.pidlRoot = 0;
bi.lpszTitle = title;
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT | BIF_VALIDATE | BIF_NEWDIALOGSTYLE;
bi.lpfn = BrowseCallbackProcStatic;
bi.lParam = reinterpret_cast<LPARAM> (this);
pidl = SHBrowseForFolder(&bi);
if (pidl)
{
char sz[MAX_PATH];
SHGetPathFromIDList(pidl, sz);
m_Folder = sz;
}
pMalloc->Free(pidl);
pMalloc->Release();
}
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: I already have that flag but it seems to have no effect, My Computer can still be selected
But you should find that the user can't press 'OK' when they have 'My Computer' selected, so the return value from SHBrowseForFolder cannot be 'My COmputer'?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
It seems this doesn't happen if BIF_NEWDIALOGSTYLE flag is raised. See this screenshot.[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
You're quite right - all I can suggest is using the lpfn member of BROWSEINFO[^] to implement a callback[^] that only enables the OK button when you have a file-system item selected, or maybe implementing the custom filtering feature documented in the SHBrowseForFolder documentation[^].
Either that or disable the 'new UI'!
Looking at this newsgroup thread[^], this has been known about for over 6 years (I'm drawing an analogy between a \\server and 'My Computer' - seems reasonable).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for the link, at the end they explained how to make it work. Here's the code (following their advice):
if (uMsg == BFFM_SELCHANGED)
{
LPITEMIDLIST pidl = reinterpret_cast<LPITEMIDLIST> (lParam);
char UnusedBuffer[MAX_PATH];
BOOL ShouldEnableOkButton = SHGetPathFromIDList(pidl, UnusedBuffer);
::SendMessage(hwnd, BFFM_ENABLEOK, 0, ShouldEnableOkButton);
}
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|