|
zainu wrote:
The question is which one would be better.
"Better" means different things to different people.
10-15 years ago when a program's efficiency had to be measured with a micrometer having 0.001" precision, this might have been a valid concern. Today it will go unnoticed, mainly because so many things are also going on. Asking the memory manager for another 10KB of memory, or spending a few more CPU cycles calling a function an extra time pale in comparison.
Do what you need to to make your code work with as few errors as possible.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi..
Thankyou all for your suggestions...
I just asked this question inspired by curiosity..
Its true that efficiency is a compramise between memory and cpu cycles. Anyway I believe we should keep these things in mind while creating softwares.
Thanks again
Regards
Shiraz
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
I need help,
I want to use gdiplus.dll but explicitly
This question is also general
How can I explicitly use class from some DLL library?
I know how to use function, I can imagine variable
..but how to manage Class with all its class member function
Thanx
viliam
|
|
|
|
|
hi,
i'm using 2 edit boxes.
In one edit box, i've to give characters.
But in second edit box, i've to receive char by char for each click of combo button.
How is it possible?
Pls help.
Mithila.
mithila
|
|
|
|
|
hi,
i'm using 2 edit boxes.
In one edit box, i've to give characters.
But in second edit box, i've to receive char by char for each click of a button.
How is it possible?
Pls help.
Mithila.
mithila
|
|
|
|
|
anuchelvi wrote:
How is it possible?
First off, what part is giving you trouble(s)? Second, what is a "combo button?"
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi. Can anyone please tell me how do i make an animated greetings or any sort of message to be displayed when user starts the program. Any suggestion would be very wellcome.
|
|
|
|
|
Do you want to create a Splash Screen?
ARSALAN MALIK
|
|
|
|
|
Yes. I was thinking of an animation displaying a wellcome notice in dialog based aplication before dialog box is shown. I would like it to be whole-screen size and it needs to go off when finished. Can you give me a hint or two? I never worked with splash screen before. Regards, Gregor.
|
|
|
|
|
whole screen ?!?!!?!
I hope you will have an option to skip it completly !!!
IMO, splash screen should be minimal, very minimal.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
you can go for image libaray and embed the gif image in your dialog
Caution: but image library make your program really big
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
If you create an animated .gif , you could use this[^] class to display it.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
hi,
does anyone know the difference between class 1 and class 2 in Bluetooth?
i know it's somthing about the range,but i need more details.
regards,
eli
|
|
|
|
|
quickly, class 2 is quite not used instead of classes 1 & 3.
of course, the range is in question (C1 is about 10 meters theoretical, while C3 can go to 100 meters, also theoretical). i said in theory because these lengths were mesured with nothing between the emiter and the receiver.
for the C2, i've heared of 10 to 20 meters.
there is also the power of emmision (that goes in pair with the range).
there are few details you could find by yourself (yes, i'm sure of it !! ). just google on "bluetooth class differences"... for example.
see you
TOXCCT >>> GEII power
|
|
|
|
|
I have a CDialog with a couple of CStatic objects.
In this CStatics I'm drawing a filled rectangle.
Now I want to be able to get the background color of the Dialog or the original color of the CStatic object to be able to fill the rectangle so that it want been seen without setting it visible false
I have tried to used GetSystemColorBrush but haven't been able to find the right color.
Can anyone plz help me
|
|
|
|
|
The common windows interface controls are drawn using your current colour scheme settings. Everything from the background colour of your dialog, colour of your menus, desktop etc can be queried using the GetSysColor()[^] API.
I Dream of Absolute Zero
|
|
|
|
|
how can I switch input methods between Chinese and English in code(program) under Wince?
|
|
|
|
|
I need to show a FileDialog form the win32 application. Is there any SDK fuction to select the file form the dialog?
|
|
|
|
|
The CFileDialog class is only a wrapper to the windows API function GetOpenFileName()[^]. This should be want you want.
I Dream of Absolute Zero
|
|
|
|
|
|
When I use CreateWindow function to create a window,
I must assign a HINSTANCE to the function ,just as follows:
HWND ghApp;
HINSTANCE ghInst;
ghApp = CreateWindow(CLASSNAME, APPLICATIONNAME,
WS_OVERLAPPED | WS_CAPTION,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
0, 0, ghInst, 0);
Now,can you tell me the relationship of ghApp and ghInst?
and the difference of the two?
|
|
|
|
|
As per the MSDN docs this parameter has been ignored since WinNT.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
I dont know exactly what it is as this is not ANSI pragma options , pragma options are used to control/modify/set linker and preprocessor.
asm and endasm seems to be the inline assembly code to be used as the startup function for the module.
I cant say anything about SYN_SFSLCT.
Does this code work in VC++ , I mean does it get compiled correctly ?
|
|
|
|
|
Hello Friends,
How can we maintain the size of an Edit control with respective to the Form View. In my Project I am using a Form View on which I am placing a Edit control. This edit control has to resize on its own at the run time if the Form view size is changed.
I am using the splitter window where in one part of the splitter window, I am using the Form View class.
Bye Techies.
Work Hard and a bit of LUCK is KEY to SUCCESS.
|
|
|
|
|
Hi,
In the Form View class add WM_SIZE message with classwizard and write this code to resize the edit control (IDC_EDIT1)
void CYourOwnFormView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
CWnd* wnd = GetDlgItem(IDC_EDIT1);
if(wnd)
{
CRect rect,editrect;
GetWindowRect(&rect);
wnd->GetWindowRect(&editrect);
editrect.left = rect.left + 10;
editrect.right = rect.right - 10;
ScreenToClient(editrect);
wnd->MoveWindow(&editrect);
}
}
Ivan Cachicatari
www.latindevelopers.com
|
|
|
|