473,327 Members | 2,094 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,327 software developers and data experts.

Rpc program

I posted this query in platformsdk.networking and
win32.programmer.networks
But thought that this was more an appropriate place to have this and hence
this mail.

Hi All,
I have written a RPC server. Which call the export of an Interface. Here
is the code which makes a call to that.
I am running that in VisualStudio .Net. Interfaces are not getting exported
saying that the export call returns me 1737
which a happens to be UNSUPPORTED_NAME_SYNTAX. Would somebody please tell me
as to what is wrong with the code.
Code snippet follows.

Thanks & regards
Ravi

status = RpcServerUseProtseq((unsigned char *)pszProtocolSequence,
cMaxCalls, pszSecurity) ;
if(status) exit(status) ;

// Register the interface with the RPC run time.

status = RpcServerRegisterIf(INTERFACENAME_v1_0_s_ifspec, NULL, NULL) ;

if(status) exit(status) ;

// Collect the bindings provided by the RPC run time.

status = RpcServerInqBindings(&pBindingVec) ;

if(status) exit(status) ;

// Clear the endpoints out of the binding handles.

// This forces the clients through the Endpoint Mapper and

// reduces the volatility of the namespace entry for this

// service.

for (int i = 0; i < pBindingVec->Count; i++)

RpcBindingReset(pBindingVec->BindingH[i]);
// Create the entry in the name service for this service.

status = RpcNsBindingExport( RPC_C_NS_SYNTAX_DCE, (unsigned char
*)pszEntryName, INTERFACENAME_v1_0_s_ifspec, pBindingVec, NULL );

if(status) exit(status);

// Register the interface with the Endpoint Mapper.

// There are no Object UUIDs or Annotation strings in this example.

status = RpcEpRegister(INTERFACENAME_v1_0_s_ifspec, pBindingVec, NULL,
NULL);

// Start the server. RpcServerListen returns when the server shuts down.

if (status) exit(status) ;


Nov 22 '05 #1
0 809

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

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
22
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html ...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
11
by: christopher diggins | last post by:
I am wondering if any can point me to any open-source library with program objects for C++ like there is in Java? I would like to be able to write things like MyProgram1 >> MyProgram2 >>...
1
by: Eric Whittaker | last post by:
hi all, im trying to write my first c++ program. a success, but i can't get the window to stay open after user enters input. it just automatically closes. right now the end of my program looks...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
7
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s first card, and...
2
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.