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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:20:13+00:00 2026-06-06T15:20:13+00:00

So after about a day and a half with this I’ve made zero progress.

  • 0

So after about a day and a half with this I’ve made zero progress.

I need to write a DLL in C that is used a plugin for an existing application.
The DLL has to be compiled by the Visual Studio 2008 compiler with the following options

cl -DNT40 -DPOMDLL -DCRTAPI1=_cdecl -DCRTAPI2=cdecl -D_WIN32 -DWIN32 -DWIN32_LEA
N_AND_MEAN -DWNT -DBYPASS_FLEX -D_INTEL=1 -DIPLIB=none -I. -I”C:\plm\2T-RAC\TcEx
press53\include” -I”C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include”
-c -nologo -EHsc -W1 -Ox -Oy- -MD C:\mydir\myDll.c

It’s then linked to applications library’s.

What it actually needs to do and what’s causing me the issues is that within one of the methods it needs to pull data from a sql server 2008 r2.

From what I’ve seen today you wouldn’t be able to do this directly in C as SQL Server past 2005 is designed to communicate with CLR languages( C#, C++, VB.Net).

It was suggested that I handle all the database communication with a VB.Net dll and then call said function from within the C dll.

Most of what I’ve found on the topic of calling managed dll’s from unmanaged code has talked about pinvoke or com wrappers and mainly from the perspective of c++.

I have zero experience with COM or any mentioned techniques so if anyone could help out it would be much appreciated.

  • 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-06T15:20:15+00:00Added an answer on June 6, 2026 at 3:20 pm

    The way I resolved this was simply having the C dll call cmd and execute a compile VB.NET executable and pipe it’s output.
    Although this isn’t wasn’t a totally ideal solution it worked in this situation when all I required back was a single string.

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

Sidebar

Related Questions

After googling and binging for a whole day about this, and even trying some
I've been working on this for about a day and a half now, and
After messing about with F# there are some really nice features that I think
I am creating an app on android but after hearing about sencha that it
EDIT: This post was originally specific to ASP.NET, but after thinking about it I'm
I have a few questions about this after reading the iPhone documentation on it:
I’m after a bit of advice on the best way to go about this
I have a stored procedure that is run nine times a day, just after
After reading this Testability and Entity Framework 4.0 article about 75 times yesterday, it
Okay, I appreciate that the question is a tad vague, but after a day

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.