User Profile

Collapse

Profile Sidebar

Collapse
Jan Spatina
Jan Spatina
Last Activity: Aug 31 '07, 05:56 AM
Joined: Mar 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jan Spatina
    replied to Compiling QT program with VS6
    in C
    Thanks Banfa, you were right. Problem was in wrong versing of QT installed. It was "open source version". I reinstalled to "Academic/research" and now everything works fine.
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    replied to Compiling QT program with VS6
    in C
    There are no lib's in my installation. There only *.a and *.prl files. I am not sure if they can be somehow linked to VS?

    -jan
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    started a topic Compiling QT program with VS6
    in C

    Compiling QT program with VS6

    Hi,
    I've got problems when trying to compile simple hello world program in vs6 using
    qt3.4.0.
    it's code is:

    #include <qapplication.h >
    #include <qpushbutton. h>

    int main( int argc, char **argv )
    {
    QApplication a( argc, argv );
    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );
    hello.show();
    ...
    See more | Go to post

  • Jan Spatina
    replied to parsing internet page using C
    in C
    Hi, this is the code:
    Code:
     #include <iostream>
    #include <string>
    #include <algorithm>
    #include <fstream>
    #include <windows.h>
    
    using namespace std;
    
    int t_sockets::GetWeb()
    {
        #define BUFSIZE 1000000
        WORD wVersionRequested = MAKEWORD(1,1); 
        WSADATA data;                           // library
        string text("GET
    ...
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    replied to parsing internet page using C
    in C
    Hi,
    you need to establish http connection using sockets, then send something like "GET /web/index.html HTTP/1.0\nhost: www.sapik.cz\n\ n" and get the html code in reply and parse. This won't work for php sites. Maybe I can write some example if this is what you need.

    -jan-...
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    replied to enum - get key from char value
    in C
    Thanks guys, that helped.
    jan...
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    replied to enum - get key from char value
    in C
    Any examples?

    thanks...
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    replied to enum - get key from char value
    in C
    Yes, let's make it simplier:

    I have only this:

    int sun = 1;
    int mon = 2;
    int tue = 3;

    char* day = "mon"; .. this might be given by user input during run of program

    I want to print something like:

    cout<<"number of "<<day<< " is: "<< ? - what here - ?

    -thanks-
    See more | Go to post

    Leave a comment:


  • Jan Spatina
    started a topic enum - get key from char value
    in C

    enum - get key from char value

    Hello,
    I have this type:

    enum days{sun = 1, mon, tue, wed, thu, fri, sat};

    and I have char in which is stored a name of the day:

    char* day = "wed";

    How can I recieve number of the day?
    I tried something like:

    int number = days(*day);
    cout<<number;

    but this won't work :(
    thanks
    See more | Go to post
No activity results to display
Show More
Working...