Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: passing pointers to functions as function args Pin
mightymark9-Oct-01 19:25
mightymark9-Oct-01 19:25 
GeneralRe: passing pointers to functions as function args Pin
Steen Krogsgaard10-Oct-01 1:33
Steen Krogsgaard10-Oct-01 1:33 
GeneralRe: passing pointers to functions as function args Pin
mightymark10-Oct-01 20:18
mightymark10-Oct-01 20:18 
GeneralRe: passing pointers to functions as function args Pin
mightymark9-Oct-01 20:27
mightymark9-Oct-01 20:27 
GeneralRe: passing pointers to functions as function args Pin
Steen Krogsgaard10-Oct-01 1:23
Steen Krogsgaard10-Oct-01 1:23 
GeneralRe: passing pointers to functions as function args Pin
mightymark10-Oct-01 20:21
mightymark10-Oct-01 20:21 
GeneralRe: passing pointers to functions as function args Pin
Steen Krogsgaard10-Oct-01 22:31
Steen Krogsgaard10-Oct-01 22:31 
GeneralMultilanguge ActiveX Control Pin
Fredrik Sigbjörn8-Oct-01 21:19
Fredrik Sigbjörn8-Oct-01 21:19 
I Tried to do what I have with success done with a normal program, to put resources in dll files.
I've done everything accordning to "Q198846-HOWTO: Create Localized Resource DLLs for MFC Application".

However, in a ActiveX this doesn't seem to work.
First problem is when compiling the ResourceDll.
It complains that the file "MyOcx.tlb" can't be found, thats not odd, since it hasn't been created yet.

//from the MyOcx.rc file
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
//1 TYPELIB "MyOcx.tlb"

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

So I snuffed it out and tried, and it compiled. Well that won't probably work later, but i kept trying.

I Compiled the MyOcx and it worked, until it tries to register the ActiveX Control. Then regsvr32 asserts, so it cant be registered.
I presume it's either the preprocessor def AFX_RESOURCE_DLL or the LoadLibrary i make that crashes it.

So now my question is, can I, in any way, add multilanguage support to my ActiveX, or do I have to think in a totally diffrent way and maybe use plain old textfiles for language files.


TIA
Fredrik Sigbjörn
GeneralShowing window with and without title bar Pin
D.D. de Kerf8-Oct-01 20:49
D.D. de Kerf8-Oct-01 20:49 
GeneralNDI Cache Pin
ColinDavies8-Oct-01 17:03
ColinDavies8-Oct-01 17:03 
GeneralMouse capture problem Pin
Mr.Freeze8-Oct-01 16:44
Mr.Freeze8-Oct-01 16:44 
GeneralRe: Mouse capture problem Pin
Chaos Lawful8-Oct-01 23:37
Chaos Lawful8-Oct-01 23:37 
GeneralRe: Mouse capture problem Pin
Mr.Freeze9-Oct-01 0:10
Mr.Freeze9-Oct-01 0:10 
GeneralMassive bloat with WTL's CFileDialog Pin
Michael Dunn8-Oct-01 16:21
sitebuilderMichael Dunn8-Oct-01 16:21 
GeneralMy rc file got too fat !!! Pin
8-Oct-01 15:54
suss8-Oct-01 15:54 
GeneralRe: My rc file got too fat !!! Pin
8-Oct-01 21:43
suss8-Oct-01 21:43 
GeneralRe: My rc file got too fat !!! Pin
8-Oct-01 22:48
suss8-Oct-01 22:48 
Generaldirectory and DFileDialog Pin
8-Oct-01 14:51
suss8-Oct-01 14:51 
GeneralRe: directory and DFileDialog Pin
Michael Dunn8-Oct-01 16:12
sitebuilderMichael Dunn8-Oct-01 16:12 
GeneralRe: directory and DFileDialog Pin
Fredrik Sigbjörn8-Oct-01 21:24
Fredrik Sigbjörn8-Oct-01 21:24 
GeneralProper implementation of ComboBox Pin
Xian8-Oct-01 14:45
Xian8-Oct-01 14:45 
GeneralRe: Proper implementation of ComboBox Pin
Brendan Tregear8-Oct-01 18:03
Brendan Tregear8-Oct-01 18:03 
Question.NET to replace MFC???? Pin
Stormwind8-Oct-01 14:37
Stormwind8-Oct-01 14:37 
AnswerRe: .NET to replace MFC???? Pin
Fazlul Kabir8-Oct-01 14:55
Fazlul Kabir8-Oct-01 14:55 
AnswerRe: .NET to replace MFC???? Pin
Christian Graus8-Oct-01 15:52
protectorChristian Graus8-Oct-01 15: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.