Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL functions that returns value to an ISL script var 1

Status
Not open for further replies.

vonza

Programmer
Dec 15, 2013
21
KE
Hi guys,
Have developed a dll that i want it to return a string(char) value to a var in my isl script,
how do i call this function as an assignment to my var?

DLLLoad h_sql, "MFPD.dll"
DLLCall h_sql,Connect(serverip,line,port)
 
You must pass and store information using references within the ISL and within your C++ code.
 
I Like this comment but how do i do it, when i use reference my OPS closes down
 
Why does it close down? And are you writing your DLL in unmanaged C++ code?
 
No.
am using C

the method Connect(serverip,line,port) already accepts these three parameters. The methods connects to a socket, sends data to the socket and waits for a reply to determine the next course of action. Since i could not receive the reply in my isl, i writes to a text file then I use my dll to read from the file and determine the action to perform which is working fine but at the expense of time. Can use please explain to me on how to use these references.

Thanx and have a good day
 
Thanx Alot #Moregelen

I solved my problem this way

[/s]void Connect(char *server,char *msg,short port,char *res)
{

char recieve[65];

strcpy(res, recieve);
}

in the ISL i call it this way
DLLCall h_sql, Connect(servername,line, port,ref res)

Thankyou alot for your guidance
 
Out of curiosity, which compiler are you using to write your DLL?
 
my dll is working fine in win32 but in windows ce 6.0 its telling no function defined, could you be having a clue what this is
 
Yes. The issue everyone runs into. You have to compile specifically for the WinCE kernel. I know a few people who know how to do it, but they aren't sharing, so I have no idea.
 
From what little I've read on the issue, it takes an older hard-to-find copy of MS Visual Studio (2008?) to compile for CE.NET 6.0.

I've also heard that the CE workstations are "on the way out" due to this issue, but have heard no firm timelines aside from April 2018 when it goes EOL.
 
There are no firm time lines - and even after EOL I can't imagine there won't be an extension. The sheer number of devices that are running CE right now.. including the new mTablet they just rolled out...
 
HI guys
Thanks for this debate, I solved this problems using embedded visual C++ 4.o and with service pack 4.0 and WINCE STANDARDSDK.

when creating a new dll select the win32(WCE X86) FOR WORKSTATIONS AND win32(WCE ARMV4I) FORmTablet CPUs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top