Click here to Skip to main content
15,867,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: version change Pin
Purish Dwivedi14-Apr-09 21:08
Purish Dwivedi14-Apr-09 21:08 
AnswerRe: version change Pin
KarstenK14-Apr-09 21:29
mveKarstenK14-Apr-09 21:29 
QuestionRe: version change Pin
Purish Dwivedi14-Apr-09 21:59
Purish Dwivedi14-Apr-09 21:59 
QuestionC++ client Connectivy with asp.NET webservice Pin
shaina223114-Apr-09 17:38
shaina223114-Apr-09 17:38 
QuestionIs it possible to use SDL and GDI together? Pin
JeffPaine14-Apr-09 10:21
JeffPaine14-Apr-09 10:21 
AnswerRe: Is it possible to use SDL and GDI together? Pin
Cedric Moonen14-Apr-09 21:00
Cedric Moonen14-Apr-09 21:00 
GeneralRe: Is it possible to use SDL and GDI together? Pin
JeffPaine15-Apr-09 4:38
JeffPaine15-Apr-09 4:38 
Questionerror C2850: 'PCH header file' : only allowed at file scope; may not be in a nested construct Pin
chris_kuizon14-Apr-09 9:46
chris_kuizon14-Apr-09 9:46 
I get this error when I compile my win32 library here is my code below

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>



// TODO: reference additional headers your program requires here
class MemManage
{
public:
static void MmgMem(char cStr, char x, int strLenght);
}


// MemoryManagement.cpp : Defines the exported functions for the DLL application.
//
#include <stdio.h>
#include <string.h>
#include "stdafx.h"

MemManage::MmgMem(char cStr, char x, int strLenght)
{
memset(cStr,x,strLenght);
puts(cStr);
return 0;

}

then the error is pointing here

// stdafx.cpp : source file that includes just the standard includes
// MemoryManagement.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

// TODO: reference any additional headers you need in STDAFX.H
// and not in this file



Thanks,
Chris
AnswerRe: error C2850: 'PCH header file' : only allowed at file scope; may not be in a nested construct Pin
Stuart Dootson14-Apr-09 22:51
professionalStuart Dootson14-Apr-09 22:51 
QuestionAdobe Reader : #import "...\acrobat.tbl" : Getting Compile Error Pin
snacker214-Apr-09 9:43
snacker214-Apr-09 9:43 
AnswerRe: Adobe Reader : #import "...\acrobat.tbl" : Getting Compile Error Pin
snacker214-Apr-09 11:24
snacker214-Apr-09 11:24 
Questionapplication scripting advice Pin
Dave Calkins14-Apr-09 7:45
Dave Calkins14-Apr-09 7:45 
AnswerRe: application scripting advice Pin
CPallini14-Apr-09 9:24
mveCPallini14-Apr-09 9:24 
GeneralRe: application scripting advice Pin
Dave Calkins14-Apr-09 9:58
Dave Calkins14-Apr-09 9:58 
QuestionRe: application scripting advice Pin
CPallini14-Apr-09 22:55
mveCPallini14-Apr-09 22:55 
QuestionMFC static variable Pin
bhanu_850914-Apr-09 7:44
bhanu_850914-Apr-09 7:44 
QuestionRe: MFC static variable Pin
Eytukan14-Apr-09 8:25
Eytukan14-Apr-09 8:25 
AnswerRe: MFC static variable Pin
bhanu_850914-Apr-09 8:31
bhanu_850914-Apr-09 8:31 
AnswerRe: MFC static variable Pin
Iain Clarke, Warrior Programmer14-Apr-09 8:57
Iain Clarke, Warrior Programmer14-Apr-09 8:57 
GeneralRe: MFC static variable Pin
bhanu_850914-Apr-09 9:02
bhanu_850914-Apr-09 9:02 
GeneralRe: MFC static variable Pin
Iain Clarke, Warrior Programmer14-Apr-09 9:11
Iain Clarke, Warrior Programmer14-Apr-09 9:11 
GeneralRe: MFC static variable Pin
CPallini14-Apr-09 9:19
mveCPallini14-Apr-09 9:19 
AnswerRe: MFC static variable Pin
Nemanja Trifunovic14-Apr-09 9:02
Nemanja Trifunovic14-Apr-09 9:02 
AnswerRe: MFC static variable Pin
Rajesh R Subramanian14-Apr-09 20:24
professionalRajesh R Subramanian14-Apr-09 20:24 
Questiongpedit.msc from VC++ Pin
neelu777914-Apr-09 4:25
neelu777914-Apr-09 4:25 

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.