Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Spint control Pin
_AnsHUMAN_ 22-Sep-06 21:01
_AnsHUMAN_ 22-Sep-06 21:01 
GeneralRe: Spint control Pin
RockyJames22-Sep-06 23:56
RockyJames22-Sep-06 23:56 
GeneralRe: Spint control Pin
Hamid_RT23-Sep-06 8:56
Hamid_RT23-Sep-06 8:56 
Question[DESPERATED]Linking probs... Pin
Lord Kixdemp22-Sep-06 14:10
Lord Kixdemp22-Sep-06 14:10 
AnswerRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson22-Sep-06 14:28
Jörgen Sigvardsson22-Sep-06 14:28 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp22-Sep-06 14:45
Lord Kixdemp22-Sep-06 14:45 
GeneralRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson22-Sep-06 15:18
Jörgen Sigvardsson22-Sep-06 15:18 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp22-Sep-06 16:52
Lord Kixdemp22-Sep-06 16:52 
FINALLY I'm seeing some light with this! Big Grin | :-D Big Grin | :-D

Yes - you made perfect sense on that... I had it completely different... Blush | :O
pwnz was fixed, but now, what if my "real" variables are on a class or a namespace? I have a namespace called MapHandling that has all the stuff related to maps, so I have a tile structure, an array instance of that, and a function... (This is accessed by the core Game class.) How do I do that? Here's what I did:

MapHandling.h:
#ifndef _MAPHANDLING_H_<br />
#define _MAPHANDLING_H_<br />
<br />
#include "Includes.h" // C++ and SDL headers<br />
<br />
namespace MapHandling<br />
{<br />
    struct TileFile<br />
    { <struct goes here> };<br />
<br />
	extern TileFile Tilesets[1];<br />
	extern void LoadTiles();<br />
};<br />
<br />
#endif // _MAPHANDLING_H_<br />


MapHandling.cpp:
#include "MapHandling.h"<br />
<br />
MapHandling::TileFile MapHandling::Tilesets[1];<br />
<br />
void MapHandling::LoadTiles()<br />
{ <func goes here> }<br />


Anything wrong? Thanks!

Jörgen Sigvardsson wrote:
Good luck with your project!

Thanks! Big Grin | :-D

Windows Calculator told me I will die at 28. Frown | :(

GeneralRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson22-Sep-06 22:33
Jörgen Sigvardsson22-Sep-06 22:33 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp23-Sep-06 12:08
Lord Kixdemp23-Sep-06 12:08 
GeneralRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson23-Sep-06 12:11
Jörgen Sigvardsson23-Sep-06 12:11 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp23-Sep-06 12:33
Lord Kixdemp23-Sep-06 12:33 
AnswerRe: [DESPERATED]Linking probs... Pin
ThatsAlok22-Sep-06 17:35
ThatsAlok22-Sep-06 17:35 
Questionwhat is the use of "pOldPen" here? Pin
bloodwinner22-Sep-06 11:16
bloodwinner22-Sep-06 11:16 
AnswerRe: what is the use of "pOldPen" here? Pin
David Crow22-Sep-06 11:23
David Crow22-Sep-06 11:23 
GeneralRe: what is the use of "pOldPen" here? Pin
bloodwinner22-Sep-06 11:30
bloodwinner22-Sep-06 11:30 
GeneralRe: what is the use of "pOldPen" here? [modified] Pin
Rob Caldecott22-Sep-06 12:21
Rob Caldecott22-Sep-06 12:21 
GeneralRe: what is the use of "pOldPen" here? Pin
Jörgen Sigvardsson22-Sep-06 14:25
Jörgen Sigvardsson22-Sep-06 14:25 
GeneralRe: SaveState()? Pin
PJ Arends22-Sep-06 16:07
professionalPJ Arends22-Sep-06 16:07 
GeneralRe: SaveState()? Pin
Jörgen Sigvardsson22-Sep-06 22:27
Jörgen Sigvardsson22-Sep-06 22:27 
GeneralRe: SaveState()? Pin
Rob Caldecott22-Sep-06 23:47
Rob Caldecott22-Sep-06 23:47 
GeneralRe: SaveState()? Pin
Hamid_RT23-Sep-06 8:57
Hamid_RT23-Sep-06 8:57 
QuestionWhich slider is active in dialog? Pin
Oliver12322-Sep-06 11:10
Oliver12322-Sep-06 11:10 
AnswerRe: Which slider is active in dialog? Pin
David Crow22-Sep-06 11:21
David Crow22-Sep-06 11:21 
GeneralRe: Which slider is active in dialog? Pin
Oliver12322-Sep-06 11:37
Oliver12322-Sep-06 11:37 

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.