Win32 API samples

This collection of code snippets used to be hosted on www.global-shared.com.
It is an old collection: it all began in 1996 or 1997, when Progress 8 was new and many of us were still using Windows 3.1 !!
Unlike wine or paintings, program code doesn't get better when it ages. You can find fragments that can be improved because Microsoft continuously expands their API, or are outdated because Progress has added features to the ABL so we don't need to use the WIN32 API anymore.


Marginal Tiete - Game in progress

Greetings,
I made this game to emulate Atari's Grand Prix.
You can use this code to view how to use dynamic objects and other functions like includes, and methods.

Enjoy :D

Best regards,
Jaison Antoniazzi


Library QuickPDF

Hi,

I am upset with trying to use functions from this library in OE 10.2A (as external). QuickPDF is for making PDF documents.

Have you anybody experience with it?

The another way how to use it is through user's own dll library making in .NET (C#, C++) but I have no chance with success to call own defined functions in my library.

My tries end with message 'Could not find the entrypoint (3260)'

So please could you give me a help hand with a sample how to use own created library in OE?

((using 'user32.dll' and many other same kind is not problem))


How to set duplex mode to printer using WinApi function

Hi all,

Counld you please tell me how i can set duplex mode to default printer and check this mode on/off

Thanx in advance


How to get the printer port number using windows API call

Hi all,

Using the Windows API call, could you please tell us how to get the port number of the printer. Because while setting the value of activeprinter method/property of MS word 2007 it requires "printer name" on "port number".
The port number which we are trying to get by this method is equivalent to 'Session:printer-port"

Thanks,
Ashwath


Ubuntu 10.10 Maverick Meerkat

Ubuntu 10.10 Maverick Meerkat

Need OpenEdge on-line certification

Hi,

Is there any on-line certification (free/pay) for OpenEdge any varion?

Thanks,
Sridevi Stalin


How to add a print button(using win32 api in c)?

Hi,
If any one give me the suggestion for adding a printer button on dialog box.

please give me your constructive feedback.


How to do a post using the navigate method of web browser control?

I am trying to open a URL using webbrowser control by doing a HTTP POST with some xml data to the URL (instead of HTTP GET it normally does). However my code is not working:

DEF VAR wkTarget AS CHAR NO-UNDO.
DEF VAR wkpostData AS INT NO-UNDO.

create "InternetExplorer.Application" chExplorer.
Assign
chExplorer:menubar = false
chExplorer:addressbar = false


Treeview - Checkbox issue

Hi,
I am using a Treeview control (version 6.0) and it doesn't appear
to have the ability to disable checkboxes or grey them out from what I
can tell (if I'm wrong, could someone tell me how?)

Since it doesn't, I'm at least trying to write code in the node click
event that will prevent the user from changing the value of the
checkbox when I need it to be disabled. So I have code that sets the
Checked status back to what it originally was before the user clicked
on that node.

The problem is that my code works fine, but that as soon as the event


How to open a xdp-file with the default command for opening a pdf-file

Hello,

I want open a file with an xdp-extention with the default program for a pdf-file.
I can't change the default program to open an xdp-file because that has stay another program (designing program)
So if i dubbelclick the xdp-file it has to open in the designer (default from installation) but if I open the file from my program (shellexecute) I want to open it with the default pdf-program.
Most of the time this will be a version of Acrobat but it can be another one.

Problems:
I never know for sure what version of Acrobat the users have.


Get the memory usage of all running processes.

Does anyone know a good way of getting the memory usage of all running processes.


Hosting a Progress Application in a .Net Application

Hi there,

Is there a way to host a Progress 4GL app in an HTML page or in a .NET application. Is it possible to wrap it as an ActiveX control, or are there perhaps tools out there that provide some form of wrapper to turn it into a control?

Thanks for your help.

- Asim


XLS para CVS

Hello everybody.
I need to turn a csv file into xls in Unix.
How? Does anyone have a program in Progress?
Thanks,
Cláudia Martins


About WTSEnumerateSessions

Hi there,

I try to use the API Function WTSEnumerateSessions to get a list of Terminal Server Sessions.
Of course, it doesn't work quite well, so any help would be highly appreciated.

Look at the here-attached piece of code.
At line 64, replace "TerminalServerName" by a valid one and see what happen.
Apparently we have a valid handle to the server, the WTSEnumerateSessions returns the correct number of sessions, but I can't analyze the list of SessionId/Name/State.


How to integrate MessageBlaster into Progress application?

Actually I only need to trap the WM_ERASEBKGND event from within Progress. As I understand I should use msgblst32.ocx for this. But I never worked with OCX. Could anybody please give me information about the integration of the OCX into a Progress application?
Thank you very much in advance!


#
Syndicate content