|
While this code works, it might not be as intuitive, and more importantly, efficient as:
for (int i = 0; i < 100; i += 2)<br />
{<br />
}
Might not be important for small loops, but an extra if and % op can add up in big loops.
- delete that;
|
|
|
|
|
Hi chaitanya,
I hope the below link helps u.
http://www.its.strath.ac.uk/courses/c/
Chetan.
Helping others satisfies you...
|
|
|
|
|
Hi!
My app used to work fine on another computer when I was using VS2k3 but since I've been using VS2k5-MFC8 my app just won't start!
I used Dependency Walker to see what was going on and I got this error:
Error: The Side-by-Side configuration information in "c:\myapp.EXE"
I did put all the required files in the folder:
mfc80.dll
mfc80u.dll
mfcm80.dll
mfcm80u.dll
msvcr80.dll
I think this is related to the new manifest file used by Windows to know which dll version your app is using but right now I'm really stuck. I also tried to statically link to MFC with no luck.
Anyone can help me?
Luc
|
|
|
|
|
In your Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86 folder, there should be a file called vcredist_x86.exe. Run it on the other machine.
|
|
|
|
|
Create a file called "myapp.exe.local" in the same dir as myapp.exe. That will make the DLL loader look in that directory first.
(On second thought, I don't know if the .local file overrides the SxS system. Try it and see)
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
need general knowledges of barcode.
1) do all countries in the world prefer one special barcode format? if yes, what is that?
2) do all shops and factories in one specified country prefer one special barcode format? if yes, what is that?
3) can barcode readers (i.e. used in shops) read multiple barcode formats?
thx
A nice tool for optimizing your Microsoft html-help contents.
Includeh10
|
|
|
|
|
includeh10 wrote:
1) do all countries in the world prefer one special barcode format? if yes, what is that?
While the UPC is the most popular, the government uses Code 39, books and periodicals use EAN-13, shipping cartons use Code 128 or Interleaved 2 of 5, PDF417 and DataMatrix are used when damage is a possibility.
includeh10 wrote: 3) can barcode readers (i.e. used in shops) read multiple barcode formats?
Yes, hence the name "barcode reader" versus "UPC reader."
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hi,
thanks. it sounds u r very special in barcode.
do all barcodes have same size in height (and width?), so barcode readers can read formats properly?
what does UPC stand for?
can you give me some good links to study? google offers too many links to choose.
A nice tool for optimizing your Microsoft html-help contents.
Includeh10
-- modified at 13:26 Friday 10th March, 2006
|
|
|
|
|
includeh10 wrote: do all barcodes have same size in height (and width?),
No, not at all. The size is determined by several factors like how much room in the paper can be devoted to it, how far away the scanner will be. As long as the barcode is formatted properly, and it is within rage of the scanner, it should be able to be read.
includeh10 wrote: what does UPC stand for?
Universal Product Code.
includeh10 wrote: can you give me some good links to study? google offers too many links to choose.
It all depends on what in particular you are looking for. Here is a starting point.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Only want to say thanks again.
I will learn from ur link soon.
cheers.
A nice tool for optimizing your Microsoft html-help contents.
Includeh10
|
|
|
|
|
Does anyone know how to set the color of the scrollbar of a listbox. I'm using win32. I've already tried several WM_CTLCOLOR... messages, but this did not work.
Changing the colors of buttons and other controls works fine.
Ward
|
|
|
|
|
|
But what about the detours library it uses...?
- NS -
|
|
|
|
|
You can't (legally) use Detours in a commercial product - I don't even think you can use it in a free product (again, legally). I haven’t read the license in a while but from memory it’s quite restrictive – I think you can use it for “research” purposes. Also it doesn't work properly on Win95/98/ME (but who cares?!?).
I'd be surprised if you couldn't use subclassing to change the colour of the scrollbars.
Steve
|
|
|
|
|
Stephen Hewitt wrote: I'd be surprised if you couldn't use subclassing to change the colour of the scrollbars.
But we cannot take the handle of the default scrollbars. It is only a drawing, not a window, right? Further more the system paints it directly, in many cases( like thumb positioning, etc. ). So we cannot use the OnPaint also. That is why the detours is used.
- NS -
|
|
|
|
|
Hi,
Is it possible to set the color to a button in a dialog based application?
I tried using CTLCOLOR_BTN unsuccessfully.
The code which i tried is given below..
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if (CTLCOLOR_BTN == nCtlColor)
// It worked when i used CTLCOLOR_DLG to change the color of the DialogBox
{
hbr = ::GetSysColorBrush(1);
}
return hbr;
}
Thanks in Adavance..
Chetan.
Helping others satisfies you...
|
|
|
|
|
I think you want to change color from button you need to
derived from CButton and use WM_DRAWITEM
But for best way you can go examples in CodeProject and
you find your answer
|
|
|
|
|
Thanks a lot for your suggestion.
Helping others satisfies you...
|
|
|
|
|
You will get a good knowledge about button costumization from http://www.codeproject.com/useritems/HyperButtonEx.asp
- NS -
|
|
|
|
|
|
The documentation states that WM_CTLCOLORBTN (which you're handling indirectly via the MFC plumbing when you handle the WM_CTLCOLOR message) only works you owner drawn controls - Which basically makes it useless as then you have to draw it yourself. You’re not doing anything wrong; this technique simply doesn’t work.
Steve
|
|
|
|
|
simplest way is to Inherit a CButton then darw it on WM_PAINT or OnPaint(...), very easy.
A nice tool for optimizing your Microsoft html-help contents.
Includeh10
|
|
|
|
|
chetan210183 wrote: I tried using CTLCOLOR_BTN unsuccessfully.
Button Doesn't support Changing color through WM_CTLCOLOR Message!.. you need to handle WM_DRAWITEM MESSAGE by Subclassing the Button...
look for exmple for same here http://www.codeproject.com/button
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks a lot.
Helping others satisfies you...
|
|
|
|
|
Hi!
I've built MFC project with VS MFC wizzard, and have included my own source. It's working fine on my computer, but on other computer isn't, because it doesn't have reqired DLLs.
My question is, how to attach necessery DLLs to my MFC project, to run it on other comuper whitch doesn't have reqired DLLs?
Hope You got the point.
Looking forward to hearing from You.
Thanks!
|
|
|
|