|
The OP said he was using VC6 and the link to the redistributable that you gave was for VC2008. The VC2008 redist will not work with VC6. The VC6 redist was included in the VC6 SP5 and SP6. Alternately you can get the SP4 file here[^].
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
|
Can i add and remove the border of an editbox at runtime?
|
|
|
|
|
yes
take a look at GetWindowLong and SetWindowLong
|
|
|
|
|
hi i am writing a win 32 service while will detect the USB device when connected. I need to know the name of device which is connected i have written following service handler.
VOID WINAPI ServiceHandler(DWORD fdwControl,DWORD evtype, LPVOID evdata, LPVOID Context)
{
/*DEV_BROADCAST_VOLUME* pDev = (DEV_BROADCAST_VOLUME*)evdata;*/
DEV_BROADCAST_HDR* pHdr = (DEV_BROADCAST_HDR*)evdata;
switch(fdwControl)
{
case SERVICE_CONTROL_STOP:
case SERVICE_CONTROL_SHUTDOWN:
ProcessStarted = FALSE;
ServiceStatus.dwWin32ExitCode = 0;
ServiceStatus.dwCurrentState = SERVICE_STOPPED;
ServiceStatus.dwCheckPoint = 0;
ServiceStatus.dwWaitHint = 0;
// terminate all processes started by this service before shutdown
{
EndProcess(/*i*/0);
delete ProcessNames[/*i*/0];
}
break;
case SERVICE_CONTROL_PAUSE:
ServiceStatus.dwCurrentState = SERVICE_PAUSED;
break;
case SERVICE_CONTROL_CONTINUE:
ServiceStatus.dwCurrentState = SERVICE_RUNNING;
break;
case SERVICE_CONTROL_INTERROGATE:
break;
case SERVICE_CONTROL_DEVICEEVENT:
switch(evtype)
{
case DBT_DEVICEARRIVAL:
//DEV_BROADCAST_VOLUME* pDev = (DEV_BROADCAST_VOLUME*)evdata;
if(pHdr->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE)
{
DEV_BROADCAST_DEVICEINTERFACE *pDevInt = (DEV_BROADCAST_DEVICEINTERFACE*)evdata;
UpdateDevice(pDevInt,(WPARAM)evtype);
}
break;
case DBT_DEVICEREMOVECOMPLETE:
//DEV_BROADCAST_VOLUME* pDev = (DEV_BROADCAST_VOLUME*)evdata;
if(pHdr->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE)
{
DEV_BROADCAST_DEVICEINTERFACE *pDevInt = (DEV_BROADCAST_DEVICEINTERFACE*)evdata;
UpdateDevice(pDevInt,(WPARAM)evtype);
}
break;
}
break;
}
in case of DBT_DEVICEARRIVAL the pDevInt i am getting does not contain the dbcc_name string. it only contains "\". Plz help where i am doing wrong
thanx in advance
|
|
|
|
|
How to Wipe/Clean Internet Explorer's temporary internet Files, Cookies, History, Cache using C++/VC++/MFC
|
|
|
|
|
|
i need C++/VC++/MFC Code to wipe/clean Internet Explorer temporary internet Files, Cookies, History, Cache
|
|
|
|
|
The open source project that you were given a link to, does just that.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i am tring to develop one my own so i need a source code
|
|
|
|
|
Shiv Murti Pal wrote: i need a source code
Are you a parrot or are you just really dense?
|
|
|
|
|
|
Shiv Murti Pal wrote: abe u r parrot and dence
Is this some obfuscated form of pidgin?
|
|
|
|
|
Shiv Murti Pal wrote: abe u r parrot and dence
Nooooooooooooooooo!
I am a parrot and I dance
Though you must give me enough beer to see that happen!
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]
|
|
|
|
|
Shiv Murti Pal wrote: How to Wipe/Clean Internet Explorer's temporary internet Files, Cookies, History, Cache using C++/VC++/MFC
By using DeleteFile() .
"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
|
|
|
|
|
|
No.
The official way is with Internal Shell apis (Explorer does that)
(8 lines of code )
|
|
|
|
|
kilt wrote:
(8 lines of code )
Here are my 7 lines.
IUrlHistoryStg2* pIHist = NULL;
HRESULT hr = CoCreateInstance(CLSID_CUrlHistory,NULL, CLSCTX_INPROC, IID_IUrlHistoryStg2,(void**)&pIHist);
if (SUCCEEDED(hr))
{
hr = pIHist->ClearHistory();
pIHist->Release();
}
Best Wishes,
-David Delaune
|
|
|
|
|
Hi,
this is my problem:
I developed an explorer which its displaying is identical to the windows explorer and what i need is to allow the user to rename the automatic name of the file just after its creation.
For example : After a click sub menu "Create new file" there is a creation of file with default name like "New File.ext" So what i need is after this creation the explorer let user to rename file.
I'm trying to do this but no result
Please help me.
|
|
|
|
|
khaliloenit wrote: I'm trying to do this but no result
Trying to do what? You need to post the code you have tried, if you expect anyone to be able to start to discover why it does not work.
|
|
|
|
|
This is the situation of my problem:
*** My application is a GUI dll (SDI) it seems to work like windows explorer i.e if i select a folder in tree on the right its content will be displayed on the left.
- I have a CView derived class named CMyView which contains a CListCtrl derived class named CBCGPShellList like this :
class CMyView : public CView
{
public:
...
CBCGPShellList m_wndList;
...
- I have also a CBCGPControlBar derived class which contains a CBCGPShellTree
class CFolderBar : public CBCGPDockingControlBar
{
public:
...
CBCGPShellTree m_wndShellTree;
...
- I have also MainFrame contains this two classes.
So what i need is to do like this :
when i create a new file in a specific folder (selected in the right) the application should give the user the possibility to enter a name to this file.
I hope that i had describe my situation clearly and you can help me.
thank you.
|
|
|
|
|
I am not familiar with the CBCGPShellList control, it does not appear to be part of MFC, so cannot advise on its use. Using a normal ListView the application may be able to set the editing mode on the name element which will give the user what you want.
|
|
|
|
|
1) the CBCGPShellList derive from CListCtrl so if you find a solution to CListCtrl it will be similar to CBCGPShellList.
2) About the uses of this class "CBCGPShellList" and "CBCGPShellTree" is for some reasons like the automatic manage of events between this controls and to use the BCG customization .
If you have source code in c++ which has the same role of my application (windows explorer) it will be helpful for me and a great gift.
thanks
|
|
|
|
|
Sorry but I have no idea about these controls, or BCG customization. I do know that using a ListView you can do what you are asking; take a look at the ListView/CListView documentation on MSDN.
|
|
|
|
|
No problem, thank you for your help
|
|
|
|