CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Aug 2006
    Posts
    144

    [solved]29: error: ‘string’ does not name a type

    Hi,

    when try to compile my program I get the following message for this header file

    Code:
    #ifndef SENDSMS_H
    #define SENDSMS_H
    
    #include "ui_sendSMS.h"
    #include <string>
    
    
    class sendSMS : public QMainWindow, public Ui::MainWindow{
    	Q_OBJECT
    
    public:
    	sendSMS (QMainWindow *parent = 0);
    	~sendSMS();
    private slots:
    	void slotClose();
    	void calcChar();
    	void slotSend();
    	QString clean_string(QString);
    	QChar get_param(QString, int);
    	QString get_param_value(QString, int);
    	void process_line(QString);
    	void read_config_file();
    
    private:
    	int maxChar;
    	QString param_filename;
    	string username;
    	string password;
    	string sourceno;
    	
    };
    
    #endif
    Ignore all the "Q" things, thats something Qt specific. int works fine, but not string. I have the string header included. I guess it is rather simple what is wrong....

    Thanks,
    J.
    Last edited by joebar; August 26th, 2007 at 04:12 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured