|
Did you know that the standards committee wants to allow makers of USB 1.1 products to rename their product to be USB 2.0 without adding support for the faster speeds? I am not sure how this will affect your results but I wanted to inform you of this. I'll try to find the links..
Here is part of the article on the register (www.register.com):
The trade group responsible for marketing the USB peripheral interface has the older given 1.1 specification a speed-boost -simply by changing its name.
Of course 1.1, superseded by the much speedier 2.0 specification, hasn't really got any faster. But the USB Implementors Forum (USB-IF) has decided that vendors can describe USB 1.1 ports as USB 2.0 ports.
Now they can describe the old specification as "Full Speed" and the newer, 2.0 specification as "High Speed." The Bangkok Post notes that this puts vendors in breach of EU trades description legislations. Whoops.
USB 2.0 was never intended to be branded with a version number. Instead, the USB-IF dubbed it 'Hi-speed USB'. USB 1.1 was to be known as plain old 'USB'. Manufacturers have nevertheless insisted on sticking with the version numbers, which is what seems to have cause all the trouble.
Apparently consumers were shunning older models.
"I now understand the new full-speed and high-speed naming, but what is going to happen when USB 3.0 is released? Is it going to be 'Really High Speed'?," asks an editorial in GeekNews
It's not the first bit of semantic ethnic cleansing we've seen this year. A handful of vendors have hijacked the 4G bandwagon, hoping that this will put them in the driving seat when the real 4G specification is passed.
Here is the link:
http://www.theregister.co.uk/content/54/31349.html[^]
John
|
|
|
|
|
You can use ::GetTopWindow(NULL) to get the HWND of the top window in the Z-order.
Niall
|
|
|
|
|
hi all
does ne1 know if you can write to the
HKEY_LOCAL_MACHINE
i can do it for HKEY_CURRENT_USER, but i cant seem to find
anything on writing to the local_machine
does ne1 know where i can locate some docs on it ?
im using visul studio .net
thanks
si
|
|
|
|
|
It is no different from HKEY_CURRENT_USER just open the root inside of HKEY_LOCAL_MACHINE.
John
|
|
|
|
|
If you can write to CurrentUser, you can also write to LocalMachine. Just use HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER...
Accessing LocalMachine is exactly the same as CurrentUser.....
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Assuming you have the according security rights to write to the registry,
maybe check the return values of the Reg...-functions.
jens
|
|
|
|
|
hello ppl
i have a TV tuner connected to my PC now what i want to do is that i want to inteface with the TV tuner card and find out how many channels are currently running basically what i have to do is grab an image from each channel and extract the logo out of each and every channel that the card is running so the part is about image processing but how do i start i mean i have to first interface with TV TUNER CARD. is there any SDK available or do i have to get a MANUFACTER independent SDK also the TV signals are transmitted via a coaxial cable that means i am not talking about interfacing with a device like a DV cam that is connected to the CARD but rather i am interested in the channels please help me out any help clue or anything would be appreciated
bye
|
|
|
|
|
DirectShow will do it nicely.
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"
|
|
|
|
|
|
http://www.msu.edu/~morri221/box.JPG[^]
Ok, thats my propertysheet dialog. I can get titles on the individual pages, but does anyone know how to get a title for the big blue space? Since there's not one major dialog, i can't figure out where to put it.
~keegster
*.*
cin >> knowledge;
|
|
|
|
|
Hi,
Assuming that you use CPropertySheet as a storage for your CPropertyPages, I think that a 'CPropertySheet'.SetTitle("My fancy Caption") will do.
Regards
G. Steudtel
|
|
|
|
|
Yep. that too
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"
|
|
|
|
|
You set that in the constructor of your property sheet class - as one of the parameters to the constructor of the CPropertySheet class (the first one, i think from memory).
Hope this helps,
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"
|
|
|
|
|
Edit: fixed! thanks guys.
|
|
|
|
|
I am using ADO to connect to MS_SQL database.
I need to retrieve the columns for a specific stored procedure in this database.
I tried the OpenSchema method with adSchemaProcedureColumns as QueryTpe but an error "Object or provider is not capable of performing requested operation" occurs.
These are the lines of codes that generates the error:
// Establish connection
ADODB::_ConnectionPtr MyConnection = NULL;
MyConnection .CreateInstance(__uuidof(ADODB::Connection));
MyConnection ->ConnectionString = _bstr_t (ConnectionString);
MyConnection ->Open(_bstr_t (L""),_bstr_t (L""), _bstr_t (L""), -1);
ADODB::_RecordsetPtr MySchema = NULL;
MySchema = MyConnection->OpenSchema(ADODB::adSchemaProcedureColumns);
How can i get rid of this error and retrieve the stored procedure.
Is there a solution to get rid of this error? or may be another method that can be used.
|
|
|
|
|
I don't know how/if you can do that with ADO. Since you're using sql server, there are a bunch of methods you can use to retrieve this information though.
You can use the system tables to retrieve information:-
select * from sysobjects o
join syscolumns c on c.id=o.id where o.name='p_YourProcName'
Alternatively, retrieve more wholesome information with the sp_help procedure.
sp_help 'p_YourProcName'
Personally, I prefer using the direct sql method with the system tables. For two reasons. 1) SQL Query Analyser colours the object names a pleasing shade of green, and 2) It creates potentially very lucrative future compatibility "problems".
Find more info about System Stored Procs in SQL2k at http://msdn.microsoft.com/library/en-us/tsqlref/ts_sp_00_519s.asp
Ta,
Jon
#include <beer.h>
|
|
|
|
|
I tried the above procedures but they retrieve the stored procedure parameters not the columns names.
|
|
|
|
|
i use stored procedures ,
you could try it like this, it works for me.
hope this helps
si
CString strSQL;
strSQL.Format("exec all_students '"+StartDate+"' , '"+EndDate+"'");
_variant_t vstrSQL;
vstrSQL.ChangeType(VT_BSTR);
vstrSQL = strSQL;
m_pDoc= GetDocument();
cpSet.CreateInstance(__uuidof(Recordset));
cpSet->Open(vstrSQL,m_pDoc->cpDb.GetInterfacePtr),adOpenDynamic,adLockOptimistic,adCmdText);
while(!cpSet->adoEOF)
{
cpSet->MoveNext();
}
cpSet->Close();
|
|
|
|
|
I guess this works fine but it retrieves the data from a stored procedure.
What i need is to retrieve the columns names and their type.
Any Ideas?!
|
|
|
|
|
add this into a stored procedure and the call it like i mentioned
in my answer before
DECLARE @TableName VarChar(50)
DECLARE @NumRows int
SELECT @NumRows = 3
SELECT @TableName = 'mytable'
SELECT COL_NAME(OBJECT_ID(@TableName),ORDINAL_POSITION) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = @TableName AND ORDINAL_POSITION <= @NumRows
hope this helps
si
|
|
|
|
|
I cannot change what is written inside the Stored Procedure, so i guess this way wont help me.
I found a solution but don't know if it is the best one. I exected the command of type Stored procedure and form the recordset returned i was wable to retrieve the fields information.
To overcome the retrieving of a long recordset i used "SET ROWCOUNT 1" before executing the command.
If anyone has better way plz tell..
Thanks
|
|
|
|
|
I don't use MS_SQL database but I have been using ADO a lot lately, and usually when you get an error such as yours, it means that you are sending the wrong request to the database (i.e. syntax is not correct, wrong parameters, etc). Hopefully, the other replies solve your problem, but I posted this message just in case they don't.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Hello,
Is CFile strong enough to allow a copy through a network connection (WAN) with some slow performance ?
Should I look to another solution ?
Thanks for your advices.
Pierre
|
|
|
|
|
Broker2003 wrote:
Is CFile strong enough to allow a copy through a network connection (WAN) with some slow performance ?
Yes, you shouldn't have any problems at all.
Hope this helps,
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"
|
|
|
|
|
Hi,
well i used CFiles to do copying in a network, that was very slow, (300MBytes in three hours!!) and it worked ok. The only one being upset was the customer, because the net installation was expensive. So I think it should be ok to use CFiles in WAN too.
Regards
G. Steudtel
|
|
|
|