|
I installed Dundas Ultimate Toolbox 6 on my machine. It has no Application Wizard. For this reason, I add every header/implementation file (.h, .cpp) to my project. Refer to Dundas UT Help file for knowning which .h/.cpp you must add to your project.
A. Riazi
|
|
|
|
|
|
Hello Nish,
The Ultimate Toolbox does not come any AppWizards because we have found that in most cases our clients typically add our tools to their project after the AppWizards are used to create the application or when upgrading existing projects. As result creating AppWizards (although a great idea) was never a priority for Dundas Software.
The easiest way to work with Ultimate Toolbox is to build it into a DLL, link your application to it, and then only include the header files that you need.
Peter
|
|
|
|
|
|
The Wait function is a function that encapsulates WaitForSingleObject that can run
cross-platform.
But I am confused why a CRITICAL_SECTION object is used.
//global
CRITICAL_SECTION cs;
//if on windows platform
Wait()
{
LeaveCriticalSection(&cs);
//do some operations
WaitForSingleObject ( ... );
//do some operations
EnterCriticalSection(&cs);
}
Thanks in advance,
George
|
|
|
|
|
You don't use the Wait functions on critical sections. EnterCriticalSection() blocks the thread until the CS is available, then LeaveCriticalSection() released the CS so other threads can acquire it.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks, Michael pal!
But in my example, LeaveCriticalSection() are
called before EnterCriticalSection().
I think from your explanation, EnterCriticalSection()
should be called before LeaveCriticalSection().
Thanks in advance,
George
|
|
|
|
|
George2 wrote:
I think from your explanation, EnterCriticalSection()
should be called before LeaveCriticalSection().
That's right.
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks, Michael pal!
The codes are taken from Apple's DSS Project,
it is an open source project. In the project,
LeaveCriticalSection() is called before
EnterCriticalSection().
I can give you all the source codes(not too
long). How can I give it to you?
Thanks in advance,
George
|
|
|
|
|
Hi,
can I switch off this new (or strange animated) listbox scrolling in XP? When I scroll with mousewheel while not being over dialog the scrolling is somehow "special" animated?
Is there an explanation when & why this happens... or how to turn off for a listbox?
Thanks
|
|
|
|
|
Use Tweak UI, or My computer-> Propreties-> Performance settings->, then uncheck the visual effects you don't want.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
can I disable this effect programmatically for a single listbox (in my application)?
|
|
|
|
|
I don't think so, the smooth-scrolling is a system-wide setting.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
|
Dear all,
I have created a button in IE 5.5 ToolBar(Tool Band concept).then I have created(manually) a registry named as
ToolBand1 under HKEY_LOCAL_MACHINE/Software/ToolBand1.
If I execute that application(VC++),button name to be changed as ToolBand1 in IE.
How to change it through SDK codings?.
Pls help me...
Thanks for viewing this.Please help me.
|
|
|
|
|
is there any way to change the BackGround Color of a Dialog in a SDI project ?
thnx
-=Ehsan-de-Burge=-
|
|
|
|
|
void SetDialogBkColor( COLORREF clrCtlBk = RGB(192, 192, 192), COLORREF clrCtlText = RGB(0, 0, 0) ); Make a call to this function in the InitInstance function of your project.
-Dominik
|
|
|
|
|
|
unbelievable
thats the EXACT soloution.
thanks mr nishant
-=Ehsan-de-Burge=-
|
|
|
|
|
CBitmap mainBitmap;
int nX1=mainBitmap.LoadBitmap("C:\\a.bmp");
"mainBitmap.LoadBitmap" return value is 0, means this function is not working well.
Can u tell me from where i wrong.?
if i use BitmapID like IDD_BITMAP, then LoadBitmap works well. but if i give the file name then it not works well.
Actually i want to load a bitmap, but VC Bitmap drawing editor did not supports all the wanted color. so i made a bitmap in paint brush and now i want to load it.
waiting for the answer
|
|
|
|
|
I assume you working in MFC. Her Loadbitmap is declared as follow...
BOOL LoadBitmap(
LPCTSTR lpszResourceName
);
BOOL LoadBitmap(
UINT nIDResource
);
Both tis function asume a resource ID. This resource ID can be a textvalue or UINT value.
To load a bitmap from a file you can just call Win32 LoadBitmap API function (or LoadImage). On success then you attach it to the the CBitamp object.
|
|
|
|
|
I have too checked what u say, but no progress
HBITMAP hBitmap=LoadBitmap(AfxGetApp()->m_hInstance,"C:\\a.bmp");
int nX=GetLastError();
return value is 1814, means "The specified resource name cannot be found in the image file. "
Although file is present at the required address.
any help ?
|
|
|
|
|
Try...
HANDLE LoadImage(
HINSTANCE hinst, // handle to instance
LPCTSTR lpszName, // image to load
UINT uType, // image type
int cxDesired, // desired width
int cyDesired, // desired height
UINT fuLoad // load options
);
and set the hinst to NULL and lpszName to the filname you load,uType to IMAGE_BITMAP, fuLoad to LR_LOADFROMFILE. For other parameter and options look it up in MSDN. On success attach it (cast from HANDLE to HBITMAP).
|
|
|
|
|
now it works according to my expectation.
thanks a lot....
|
|
|
|
|
CBitmap::LoadBitmap() converts the bitmap to the screen's bit depth therefore if you use CBitmap::LoadBitmap() to load the bitmap, the colors
will be reduced to the bit depth of the main screen and you won't
be able to access the pixels directly. To avoid these problems,
load the bitmap as a DIBSection instead and attach the DIBSection to the CBitmap.
|
|
|
|