Click here to Skip to main content
15,890,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGif in listctrl? Pin
Tcpip20052-Dec-10 16:45
Tcpip20052-Dec-10 16:45 
AnswerRe: Gif in listctrl? Pin
David Crow2-Dec-10 17:10
David Crow2-Dec-10 17:10 
AnswerRe: Gif in listctrl? Pin
Niklas L2-Dec-10 20:48
Niklas L2-Dec-10 20:48 
GeneralRe: Gif in listctrl? Pin
Tcpip20053-Dec-10 20:09
Tcpip20053-Dec-10 20:09 
QuestionVS 2010 - SubClass - FromHandlePermanent Assert Pin
Tony Teveris2-Dec-10 15:55
Tony Teveris2-Dec-10 15:55 
AnswerRe: VS 2010 - SubClass - FromHandlePermanent Assert Pin
Randor 2-Dec-10 19:20
professional Randor 2-Dec-10 19:20 
QuestionExcel automation: SetValue() function throws exception when user changes sheets Pin
garyflet2-Dec-10 9:14
garyflet2-Dec-10 9:14 
QuestionMy own written DLL not accessible in dialog based app; [modified] Pin
AmbiguousName2-Dec-10 8:41
AmbiguousName2-Dec-10 8:41 
hllo guys...I tried to write my own DLL with simple functions which so far im successful. It lookd like this
MyDll.h
-------

namespace MyDll
{
   class MyOwnDll
   {
       //function here
       static _declspec(dllexport) void PrintMsg();
   };
}

MyDll.cpp
---------
namespace MyDll
{
    void MyOwnDll::PrintMsg()
    {
        ::MessageBox(0,"","",0);
    }
}

Now I added this DLL to my dialog based application (MyDll.h in "stdafx.h" of MyProj) and build the solution. Everything is fine and it builds. But when I try to use this, it show errors stating Undeclared Identifier. Here is how I use it
MyProjDlg.cpp
-------------
{
     ...............
     ...............

     void MyProjDlg::MyMsg() //function added to a button
     {
         MyOwnDll mod;     //myTapi, mod ==> Undeclared Identifier
         mod.PrintMsg();  //mod ==> Undeclared Identifier
     }
}

All the paths and libraries are included, everything looks fine. But why it is not able to find this?? Confused | :confused: thnx

modified on Thursday, December 2, 2010 2:47 PM

AnswerRe: My own written DLL not accessible in dialog based app; Pin
Aescleal2-Dec-10 9:39
Aescleal2-Dec-10 9:39 
AnswerRe: My own written DLL not accessible in dialog based app; Pin
Sauro Viti2-Dec-10 9:39
professionalSauro Viti2-Dec-10 9:39 
GeneralRe: My own written DLL not accessible in dialog based app; Pin
AmbiguousName2-Dec-10 22:31
AmbiguousName2-Dec-10 22:31 
GeneralRe: My own written DLL not accessible in dialog based app; Pin
Sauro Viti3-Dec-10 1:36
professionalSauro Viti3-Dec-10 1:36 
Question[C++] First Order Logic (FOL) Parsing and Compiling Pin
erotavlas_turbo2-Dec-10 3:23
erotavlas_turbo2-Dec-10 3:23 
AnswerRe: [C++] First Order Logic (FOL) Parsing and Compiling Pin
Alain Rist2-Dec-10 6:43
Alain Rist2-Dec-10 6:43 
Questionhow to define 'window.myapp' instead of 'window.external' in IE Control with js? Pin
Jun Jin Pyo2-Dec-10 0:19
Jun Jin Pyo2-Dec-10 0:19 
Questiondisabling alt+space Pin
learningvisualc1-Dec-10 23:32
learningvisualc1-Dec-10 23:32 
AnswerRe: disabling alt+space Pin
Rajesh R Subramanian2-Dec-10 0:08
professionalRajesh R Subramanian2-Dec-10 0:08 
GeneralRe: disabling alt+space Pin
pasztorpisti2-Dec-10 3:30
pasztorpisti2-Dec-10 3:30 
AnswerRe: disabling alt+space Pin
Emilio Garavaglia2-Dec-10 22:30
Emilio Garavaglia2-Dec-10 22:30 
GeneralRe: disabling alt+space Pin
pasztorpisti2-Dec-10 23:00
pasztorpisti2-Dec-10 23:00 
GeneralRe: disabling alt+space Pin
Rajesh R Subramanian2-Dec-10 23:38
professionalRajesh R Subramanian2-Dec-10 23:38 
GeneralRe: disabling alt+space Pin
pasztorpisti3-Dec-10 0:13
pasztorpisti3-Dec-10 0:13 
GeneralRe: disabling alt+space Pin
Emilio Garavaglia3-Dec-10 1:23
Emilio Garavaglia3-Dec-10 1:23 
QuestionHow to code starting program with windows Pin
Max++1-Dec-10 22:18
Max++1-Dec-10 22:18 
AnswerRe: How to code starting program with windows Pin
Cool_Dev2-Dec-10 1:29
Cool_Dev2-Dec-10 1:29 

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.