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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:35:58+00:00 2026-05-11T12:35:58+00:00

>My previous thread< I created this one,because I installed WinXP on VMBox and I

  • 0

>My previous thread<

I created this one,because I installed WinXP on VMBox and I cannot get it working again.

This time I created an OnLoad Event on my form

        if (LoadLibrary("blowfish.dll") == 0)         {             Misc.LogToFile("Could not load dll", true);             Application.Exit();         } 

Runs fine on my PC,but on VMBox LoadLibrary returns 0.

Some users mentioned that the problem would be in mixing older NET Framework(2.0) with dlls made on newest MS Visual studio(2008 SP1) so I took action and now the program properties it’s set to work with NET 3.5

On the VMBox I have NET 2.0,but this is not the problem – the program itself runs fine.I also have C++ Redistributable(2005,2005 SP1 and 2008).

What could be the problem?

  • 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. 2026-05-11T12:35:58+00:00Added an answer on May 11, 2026 at 12:35 pm

    To further trouble should you could call

    Marshal.GetLastWin32Error(); 

    which should give you an error code.

    Is it possible that you deployed a debug version of your native dll which also requires a debug version of MSVCR90D.DLL? You should have distributed the release version because the debug version requires a different set of dlls to be present on the target system.

    It obviously works on your development machine because all debug versions of the required libraries come with Visual Studio.

    This is how you would get the message belonging to an error code:

    [DllImport('kernel32.dll')] private static extern int FormatMessage(int dwFlags,     IntPtr lpSource, int dwMessageId, int dwLanguageId,     out string lpBuffer, int nSize, IntPtr pArguments);  public static string GetErrorMessage(int errorCode) {     const int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100;     const int FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200;     const int FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000;      string lpMsgBuf;     int dwFlags = FORMAT_MESSAGE_ALLOCATE_BUFFER         | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS;      int retVal = FormatMessage(dwFlags, IntPtr.Zero, errorCode, 0,                                 out lpMsgBuf, 0, IntPtr.Zero);     if (0 == retVal)     {         return null;     }     return lpMsgBuf; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

soryr this is still related to my previous thread but i created this new
In a previous thread one of the respondents said that using wsHttpBinding used a
An extension of my previous thread here . I'm launching embedded resource applications via
Thanks to all that responded to my previous thread. There is still a problem
Our previous webmaster set up this site and the caching he set up works
This is an old problem I abandoned awhile ago because I could fine no
I've created a wrapper around boost::asio::io_service to handle asynchronous tasks on the GUI thread
despite some tips, I'm still getting this one wrong. I end up with one
Leading on from my previous questions I am going to try and clarify one
Okay, I know this question has been asked before: Previous Question I have also

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.