________________________________
Von: [email protected]
[mailto:[EMAIL PROTECTED] Im Auftrag von Lars
Mikkelsen
Gesendet: Mittwoch, 18. Januar 2006 03:43
An: [email protected]
Betreff: RE: [development-axapta] Re: Axapta ComConnector
When doing com interop with C# and you want to omit an optional
parameter
you should always use the C# special type System.Type.Missing
In this case you should change your statement to
Object missingType = System.Type.Missing;
AxaptaQuery = axapta.CreateObject("query", missingType, missingType,
missingType, missingType, missingType, missingType);
The advantage of doing this is that the com interop layer automatically
specifies the missing parameters for you.
This is the same as in VB.NET where you can write
AxaptaQuery = axapta.CreateObject("query")
Br
Lars
_____
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Sujkowski
Sent: Monday, January 16, 2006 12:03 PM
To: [email protected]
Subject: [development-axapta] Re: Axapta ComConnector
Which line in your c sharp code produces the error?
For starters i would replace all the empty string arguments you're
using in your axapta calls with null arguments like this:
change:
AxaptaQuery = axapta.CreateObject("Query","","","","","","");
TO:
AxaptaQuery = axapta.CreateObject
("Query",null,null,null,null,null,null);
--- In [email protected], "Andreas Rudischhauser"
<[EMAIL PROTECTED]> wrote:
>
> I want to create an .Net application that needs to fetch all the
> records in the emplTable.
>
>
>
>
>
> Add one field with no value
>
>
>
> Further the application will have to
> delete all records in a "work table". My first question is how do
I
> delete records from an Axapta table?
>
>
>
> Use ExecuteStatement or something for sql ... or use the Dictionary
> Methods from AOT like this
>
>
>
> IAxaptaObject axDictionary =
> this.AxNetMapper.Axapta.CreateObject
("Dictionary",null,null,null,null,nu
> ll,null);
>
> object o =
> axDictionary.Call("tableObject",this.Id,null,null,null,null,null);
>
> if (o != null)
>
> {
>
> IAxaptaObject axTable = (IAxaptaObject)o;
>
> return axTable;
>
> }
>
> else
>
> {
>
> throw new Exception("Die Tabelle " +
this.Name +
> " konnte nicht geladen werden");
>
> }
>
>
>
>
>
> My second question is why I get the following error when the
> application exits:
>
> "Runtime error!"
> program: "....AXCOM\AXCOM.vshost.exe
> R6025
> - Pure Virtual Function call
>
>
>
>
>
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your group "development-axapta
> <http://groups.yahoo.com/group/development-axapta> " on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
subject=Unsubscri
> be>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>
>
>
> ________________________________
>
>
>
> [Non-text portions of this message have been removed]
>
_____
YAHOO! GROUPS LINKS
* Visit your group "development-axapta
<http://groups.yahoo.com/group/development-axapta> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
_____
[Non-text portions of this message have been removed]
________________________________
YAHOO! GROUPS LINKS
* Visit your group "development-axapta
<http://groups.yahoo.com/group/development-axapta> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
________________________________
[Non-text portions of this message have been removed]
SPONSORED LINKS
| Computer part | Programming languages | Microsoft axapta |
| Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

