Click here to Skip to main content
15,902,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPre used resource ids by visual studio Pin
Harsh Shankar22-Dec-10 23:45
Harsh Shankar22-Dec-10 23:45 
QuestionHow can i load a win32 DLL which expoting Classes? Pin
bankey101022-Dec-10 20:28
bankey101022-Dec-10 20:28 
AnswerRe: How can i load a win32 DLL which expoting Classes? Pin
Cedric Moonen22-Dec-10 21:19
Cedric Moonen22-Dec-10 21:19 
AnswerRe: How can i load a win32 DLL which expoting Classes? Pin
ThatsAlok22-Dec-10 22:37
ThatsAlok22-Dec-10 22:37 
AnswerRe: How can i load a win32 DLL which expoting Classes? Pin
bleedingfingers22-Dec-10 23:27
bleedingfingers22-Dec-10 23:27 
GeneralRe: How can i load a win32 DLL which expoting Classes? Pin
bankey101023-Dec-10 2:48
bankey101023-Dec-10 2:48 
GeneralRe: How can i load a win32 DLL which expoting Classes? Pin
bleedingfingers23-Dec-10 22:08
bleedingfingers23-Dec-10 22:08 
AnswerRe: How can i load a win32 DLL which expoting Classes? Pin
Ralf.Bue23-Dec-10 8:19
Ralf.Bue23-Dec-10 8:19 
Hello Bankey,
your DLL may be a COM object library (inproc server), that does not export classes but publishes interfaces. You don't have to load such a library and you don't need to edit a header file. But your EXP-file may contain the interface descriptions.
Have a look inside the DLL with QuickViewPlus or any HEX editor. If you can see any function like "DllGetClassObject" or "DllRegisterServer" in section "Export-Table" perform the following steps:

1. register your DLL with: regsv32.exe pathto\your.dll
You should get a message like "DLLRegisterserver" in your.DLL succeeded", if not, forget my replay.
2. Your development environment should support the function "Import TypeLib". If you perform this action in your code project while selecting your DLL, a new modul should be created that contains the interface description (basicly *_TLB.*).

After step 1 and without any development environment I would do so:
- run regedit.exe
- select HK_ROOT
- find "your.dll" repeately
- for every exported COM object a key like "HKEY_CLASSES_ROOT\CLSID\{...}\InprocServer32" should be found
- look at subkey "\ProgID": here is the class name like "Scriptung.FileSystemObject"
- now you can create an instance in a simple VBS file with
set oObj = CreateObject(Value_Of_ProgID)
If you have determined the ProgID's in this way, you can use MSOffice VBA editor to include the COM objects by name and explore their interfaces.

Regards
Ralf
QuestionCComboBox donot update[solved] Pin
yu-jian22-Dec-10 19:52
yu-jian22-Dec-10 19:52 
AnswerRe: CComboBox donot update Pin
Roger Broomfield22-Dec-10 20:05
Roger Broomfield22-Dec-10 20:05 
GeneralRe: CComboBox donot update Pin
yu-jian23-Dec-10 2:49
yu-jian23-Dec-10 2:49 
GeneralRe: CComboBox donot update Pin
yu-jian23-Dec-10 21:52
yu-jian23-Dec-10 21:52 
Questionhow to compare two audio file Pin
rajniyadav1a22-Dec-10 18:35
rajniyadav1a22-Dec-10 18:35 
AnswerRe: how to compare two audio file Pin
ShilpiP22-Dec-10 20:43
ShilpiP22-Dec-10 20:43 
AnswerRe: how to compare two audio file Pin
Richard MacCutchan22-Dec-10 22:07
mveRichard MacCutchan22-Dec-10 22:07 
AnswerRe: how to compare two audio file Pin
ThatsAlok22-Dec-10 22:40
ThatsAlok22-Dec-10 22:40 
GeneralRe: how to compare two audio file Pin
Michael Schubert22-Dec-10 22:44
Michael Schubert22-Dec-10 22:44 
JokeRe: how to compare two audio file Pin
Chris Meech23-Dec-10 4:10
Chris Meech23-Dec-10 4:10 
AnswerRe: how to compare two audio file Pin
jk chan23-Dec-10 21:49
jk chan23-Dec-10 21:49 
AnswerRe: how to compare two audio file Pin
Bathula.Sreekaanth28-Dec-10 2:56
Bathula.Sreekaanth28-Dec-10 2:56 
QuestionProblem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit Pin
Aseem Sharma22-Dec-10 15:01
Aseem Sharma22-Dec-10 15:01 
AnswerRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit Pin
ShilpiP22-Dec-10 20:41
ShilpiP22-Dec-10 20:41 
GeneralRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit Pin
Aseem Sharma22-Dec-10 22:15
Aseem Sharma22-Dec-10 22:15 
Question[SOLVED]...conversion from CString to LPSTR Pin
AmbiguousName22-Dec-10 8:29
AmbiguousName22-Dec-10 8:29 
AnswerRe: conversion from CString to LPSTR Pin
Joe Woodbury22-Dec-10 8:34
professionalJoe Woodbury22-Dec-10 8:34 

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.