Security Software review and downloads
  • Home
  • Spyware & Spyware Remover
  • Registry & Registry Cleaner
  • Firewall
  • Hacked
  • Uninstall & Uninstaller
  • Antivirus

How do I compile a Visual C DLL with two cpp files?

August 7th, 2008 · 2 Comments

My original cpp file was getting cluttered, so I broke off a set of functions into a new cpp file. The original cpp file won’t compile now because it can’t find the functions.

I am not using classes and declared the functions as public. This would be fine in good old VB, but ain’t kosher now. What am I doing wrong?
Error2error C3861: 'ForceNumToString': identifier not found c:\test\main.cpp91

This function is declared in c:\test\conversionfunctions.cpp.

(It is not supposed to be an externally available function, it is just a regular function that I wanted moved to a new file because main.cpp was getting cluttered.)

Related posts:

  • VC++ 6.0 compiling errors. Try to convert a win32 console application to a win32 dynamic-Link library.?
  • C:\src\test.cpp(1472) : error C2065: 'SHFILEOPSTRUCT' : undeclared...
  • How do I get rid of this Dev-C++ Error?
  • #include <iostream> #include <stdlib.h> int AddOne(int start) { int...
  • Can't uninstall Microsoft Visual Studio completely?
  • Well, I made the TERRIBLE mistake of deleting the Microsoft Visual Studio folders myself...
  • DLL files help: Is there any program to find DLL function names and their argument types?
  • For Example, it should say that a function named GetTickCount is declared in Kernel32.dll...
  • windows .DLL file vs Mingw .DLL.A files?
  • I have a linux library that can be compiled under mingw or cygwin. I need to use it in a...
  • A first chance exception of type ‘System.InvalidOperationException’ occurred in System.dll, VB.NET 2008…?
  • I'm programming in Visual Basic 2008. Here's my...
  • What information does a .NET DLL provide to Visual Studio?
  • I'm using Visual Studio 2008 and writing a VB.NET test program. This program uses a...
  • Simple C++ Encryption/Decryption Program. What am I doing wrong??????????????
  • Output should be: Encrypted string is: uijt!jt!b!tfdsfu" Decrypted string is: this...
  • Question about using a C header and DLL with a c++ source code and c functions arguments?
  • c header functions takes argument like this int* or char* when I declare an int* in...
  • How do i change my C# path on vista?
  • Hey im learning C# and im getting some errors while trying to script. But many people say...

    Tags: Dll


    2 responses so far ↓

    • 1 JoelKatz // Aug 7, 2008

      It sounds like you forgot to make a header file. The compiler shouldn’t need to find the functions, it should just need to know what type they return and what parameters they take.

      Paste the exact error message.

    • 2 nevrforget911 // Aug 7, 2008

      Ya like the other guy said. All the u need to do is build the header file and make shure that your useing the dll’s correct and it should be fixed. O ya remeber to include the header file in the correct cpp files

    Leave a Comment

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word

    Tags: Email Spam Uninstall spyware Security Software Trend Micro Registry Cleaner Pc Tools Norton Nod32 Kaspersky Internet Security Hacked Firewall Computer Security Avg Avast Antivirus Ad Aware Monitoring Software Encryption Backup


    A Slow System?
    Harassed by DLL errors?
    Plagued by constant Blue Screens?
    Receiving error messages and don't know why?

     
    • Most popular Software downloads

      • Pctools
      • kaspersky
    About | Contact Us | Old Sitemap Security Software review and download . All rights reserved PoweredBy Yahoo!API.