|
Does the device stream the data to the PC in real time? If so, then it is almost certainly isochronous. Otherwise it's a bulk data transfer. Interrupt transfers are not intended for data transfer. They just alert the host that there is data available to be read.
I assume you're writing the driver, otherwise you don't need to know what transfer method it uses...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I've got a custom control, and i've registered it
WNDCLASS windowclass;
.
.
.
windowclass.style = CS_DBLCLKS | CS_PARENTDC;
i want to add a border to it... adding WS_BORDER to the styles doesn't work
any ideas?
thanks!
|
|
|
|
|
Wouldn't you have to handle the WS_BORDER style yourself for a custom control? If that style is set, on drawing/painting your control, you'd have to draw the border.
|
|
|
|
|
i got it
in the resource editor, i changed the ExStyle of the custom control from 0x0 to 0x1.
just got lucky by playing!
|
|
|
|
|
oh cool,
good find. never had to use it myself. learn something new everyday )
jubjub
|
|
|
|
|
I need a fast way to parse Header files to obtain a list of function within an add-in written for MSDEV 6
Is there any related topic to this?
Thanks,
Nic
|
|
|
|
|
It's a slightly frustrating process
I'm currently doing an UML-editor, where I parse header files to import them into the editor. There are several things to take care of - so I'm doing a multi-pass parse. First, you'll have to get rid of comments, the "/* */" variety. I do this by loading the file into a single CString and just cuttong them out.
Then, I parse the file into separate lines. For each line, trim it, check if the beginning of the line contains the string "class ". If you find any "{}"'s before the next ';', this is not an ahead declaration, but rather the class declaration itself.
Collect the lines after the first '{' and before the last '}' (you can loop, keeping a count until you reach a matched pair). The next operation is to get rid of all inline functions. Cut everything between "{}" (including the brackets themselves, of course. You also want to strip lines from any "//" to the end.
Now, you can start parsing the lines in a state machine. One state is the access "markers", "public", private "protected". Another state is "variable declarations". Those are the lines ending in a ';', but with no parantheses '(' or ')' in the line. Split them from the last space, and the left part will contain the declaration, the right the variable name. The third state is lines ending with a ';', containing '('s and ')'s. You can get the function name by splitting the string, getting the contents from the first space before the first '(' and the first '(' itself. Parameters comes after, you have to split them at the ','s. Remember that a function declaration can contain several paranthesis, such as:
virtual void SomeFunction( int index, const CString & string = _T( "test" ) ) const;
Note that the parameter declaration might be split into several lines...
You should consider defines as well, then you'll have to read all the includes, and included includes, and create a list of defines to expand - but I didn't go down that way...
So, basically, you are after all lines containing paranthesis and ending with semi-colons inside the brackets of the class. You want the part between the first '(' and the space before the first '('. You should remove the bodies of all inline functions before you do this.
|
|
|
|
|
Hi all,
I need to add Automation features to my MFC app, and I did not include it when I started the project. How to add it now? I do not know much of automation, I only built some DLLs in ATL and they work fine, I need to do a work similar to the automation in MS Word (but orders of magnitude simpler). how can I accomplish it?
Thanx in advance.
Best Regards,
Andrea
|
|
|
|
|
Hi!
In most programs, when you type a password, asterisks are shown instead of the letters you type.. do you know how to do it?
There must be some code for it.. i'm not the first one trying to do that.
thanks!!
|
|
|
|
|
SetPasswordChar(TCHAR ch)
|
|
|
|
|
Check the "Password" box in the edit control's properties in the resource editor.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
thanks!!
i tought it was going to be harder!
|
|
|
|
|
who can tell me a way of getting the smpt server of any address that I want to send to. For ex if my program wants to send a mail to hotmail I will use mx1.hotmail.com but what is the smpt for yahoo or other mail clients. If someone can tell a way o deducting these smpt server I'll be very greatful
Thank you
PS:or just tell me the one from yahoo
gabby
|
|
|
|
|
sounds like spamming to me
but just make a yahoo account and send urself a message from it
then look at the headers and see what server relayed it
"there is no spoon" biz stuff about me
|
|
|
|
|
Not spam but I want to make a very nice Trojan and All I needed wqas this .
Thanks .
Hope it works.
But I was more interested in a way of detecting the smpt server automatically and another thing if you can help me in making my computer a smpt server. HOW?
gabby
|
|
|
|
|
|
I've just built it. But what is the matter with doing one. I do it to practice my VC++ skills;
gabby
|
|
|
|
|
Hi, can someone please assist. i need a simple chat program in vc++ that can transmit voice and data. that's voice call and instant messanging just like yahoo messenger does, but simpler than that. i need for my undergraduate project. pls mail me febad@tiscali.co.uk
thanx
febad
|
|
|
|
|
If this is not a joke it is anyway
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
>> getting the smpt server of any address
If you know the address then the "standard" port is 25. However nothing requires that port be used.
If you don't know the address then I don't understand your question since it would be something like "how do i get the address of an address i don't know"
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
look
Yahoo is a mail provider
the web address is: www.yahoo.com but the smpt server is mta327.mail.scd.yahoo.com that I've just found out
hotmail the same
the smpt is
mx1.hotmail.com
Speaking about confusing;
I want a funtiopn that get the smpt server for each mail provider that I send the mesage to;
for example if I write in the edit box that will take the receiver's mail
you@lalala.com
I get the lalala.com part and with a funtion get it's smpt server if it has one. Hope you can understand me.
Thank you.
gabby
|
|
|
|
|
|
Hi All,
OK I have seen numerous articles on using Multiple Views with a Single Document, but can't find anything about Multiple Documents Using a Single View. If I am wrong please provide me with the links.
What I have is an MDI with a splitter. When the user selects a Document from the New Dialog Box a Form is provided on the left (split) with a single ComboBox. The user clicks the ComboBox and makes single/multiple selections depending on the document requirements. When the ComboBox closes the Document is updated and the View is Shown on the Right. This is working great if the user always selects the first document in the New Dialog Box. However, if the next document down on the New Dialog Box is selected then I get errors.
So what I need is to find out how I tell the view which of the Documents is going to be displayed? I have tried playing with the Base DocManager Class but have been unsuccessful to this point. Can anyone enlighten me on the proper way of implementing this?
Many Thanks!
Charlie
I know this should be easy, but for some reason I just can't get it straight in my head...
Platform is Windows 2000 Professional, Visual C++ 6.0
|
|
|
|
|
Hi Charlie,
Are you sure you absolutely need multiple documents? Could you not achieve want your looking for by creating a class for each "type" of document, e.g.
public CBaseDocContents : CObject
{
// ...
}
public CDocType1Contents : CBaseDocContents
{
// ...
}
public CDocType2Contents : CBaseDocContents
{
// ...
}
etc
Then in your CDocument object, hold a CMapStringToOb collection creating an instance for each "doc object" you need, add to collection. Then hold a reference in the CDocument to the currently active "doc object".
If this is not helpful, what functionality is it of CDocument that you require? e.g. Serialize etc. ?
Hope this helps,
Andy
|
|
|
|
|
i want a flag window equivalent to visual foxpro for one of my SDI apps. that must popup on the top right corner of my framewindow, that must grow/shrink according to the content, and that must be vanish when one of the keystrokes occures.any code for that???
i wanto to invoke that like
object.FlagMessage("Hello Chris");
help me.!!!
i've no time to write one from scratch . so pls help me...
[to all lnstant article GURUS..!!.this is your turn to help me out of this..]
mind is everything.
|
|
|
|