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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:21:02+00:00 2026-06-09T09:21:02+00:00

I am trying to export a .dll file and trying to use it in

  • 0

I am trying to export a .dll file and trying to use it in my c# application to write a data to a port. In my .cpp file (to create a .dll) if I use “out” command it gives “error C2415: improper operand type” error message. Do you have any idea why i cannot use this “out” command? (“mov” command is working well btw)

See my code below:

#include <stdio.h>

extern "C" __declspec(dllexport) void enableWatchDog()
    _asm {
          out 66,41
          out 62,4
    }
}
  • 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-06-09T09:21:04+00:00Added an answer on June 9, 2026 at 9:21 am

    out has six forms:

    • out imm8, AL
    • out imm8, AX
    • out imm8, EAX
    • out DX, AL
    • out DX, AX
    • out DX, EAX

    Your usages match none of them. Perhaps this would work (not tested):

    mov al, 41
    out 66, al
    mov al, 4
    out 62, al
    

    I don’t have too much experience with IO ports on x86, but from what I’ve been able to find, 66 and 62 seem a little suspicious to me. Shouldn’t they be 66h and 62h? 41h (could be two flags set, or ASCII ‘A’) also makes a little more sense to me than 41 (a rather arbitrary number).

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

Sidebar

Related Questions

I'm trying to create a C# wrapper DLL for a VB6 DLL, then use
So I am trying to export a function in a DLL that was developed
I am trying to export Telerik MVC chart to PDF using svg.dll (works well
I am trying to export an image from Flex application to svg. I saw
I have been trying to export the charts from Excel as an image file
I'm trying to export a product database out of FileMakerPro into a WordPress import
I am trying to export the following data in the query from ms sql
I'm trying to export a global variable from a DLL. Foo.h class Foo {
I am trying to use a dll in Python source using the ctypes. I
I am trying to use the LZMA SDK to create a zip archive (either

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.