Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreatethread fails but does not return NULL Pin
Anonymous16-Sep-04 8:02
Anonymous16-Sep-04 8:02 
GeneralRe: Createthread fails but does not return NULL Pin
David Crow16-Sep-04 9:32
David Crow16-Sep-04 9:32 
GeneralRe: Createthread fails but does not return NULL Pin
Alexander M.,16-Sep-04 9:42
Alexander M.,16-Sep-04 9:42 
GeneralPreventing multiple instance creation in DLL Pin
0v3rloader16-Sep-04 7:58
0v3rloader16-Sep-04 7:58 
GeneralRe: Preventing multiple instance creation in DLL Pin
David Crow16-Sep-04 9:36
David Crow16-Sep-04 9:36 
GeneralRe: Preventing multiple instance creation in DLL Pin
Alexander M.,16-Sep-04 9:46
Alexander M.,16-Sep-04 9:46 
GeneralRe: Preventing multiple instance creation in DLL Pin
0v3rloader17-Sep-04 1:21
0v3rloader17-Sep-04 1:21 
GeneralRe: Preventing multiple instance creation in DLL Pin
shiraztk17-Sep-04 1:58
shiraztk17-Sep-04 1:58 
Hi
Am not sure if it will work or if its the correct way.

Created a shared variable, so that this variable will be shared among the all the loaded Dll.

#pragma data_seg(".DAT")
int NumberofInstance 0
#pragma data_seg()

..
..
NumberofInstance++;
if(NumberofInstance>1)
{
Dont load the DLL.
}

in the Def file add this
SECTIONS
.DAT Read Write Shared


Hope this will help you.

Regards
Mohamed Shiraz


The Best Relligion is Science.
Once you understand it, you will know God.
GeneralRe: Preventing multiple instance creation in DLL Pin
0v3rloader17-Sep-04 5:36
0v3rloader17-Sep-04 5:36 
GeneralRe: Preventing multiple instance creation in DLL Pin
Alexander M.,17-Sep-04 2:41
Alexander M.,17-Sep-04 2:41 
Generalgetting printer dc and filling in CPrintInfo structure Pin
BlackDice16-Sep-04 7:27
BlackDice16-Sep-04 7:27 
QuestionCan I use and load Microsoft Word as ActiveX in my own project! Pin
Behzad Ebrahimi16-Sep-04 6:58
Behzad Ebrahimi16-Sep-04 6:58 
AnswerRe: Can I use and load Microsoft Word as ActiveX in my own project! Pin
David Crow16-Sep-04 7:10
David Crow16-Sep-04 7:10 
GeneralMoving text to String Table Pin
DRHuff16-Sep-04 6:42
DRHuff16-Sep-04 6:42 
QuestionHow Can I add design time licence to my ActiveX? Pin
Behzad Ebrahimi16-Sep-04 6:40
Behzad Ebrahimi16-Sep-04 6:40 
GeneralCString! Pin
mostafa_pasha16-Sep-04 6:39
mostafa_pasha16-Sep-04 6:39 
GeneralRe: CString! Pin
Behzad Ebrahimi16-Sep-04 6:44
Behzad Ebrahimi16-Sep-04 6:44 
GeneralRe: CString! Pin
mostafa_pasha16-Sep-04 7:08
mostafa_pasha16-Sep-04 7:08 
GeneralRe: CString! Pin
Budric B.16-Sep-04 6:45
Budric B.16-Sep-04 6:45 
GeneralRe: CString! Pin
David Crow16-Sep-04 7:07
David Crow16-Sep-04 7:07 
GeneralRe: CString! Pin
mostafa_pasha16-Sep-04 7:17
mostafa_pasha16-Sep-04 7:17 
GeneralRe: CString! Pin
David Crow16-Sep-04 7:21
David Crow16-Sep-04 7:21 
GeneralRe: CString! Pin
mostafa_pasha16-Sep-04 7:41
mostafa_pasha16-Sep-04 7:41 
GeneralRe: CString! Pin
David Crow16-Sep-04 7:47
David Crow16-Sep-04 7:47 
GeneralEliminating Flicker using DirectDraw?! Pin
towd16-Sep-04 5:57
towd16-Sep-04 5: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.