Hi David;
When you built the C++ DLL .. did you mark your methods as "__stdcall"?
FYI: How to call VC++ dll whiich return char[] data type value in powerbuilder
Regards ... Chris
Hi David;
When you built the C++ DLL .. did you mark your methods as "__stdcall"?
FYI: How to call VC++ dll whiich return char[] data type value in powerbuilder
Regards ... Chris
Hi Beverly
Thanks for answering, It is Pb 12.6 Build 3506
I already read an old discussion with the same problem and there is a CR 770618 so do you know the advance about this CR?
Regards
SandraE
Sandra,
The issue appears to be fixed. Can you download and apply EBF 24160: 12.6 SP00 PL02 (build 4035)?
Go to http://support.sap.com -> Support Packages and Patches -> A-Z Index -> P -> Sybase PowerBuilder -> SYBASE PowerBuilder 12.6 -> Windows Server on IA32 32bit
Thank you.
Beverly Duquette
Hello Chris:
Thanks for your response sir.
I am new to VC++. Where do I mark my method as "_stdcall"?
I appriciate your help Chris!
Kind Regards,
David
Hi David;
I saw your response in the other thread. Here is some more information on how to add the "__stdcall" to your VC++ project ....
FYI: Create and use a C DLL (MSVC6) - Real's PowerBuilder How-to
HTH
Regards ... Chris
Hi Beverly
I have reviewed all EBF's Buglist but I haven´t found any BugID that fix the problem and I don't see CR 770618 that has the error...
Thanks for you help
SandraE
Hi Everyone,
I am using PowerBuilder Classic 12.5 build 2511 and Microsoft Visual Studio 2010.
I followed the steps in the example of Bruce Armstrong about sending an email through SMTP (TeamSybaseCSharp.CSharpSMTP).
In the C# dll project, i used .net framework 3.5. using the socket class to establish a connection with a scale and read the weight.
If i call the dll from a C# winform project works fine and returns the weight, but if i call from PB to the dll returns an empty string.
In my PB code, ConnectToNewObject returns 0 and everything seems ok.
Any suggestions?
Thanks and regards
Hi All,
In PB Classic I can drag and drop a non visual object to a window en Access the events of that object. How can I do that in PB.Net
Regards,
Adrian
Hi adrian;
PB.Net does not support the drag & drop NVUO feature like PB Classic. You have to use the PB Outline Outline tab and then use the RHMB on the Nonvisual Object item. From there you can select the ADD option and then select an NVUO from the resulting list.
Its certainly a lot easier in PB Classic to just drop the NVUO from the System Tree on the Window and have it appear in the Window's NVUO controls list automatically.
Regards ... Chris
Would this not be a Visual User Object though?
What makes you think that Failover_Partner is not working? Connect Clients to a Database Mirroring Session (SQL Server) In this link you will see that the parameter is still there...
Andreas.
I have an example using the WinHTTP API functions wrapped in an object with functions that are similar to those in XMLHTTP.
Hi Richard,
I'm wondering why do you have an external DWO that is identical to a DWO created with a select statement. You can use the same DWO in both controls (dw_1 & dw_2) and after retrieving the data for dw_1 do the rowscopy.
Its complicated.
The second datawindow is populated from multiple datawindows not just dw_1. dw_1 is only one of many sources.
The second dw is not related to a sql statement and does not need to be
Thanks
Richard
I think what you want is:
__declspec (dllexport) <ReturnDatatype> __stdcall <functionname> ( <ArgDatatype> <ArgName> )
FWIW: Other good reasons to use another DWO could be ...
1) Used to produce XML, TAB, CSV, etc using a different XML schema and or file factors.
2) Used for printing where the format is quite different than the source DWO.
3) Used to export to a spreadsheet using / adding different characteristics.
4) Designed for specialized filtering & sorting - way beyond the source DWO.
etc
Would you not then treat the whole .Net assembly as a "Control" (aka Custom Visual User Object) that contains a suite of VUO + NVO "helpers" objects in one package?
The difference is also, that in case 1 you select the asynchronous operation mode and in 2 the synchronous. open method (Internet Explorer)
... not sure if that helps
Arnd
Hi, guys. How are you ?
We are using PB 12.5.2 .NET build 5602 here.
Our system has a great number of datawindow objects, about 4.000 dw objects.
Most of them were created and saved in the "Convert to syntax" mode.
About 10% of our datawindows, though, were saved in the "Convert to graphics" mode.
I am not sure, but I have a guess that "graphic mode" may be causing some non-specific runtime errors,
Have any of you given a thought about this subject?
I've found an old post in this link Datawindow convert to graphics - sybase.powerbuilder.datawindow
that suggests that all DW objects should be saved in graphic mode, but I guess that doesn't apply in Powerbuilder .net
Thanks!