Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL Without MFC Pin
Cedric Moonen9-Aug-05 2:36
Cedric Moonen9-Aug-05 2:36 
GeneralRe: DLL Without MFC Pin
David Crow9-Aug-05 2:43
David Crow9-Aug-05 2:43 
GeneralRe: DLL Without MFC Pin
Tim Smith9-Aug-05 4:03
Tim Smith9-Aug-05 4:03 
GeneralCFileDialog in CPropertySheet Pin
johny_d9-Aug-05 1:32
johny_d9-Aug-05 1:32 
GeneralRe: CFileDialog in CPropertySheet Pin
BlackDice9-Aug-05 2:47
BlackDice9-Aug-05 2:47 
GeneralRe: CFileDialog in CPropertySheet Pin
johny_d12-Aug-05 21:06
johny_d12-Aug-05 21:06 
GeneralRe: CFileDialog in CPropertySheet Pin
Maximilien6-Oct-20 10:29
Maximilien6-Oct-20 10:29 
Generalunmanaged .lib in VS.NET Pin
Alper KARS9-Aug-05 1:29
Alper KARS9-Aug-05 1:29 
Hi all!
I have a .lib file which has all the necessary functions which are written in ANSI C. I wanted to use these functions in C#. So I decided to include and use them in a class library file which is to be written in C++ (VS.NET-Class library proj., right? ), then import this class library to my real C# project. So,I have inluded all the include files, library file to my project. But when I try to compile it I end up with the error:
""error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup"" Mad | :mad:

my .h file:

// uFWrapper.h
#pragma once

public __gc class uFWrapperClass
{
public:
uFWrapperClass();
~uFWrapperClass();
void TestFunc();
};

my .cpp file:

// This is the main DLL file.

#include "stdafx.h"
#include "uFWrapper.h"
#include <stdio.h>

using namespace System;

#include "allapi.h" //Necessary inc
#include "log.h" //files
#include "serial.h" //for functions
#include "command.h" //in
#include "config.h" //.lib
#include "module.h" //file


#if defined(TOOL_WIN32)
#define NOGDI
#include <windows.h>
#endif

uFWrapperClass::uFWrapperClass() //construct
{
}

uFWrapperClass::~uFWrapperClass() //destruct
{
}


void uFWrapperClass::TestFunc()
{
int rangeStart = 0x990;
int rangeEnd = 0x999;
UAIdentify(&rangeStart, &rangeEnd); //when this line is include
//i end up with error. This func is in .lib
}


What am I doing wrong? Frown | :(
GeneralRe: unmanaged .lib in VS.NET Pin
Jose Lamas Rios9-Aug-05 4:20
Jose Lamas Rios9-Aug-05 4:20 
GeneralRe: unmanaged .lib in VS.NET Pin
Alper KARS9-Aug-05 4:44
Alper KARS9-Aug-05 4:44 
GeneralThe troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
CNHKfsh9-Aug-05 0:58
CNHKfsh9-Aug-05 0:58 
GeneralRe: The troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
David Crow9-Aug-05 2:45
David Crow9-Aug-05 2:45 
GeneralRe: The troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
ALittleTree9-Aug-05 4:33
ALittleTree9-Aug-05 4:33 
GeneralRe: The troublesome BOOKMARK question of VC6.0 ! help ~~~~ Pin
CNHKfsh9-Aug-05 17:02
CNHKfsh9-Aug-05 17:02 
Generalto BOOL or not to bool Pin
BadKarma8-Aug-05 23:50
BadKarma8-Aug-05 23:50 
GeneralRe: to BOOL or not to bool Pin
Eytukan9-Aug-05 0:09
Eytukan9-Aug-05 0:09 
GeneralRe: to BOOL or not to bool Pin
Marc Soleda9-Aug-05 0:14
Marc Soleda9-Aug-05 0:14 
GeneralRe: to BOOL or not to bool Pin
David Crow9-Aug-05 2:48
David Crow9-Aug-05 2:48 
GeneralRe: to BOOL or not to bool Pin
Marc Soleda9-Aug-05 3:12
Marc Soleda9-Aug-05 3:12 
GeneralRe: to BOOL or not to bool Pin
Tim Smith9-Aug-05 3:54
Tim Smith9-Aug-05 3:54 
GeneralRe: to BOOL or not to bool Pin
V.9-Aug-05 0:16
professionalV.9-Aug-05 0:16 
GeneralRe: to BOOL or not to bool Pin
Tim Smith9-Aug-05 3:55
Tim Smith9-Aug-05 3:55 
GeneralRe: to BOOL or not to bool Pin
John R. Shaw9-Aug-05 10:38
John R. Shaw9-Aug-05 10:38 
GeneralUsing GAMS in a VIsual C++ program Pin
Anonymous8-Aug-05 23:47
Anonymous8-Aug-05 23:47 
Generaltype conversion Pin
Member 20725788-Aug-05 22:55
Member 20725788-Aug-05 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.