Click here to Skip to main content
15,879,095 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCalling a MFC dialog from win32 Pin
rdeekonda29-Jul-16 5:46
rdeekonda29-Jul-16 5:46 
AnswerRe: Calling a MFC dialog from win32 Pin
Afzaal Ahmad Zeeshan29-Jul-16 6:01
professionalAfzaal Ahmad Zeeshan29-Jul-16 6:01 
GeneralRe: Calling a MFC dialog from win32 Pin
rdeekonda29-Jul-16 7:04
rdeekonda29-Jul-16 7:04 
AnswerRe: Calling a MFC dialog from win32 Pin
Richard MacCutchan29-Jul-16 6:46
mveRichard MacCutchan29-Jul-16 6:46 
GeneralRe: Calling a MFC dialog from win32 Pin
rdeekonda29-Jul-16 7:08
rdeekonda29-Jul-16 7:08 
GeneralRe: Calling a MFC dialog from win32 Pin
Richard MacCutchan29-Jul-16 22:19
mveRichard MacCutchan29-Jul-16 22:19 
QuestionHow to open file with single quote in its name? Pin
liquid_23-Jul-16 20:09
liquid_23-Jul-16 20:09 
AnswerRe: How to open file with single quote in its name? Pin
Richard MacCutchan23-Jul-16 20:52
mveRichard MacCutchan23-Jul-16 20:52 
GeneralRe: How to open file with single quote in its name? Pin
liquid_23-Jul-16 23:40
liquid_23-Jul-16 23:40 
GeneralRe: How to open file with single quote in its name? Pin
Jochen Arndt24-Jul-16 0:20
professionalJochen Arndt24-Jul-16 0:20 
GeneralRe: How to open file with single quote in its name? Pin
liquid_24-Jul-16 0:21
liquid_24-Jul-16 0:21 
GeneralRe: How to open file with single quote in its name? Pin
Jochen Arndt24-Jul-16 0:34
professionalJochen Arndt24-Jul-16 0:34 
GeneralRe: How to open file with single quote in its name? Pin
liquid_27-Jul-16 8:06
liquid_27-Jul-16 8:06 
GeneralRe: How to open file with single quote in its name? Pin
Richard MacCutchan24-Jul-16 1:26
mveRichard MacCutchan24-Jul-16 1:26 
Questioncode Pin
Member 1222782612-Jun-16 21:24
Member 1222782612-Jun-16 21:24 
AnswerRe: code Pin
Jochen Arndt12-Jun-16 22:38
professionalJochen Arndt12-Jun-16 22:38 
AnswerRe: code Pin
Patrice T17-Feb-17 13:47
mvePatrice T17-Feb-17 13:47 
QuestionSending raw data to a chinese POS58 thermal printer Pin
sdancer757-Jun-16 8:42
sdancer757-Jun-16 8:42 
AnswerRe: Sending raw data to a chinese POS58 thermal printer Pin
Richard MacCutchan7-Jun-16 8:59
mveRichard MacCutchan7-Jun-16 8:59 
QuestionDatabase Migration in C++ and Oracle Pin
Donguy197611-May-16 11:30
Donguy197611-May-16 11:30 
AnswerRe: Database Migration in C++ and Oracle Pin
Richard MacCutchan11-May-16 20:29
mveRichard MacCutchan11-May-16 20:29 
QuestionLinking my first DLL Pin
bkelly1328-Feb-16 14:53
bkelly1328-Feb-16 14:53 
AnswerRe: Linking my first DLL Pin
Richard MacCutchan28-Feb-16 21:35
mveRichard MacCutchan28-Feb-16 21:35 
GeneralRe: Linking my first DLL Pin
bkelly1329-Feb-16 15:50
bkelly1329-Feb-16 15:50 
I had not found that one, but went through it. I read the instructions, adapted the steps to my solution as I understand them, and the project in the same solution that used the DLL worked perfectly. That is cool.

However, I noted something. From that walkthrough web page is this:
Quote:
To use in the app the math routines that you created in the DLL, you must reference it. To do this, select the MyExecRefsDll project in Solution Explorer, and then on the menu bar, choose Project, References. In the Property Pages dialog box, expand the Common Properties node, select Framework and References, and then choose the Add New Reference button. For more information about the References dialog box, see Adding references in Visual C++ projects.

When I arrived at the dialog to add a reference the only allowed option was the DLL in the same solution. I created another solution in another directory to test using the DLL from another directory and solution. I navigated to same place within the IDE and the new solution with:
Quote:
right click solution -> References -> Add New Reference

The response is "No items found." The dialog offers no method of discovering a DLL somewhere else on the computer. There is still something simple I am missing.

How does one specify an arbitrary DLL to use as a procedure or class resource?

Edit: From the new solution I tried this: in the dot cpp file, console app, I added this line:
C++
#include "E:\CODE\Common_Utilities\Common_Utilities\Common_Utilities.h"

It is a reference to the h file from the solution where the DLL was created. In that new console app I called a function from the DLL. Then the following steps were taken:
Quote:
Right click on solution followed by: Properties -> configuration Properties -> Linker -> General -> field Additional library directories.

In that field I edited in the location of the dll from that dll solution. The compile succeeds but the link continues to fail with error LNK 2019 unresolved external symbol and __delspec(dllimport)
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 29-Feb-16 22:09pm.

GeneralRe: Linking my first DLL Pin
Richard MacCutchan29-Feb-16 21:52
mveRichard MacCutchan29-Feb-16 21:52 

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.