|
it is defined as CArray <ccode ,="" ccode=""> m_IL
viva AMIGA
|
|
|
|
|
Ahhh the html is picking up the <> its
CArray <CCode,CCode> m_IL
viva AMIGA
|
|
|
|
|
I've just found this function but I'm having a problem getting a response from the ftp server. Parameter 2 in the documentation says it should be set as
CmdResponseType eResponse = CmdRespRead
to get a response back from the server, but anyway I try to change it to this it won't compile because it doesn't recognise what CmdResponseType is or it doesn't recognise CmdRespRead.
Has anyone had experience of how to get around this? Thanks for listening again
ps, the function is this one that I'm trying to use. Thanks
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/vclrfCFtpConnectionCommand.asp
|
|
|
|
|
Sorry, forgot to mention that I'm using VS.Net to make this, so its that version of MFC thats being used.
So far all I've discovered that the CmdResponseType is defined as an enum in the afxinet.h file, but I can't for the life of me make any use of it at all
Thanks for any help I may get
|
|
|
|
|
Hi... I have a problem.
How to get the scrollbar of a CListCtrl and change its background color ?
|
|
|
|
|
Hi:
When my application start, it allocated some memory from private heap and freed them later,but windows didn't collect them.Windows report that those memory blocks were in use.So, yy question is:
How to : let system collect the memory that has already been freed by application
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
you can try _heapmin
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
See my MemWatcher[^] tool.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
I'm using a library and I need to redirect function calls in that library. What I mean is that in the library, there are calls to a function and I want the calls to be calls of another function. The problem is that I can't include that file, where those new functions are to the library and I can't modify that library very much.
So, I'm using extern and define in the files of the library to solve the problem and I'm able to make the library without compilation/linking errors. The problem is how to link/compile/include the library with my application? Now I keep getting LNK2001 errors telling me that the library doesn't find the definitions of those functions. I'm using makefile and in there I have linked the object file that contains the new functions to be used and also the library. That is apparently not enough. I even tried putting the object file before the library when linking.
-Janetta
|
|
|
|
|
Maybe you're misxing C and C++ styles of linking. Make sure the portion of library using the external function and the object code providing it are the same language. You can also use extern "C" in both parts if the languages are different.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
But of course that was the problem
Thanks!
-Janetta
|
|
|
|
|
Hi,
In application, i need write the some binary data into file.
But the data cannnot be represented by the data types, such as
unsigned char, unsigned short and so on.
My problem is:
i have 1 bit(value 1) for number of 45, 1 bit (value 0) for number of 40, and 1 bit(value 1) for number of 45, and finally 1 bit (value 0)for number of 2728. Now i want to write these single bit into a file. How can i define the buffer (in types) for dealing with above bits?
How to do this?
Thanks in advance!
|
|
|
|
|
I don't quite understand your question, but seems you'll have to use bitfields. Look for some tutorials on bitfields to get started.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
This is a simple question regarding registering a DLL that spurned from a current article about plugins:
http://www.codeproject.com/dll/PlugIn.asp
I thought that only COM DLLs needed registering with the OS. Regular DLLs
can be used as is, and registering is pointless. Am I completely wrong?
I wonder if someone would explain this to me as it has been bugging me for a while.
chin
Happy, Happy, Joy, Joy.
|
|
|
|
|
Rchin wrote:
Regular DLLs can be used as is, and registering is pointless. Am I completely wrong?
You're right. I've searched the article text, and there's no mention about 'registering' the plugin dlls. Did I miss something?
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
One of the article's response thread entitled 'Registering a dll in Windows 2000' got me thinking on a tangent about registering DLLs in general.
I just wanted someone to confirm (or deny) that the registration process for DLLs is only applicable to COM components with the DLL file extension.
One of the most frequently asked question around my office when installing a piece of software is 'Have you registered this/that DLL'. I am convinced that this is not a necessary practice for regular DLL libraries.
thanx for the reply.
chin
|
|
|
|
|
You are correct. Anything to do with COM typically should be registered. There are ways to deal with COM without registering, but it's more problems then it's worth.
COM files come in many flavors however: dll,ocx,exe. Actually, you could call the file anything you want. But it must export (some) the functions DllRegisterServer, DllCanUnloadNow, DllGetClassObject, DllUnregisterServer.
Regular DLL's can't be registered since they wouldn't have those functions.
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Thank you.
That helps.
chin
|
|
|
|
|
I am writing a simple DOS applicaion that is using ADO to connect to data source. The COM libraries are initializing successfully and the connection to database by connection pointer is also established.
But when i try to run a "query" using connection pointer, the following exception is raised:
Error:800a0e81.
ErrorMessage:Unknown error 0x800A0E81.
Source:ADODB.Connection.
Description:Operation cannot be performed while connecting asynchronously..
Can any one tell me why this happens ???
Here is my code:
_bstr_t bstrQuery("SELECT * FROM Customers");
_variant_t vRecsAffected(0L);
_RecordsetPtr pRecordSet;
pRecordSet = m_pConnection->Execute(bstrQuery, &vRecsAffected, adOptionUnspecified);
|
|
|
|
|
Just a stab in the dark, but you might need to create an instance of the
Recordset object
_RecordsetPtr pRecordset = NULL;
pRecordset.CreateInstance(__uuidof(Recordset));
chin
|
|
|
|
|
|
Your original error message mentions something about an asyncronous connection. This may be the root of all your evils
An asyncronous ADO connection requires a lot more construction code that
your entire program may be missing.
I have done a quick test and it seems to work ok.
I've provided the console function below for you to look at.
void ConnectAndDisplay()
{
CString strSQL;
_variant_t vtAffected;
_variant_t vtField;
_ConnectionPtr pConnection = NULL;
_RecordsetPtr pRecordset = NULL;
strSQL = "Select [Name] From [CustomerTable]";
try
{
TESTHR( pConnection.CreateInstance(__uuidof(Connection)) );
TESTHR( pRecordset.CreateInstance(__uuidof(Recordset)) );
TESTHR( pConnection->Open( _bstr_t(_T("File \\MyConnection.udl;")), "", "", NULL ) );
pRecordset = pConnection->Execute((LPCTSTR)strSQL, &vtAffected,adOptionUnspecified);
while( pRecordset->ADOEOF != VARIANT_TRUE )
{
_variant_t vtField;
CString strField;
vtField = pRecordset->Fields->GetItem("Name")->Value;
ASSERT( vtField.vt == VT_BSTR );
strField = vtField.bstrVal;
cout<< (LPCTSTR)strField << endl;
pRecordset->MoveNext();
}
pConnection->Close();
}
catch(_com_error e)
{
CString strMessage;
strMessage.Format("Error: %s\n", e.ErrorMessage());
AfxMessageBox(strMessage);
}
return;
}
Chin
|
|
|
|
|
This code must be incomplete. We don't see the code for creating the Connection object.
Also, you may want to work only with the recordset object, unless you want to reuse the connection for other queries.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Hello!
As far as I know there is a macro or something like that to get single text-items which are defined in the string-table resoure. I haven't found anything at msdn, but I know there is a macro which is able to get the text from the string table via the ID like GetDlgItem(ID).
Does anybody know what I mean and please can anybody help me? I'm getting crazy...
thanks in advance
fl
I don't want achieve immortality through my work - I want achieve it through not dying - Woody Allen
|
|
|
|
|
LoadString .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|