This site is no longer active and is available for archival purposes only. Registration and login is disabled.

"Including GapiDrawApplication.h more than once" #2


"Including GapiDrawApplication.h more than once" #2

Postby Mr.Prayer » Oct 18, 2002 @ 1:22pm

I've got difficultys with subj.
There are topic with description same problem here ().
But there is no solution.

This feature is very important for me.
Can i hope this problem will be solved in some of next versions?
User avatar
Mr.Prayer
pm Member
 
Posts: 25
Joined: Jul 4, 2002 @ 5:13pm


Postby Sam Nova » Oct 18, 2002 @ 3:03pm

Sam Nova
pm Member
 
Posts: 34
Joined: Mar 29, 2002 @ 11:02pm
Location: Switzerland


Postby Mr.Prayer » Oct 18, 2002 @ 4:47pm

User avatar
Mr.Prayer
pm Member
 
Posts: 25
Joined: Jul 4, 2002 @ 5:13pm


Postby iceboxman » Oct 18, 2002 @ 8:24pm

iceboxman
pm Member
 
Posts: 30
Joined: Aug 6, 2002 @ 11:06pm


Postby Hosed » Oct 18, 2002 @ 9:45pm

L. L. Goodwin<BR>Purveyor of Code<BR><A href="http://www.planettribes.com/hosed/">Hosed's House of Code</A>
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Sam Nova » Oct 18, 2002 @ 10:01pm

Sam Nova
pm Member
 
Posts: 34
Joined: Mar 29, 2002 @ 11:02pm
Location: Switzerland


Postby Hosed » Oct 19, 2002 @ 12:02am

Actually the whole point of #ifndefs and #pragma once is to alleviate those problems. You wouldn't get that error from your sample code.

The best way around this is just to include the header in another header (like stdafx) and then in that header be sure to wrap the includes with #ifndef or #pragma once. Then all the sub modules that need that header should just include the main header it's in.

I do this a lot in my projects by setting up large component headers that contain all the various classes and library headers for that major component that might be needed by the individual pieces.
L. L. Goodwin<BR>Purveyor of Code<BR><A href="http://www.planettribes.com/hosed/">Hosed's House of Code</A>
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Sam Nova » Oct 19, 2002 @ 12:43am

Sam Nova
pm Member
 
Posts: 34
Joined: Mar 29, 2002 @ 11:02pm
Location: Switzerland


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron