Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDifference between New and Malloc ? Pin
15-Oct-01 22:40
suss15-Oct-01 22:40 
AnswerRe: Difference between New and Malloc ? Pin
markkuk16-Oct-01 1:04
markkuk16-Oct-01 1:04 
GeneralRe: Difference between New and Malloc ? Pin
Tomasz Sowinski16-Oct-01 1:21
Tomasz Sowinski16-Oct-01 1:21 
AnswerRe: Difference between New and Malloc ? Pin
Tomasz Sowinski16-Oct-01 1:10
Tomasz Sowinski16-Oct-01 1:10 
GeneralRe: Difference between New and Malloc ? Pin
16-Oct-01 5:53
suss16-Oct-01 5:53 
AnswerRe: found out the problem Pin
yarp16-Oct-01 8:31
yarp16-Oct-01 8:31 
GeneralRegister my OLE/COM object Pin
15-Oct-01 22:00
suss15-Oct-01 22:00 
GeneralRe: Register my OLE/COM object Pin
Christian Graus15-Oct-01 22:45
protectorChristian Graus15-Oct-01 22:45 
According to MSDN


Q. What are the reasons an ATL server might fail to register?

The following also applies to ATL 3.0:

A. The following are the top three reasons an ATL server might fail to register:


You built your project with _WIN32_WINNT=0x400 (the default), and you are not running the ATL server under Windows NT 4.0 or you do not have an up-to-date version of Oleaut32.dll. To solve this problem, run "DUMPBIN /EXPORTS OLEAUT32.DLL" and search for UnregisterTypelib. If it is not there, then your server cannot run. Remove this #define statement from Stdafx.h if you want to run the ATL server under Windows 95 or older versions of Windows NT. Alternatively, you can use LoadLibrary and GetProcAddress so that you can run optimally under both Windows 95 and Windows NT 4.0. The Oleaut32.dll that ships with the Internet Explorer 3.x is up-to-date.


You built your project as MinSize and Atl.dll is not properly installed on the system. The correct version of Atl.dll must be copied and registered by Regsvr32. There are Windows NT and Windows 95 versions of Atl.dll. The Windows 95 version runs under Windows NT. However, since it does not use the UNICODE APIs, it is slightly less efficient. Unless you build your project as MinDependency, you will need to install the correct version of Atl.dll and run Regsvr32 on it before you install your server.


You built your project as UNICODE, and you cannot run it under Windows 95.


The following are the steps to troubleshoot:


For a DLL server, run Regsvr32 in the debugger. Open the Project Settings dialog box and click the Debug tab. In the Executable for debug session text box, enter the full path to Regsvr32.exe, such as C:\Sharedide\Bin\Regsvr32.exe. In the Program arguments text box, specify the full path to your DLL, such as C:\Myprojects\MyFolder\Debug\MyFile.dll. Set a breakpoint at DllRegisterServer and start stepping.


For an EXE server, run it in the debugger and specify /REGSVR as its command-line argument.

I suggest if you need to ask this question again tomorrow you try to provide some more information, because it's obvious based on what you're asking that either you're not providing enough info, or you have got the right answers and want to hear something else. Have you got your books yet ?


Christian

As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.

Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
Generalthank you ! Can you explain me some things ? Pin
15-Oct-01 23:18
suss15-Oct-01 23:18 
GeneralRe: thank you ! Can you explain me some things ? Pin
Christian Graus15-Oct-01 23:46
protectorChristian Graus15-Oct-01 23:46 
GeneralRegister my OLE/COM object Pin
15-Oct-01 23:40
suss15-Oct-01 23:40 
GeneralRe: Register my OLE/COM object Pin
Christian Graus16-Oct-01 0:20
protectorChristian Graus16-Oct-01 0:20 
Generalexcuse me ! It was stupid ! but- Pin
16-Oct-01 0:36
suss16-Oct-01 0:36 
GeneralRe: excuse me ! It was stupid ! but- Pin
Michael P Butler16-Oct-01 0:43
Michael P Butler16-Oct-01 0:43 
Generalexcuse me ! I didnt understand you ! Pin
16-Oct-01 0:53
suss16-Oct-01 0:53 
GeneralRe: excuse me ! I didnt understand you ! Pin
Christian Graus16-Oct-01 1:22
protectorChristian Graus16-Oct-01 1:22 
GeneralRe: excuse me ! I didnt understand you ! Pin
#realJSOP16-Oct-01 1:28
professional#realJSOP16-Oct-01 1:28 
QuestionHow to get the width and height of a window? (MFC) Pin
15-Oct-01 21:10
suss15-Oct-01 21:10 
AnswerRe: How to get the width and height of a window? (MFC) Pin
PJ Arends15-Oct-01 21:15
professionalPJ Arends15-Oct-01 21:15 
AnswerRe: How to get the width and height of a window? (MFC) Pin
Michael Dunn15-Oct-01 21:16
sitebuilderMichael Dunn15-Oct-01 21:16 
AnswerRe: How to get the width and height of a window? (MFC) Pin
Braulio Dez16-Oct-01 3:21
Braulio Dez16-Oct-01 3:21 
AnswerRe: How to get the width and height of a window? (MFC) Pin
JerzyPeter16-Oct-01 6:43
JerzyPeter16-Oct-01 6:43 
GeneralNon VC - But Help greatly appriciated - working with InstallShields Pin
Statbat15-Oct-01 20:25
Statbat15-Oct-01 20:25 
GeneralRe: Non VC - But Help greatly appriciated - working with InstallShields Pin
16-Oct-01 1:08
suss16-Oct-01 1:08 
GeneralRe: Non VC - But Help greatly appriciated - working with InstallShields Pin
Not Active16-Oct-01 1:57
mentorNot Active16-Oct-01 1:57 

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.