|
you could draw some bitmaps and import them to your resources and use the CButtonST class to give the button a normal look. Take a look the follwing article about CButtonST http://www.codeproject.com/buttonctrl/cbuttonst.asp
Hope this helps...
Best Regards
Sonu Kapoor
|
|
|
|
|
|
|
I have searched a single tutorial which will explain me a simple device driver in vC++.
But I could'nt found any tutorial as such.
Does any body knows
|
|
|
|
|
Yes, but unless you tell us exactly what operating system you want to do it for it's impossible to answer.
For at least NT drivers you can download the DDK from Microsft. Not that it's probably well over 100MB.
|
|
|
|
|
yes i want this on windows nt or 2000
|
|
|
|
|
Hi,
Anyone know how I can integrate MSDN Library with VC++.NET so when I press F1 the MSDN is to be open (not the local help in VC++.NET )??
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
Tools...Options...Help...External Help
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
I know that ... but it open 'Microsoft Document explorer' with "MSDN Library - Visual Studio .NET" open.
I want to open " MSDN Library - October 2001" with "MS HTML Help"
Thanx
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
You need the newest MSDN Library. The old ones don't integrate into VS.NET
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Thanx ... I've just activate my subscription a few days ago ... do you hapen to know if they will send my the new MSDN Library as an update???
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
Orbital^ wrote:
do you hapen to know if they will send my the new MSDN Library as an update
As far as I know they do...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I have made this function that takes a pointer to a ITEMIDLIST as a parameter that points to a folder and then loops through the items in the folder. If it is a file it adds it to the listview control, and if it is a folder it calls itself. But when it encounters a folder and calls itself the first time, the EnumObjects function fails. The ITEMIDLIST i pass in the function is the return value of the SHBrowseForFolder function. Anyone know what's wrong? Here's the code:
void AddFilesFromFolder(ITEMIDLIST *pIdl)
{
if (pIdl)
{
IShellFolder *pBrowse = NULL;
LPENUMIDLIST pFolder = NULL;
LPMALLOC pMalloc = NULL;
ITEMIDLIST *pNewId = NULL;
STRRET strDispName;
LVITEM lvItem;
RECT rMain;
RECT rAdd;
char szCurrentFile[MAX_PATH+1+5];
char szFolderPath[MAX_PATH+1];
DWORD pActual = 0;
DWORD dwAttrib;
IShellFolder *CurrentFolder;
HRESULT err;
err = SHGetDesktopFolder (&CurrentFolder);
if (err == NOERROR)
{
SHGetMalloc(&pMalloc);
CurrentFolder->BindToObject(pIdl, NULL, IID_IShellFolder, (LPVOID*)&pBrowse);
pBrowse->GetDisplayNameOf(pIdl, SHGDN_INFOLDER, &strDispName);
err = pBrowse->EnumObjects(NULL, SHCONTF_FOLDERS | SHCONTF_NONFOLDERS | SHCONTF_INCLUDEHIDDEN, &pFolder);
if (err == NOERROR)
{
SHGetPathFromIDList(pIdl, szFolderPath);
lvItem.mask = LVIF_IMAGE | LVIF_TEXT;
while (pFolder->Next(1, &pNewId, &pActual) != S_FALSE)
{
dwAttrib = SFGAO_FOLDER;
pBrowse->GetAttributesOf(1, (LPCITEMIDLIST*)&pNewId, &dwAttrib);
if (!(dwAttrib & SFGAO_FOLDER))
{
pBrowse->GetDisplayNameOf(pNewId, SHGDN_INFOLDER, &strDispName);
PathCombine(gszPath, szFolderPath, strDispName.cStr);
GetID3();
FillInfo();
ListAddItem();
}
if (dwAttrib & SFGAO_FOLDER)
{
pBrowse->GetDisplayNameOf(pNewId, SHGDN_INFOLDER, &strDispName);
AddFilesFromFolder(pNewId);
}
}
pMalloc->Free(pNewId);
pMalloc->Release();
gbFileOpen = true;
pFolder->Release();
}
CurrentFolder->Release();
}
}
}
Thankyou all!
|
|
|
|
|
I think the problem is that the pidls you get from EnumObjects() are realative to the folder
you are enumerating and your function is expecting a complete pidl.
(Make a recursive function that takes an IShellFolder * arg instead)
/Magnus
|
|
|
|
|
But how do i then get the IShellFolder interface for the current folder in the loop?
|
|
|
|
|
What do you mean with the current folder?
The current is the one passes as a param in that case.
You could to it someting like this.
start(pidl)
{
get_folder_from_pidl();
enum(folder);
}
enum(folder)
{
if(is folder)
enum(folder);
}
/Magnus
|
|
|
|
|
Does Acrobat 5.0 install a virtual printer Acrobat PDFWriter ? If not, how can i convert a MS Office document to PDF in a given path ?
Thanks.
Aziz Rajim
|
|
|
|
|
Aziz Rajim wrote:
Does Acrobat 5.0 install a virtual printer Acrobat PDFWriter
I believe so. Acrobat 3 did.
John
|
|
|
|
|
Those of you who have been following my PGP encoding problems with regard to RSA keys might be interested in knowing that the issue was with the debug mode DLLs that are supplied with PGP SDK 1.7.8
If you use the DLLs that come with PGP SDK 1.7.2 this problem will not occur. You can use the newer headers and libs, but use the older DLLs.
Of course if you actually have a full PGP installation then you need to distribute the DLLs as the DLLs are available in the system folder.
Kind regards
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
how to write a small debugger?
|
|
|
|
|
|
We have upgraded a big pure MFC project from VC6 to VC7 last week and after little changes everything seems OK except that we have 50 or so LNK2005 error regarding CString which loo like that :
------------------------------------------------------------
DUtils.lib(DUtils.dll) : error LNK2005: "public: __thiscall ATL::CStringT<char,class strtraitmfc<char,class="" atl::chtraitscrt<char=""> > >::CStringT<char,class strtraitmfc<char,class="" atl::chtraitscrt<char=""> > >(class ATL::CStringT<char,class strtraitmfc<char,class="" atl::chtraitscrt<char=""> > > const &)"
-------------------------------------------------------------
DUtils.lib(DUtils.dll) : error LNK2005: "public: __thiscall ATL::CSimpleStringT<char>::operator char const *(void)const " (??B?$CSimpleStringT@D@ATL@@QBEPBDXZ) already defined in DCAnaDisplayInfo.obj
--------------------------------------------------------------
FYI , Dutils.dll is library with generic MFC classes (derived from CEdit, Cstring ...).
Any help would be really appreciated.
Best regards,
Olivier REIX
|
|
|
|
|
Has nobody any idea why I have these link (LNK2005) errors ?
I have been searching a solution for 5 days now and I can not find anything
|
|
|
|
|
Even that I found no < > in your post, the type names seems to imply you are using template classes. Make sure your code gets instantiations of these class templates.
|
|
|
|
|
Mike Nordell wrote:
Even that I found no < > in your post, the type names seems to imply you are using template classes. Make sure your code gets instantiations of these class templates.
You are right, I use templates (mostly CList and CArray) as member variables of my classes or as parameters. Also CString is now a template in MFC 7. The code can be built with no pb on VC6 but I have the erreor on VC7.
I do not understand what you mean here : "Make sure your code gets instantiations of these class templates".
Thanks for your help
|
|
|
|