Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSystray icon settings under Windows 7 Pin
Maxwell Chen21-Apr-09 8:16
Maxwell Chen21-Apr-09 8:16 
AnswerRe: Systray icon settings under Windows 7 Pin
Stuart Dootson21-Apr-09 8:39
professionalStuart Dootson21-Apr-09 8:39 
GeneralRe: Systray icon settings under Windows 7 Pin
Maxwell Chen21-Apr-09 15:30
Maxwell Chen21-Apr-09 15:30 
GeneralRe: Systray icon settings under Windows 7 Pin
miriam.l22-Sep-09 19:41
miriam.l22-Sep-09 19:41 
QuestionDetect Internet Explorer 7 Pin
bob1697221-Apr-09 7:33
bob1697221-Apr-09 7:33 
QuestionRe: Detect Internet Explorer 7 Pin
David Crow21-Apr-09 7:58
David Crow21-Apr-09 7:58 
AnswerRe: Detect Internet Explorer 7 Pin
bob1697221-Apr-09 8:18
bob1697221-Apr-09 8:18 
QuestionWho can find my import file ! mingw32 problem!!! Pin
zarelaky21-Apr-09 5:13
zarelaky21-Apr-09 5:13 
when I build a dynamic library with mingw32 in windows xp sp en, i can find libsh.a.
the file i write is blow:
//----------------------
// sh.h
#ifndef SH_H
#define SH_H

#ifndef EXPORT
//#define EXPORT
#define EXPORT __declspec(dllimport)
#else
#undef EXPORT
#define EXPORT __declspec(dllexport)
#endif // EXPORT

void EXPORT show();
/* */
class EXPORT CTestClass
{
public:
CTestClass();
virtual ~CTestClass();
virtual void Show();
};

#endif // SH_H
//--------------------------
// sh.cpp
#include "sh.h"
#include <iostream>

void show()
{
std::cout << "show" << std::endl;
}

void CTestClass::Show()
{
std::cout << "CTestClass::Show" << std::endl;
}

CTestClass::CTestClass()
{
std::cout << "CTestClass::CTestClass" << std::endl;
}

CTestClass::~CTestClass()
{
std::cout << "CTestClass::~CTestClass" << std::endl;
}
//------------------------
//makefile
#here is mingw32 tdm 4.3.3,
CXX=g++
LD=ld

.PHONY: all clean

all:
$(CXX) -DEXPORT sh.cpp -c -osh.o
$(CXX) -shared sh.o --output-def=sh.def --out-imp=liblibsh.a -osh.dll
@echo %cd%
clean:
//-----------end of all ----------------

i can find libsh.a in current directory!!!
Confused | :confused: Confused | :confused:
AnswerRe: Who can find my import file ! mingw32 problem!!! Pin
Stuart Dootson21-Apr-09 8:34
professionalStuart Dootson21-Apr-09 8:34 
GeneralRe: Who can find my import file ! mingw32 problem!!! Pin
zarelaky22-Apr-09 1:41
zarelaky22-Apr-09 1:41 
GeneralRe: Who can find my import file ! mingw32 problem!!! Pin
Stuart Dootson22-Apr-09 2:04
professionalStuart Dootson22-Apr-09 2:04 
GeneralRe: Who can find my import file ! mingw32 problem!!! Pin
zarelaky22-Apr-09 4:06
zarelaky22-Apr-09 4:06 
QuestionWriting a Unicode File using wofstream [modified] Pin
A&Ms21-Apr-09 4:33
A&Ms21-Apr-09 4:33 
AnswerRe: Writing a Unicode File using wofstream Pin
Stuart Dootson21-Apr-09 8:33
professionalStuart Dootson21-Apr-09 8:33 
AnswerRe: Writing a Unicode File using wofstream Pin
A&Ms21-Apr-09 10:43
A&Ms21-Apr-09 10:43 
GeneralRe: Writing a Unicode File using wofstream Pin
Stuart Dootson21-Apr-09 10:51
professionalStuart Dootson21-Apr-09 10:51 
GeneralRe: Writing a Unicode File using wofstream Pin
A&Ms21-Apr-09 22:17
A&Ms21-Apr-09 22:17 
GeneralRe: Writing a Unicode File using wofstream Pin
Stuart Dootson21-Apr-09 22:28
professionalStuart Dootson21-Apr-09 22:28 
GeneralRe: Writing a Unicode File using wofstream Pin
A&Ms22-Apr-09 6:53
A&Ms22-Apr-09 6:53 
QuestionComparison of (int)DWORD Pin
Mikey_H21-Apr-09 4:27
Mikey_H21-Apr-09 4:27 
AnswerRe: Comparison of (int)DWORD Pin
Cedric Moonen21-Apr-09 4:32
Cedric Moonen21-Apr-09 4:32 
GeneralRe: Comparison of (int)DWORD Pin
Mikey_H21-Apr-09 4:42
Mikey_H21-Apr-09 4:42 
GeneralRe: Comparison of (int)DWORD Pin
Cedric Moonen21-Apr-09 4:46
Cedric Moonen21-Apr-09 4:46 
GeneralRe: Comparison of (int)DWORD [modified] Pin
Mikey_H21-Apr-09 5:07
Mikey_H21-Apr-09 5:07 
GeneralRe: Comparison of (int)DWORD Pin
Cedric Moonen21-Apr-09 7:20
Cedric Moonen21-Apr-09 7:20 

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.