Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Win32 API

3 posts in Objects Last posting was on 2005-06-04 15:30:26.0Z
Ahmed Alhowaimel Posted on 2005-06-04 10:46:50.0Z
Sender: 7b62.42a185d9.1804289383@sybase.com
From: Ahmed Alhowaimel
Newsgroups: sybase.public.powerbuilder.objects
Subject: Win32 API
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42a18695.7b66.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 4 Jun 2005 03:46:45 -0700, 10.22.241.42
Lines: 11
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 Jun 2005 03:46:48 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 Jun 2005 03:46:50 -0700
X-Trace: forums-1-dub 1117882010 10.22.108.75 (4 Jun 2005 03:46:50 -0700)
X-Original-Trace: 4 Jun 2005 03:46:50 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8437
Article PK: 735660

Hi There ;

I want to use win32 api in my powerbuilder applications , so
i need to any one tell me how can i use win32 api ? i i need
to know a good reference for win32 api ( please no microsoft
site ) ?
i need some one to tell me what hdc stand for ? i how i get
it within powerbuilder ?

My Best Regards
Ahmed Alhowaimel


Jason 'Bug' Fenter Posted on 2005-06-04 14:59:32.0Z
From: Jason 'Bug' Fenter <fenterbug@hotmail.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Win32 API
References: <42a18695.7b66.1681692777@sybase.com>
In-Reply-To: <42a18695.7b66.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: pool-71-96-184-73.dfw.dsl-w.verizon.net
X-Original-NNTP-Posting-Host: pool-71-96-184-73.dfw.dsl-w.verizon.net
Message-ID: <42a1c1d4$1@forums-1-dub>
Date: 4 Jun 2005 07:59:32 -0700
X-Trace: forums-1-dub 1117897172 71.96.184.73 (4 Jun 2005 07:59:32 -0700)
X-Original-Trace: 4 Jun 2005 07:59:32 -0700, pool-71-96-184-73.dfw.dsl-w.verizon.net
Lines: 31
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8438
Article PK: 735661


Ahmed Alhowaimel wrote:
> Hi There ;
>
> I want to use win32 api in my powerbuilder applications , so
> i need to any one tell me how can i use win32 api ? i i need
> to know a good reference for win32 api ( please no microsoft
> site ) ?
> i need some one to tell me what hdc stand for ? i how i get
> it within powerbuilder ?
>
> My Best Regards
> Ahmed Alhowaimel

Here's an overview where you can get the ideas behind it:
http://pbdj.sys-con.com/read/42563.htm

(Thanks again, Regan Sizer!)


Basically, Windows APIs are declared as external functions. To declare
it, you have to know what PowerBuilder's data type is equivalent to each
C data type. No, I don't know what "hdc" is, but if it's a handle to
something then it's probably (maybe?) a ULong.

--
Some informative links:
news:news.announce.newusers
http://members.fortunecity.com/nnqweb/
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html


Roy Kiesler [TeamSybase] Posted on 2005-06-04 15:30:26.0Z
From: "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
Reply-To: SPAM_FRE_roy.kiesler@teamsybase.com
Organization: TeamSybase
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Win32 API
References: <42a18695.7b66.1681692777@sybase.com> <42a1c1d4$1@forums-1-dub>
In-Reply-To: <42a1c1d4$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: c-24-4-166-164.hsd1.ca.comcast.net
Message-ID: <42a1c90f$1@forums-2-dub>
X-Original-Trace: 4 Jun 2005 08:30:23 -0700, c-24-4-166-164.hsd1.ca.comcast.net
Lines: 33
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 Jun 2005 08:30:25 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 Jun 2005 08:30:26 -0700
X-Trace: forums-1-dub 1117899026 10.22.108.75 (4 Jun 2005 08:30:26 -0700)
X-Original-Trace: 4 Jun 2005 08:30:26 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8439
Article PK: 735662


Jason 'Bug' Fenter wrote:
> Ahmed Alhowaimel wrote:
>
>> Hi There ;
>>
>> I want to use win32 api in my powerbuilder applications , so
>> i need to any one tell me how can i use win32 api ? i i need
>> to know a good reference for win32 api ( please no microsoft
>> site ) ?
>> i need some one to tell me what hdc stand for ? i how i get
>> it within powerbuilder ?
>>
>> My Best Regards
>> Ahmed Alhowaimel
>
>
> Here's an overview where you can get the ideas behind it:
> http://pbdj.sys-con.com/read/42563.htm
>
> (Thanks again, Regan Sizer!)
>
>
> Basically, Windows APIs are declared as external functions. To declare
> it, you have to know what PowerBuilder's data type is equivalent to each
> C data type. No, I don't know what "hdc" is, but if it's a handle to
> something then it's probably (maybe?) a ULong.
>

Bug is right -- HDC is a handle to a device context, commonly used in
drawing or printing (GDI) scenarios.

--
Roy