screenshots

Faitie

New Member
Googling doesnt seem to help me alot so, here is my question.

Is there a way in Progress to programmaticly take a screenshot?
If so how could i do it, is there a OCX for it or somthing else.

Thanks in advance.
 
I'm not sure to be onest couldnt you look at using print screen and see if you an do it that way.. not sure how you call it inside progress
 
You can do this by making Win32 API calls. I am not very familiar with this area but I would allow a chunk of time to understand the nuances of data type issues making calls into DLL's from P4GL.
 
already looking in to that, trying to get a C# method running from within Progress but i dont seem to be doing it right.
This is what i got so far.

Code:
DEF VAR cTekst AS CHAR NO-UNDO.

RUN Hallo(OUTPUT cTekst).


MESSAGE cTekst
    VIEW-AS ALERT-BOX INFO BUTTONS OK.


PROCEDURE Hallo EXTERNAL "calculatorMethods.dll" CDECL:
    DEFINE RETURN PARAMETER c AS CHAR NO-UNDO.
END PROCEDURE.

and this is my C# code
Code:
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace calculatorMethods
{
    public class calculator
    {
        public static int addUp(int firstNumber, int secondNumber)
        {
            return firstNumber + secondNumber;
        }


        public static int subtract(int firstNumber, int secondNumber)
        {
            return firstNumber - secondNumber;
        }


        public static string Hallo()
        {
            return "Hallo daar!";
        }
    }
}

now i get the 3260 error looked it up on ProKB and it could be because the DLL is not compatible?

i made it in visual studio 2010 C# express, then i copied the dll into the C:\Program Files\openedge102b\bin directory

but i still get the error "Could not find the entrypoint Hallo. (3260)"

Anyone with similar experiance that can solve the problem?
 
Is it as simple as needing to have the procedure defined in Progress before it is called??
 
Back
Top