|
ClearCase from Rational is the best Tool on the market.
But also the most expensive.
|
|
|
|
|
Bugra,
This appears to have promise...
http://www.sourcegear.com/vault/index.asp
I like their other products (Source Offsite) though I have never used them.
Ted
|
|
|
|
|
My problem is i can not draw a 24 bit bitmap using a CImageList. The colors get corrupted. This is my code. What am I doing wrong ? Can I use CImageList to draw 24 bit bitmaps because the code below works fine with 16 bit bitmaps.
First create the image list from a 24 bit bitmap
CImageList m_ImageList;
m_ImageList.Create (IDB_BITMAP2,39,2,RGB(255,0,255));
Then draw it in OnPaint method of my class
CPoint pt (0,0);
m_ImageList.Draw(pDC, m_iIndex, pt, ILD_TRANSPARENT);
Thank you very much
Orcun Colak
|
|
|
|
|
what is the bit depth of your display?
-c
"I am angry that so many of the sons of the powerful and well-placed... managed to wangle slots in Reserve and National Guard units...Of the many tragedies of Vietnam, this raw class discrimination strikes me as the most damaging to the ideal that all Americans are created equal and owe equal allegiance to their country."
--Colin Powell, not talking about his boss
|
|
|
|
|
I found the code below in the toolbar section of codeproject. Now it works fine.
CBitmap cBitmap;
cBitmap.Attach( LoadImage(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BITMAP2), IMAGE_BITMAP, 0, 0,
LR_DEFAULTSIZE|LR_CREATEDIBSECTION)
);
CImageList cImageList;
cImageList.Create(39, 42,ILC_COLOR24|ILC_MASK,2, 1);
cImageList.Add(&cBitmap, RGB(255,0,255));
I guess CImageList can not load 24 bit bitmaps itself for some reason.
But when I load the bitmap and then add it to CImageList it worked.
Thank you very much for your time
Orcun Colak
|
|
|
|
|
Is there a way to show a default selection?
When I start the dialog everything is blank until I select something and I would like to show a default in the list.
Thanks for the help.
|
|
|
|
|
Select your default item in OnInitDialog (WM_INITDIALOG handler if not in MFC).
Pavel
Sonork 100.15206
|
|
|
|
|
That is what I thought and did....
I needed a UpdataData(TRUE/FALSE) to get it to work.
Thanks for the help.
|
|
|
|
|
Also in MFC you can use DDX to bind dialog class member variables to controls, then the content of controls will be set from these variables on init, and after OK, the variables will be filled with data from controls.
Creating of variables and DDX binding using Class Wizard is easy.
Pavel
Sonork 100.15206
|
|
|
|
|
I have a very accurate GPS clock. I have it connected to my computer through the serial port. Is there a way to either have the GPS clock keep updating the time on my PC clock, or when I read the PC clock, have my program read the GPS clocks time instead. Any ideas would be appreciated.
Thanks,
Shane
|
|
|
|
|
We are using GPS to synchronize control system PC with ms precision through serial port, so there is a way. I'm sorry I can't help you with details, because the development of this had cost my employer some money
Pavel
Sonork 100.15206
|
|
|
|
|
How, hard can it be? Read, the serial port, parse the string for the time, then call SetSystemTime() to set the PC's clock. You may only want to do this once per hour, or once per day, etc.
|
|
|
|
|
Hi all,
I met some error when i compile my project in VC++6.0
Is there some lib I didnot add to the project?
Thanks for your help.
Laura
*******************
error LNK2001: unresolved external symbol _IID_ITask
error LNK2001: unresolved external symbol _CLSID_CTaskScheduler
error LNK2001: unresolved external symbol _IID_ITaskScheduler
************************
|
|
|
|
|
|
Hi I got it.
It 's mstask.lib
Thanks
|
|
|
|
|
I would like to display 2 fields from a database in a tabular form.
I know how to write a query, but I want to know what control I should use to display the data.
Thanks
|
|
|
|
|
|
Hi there,
I want to move a certain hidden/readonly file (namely thumbs.db) from one folder to another in C++. However, this fails, because the "::rename(src, dst)" function does not like hidden/readonly/systems files.
Now, how can I change one file's attributes in Visual C++? In Visual Basic you have the SetAttr() procedure, but I cannot find a similar function in C++?
Regards,
Marco van der Kolk
|
|
|
|
|
In MFC using CFile::SetStatus, in WIN32 API using function SetFileAttributes
Pavel
Sonork 100.15206
|
|
|
|
|
|
Hi Marco,
Take a look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/setfileattributes.asp
|
|
|
|
|
Trying to use SHFileOperation to copy files to/from FTP server, but without success (for a while). Anybody tryed to do such things? Guess, theoretically is possible...
|
|
|
|
|
This one should be a TAPI FAQ...
I'm using TAPI 2 in an application. I need to be able to tell the modem not to wait for a dial tone before dialing a number. I could find no such option in the TAPI API, but I found a checkbox in the modem control panel. Is there a way to disable "wait for dial tone" using a C++ program, without the user having to go through the control panel to do this?
Thanks!
--Two Magic Lovers
|
|
|
|
|
Did you try with lineSetCallParams function? because
typedef struct linedialparams_tag {
DWORD dwDialPause;
DWORD dwDialSpeed;
DWORD dwDigitDuration;
DWORD dwWaitForDialtone;
} LINEDIALPARAMS, FAR *LPLINEDIALPARAMS;
ÿVOTD: 14 "Make every effort to live in peace with all men and to be holy; without holiness no one will see the Lord.
15 See to it that no one misses the grace of God and that no bitter root grows up to cause trouble and defile many." - Heb 12:14-15
|
|
|
|
|
I need to know how to write a try catch for this. What goes iinto the catch? In the try I will be openeing and reading registry keys. If the keyOpen operations fail I dont want keyClose to be called. Is try-catch the way to organize this, or an if statement?
Thanks,
ns
|
|
|
|