Click here to Skip to main content
15,906,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to play a .mod or .xm music? Pin
lenghost4-Aug-03 15:17
lenghost4-Aug-03 15:17 
QuestionHow to disable displaying "..." in column header when text is wider? Pin
s_k3-Aug-03 22:30
s_k3-Aug-03 22:30 
AnswerRe: How to disable displaying "..." in column header when text is wider? Pin
Kochise4-Aug-03 1:58
Kochise4-Aug-03 1:58 
GeneralOne time initialization after modal dialog box is shown Pin
harmendejong3-Aug-03 21:52
harmendejong3-Aug-03 21:52 
GeneralRe: One time initialization after modal dialog box is shown Pin
David Crow4-Aug-03 5:34
David Crow4-Aug-03 5:34 
GeneralRe: One time initialization after modal dialog box is shown Pin
PJ Arends4-Aug-03 5:42
professionalPJ Arends4-Aug-03 5:42 
QuestionHow to combine a dll into exe-file ? Pin
suninwater3-Aug-03 21:45
suninwater3-Aug-03 21:45 
AnswerRe: How to combine a dll into exe-file ? Pin
Joe Woodbury3-Aug-03 22:05
professionalJoe Woodbury3-Aug-03 22:05 
I've done this several times and the most effective way has been to convert the DLLs into libraries.

First, get a list of all the files in the project (it's not unusual to have some files in the directory which aren't actually in the project.)

Second, remove the DllInit function. Usually you don't need to replace it with anything since it doesn't do anything. If it does, you can often create a small private class and instantiate it globally. If that won't work, simply add Init() and DeInit() functions then call them from the main program in the proper manner and sequence.

DO NOT get fancy at this point. It's a huge temptation, but one you must resist.

Third, fix up the headers. You don't need the "dllimport"/"dllexport", etc stuff. (Nor do you need the .def file.) Add #pragma comment(lib, "put library name here.lib") to the header.

Fourth. Ensure the libraries are subprojects of the master project. Add the subprojects to the master. Set the dependencies and paths and you're off!

Fifth, oh, and go through the main project to ensure you aren't "manually" loading the DLLs or accessing them through a pointer or other such strangeness.
QuestionHow i can recognize what stream use any control Pin
El'Cachubrey3-Aug-03 21:33
El'Cachubrey3-Aug-03 21:33 
GeneralSerializing class derived from CArray Pin
Mike Ellertson3-Aug-03 20:46
sussMike Ellertson3-Aug-03 20:46 
GeneralRe: Serializing class derived from CArray Pin
Ryan Binns4-Aug-03 2:07
Ryan Binns4-Aug-03 2:07 
GeneralRe: Serializing class derived from CArray Pin
Mikey_E5-Aug-03 7:09
professionalMikey_E5-Aug-03 7:09 
GeneralI solved the problem - have no idea why this work - take a look. Pin
devvvy3-Aug-03 20:18
devvvy3-Aug-03 20:18 
GeneralRe: I solved the problem - have no idea why this work - take a look. Pin
BoudewijnEctor4-Aug-03 4:03
BoudewijnEctor4-Aug-03 4:03 
GeneralCapturing Video Surface Pin
Chiew Heng Wah3-Aug-03 20:16
Chiew Heng Wah3-Aug-03 20:16 
GeneralRe: Capturing Video Surface Pin
Joey Bloggs3-Aug-03 22:32
Joey Bloggs3-Aug-03 22:32 
GeneralRe: Capturing Video Surface Pin
Chiew Heng Wah4-Aug-03 1:04
Chiew Heng Wah4-Aug-03 1:04 
GeneralRe: Capturing Video Surface Pin
Kochise4-Aug-03 2:02
Kochise4-Aug-03 2:02 
GeneralRe: Capturing Video Surface Pin
Chiew Heng Wah4-Aug-03 22:07
Chiew Heng Wah4-Aug-03 22:07 
GeneralRe: Capturing Video Surface Pin
Member 161799930-May-05 4:53
Member 161799930-May-05 4:53 
QuestionHow to capture the file name while doing saving process of a file Pin
tha_siva3-Aug-03 20:01
tha_siva3-Aug-03 20:01 
GeneralBitmap constructor Pin
devvvy3-Aug-03 19:47
devvvy3-Aug-03 19:47 
GeneralLooking for graphics app shell Pin
Ken Turkowki3-Aug-03 19:45
Ken Turkowki3-Aug-03 19:45 
GeneralRe: Looking for graphics app shell Pin
Andrew Walker4-Aug-03 1:53
Andrew Walker4-Aug-03 1:53 
GeneralRetrieving LAN ipaddress range programmatically Pin
haritadala3-Aug-03 19:04
haritadala3-Aug-03 19:04 

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.