Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetLastError Win32 API

0 views
Skip to first unread message

Dani Pear

unread,
Nov 16, 1997, 3:00:00 AM11/16/97
to

hi,
How to know about EVERY Win32 API function, what error codes the function
can set ?
Thanx.

--
- Dani


Chris Marriott

unread,
Nov 16, 1997, 3:00:00 AM11/16/97
to

In article <64n5ba$56i$1...@news.ibm.net.il>, Dani Pear <pe...@ecitele.com>
writes

>How to know about EVERY Win32 API function, what error codes the function
>can set ?

The range of possible error codes a function can fail with is virtually
unlimited, and would be just about impossible to document. You shouldn't
need to know all the ways in which a function can fail - simply call
"GetLastError" and it'll tell you which error a function has generated.
If you want to tell the user the reason for the error, "FormatMessage"
will convert an error code into a "text string".

Chris

----------------------------------------------------------------
Chris Marriott, Microsoft Certified Solution Developer.
SkyMap Software, U.K. e-mail: ch...@skymap.com
Visit our web site at http://www.skymap.com

Stephen Robbins

unread,
Nov 22, 1997, 3:00:00 AM11/22/97
to

In article <64n5ba$56i$1...@news.ibm.net.il>, pe...@ecitele.com says...
> hi,

> How to know about EVERY Win32 API function, what error codes the function
> can set ?
> Thanx.
>
You can look in winerror.h in the SDK files. C++ 5.0 also includes a
list in the HTML help files.

Steve R.

GUJUN

unread,
Nov 26, 1997, 3:00:00 AM11/26/97
to

Hi,
How can register the Grid32.OCX in the Window95 where the Grid32.ocx is not
registed?

Thanks


Andy Duplain

unread,
Nov 27, 1997, 3:00:00 AM11/27/97
to

If you have regsvr32.exe on the system, you can use that. Otherwise I think
it's probably redistributable (you'll have to check) and can be put on the
system to do the job.

Just type "regsvr32 grid32.ocx" in the .ocx's directory.

--
Andy Duplain, Syntegra, Brighton, UK.
*** When replying via e-mail, replace "nospam" with "syntegra" ***
GUJUN wrote in message <01bcfa92$033c8b80$16c809c0@gujunpc>...

PJ Naughter

unread,
Nov 27, 1997, 3:00:00 AM11/27/97
to

On 26 Nov 1997 18:31:08 GMT, "GUJUN" <gu...@urwpp.de> wrote:

>Hi,
>How can register the Grid32.OCX in the Window95 where the Grid32.ocx is not
>registed?
>
>Thanks
>

Use Regsvr32. The source code for it is included with most MS
development tools.

0 new messages