Click here to Skip to main content
15,909,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 14:04
Mark Salsbery23-May-07 14:04 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 14:03
Mark Salsbery23-May-07 14:03 
GeneralRe: Layered window ! Pin
Adno23-May-07 14:29
Adno23-May-07 14:29 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 15:04
Mark Salsbery23-May-07 15:04 
GeneralRe: Layered window ! Pin
Mark Salsbery23-May-07 12:44
Mark Salsbery23-May-07 12:44 
GeneralRe: Layered window ! Pin
Adno23-May-07 12:48
Adno23-May-07 12:48 
QuestionAbout ActiveDirectory and SIDs ? Pin
Akin Ocal23-May-07 9:54
Akin Ocal23-May-07 9:54 
Questioncalling com dll from C++ Pin
pnpfriend23-May-07 9:39
pnpfriend23-May-07 9:39 
Hi,
I had created dll using C# and I had been using that myLib.dll for long time.
But today, I updated myLib.dll and register it again with RegAsm.exe and create the myLib.tlb file as I used to do. However my C++ program couldn't create Instance of dll because "The System cannot findthe file specified." error message today.

What did I do wrong today? It was OK all time. I had updated myDll.dll so many time before and able to called from C++ program using the same function

bool CClientJob::CoInitRoscoeLib(void)
{
m_roscoeLib = NULL;
int retval = 1;
CoInitialize(NULL);
HRESULT hr = CoCreateInstance(CLSID_MyLib,
NULL,
CLSCTX_INPROC_SERVER,
IID_IMyLib,
reinterpret_cast<void**>(&m_myLib));

if (FAILED(hr))
{
CString k;
k.Format(L"Couldn't create the instance!... 0x%x\n", hr);
AfxMessageBox(k);
return false;
}
else
return true;
}

in CClientJob.h i have
#import "C:\Code\2007\03\RoscoeFuns\RoscoeFuns\bin\Debug\myLib_4.tlb" no_namespace named_guids

Why the error message of HRESULT hr is
" 0x80070002 The system cannot find the file specified. "

Please help me out.
Thank you so much.
AnswerRe: calling com dll from C++ Pin
led mike23-May-07 10:23
led mike23-May-07 10:23 
GeneralRe: calling com dll from C++ Pin
pnpfriend24-May-07 6:51
pnpfriend24-May-07 6:51 
GeneralRe: calling com dll from C++ Pin
led mike24-May-07 6:59
led mike24-May-07 6:59 
GeneralRe: calling com dll from C++ Pin
pnpfriend24-May-07 11:17
pnpfriend24-May-07 11:17 
GeneralRe: calling com dll from C++ Pin
led mike25-May-07 5:00
led mike25-May-07 5:00 
GeneralRe: calling com dll from C++ Pin
pnpfriend31-May-07 4:09
pnpfriend31-May-07 4:09 
QuestionsplitterWnd in SDI MFC Pin
gurucplusplus23-May-07 9:18
gurucplusplus23-May-07 9:18 
AnswerRe: splitterWnd in SDI MFC Pin
Nelek23-May-07 19:58
protectorNelek23-May-07 19:58 
GeneralRe: splitterWnd in SDI MFC Pin
gurucplusplus24-May-07 5:44
gurucplusplus24-May-07 5:44 
AnswerRe: splitterWnd in SDI MFC Pin
jhwurmbach23-May-07 22:35
jhwurmbach23-May-07 22:35 
GeneralRe: splitterWnd in SDI MFC Pin
gurucplusplus24-May-07 5:47
gurucplusplus24-May-07 5:47 
GeneralRe: splitterWnd in SDI MFC Pin
jhwurmbach25-May-07 1:10
jhwurmbach25-May-07 1:10 
QuestionMove some functions to a new cpp file [modified] Pin
Johpoke23-May-07 9:13
Johpoke23-May-07 9:13 
AnswerRe: Move some functions to a new cpp file Pin
JudyL_MD23-May-07 9:52
JudyL_MD23-May-07 9:52 
AnswerRe: Move some functions to a new cpp file (Solved) Pin
Johpoke23-May-07 20:57
Johpoke23-May-07 20:57 
QuestionDivX compression Pin
Skywalker200823-May-07 8:42
Skywalker200823-May-07 8:42 
QuestionBase relocating on Vista? Pin
Xero|Hawk23-May-07 6:55
Xero|Hawk23-May-07 6: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.