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

  • Home
  • SEARCH
  • 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 8006073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:23:37+00:00 2026-06-04T17:23:37+00:00

I wrote program in java which is using some kind of win lib and

  • 0

I wrote program in java which is using some kind of win lib and now I want to write one more program to simulate other one. I mean, it should be going like that :

  • first program asking lib for some simple data ( just true false)
  • and other program in this same time by using function from this lib setting some variable in this lib which might be return to first program…
  • both programs are independent first (lets say “getter”) in java and second (“setter”) in c++… I have already set all variables in lib as static but it didn’t solved problem.

Is this kind of solution even possible? or I have to use maybe some kind of socket or else

thanks for replay

  • 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-04T17:23:39+00:00Added an answer on June 4, 2026 at 5:23 pm

    I’ve been working with this kind of stuff (Java + dll + another programs) and I can tell that the libraries executed from another program and Java doesn’t share the static variables, so I think you won’t be able to do it that way.

    The example that I have uses a window, whose size is 0, to exchange messages between the two programs (Java and VB 6.0), the first call between the two programs share the window handler, but I think this isn’t the best way to do it, and, in addition, it has some limitations.

    I expose the ways I think that could match your problem:

    • Shared file: pretty easy, just must take care with the encoding.
    • Memory area: You can use in the dll a memory area for data exchange, this is a truly “static” context
    • Socket: Maybe is the most flexible since it will work with any program/system.

    The last one would be the one that I’ll use if I must implement something like that, but that depends on you.

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

Sidebar

Related Questions

I have a program which I wrote in Java using Eclipse and then put
I have wrote the code below which was taken from Java How to program
How to write a java program which will tell me whether I have internet
I need to write a java program which when executed pushes a command into
I am trying to write a Java program or Hadoop Pig script which will
i am trying to write a program in java (on linux) using RandomAccessFile class
Unix gurus! I have a Java program which passes some parameters to a Servlet
Suppose I write a program using immutable data structures in Java. Even though it
I wrote a program in java that rolls a die and records the total
I wrote a simple program in java web forms but i am receiving the

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.