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

C / C++ / MFC

 
GeneralRe: LPCTSTR to LPCWSTR Pin
David Crow22-Apr-09 5:48
David Crow22-Apr-09 5:48 
Questioncreating modeless dialog Pin
Rakesh521-Apr-09 19:32
Rakesh521-Apr-09 19:32 
AnswerRe: creating modeless dialog Pin
Chandrasekharan P21-Apr-09 19:38
Chandrasekharan P21-Apr-09 19:38 
AnswerRe: creating modeless dialog Pin
Hamid_RT21-Apr-09 20:04
Hamid_RT21-Apr-09 20:04 
QuestionNetUserChangePassword( not working under Windosw 2003 sp2 Pin
CADITC_CODER21-Apr-09 18:59
CADITC_CODER21-Apr-09 18:59 
QuestionHow to draw the 3D image using the StL file Pin
DevelopmentNoob21-Apr-09 17:52
DevelopmentNoob21-Apr-09 17:52 
AnswerRe: How to draw the 3D image using the StL file Pin
Cedric Moonen21-Apr-09 20:20
Cedric Moonen21-Apr-09 20:20 
Questionuse gdi+ to draw special picture Pin
x169m21-Apr-09 16:29
x169m21-Apr-09 16:29 
AnswerRe: use gdi+ to draw special picture Pin
Hamid_RT21-Apr-09 20:12
Hamid_RT21-Apr-09 20:12 
Questionabout SetJob().about Printer Pin
tony_bin21-Apr-09 15:41
tony_bin21-Apr-09 15:41 
QuestionPre-Allocate File Storage Pin
Hoppenfeld21-Apr-09 9:18
Hoppenfeld21-Apr-09 9:18 
AnswerRe: Pre-Allocate File Storage Pin
Stuart Dootson21-Apr-09 10:28
professionalStuart Dootson21-Apr-09 10:28 
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 

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.