|
prasad_som wrote: Is there such function in your app ? Try putting break point there.
Yes,
int CClibRFC32::rfcCall(char* szUname, char* szTag, char* lpFromDate, char* lpToDate, char* szDesc)
But inside that function the error occurs at this point:
RFC_HANDLE handle;
RFC_FUNCTIONNAME functionname;
RFC_PARAMETER exporting[MAX_PARA];
RFC_PARAMETER importing[MAX_PARA];
RFC_TABLE tables[MAX_PARA];
rfc_char_t * exception_ptr;
RFC_PARAMETER changing[MAX_PARA];
rc = RfcCallReceiveEx(handle, functionname, exporting, importing, changing, tables, &exception_ptr);
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3rBronze
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: rfc_char_t * exception_ptr;RFC_PARAMETER changing[MAX_PARA];rc = RfcCallReceiveEx(handle, functionname, exporting, importing, changing, tables, &exception_ptr);
Does RfcCallReceiveEx expects uninitialized RFC_HANDLE handle value, which is case here. Same is case with RFC_FUNCTIONNAME parameter.
|
|
|
|
|
prasad_som wrote: Does RfcCallReceiveEx expects uninitialized RFC_HANDLE handle value, which is case here. Same is case with RFC_FUNCTIONNAME parameter.
Not quite, take the following into account (I know I didn't mention it before)
sprintfU (connect_param, cU("DEST=%s CLIENT=%s USER=%s PASSWD=%s LANG=%s"), dest, client, user, pass, lang);
handle = RfcOpenEx(connect_param, &error_info);
strncpyU (functionname, "RFC_FUNCTION_NAME", sizeofU (RFC_FUNCTIONNAME) - 1);
And even if that was the case, I have never before had a compiler error like that, where I didn't initilized my variables.
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3rBronze
My Blog: ^_^
|
|
|
|
|
Oh !
And what about last paramter of RfcCallReceiveEx , is it expected to pass initialized pointer ? Or RfcCallReceiveEx does that ?
Who is owner of RfcCallReceiveEx ? Can you debug it ?
|
|
|
|
|
prasad_som wrote: And what about last paramter of RfcCallReceiveEx, is it expected to pass initialized pointer ?
No it is not expected to pass an initialized pointer:&exception_ptr
prasad_som wrote: Who is owner of RfcCallReceiveEx ? Can you debug it ?
A library called librfc32 developed by I have no idea. Can I debug it? No I can not. But I have used it previously without any problem, surely I'm doing something stupid.
Thank you very much for your patients prasad_som.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3rBronze
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: surely I'm doing something stupid.
Only thing you can do wrong here is about parameters, as function is owned by some library. Check any information available about this function, and you are passing parameters are in correct manner.
|
|
|
|
|
|
Programm3r wrote: Compiler opens isctype.c file at the following location
this cannot be the source of the problem.
only your code is wrongly propagating dummy values. go through the call stack, from where the debugger stopped, and go up the stack until you reach a piece of code of your own... (and here, use the watch window )
|
|
|
|
|
toxcct wrote: this cannot be the source of the problem
I know and yes you are right.
I'm still working on the problem.
Thanx again toxcct
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3rBronze
My Blog: ^_^
|
|
|
|
|
prasad_som wrote: What call stack says to you ?
usually this error come when executable is in Release mode!.. so no call stack available for you there!
|
|
|
|
|
ThatsAlok wrote: usually this error come when executable is in Release mode!..
Dont think so this time. He has provided call stack. See his reply.
|
|
|
|
|
prasad_som wrote: Dont think so this time. He has provided call stack. See his reply
my mistake.. but generally this type of error comes in RELEASE mode!
|
|
|
|
|
|
Try using GetLastError() .
Regards,
Paresh.
|
|
|
|
|
Programm3r wrote: Microsoft Visual C++ Runtime Library
Runtime Error!
Program:..\executableName.exe
some uncatchable error!
|
|
|
|
|
|
Hi All,
I wants to take backup of all mails from exchange server at remote location.
is there any library which Microsoft provide for working exchange server.
if any body have idea please share with me.
Thanks & Regards
Bankey Khnadelwal
|
|
|
|
|
Banks K wrote: I wants to take backup of all mails from exchange server at remote location.
Configure the exchange server client to download the exchange mails into outlook pst(which will be the backup of your mails. ).
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I am trying to postmessage from one call back to other now from one call back I am trying to send the path and index of the selected file,at the second end when it receive but the type casting problem.well I dont know whether can we pass the text string to wParam?
<code>
WCHAR path[MAX_PATH];
iSlected=SendMessage(hList,LVM_GETNEXTITEM,-1,LVNI_SELECTED);
if(iSlected==-1)
{
break;
}else
{
ListView_GetItemText(hList,iSlected,2,(LPWSTR)&path,MAX_PATH);
.
.
.
.
::PostMessage(hWndinoutfiledir,WM_INITDIALOG,(WPARAM)path,(LPARAM)iSlected);
}</code>
can I send my path from 3rd parameter of postmessage?
<code>
w_Path=(WCHAR [])wParam;
selectedIndex =(int)lParam;
if(selectedIndex!=-1)
{
hwndTxtDestPath = GetDlgItem(hWndOutputDirectory,IDC_STATIC_PATH);
SendMessage(hwndTxtDestPath,WM_SETTEXT,0,(LPARAM)w_Path);
}
</code>
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
just wondering; do you have anything to deal with this[^] ?
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">amitmistry_petlad wrote:</div>w_Path=(WCHAR [])wParam; //type casting problem ??????????</blockquote>
Do like this,
w_Path = reinterpret_cast<WCHAR*>(lParam);
Watch: in sender side WCHAR Path[..] is local to the method and you are using PostMessage. Use SendMessage or allocate memory for Path in heap.
Do your Duty and Don't expect the Result
|
|
|
|
|
amitmistry_petlad wrote: ::PostMessage(hWndinoutfiledir,WM_INITDIALOG,(WPARAM)path,(LPARAM)iSlected);// is it ok ?
No, its not ok.
Have you seen description for WM_INITDIALOG in MSDN , See how WPARAM and LPARAM should be used in that case.
amitmistry_petlad wrote: w_Path=(WCHAR [])wParam; //type casting problem ??????????
Have you refered Parthi_Appu's suggestion ?
|
|
|
|
|
yes i am in process of that.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
can I send two postmessage for two different window?
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: can I send two postmessage for two different window?
Yes.
Was you really wanted to ask this ?
|
|
|
|