|
Hi,
I want to add something so that my dll is called with the windows startup. I don't want to use the default registry entries under the HKEY_LOCAL_MACHINE & HKEY_CURRENT_USER.
Thanks
|
|
|
|
|
|
amahmoud81 wrote:
I don't want to use the default registry entries under the HKEY_LOCAL_MACHINE & HKEY_CURRENT_USER.
Why?
Don't forget that you'll need an actual application (e.g., rundll32.exe) to start your DLL.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
(also sent to Dundas Tech this morning; but maybe some other CPian already tried that )
I have a grid ( row selection ) with multiple columns, one is a checkbox cell type; I select a range of cells and when clicking on one checkbox in the selected range, I want to update all checkbox cells with the state of that one cell.
I was wondering if it's possible to select a range of checkbox cells (CUGCheckBoxType) , and click on the checkbox to affect all the selected cells ?
now, in the CUGGrid::OnLButtonDown method, there's m_ctrl->GotoCell(col,row) that resets the selection.
Seems that I have to "hack" a couple of methods here and there to achieve what I want, and I don't really want to do it, and mess with the Dundas code.
I could use a contextual menu to do it, but it seems unelegant ... and not what Boss wants...
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Please try the recommendations Dundas Support has emailed to you earlier today and let us know if it something you can use.
Peter Zajac
Dundas Software
|
|
|
|
|
Hello, I've tried to do modal listbox like the member list in VisualStudio. I used class CDialog with listbox (without border and caption). But there is a terrible BEEP when mouse is clicked outside the dialog. I can't find the mechanism which do the BEEP. Do you have any idea how to do that. Thanks.
|
|
|
|
|
I have no idea what your asking, but...
Maybe:
MessageBeep
or
You have created a modal dialog box for an editor your working on which pops up when member functions/variables for an object are available and you want it to NOT beep when some clicks outside the box and instead have it dissappear like VS???
In that case try creating a modeless dialog box
Cheers
How do I print my voice mail?
|
|
|
|
|
hell, thanks for give me kick;P
|
|
|
|
|
hi!
I've done a dialog-based MFC proj with 2 buttons RECORD and STOP.
i wish to add additional feature to my buttons such that when users press RECORD, the STOP button wld eg. change colour to alert users that this is the next button to press.
also, after RECORD is pressed, this RECORD button is diabled until STOP is pressed to enable it again.
can anyone kindly help?
|
|
|
|
|
you need to use CWnd::EnableWindow
with something crudelly like ( when clicking the buttons, you need to manually update the other ones ):
...
if ( RecordButton.IsPressed() )
{
StopButton.EnableWindow( FALSE )
}
else
{
StopButton.EnableWindow( TRUE )
}
...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
|
Hi there,
Does anybody knows where I cound find a routine that would convert integer values into roman numbers and vice-versa. Something like :
INT i = RomanToArabic(_T("XII"));<br />
ASSERT(i == 12);<br />
CString s(ArabicToRoman(24));<br />
ASSERT(s.CompareNoCase(_T("XXIV")) == 0);
|
|
|
|
|
It's easy enough to create such a function. Here is a site with JavaScript that can easily be converted to C. Others can be found here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Indeed, the algorithm is not so complicated as I first believed. Thanks David.
|
|
|
|
|
I have posted a question alredy but no awnser.
Kindly tell me how will i zoom in and zoom out a picture. in VC++ MFC
any help or sample
thanx
|
|
|
|
|
I'm willing to bet my life savings there is probably an article on bitmap zooming somewhere on CP....at the very least there is a bitmap class somewhere on here which has zoom functionality...
p.s-my life savings currently are -456...i'm in debt...please pay it for me
How do I print my voice mail?
|
|
|
|
|
Could it be that the video is allready loaded in the cache and/or memory? If you load it the first time, it has to be fetched from your HD into memory ... ?
(just a thougth)
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
my program plays DVR format video files and
Window Media Player play ordinary avi files
so they play different files and different contents..
so caching is not in this case
thanks for your reply anyway
|
|
|
|
|
Hi All
does anyone know how to programatically create a MS Acess database ?
i dont mean the tables, but the actual database itself
or could any one point me in the right direction
thanks
Si
|
|
|
|
|
#include "afxdao.h"
AfxGetModuleState()->m_dwVersion = 0x0601;
AfxDaoInit();
CDaoDatabase db;
db.Create("D:\\NewDatabase\\NewDb.mdb");
Note: The directory must already exist.
That's all.
MS
|
|
|
|
|
supurb thanks
|
|
|
|
|
Hi all
I would like to store the details of hard drive (like Volume, Capacity, Used Space and free space of Hard Drive) in a List box. How can I write a code to find volume, capacity, used space and free space?
Any help be appreciate.
rajesh
|
|
|
|
|
dont punch me, if this doesnt work.. I wrote this 4 years ago...
void CPathPage::LoadDrives()
{
char cDriveList[DRIVE_LEN*MAX_DRIVES];
char cDrive[DRIVE_LEN];
int iDriveCount=GetLogicalDriveStrings(DRIVE_LEN*MAX_DRIVES, cDriveList)/DRIVE_LEN;
UINT uDriveType;
while(iDriveCount)
{
--iDriveCount;
strncpy(cDrive,cDriveList+(iDriveCount*DRIVE_LEN),4);
uDriveType=GetDriveType(cDrive);
if(uDriveType==DRIVE_FIXED || uDriveType==DRIVE_REMOTE || uDriveType==DRIVE_RAMDISK)
{
InsertDrive(cDrive);
}
}
}
CString CPathPage::FormatSize(__int64 iSize)
{
CString sRet;
if(iSize>1024*1024*1024)
{
sRet.Format("%I64d Gb",iSize/(1024*1024*100));
sRet.Insert(sRet.GetLength()-4,'.');
}
else if(iSize>1024*1024)
{
sRet.Format("%I64d Mb",iSize/(1024*100));
sRet.Insert(sRet.GetLength()-4,'.');
}
else if(iSize>1024)
{
sRet.Format("%I64d Kb",iSize/(100));
sRet.Insert(sRet.GetLength()-4,'.');
}
else
sRet.Format("%I64d byte",iSize);
return sRet;
}
__int64 CPathPage::GetDriveSize(CString sDrive,BOOL bFree)
{
ULARGE_INTEGER i64FreeBytesToCaller;
ULARGE_INTEGER i64TotalBytes;
ULARGE_INTEGER i64FreeBytes;
i64FreeBytesToCaller.QuadPart=0;
i64TotalBytes.QuadPart=0;
i64FreeBytes.QuadPart=0;
if(GetProcAddress( GetModuleHandle("kernel32.dll"),"GetDiskFreeSpaceExA"))
{
GetDiskFreeSpaceEx((LPCSTR)sDrive,&i64FreeBytesToCaller,&i64TotalBytes,&i64FreeBytes);
}
else
{
DWORD dwSectPerClust;
DWORD dwBytesPerSect;
DWORD dwFreeClusters;
DWORD dwTotalClusters;
GetDiskFreeSpace (sDrive, &dwSectPerClust, &dwBytesPerSect, &dwFreeClusters, &dwTotalClusters);
i64FreeBytesToCaller.QuadPart=dwSectPerClust*dwBytesPerSect*dwFreeClusters;
i64TotalBytes.QuadPart=dwSectPerClust*dwBytesPerSect*dwTotalClusters;
}
if(bFree)
return i64FreeBytesToCaller.QuadPart;
else
return i64TotalBytes.QuadPart;
}
void CPathPage::InsertDrive(CString sDrive)
{
char cDriveName[MAX_DRIVES];
GetVolumeInformation(sDrive,cDriveName,MAX_DRIVES,0,0,0,0,0);
if(strlen(cDriveName))
m_lDrives.InsertItem(0,sDrive+CString(" [") + cDriveName + CString("]"));
else
m_lDrives.InsertItem(0,sDrive);
m_lDrives.SetItemText(0,1,FormatSize(GetDriveSize(sDrive)));
m_lDrives.SetItemText(0,2,FormatSize(GetDriveSize(sDrive,TRUE)));
m_lDrives.SetItemText(0,3,FormatSize(GetDriveSize(sDrive,TRUE)));
DWORD dDrive=0;
strncpy((char*)&dDrive,(LPSTR)(LPCSTR)sDrive.Left(1),1);
m_lDrives.SetItemData(0,dDrive);
}
|
|
|
|
|
HI,
I want to build an application , that zoom my BMP or GIF Picture saved on my Disk ..
I give it path and it will show that pic,,,
and on clicking a zoom button it will zoom it few percent. same like as an aplication ( Picture Viewr in windows XP) ..
any idea or sample to zoom a picture
thanx
|
|
|
|