Click here to Skip to main content
15,890,670 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why is my DoModal call creating a box on my taskbar? Pin
bsummers14-Jul-05 6:14
bsummers14-Jul-05 6:14 
GeneralRe: Why is my DoModal call creating a box on my taskbar? Pin
enigmavariant14-Jul-05 6:26
enigmavariant14-Jul-05 6:26 
GeneralRe: Why is my DoModal call creating a box on my taskbar? Pin
bsummers14-Jul-05 6:36
bsummers14-Jul-05 6:36 
AnswerRe: Why is my DoModal call creating a box on my taskbar? Pin
David Crow14-Jul-05 6:28
David Crow14-Jul-05 6:28 
AnswerRe: Why is my DoModal call creating a box on my taskbar? Pin
bsummers14-Jul-05 6:37
bsummers14-Jul-05 6:37 
QuestionHow can I open a web browser with POST in c++ Pin
chemadefoz14-Jul-05 5:00
chemadefoz14-Jul-05 5:00 
AnswerRe: How can I open a web browser with POST in c++ Pin
ThatsAlok14-Jul-05 5:06
ThatsAlok14-Jul-05 5:06 
Generalerrors C2065, C2501 and C2143 Pin
caykahve14-Jul-05 3:58
caykahve14-Jul-05 3:58 
Hi,

I'm trying to use some of the functions I was using in an MFC application in a console application. I've created a console application with Visual Studio.Net 2003.

Looks like I am missing some header(s). however i cannot find out which. I have added and tried all the header files i can think of.

These are my include files:
//----------------------------------------
#pragma once

#include <fstream>
#include <string>
#include <iostream>
#include <winnt.h>
#include <CommCtrl.h>
#include <windef.h>
#include <PrSht.h>
#include <initguid.h>
#include <stdio.h>
#include <windows.h>
#include <setupapi.h>
#include <devguid.h>
#include <regstr.h>

// my include files
// ...

#include "stdafx.h"

using namespace std;
//----------------------------------------

output:
*******************************************
... \Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\SetupAPI.h(56) : error C2143: syntax error : missing ';' before ...
... \Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\CommCtrl.h(30) : error C2501: 'HRESULT' : missing storage-class or type specifiers
... \Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\PrSht.h(97) : error C2065: 'CALLBACK' : undeclared identifier
... \Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\PrSht.h(97) : error C2501: 'UINT' : missing storage-class or type specifiers
...
...
*******************************************
It looks so strange.
I will be very happy if someone can suggest a solution.

Thanks in advance
GeneralRe: errors C2065, C2501 and C2143 Pin
Cedric Moonen14-Jul-05 4:13
Cedric Moonen14-Jul-05 4:13 
GeneralRe: errors C2065, C2501 and C2143 Pin
caykahve14-Jul-05 4:50
caykahve14-Jul-05 4:50 
GeneralRe: errors C2065, C2501 and C2143 Pin
Nemanja Trifunovic14-Jul-05 4:50
Nemanja Trifunovic14-Jul-05 4:50 
GeneralRe: errors C2065, C2501 and C2143 Pin
David Crow14-Jul-05 4:56
David Crow14-Jul-05 4:56 
GeneralRe: errors C2065, C2501 and C2143 Pin
Cedric Moonen14-Jul-05 5:04
Cedric Moonen14-Jul-05 5:04 
GeneralRe: errors C2065, C2501 and C2143 Pin
David Crow14-Jul-05 5:09
David Crow14-Jul-05 5:09 
GeneralRe: errors C2065, C2501 and C2143 Pin
Cedric Moonen14-Jul-05 5:41
Cedric Moonen14-Jul-05 5:41 
GeneralRe: errors C2065, C2501 and C2143 Pin
David Crow14-Jul-05 6:26
David Crow14-Jul-05 6:26 
GeneralRe: errors C2065, C2501 and C2143 Pin
David Crow14-Jul-05 4:59
David Crow14-Jul-05 4:59 
Generalneed help about p2p file transfer Pin
yanping wang14-Jul-05 3:46
yanping wang14-Jul-05 3:46 
GeneralRe: need help about p2p file transfer Pin
rocky_pulley14-Jul-05 4:26
rocky_pulley14-Jul-05 4:26 
GeneralRe: need help about p2p file transfer Pin
ThatsAlok14-Jul-05 5:03
ThatsAlok14-Jul-05 5:03 
GeneralRe: need help about p2p file transfer Pin
yanping wang14-Jul-05 7:12
yanping wang14-Jul-05 7:12 
GeneralMenu in dialogs! Pin
Manikandan14-Jul-05 2:14
Manikandan14-Jul-05 2:14 
GeneralRe: Menu in dialogs! Pin
Jose Lamas Rios14-Jul-05 3:08
Jose Lamas Rios14-Jul-05 3:08 
GeneralRe: Menu in dialogs! Pin
Manikandan14-Jul-05 3:16
Manikandan14-Jul-05 3:16 
GeneralRe: Menu in dialogs! Pin
Jose Lamas Rios14-Jul-05 4:10
Jose Lamas Rios14-Jul-05 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.