473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

odd problem in called function

all psz fields are char *

I am doing this
gencm.pszDBName = cszConnect_s;
gencm.pszApplicationName = NULL;
gencm.pszUserID = cu_dbvi__szUserName;
gencm.pszPassword = cu_dbvi__szPassword;
gencm.pszNewPassword = (strlen(cu_dbvi__szNewPassword) ?
cu_dbvi__szNewPassword : NULL);
gencm.pszProxyID = NULL;
gencm.pszProxyScope = NULL;
gencm.fSession = SIM_SS_NORMAL;
gencm.pAsyncCtl = NULL;
//lstat = SimLibLogon(cszConnect_s, NULL, cu_dbvi__szUserName,
cu_dbvi__szPassword,
// (strlen(cu_dbvi__szNewPassword) ? cu_dbvi__szNewPassword : NULL),
NULL, NULL, SIM_SS_NORMAL, NULL, &rc
);

lstat = u_generic_cm_call(L"Logon", gencm, &rc);

When I set the code up to go to the Generic call it goes to the dll and
finds the generic call and looks and finds Logon
All the values are what they should be in the exe and in the dll. When
it finds the tag logon it perfoms

l_stat = SimLibLogoff( gencmdll.hSession, gencmdll.pAsyncCtl, pRC );

that in turn does the following - Something that was not changed

ULONG SIMENTRY SimLibLogon( pszDBName, pszApplicationName, pszUserID,
pszPassword,
pszNewPassword,
pszProxyID, pszProxyScope, fSession, pAsyncCtl, pRC )

PSZ pszDBName, pszApplicationName, pszUserID, pszPassword,
pszNewPassword;
PSZ pszProxyID, pszProxyScope;
BITS fSession;
PASYNCCTLSTRUCT pAsyncCtl;
PRCSTRUCT pRC;
{
if(!hLibrary)
{
if(u_lib_init(TRUE))
return(1);
}
return(u_SimLibLogon( pszDBName, pszApplicationName, pszUserID,
pszPassword, pszNewPassword,
pszProxyID, pszProxyScope, fSession, pAsyncCtl, pRC ));

When I run it comes back with a 6081 saying I can't login however
if I swap out the code to call directly

lstat = SimLibLogon(cszConnect_s, NULL, cu_dbvi__szUserName,
cu_dbvi__szPassword,
(strlen(cu_dbvi__szNewPassword) ? cu_dbvi__szNewPassword : NULL),
NULL, NULL, SIM_SS_NORMAL, NULL, &rc
);

then it returns sucessfully

I don't get it both are sending the same data however one is going
through an initial generic call and the other one is not. Do you guys
have any ideas? At first I thought it was data related but as I said
everything is passed properly and the only fields that are really used
are the cszConnect, cu_dbvi__szUserName, cu_dbvi__szPassword, and the
(strlen(cu_dbvi__szNewPassword) ? cu_dbvi__szNewPassword : NULL)

The values of what is passed

cszConnect = L for the first value of "LIBSRVN"
cu_dbvi__szPassword = j for "jake"
cu_dbvi__szPassword = p for "password" <----not actual password :-)
cu_dbvi__szPassword, and the (strlen(cu_dbvi__szNewPassword) ?
cu_dbvi__szNewPassword : NULL) = Null because I don't have a new
password

Ideas?

Thanks
Jake

Jan 6 '06 #1
0 1106

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: beveled edges | last post by:
I'm using the XML functions in PHP 5. The callback function I set for namespace declarations doesn't get called. Can anyone help me out? The code is: $xml = '<addressbook...
1
by: beveled edges | last post by:
I'm using the XML functions in PHP 5. The callback function I set for namespace declarations doesn't get called. Can anyone help me out? The code is: $xml = '<addressbook...
3
by: Jun | last post by:
I have following script <script> var Animal = function(name){ this.name = name; } Animal.prototype.eat = function (food) {
4
by: Thomas Mlynarczyk | last post by:
Hi, I stumbled over a strange behaviour of Mozilla. When I want to access the caller property of a function that was not called from within another function, Mozilla seems to abort the script....
10
by: PengYu.UT | last post by:
Hi, A pure function is called in the base function constructor. It generate a run time error: "pure virtual method called". My problem is that class A have some derived classes. I want A's...
4
by: anonymous | last post by:
Thanks your reply. The article I read is from www.hakin9.org/en/attachments/stackoverflow_en.pdf. And you're right. I don't know it very clearly. And that's why I want to understand it; for it's...
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
15
by: subramanian100in | last post by:
consider the following program: #include <iostream> using namespace std; class Test { public: Test(int xx) : x(xx) { cout << x << endl; }
6
by: RandomElle | last post by:
Hi there I'm hoping someone can help me out with the use of the Eval function. I am using Access2003 under WinXP Pro. I can successfully use the Eval function and get it to call any function with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.