Click here to Skip to main content
15,847,077 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 1:52
VCProgrammer3-Apr-12 1:52 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 1:59
professionalJochen Arndt3-Apr-12 1:59 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 2:02
VCProgrammer3-Apr-12 2:02 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 2:12
professionalJochen Arndt3-Apr-12 2:12 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 2:17
VCProgrammer3-Apr-12 2:17 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 2:31
professionalJochen Arndt3-Apr-12 2:31 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 3:47
VCProgrammer3-Apr-12 3:47 
QuestionDuplicate Function - Linker Error LNK2005 Pin
Mike Certini2-Apr-12 10:30
Mike Certini2-Apr-12 10:30 
I have been racking my brain trying to figure out how to resolve a duplicate function error (LNK2005) and have been unsuccessful. I have followed direction on the following link as well: http://msdn.microsoft.com/en-us/library/72zdcz6f(v=VS.80).aspx Attached is a printscreen of where the error occurs. The following are issues I have come across:

1. One thing I noted in the output build report is that after invoking the linker with LINK.exe, one of the linker parameters that prints is /incremental:no, though when I look under Solution Explorer\Properties\Configuration Properties\Linker\General\Enable Incremental Linking the setting is Yes(/Incremental). Is there a setting somewhere that is causing an over-ride of the setting? I have done a build/clean for the project.

2. I have specified under Solution Explorer\Properties\Configuration Properties\Linker\Input\Ignore Specific Library the mfcs90ud.lib file. I added it back as an additional dependency. Though I still have problems with this lib file.

C++
// MetaDLL_5.cpp : Defines the initialization routines for the DLL.
//
#pragma once

#define WIN32_LEAN_AND_MEAN
//#define _AFXDLL

//#include <windows.h>
#include "stdafx.h"

#include "MetaDLL_6.h"
#using <mscorlib.dll>

using namespace System;
using namespace System::Globalization;
using namespace System::Runtime::InteropServices;
using System::String;

#define MT4_EXPFUNC __declspec(dllexport)

#pragma managed
String *ansi_to_managed(char *date_time)
	{
	return Marshal::PtrToStringAnsi(date_time);
	}

#pragma unmanaged
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
	{
	return TRUE;
	}

#pragma managed
MT4_EXPFUNC void __stdcall gDateTime(char *date_time, int *year, int *month, int *day, int *hour, int *minute, int *second, int *millisecond)
	{
	
	//String *myDateTimeValue = ansi_to_managed(date_time);	
	String *myDateTimeValue	  = S"02/16/1992 12:15:12.253";
	String *expectedFormats[] = {S"MM/dd/yyyy HH:mm:ss.FFF"};
	IFormatProvider* culture = new CultureInfo(S"en_US", true);
	DateTime myDateTime = DateTime::ParseExact(myDateTimeValue, expectedFormats, culture, DateTimeStyles::AssumeLocal);
	
	*year			= myDateTime.Year;
	*month			= myDateTime.Month;
	*day			= myDateTime.Day;
	*hour			= myDateTime.Hour;
	*minute			= myDateTime.Minute;
	*second			= myDateTime.Second;
	*millisecond	= myDateTime.Millisecond;
	}

QuestionRe: Duplicate Function - Linker Error LNK2005 Pin
Richard MacCutchan2-Apr-12 22:25
mveRichard MacCutchan2-Apr-12 22:25 
QuestionCCommandLineInfo and parsing command line arguments. Pin
Maximilien2-Apr-12 4:47
Maximilien2-Apr-12 4:47 
AnswerRe: CCommandLineInfo and parsing command line arguments. Pin
Richard MacCutchan2-Apr-12 5:06
mveRichard MacCutchan2-Apr-12 5:06 
QuestionRe: CCommandLineInfo and parsing command line arguments. Pin
Maximilien2-Apr-12 5:34
Maximilien2-Apr-12 5:34 
AnswerRe: CCommandLineInfo and parsing command line arguments. Pin
Richard MacCutchan2-Apr-12 5:42
mveRichard MacCutchan2-Apr-12 5:42 
AnswerRe: CCommandLineInfo and parsing command line arguments. Pin
Jochen Arndt2-Apr-12 5:18
professionalJochen Arndt2-Apr-12 5:18 
QuestionTransparentBlt not showing background correctly Pin
Codling20202-Apr-12 4:39
Codling20202-Apr-12 4:39 
AnswerRe: TransparentBlt not showing background correctly Pin
Code-o-mat2-Apr-12 6:04
Code-o-mat2-Apr-12 6:04 
GeneralRe: TransparentBlt not showing background correctly Pin
Codling20202-Apr-12 6:37
Codling20202-Apr-12 6:37 
GeneralRe: TransparentBlt not showing background correctly Pin
Code-o-mat2-Apr-12 7:12
Code-o-mat2-Apr-12 7:12 
GeneralRe: TransparentBlt not showing background correctly Pin
Codling20202-Apr-12 7:35
Codling20202-Apr-12 7:35 
GeneralRe: TransparentBlt not showing background correctly Pin
Code-o-mat2-Apr-12 7:43
Code-o-mat2-Apr-12 7:43 
QuestionHow to check iterator for NULL Pin
KASR12-Apr-12 3:24
KASR12-Apr-12 3:24 
AnswerRe: How to check iterator for NULL Pin
Maximilien2-Apr-12 3:46
Maximilien2-Apr-12 3:46 
GeneralRe: How to check iterator for NULL Pin
KASR12-Apr-12 3:53
KASR12-Apr-12 3:53 
GeneralRe: How to check iterator for NULL Pin
Maximilien2-Apr-12 4:00
Maximilien2-Apr-12 4:00 
GeneralRe: How to check iterator for NULL Pin
KASR12-Apr-12 4:24
KASR12-Apr-12 4:24 

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.