Visual C++ Team in the Cabana


Members of the Visual C++ team are in Cabana 5/6 answering questions about Visual C++. Stop by if you’re here at TechEd in San Diego and say hi.


Comments (8)

  1. Anastasia says:

    Hi,

    I am still Student and would like to know, if VC++ and Vc++.NET are thesame? I mean if I can compile, build etc, just normal things in C++, without web-comlications. I am asking it, becoase I noteced by using (VC++ 6) such std libs as <fstream> and <iostream> a lot of warning coming from the iplimentation of this libs, where is programming really "not cleer". Thanks a lot for your atencion!

    best regards

    anastasia

  2. Ashok says:

    Hi all,

    I am a beginner to VC++. When I execute my first program to display a message window, I get the following linker error.

    Program:

    #include<windows.h>

    int _stdcall WinMain(HINSTANCE i, HINSTANCE j, LPSTR k, int l)

    {

    MessageBox(0,"Hi","Title",0);

    return(0);

    }

    Error:

    error LNK2001: unresolved external symbol _main

    fatal error LNK1120: 1 unresolved externals

    Looks like some settings need to be done in VC++ before starting off with programs. If so, please let me know the settings. I am unable to find it in any books.

    Thanks in advance,

    Ashok

  3. Ming yurui says:

    Hi,

    I am a student in china and a beginer to c++,I got a problem when excuted linking of this programme:

    #include <stdlib.h>

    #include <iostream.h>

    #include <stdio.h>

    #include <winsock2.h>

    void main(int args,char** argv)

    {

    WSADATA data;

    SOCKET lSock,aSock;

    SOCKADDR_IN sockaddr;

    char c[]={"How are you!"};

    int length=12;

    int port=2000;

    if(WSAStartup(MAKEWORD(2,2),&data)!=0)

    {

    cerr<<"Load socket failed!"<<endl;

    exit(1);

    }

    lSock=socket(AF_INET,0,0);

    if(lSock==SOCKET_ERROR)

    {

    cerr<<"Create socket failed!"<<endl;

    exit(1);

    }

    sockaddr.sin_addr.s_addr=htonl(0);

    sockaddr.sin_family=AF_INET;

    sockaddr.sin_port=htons(port);

    if(bind(lSock,(SOCKADDR *)&sockaddr,sizeof(SOCKADDR_IN))==SOCKET_ERROR)

    {

    cerr<<"Bind socket failed!"<<endl;

    exit(1);

    }

    //The left of the programme was omitted,

    //all of that forms a Server Model applied

    //to the net.

    }

    When I compile the programme, There is no

    wrong,but linked,The error message printed

    in the output window like this:

    error LNK2001: unresolved external symbol

    (such as _closesocket@6,…,_socket@12,_WSAStartup)

    I try my best to solve the problem but failed,

    I am grateful to your help.and my email is

    mingyurui@sina.com

    Thank you!

  4. Ahmed M. Qusoom says:

    I’m study C++ one year age. But I Can’t understand API

  5. azer bulbul says:

    #include <iostream>

    #include <cconio>

    int main()

    {

    char ad;

    cout<<"ad gir";

    cin>>ad;

    cout<<"vhar"<<ad<<endl;

    getch();

    return 0;

    }

  6. Create and Modify a CHM file says:

    I am working on a project. I have to convert some files ( perhaps HTML,MHTML,Doc,Txt etc.) into a single CHM,and also, the User can reload the CHM that had been generated for some modification. I don’t even konw how to make and modify a CHM file using MFC. I am using Visual C++ 6.0. I hope some one could give a example. It could just cover only HTML2CHM and reload HTML from CHM for simple.

    Thank you very much!

  7. I am trying tutorial on "Internet Explorer Toolbar (Deskband)’By Erik Thompson .

    I m getting error:

    Linking…

    Creating library Debug/FountainTool.lib and object Debug/MotleyFool.exp

    StockBar.obj : error LNK2001: unresolved external symbol "public: void __thiscall CEditQuote::SetBand(class CStockBar *)" (?SetBand@CEditQuote@@QAEXPAVCStockBar@@@Z)

    Debug/MotleyFool.dll : fatal error LNK1120: 1 unresolved externals

    Error executing link.exe.