By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,332 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,332 IT Pros & Developers. It's quick & easy.

'CString' : undeclared identifier

P: n/a

Hi

I'm newbie with C++/ADO and I'm (trying) to develop a littl app with
VC++ 6 that connects with MSDE using ADO.

At compile time I receive a lot of messages that say: 'CString' :
undeclared identifier. Surely, I've not the corresponding include
statement, but...which is the include I should place there ?

Now I've:

#include <windows.h>
#include <stdio.h>
#include <string>
#include <iostream.h>
#include <sstream>
Which one should I add ?

Thanks in advance

J
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Put your cursor over the text of CString and press
the "F1" key. MSDN Help will show you the info
available to CString, including the ".h" include file
it's declared in.

"Javier" <jl****@manresa.net> schrieb im Newsbeitrag
news:cu**********@news.ya.com...

Hi

I'm newbie with C++/ADO and I'm (trying) to develop a littl app with VC++
6 that connects with MSDE using ADO.

At compile time I receive a lot of messages that say: 'CString' :
undeclared identifier. Surely, I've not the corresponding include
statement, but...which is the include I should place there ?

Now I've:

#include <windows.h>
#include <stdio.h>
#include <string>
#include <iostream.h>
#include <sstream>
Which one should I add ?

Thanks in advance

J

Jul 23 '05 #2

P: n/a
Jens Marder wrote:
Put your cursor over the text of CString and press
the "F1" key. MSDN Help will show you the info
available to CString, including the ".h" include file
it's declared in.

Thanks for your reply but I've not MSDN installed (and no CD)...

Any other idea ?

Thanks in advance

J
Jul 23 '05 #3

P: n/a

Javier wrote:
Jens Marder wrote:
Put your cursor over the text of CString and press
the "F1" key. MSDN Help will show you the info
available to CString, including the ".h" include file
it's declared in.

Thanks for your reply but I've not MSDN installed (and no CD)...

Any other idea ?

Thanks in advance

J


Try afxwin.h

Hope this helps,
-shez-

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.