The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 GetFontName function

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rlewis Posted - 09/22/2005 : 4:01:05 PM
Origin Version 7.5Pro-SR5:
Operating System:Win-Xp-Pro

The OC compiler does not like following code snippet (lifted from utilities.h)

void test_GetFontName()
{
string str;
str = GetFontName(SYSTEM_FONT);
out_str(str);
}
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 09/22/2005 : 4:06:18 PM
Hi Ruthven,

That is a documentation error...need to specify the second function argument - there is no default value.

So please change code to:


void test_GetFontName()
{
string str;
str = GetFontName(SYSTEM_FONT, NULL);
out_str(str);
}



Easwar
OriginLab


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000