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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 GetFontName function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rlewis

Canada
253 Posts

Posted - 09/22/2005 :  4:01:05 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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);
}

easwar

USA
1965 Posts

Posted - 09/22/2005 :  4:06:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000