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 4334782
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:34:52+00:00 2026-05-21T10:34:52+00:00

Hi I have the following sub: static ustr *construct_packet(int ptype, int stype, int argc,

  • 0

Hi I have the following sub:

static ustr *construct_packet(int ptype, int stype, int argc, ...)

static ustr *construct_subpacket(int sptype, const char *data, int datalen, int lenbyte)

I tried the “…” in C# and it just gives me an error of “Type Expected.”

I also need to send multiple construct_subpacket’s into the construct_packet sub.

What would be the equivalent to these in C#?

Question 2:

I want to pass weird ASCII characters like “char(13)” the box through a string without it being replaced by “?.” How do I go about doing such a thing? Or is there no way?

Thanks

  • 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-21T10:34:52+00:00Added an answer on May 21, 2026 at 10:34 am
    static string construct_packet(int ptype, int stype, int argc, ...)
    static string construct_subpacket(int sptype, string data, int datalen, int lenbyte)
    

    Note:

    1. You don’t really have to pass datalen in C# – unlike with pointers, with strings you always know length of the string by checking the Length property on the string

    2. If you want to pass variable number of arguments, you can use “params” keyword. All those arguments have to be the same type

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: Imports MySql.Data.MySqlClient Imports MySql.Data.Types Public Class FormMain Private Sub
I've made a sub-domain for static content (static.site.com) and I have the following .htaccess:
I have the following code: Private Sub SortWorksheet(ByVal sheet As Worksheet) Dim sStartColumn Dim
i have the following code Private Sub select_color_Click(ByVal sender As System.Object, ByVal e As
I basically have the following class: .sf-sub-indicator { background: url(/abcprod/images/arrows-ffffff.png) no-repeat -10px -100px; }
In Excel I have attached a picture to a cell using the following Sub
I have the following program to browse all virtual directories and their sub directories
(resolved: see bottom) I have the following code snippet: Protected Sub SqlDataSource1_Inserted(ByVal sender As
I have the following code to create my window, my view and my sub
I have code like the following in a UserControl: Protected Overrides Sub Render(ByVal writer

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.