|
You are fast question and answer in same time
|
|
|
|
|
|
I have a question - what happened to cshah1? Version 2 kinda sucks...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
If you have a question, ask it. For starters, you should be asking for help with code you've written, not for us to write the code for you.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
<|
more or less...
|
|
|
|
|
My VS 6.0 suddenly started to beep when displaying warnings (build needed before execute) or after compiling.
How can I turn off all VS beeps ? I cannot find iot in options.
In windows system I'm using "No Sounds" schema for sounds.
Thank you!
rrrado
|
|
|
|
|
Open the Sounds and Audio Devices applet in Control Panel. Click the Sounds tab. Scroll down the list until you get to the Microsoft Developer section.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I've tried that. All developer studio's events (Build COmplete, Build error, etc.) has "(none)" set. And it is still beeping
rrrado
|
|
|
|
|
Turn your speakers' volume all the way down. If you still hear beeping, that's not the problem.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
it's solved now. It stopped beeping after restart
rrrado
|
|
|
|
|
Hi all,
Can I know how can I set the height of List Box of combo box in my VC++.NET application using WIN32.
Thanks,
priyank
|
|
|
|
|
Are you wanting to set the height programmatically, or at design time?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I'm assuming you want to set dropdown height.
If so,use MoveWindow ? Rectangle height given will be dropdown height including item height.
|
|
|
|
|
I want to set height of list box in combo box. Either programmatically or design time.
|
|
|
|
|
|
|
The easiest way is at design time. In the resource editor, the combobox has two parts: the edit box, and the dropdown arrow. They are sized individually.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
At design time you can follow method already stated by David and malaugh .
Programatically, you need to change size of rectangle.
HWND hCombo = GetDlgItem(hDlg,IDC_COMBO);
MoveWindow(hCombo,...);
|
|
|
|
|
To set at design time, got to the resource editor
1) Click on the combo box
2) Click in the dropdown symbol (down arrow)
3) Drag the outline that appears to the desired size.
|
|
|
|
|
Hi all,
I need to write a loopback routine to test my PC's ethernet chip - and am
planning to just use winsock to achieve a test out the chip and back
... ie. sending from a local client (on my pc), and receiving from a
local server (on my pc). I think this is refered to as EXTERNAL
LOOPBACK.
QUESTION (1) : if I chose to use the 127.0.0.1 loopback address, will
the IP packets actually leave the PC and go out to the network ... and
back into my PC?
OR does this scenario just loopback the data internally (without
packets to the network)?
If I knew how a ping to 127.0.0.1 actually works I'd be in business ...
ie whether this actually fires packets out to the net.
QUESTION (2) : Should I in fact be using 127.0.0.1 ? ... OR should I
use my PC's address instead ?
QUESTION (3) : Would it be advisable to generate my own UDP packets OR
TCPIP packets for the source of data (to be looped back) ... or is
there a simple way to invoke PING programmatically ?
Many many thanks,
John.
jls
|
|
|
|
|
A1: No. If I remember correctly they won't even reach the NIC, it will take a "shortcut" in the ip-stack.
A2: Doesn't really matter. The result will be the same, but using the address of the machine would generate a look-up operation and conclude that it's the same as localhost.
A3: Depends on your needs in my opinion. If you actually want to include the hardware in the test, you have to involve another device.
I suggest you write a small app that runs on another machine so you can connect to it through the ethernet interface. The remote app then can either use ping or some other self-made-up command set to test the interface. On the other hand; if you can connect to the remote machine, then you probably can assume that the NIC works.
Hope this helps
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
Hi,
Anyone know how to detect keyboard inputs?
I am using VC++ 6.0 with MFC using CHTMLEDITVIEW base class.
When my program runs, I can detect the keyboard inputs but when i go to FILE->OPEN->xx.ppt(powerpoint file), i cannot detect anymore.
anyone knows any solutions?
wanted to use onparentnotify() but it only pass mouse clicks not keyboard inputs.
need help.
tks.
rdgs
terr
|
|
|
|
|
You can always use the pretranslatemessage handler.
|
|
|
|
|
hi,
i did tried using pretranslatemessage but it only works if i open a new document from FILE->NEW.
but i am trying to open a powerpoint from my program. ie. FILE_>OPEN_>XX.ppt. then by using pretranslate, it does not detect any keyboard inputs.
you know why?
thanks..
terr
|
|
|
|