Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6165913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:14:55+00:00 2026-05-23T22:14:55+00:00

I have an event like static private void HandleClientEventCB(SPD.SPD_eventType type, SPD.SPD_event this_event, object passback)

  • 0

I have an event like static private void HandleClientEventCB(SPD.SPD_eventType type, SPD.SPD_event this_event, object passback) in a class public class SPURTServer, I need to call this event outside another event
Here the ‘**SPD_eventType**‘ is enumeration under different project that means ‘namespace Spo.SPDlib‘ and ‘public class SPD‘ here the value for that enum is SPD_clientEvent = 5,

and SPD.SPD_event is a struct like public struct SPD_event and passback value is null.

So I called like this in outside event like shown below

SPURTServer.HandleClientEventCB(Spo.SPDlib.SPD.SPD_eventType.SPD_clientEvent, Spo.SPDlib.SPD.SPD_event,object passback);

but it is throwing error like “Invalid expression term ‘object'” I am not sure what about the other two arguements. Can anybody guide me here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:14:55+00:00Added an answer on May 23, 2026 at 10:14 pm

    In your call, you need to remove the word Object.

    so:

    SPURTServer.HandleClientEventCB(Spo.SPDlib.SPD.SPD_eventType.SPD_clientEvent,
        Spo.SPDlib.SPD.SPD_event,
        passback);
    

    or cast it:

    SPURTServer.HandleClientEventCB(Spo.SPDlib.SPD.SPD_eventType.SPD_clientEvent,
        Spo.SPDlib.SPD.SPD_event,
        (object)passback);
    

    Assuming that passback is a valid object in the scope of the call.

    Edit: based on the comments below:

    What you’re doing is passing the type of the event, not an instance of the event itself.

    SPD_Event is a definition of your data, but you have created an instance of it.

    You’d need to to something like

    var newEvent = new Spo.SPDlib.SPD.SPD_event();
    newEvent.WhatEverProperties = whatNeedsToBeSet;
    
    SPURTServer.HandleClientEventCB(Spo.SPDlib.SPD.SPD_eventType.SPD_clientEvent,
        newEvent,
        null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an event like static private void HandleClientEventCB(SPD.SPD_eventType type, SPD.SPD_event this_event, object passback)
I have a static class that I would like to raise an event as
I have a onclick event that is like: public void OnMyButton_Click(object sender, EventArgs e)
I have a function like this in actionscript3 private function uploadFile(event:MouseEvent):void { var uploader:URLRequest
I have public delegate void AdministrationEventHandler(object sender, AdministrationEventArgs e); public static event AdministrationEventHandler MainAdministrationEventHandler;
I have a string like this: event name|event description|event type|event date|event time|event details, event
I have to call a function on a button click event like this private
I have this code: 001 private void uiButton1_Click(object sender, EventArgs e) 002 { 003
I have an Activity ( Main ) which shows tabs like this: private void
So I have a custom event like this: Work w = new worker() w.newStatus

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.