Hi,
I am using NAV 2009 NA SP1.
I have created an ATL COM class CWMSalesHeaders using VC++ and it has a method called "UpdateSalesOrderStatusToInDespatch".
I have written a codeunit in which i have declard an Automation var. SALESHEADERS oF type CWMSalesHeaders COM and there is code which calls SALESHEADERS.UpdateSalesOrderStatusToInDespatch().
When i compile the codeunit, the code SALESHEADERS.UpdateSalesOrderStatusToInDespatch() gets replaced with SALESHEADERS.UpdateSalesOrderStatusToInDesp() and it gives error saying UpdateSalesOrderStatusToInDespatch().method cannot be found. Note that the method name is truncated to UpdateSalesOrderStatusToInDesp(),
Is there any limitation in giving the method name for an ATL COM class that is used in NAV?
or ami i missing something?
Regards,
Hemant
Regards,
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
0
Answers
ArcherPoint, Inc http://www.archerpoint.com
Blog: http://www.navisionworld.com
skkulla
WMObject.idl - Interface Definiition File
WMSalesHeaders.h - Class Declaration File
WMSalesHeaders.cpp - Class Definition File
In NAV, I have created a codeunit "WM Interface" with below definition:
VAR
SALESHEADERS Automation IWMSalesHeaders
SalesHeaderRec Record SalesHeader
BEGIN
.................
SALESHEADERS.UpdateSalesOrderStatusToInDespatch(SalesHeaderRec."Document Type"::Order, SalesHeaderRec."Document No.")
..............
END
When i open the symbol menu, the SALESHEADERS var shows the method name as UpdateSalesOrderStatusToInDesp(). It does not show the full name of the method UpdateSalesOrderStatusToInDespatch(). See below image
I have double-checked the class declaration and definition but i don't think i have made any mistake in giving the method name.
Hope that helps.
Regards,
Hemant
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)
Niels-Henrik Sejthen
Senior Software Developer
Microsoft Dynamics NAV
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Thanks for your immediate response
I will rename my COM interface method to UpdateOrderStatusToInDespatch() which counts to 29 char's and hopefully this should comply with the symbol size limitation.
Regards,
Hemant
Hemant
MCTS (MB7-841 : NAV 2009 C/SIDE Solution Development)