Click here to Skip to main content
15,921,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream as a parameter Pin
Joaquín M López Muñoz16-Apr-02 12:20
Joaquín M López Muñoz16-Apr-02 12:20 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:33
protectorChristian Graus16-Apr-02 12:33 
GeneralRe: ifstream as a parameter Pin
Joaquín M López Muñoz16-Apr-02 12:43
Joaquín M López Muñoz16-Apr-02 12:43 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:49
protectorChristian Graus16-Apr-02 12:49 
GeneralRe: ifstream as a parameter Pin
Christian Graus16-Apr-02 12:12
protectorChristian Graus16-Apr-02 12:12 
GeneralRe: ifstream as a parameter Pin
Steve L.16-Apr-02 14:54
Steve L.16-Apr-02 14:54 
GeneralConverting a Win32 Static Library to a DLL for VB Pin
SanShou16-Apr-02 10:49
SanShou16-Apr-02 10:49 
GeneralRe: Converting a Win32 Static Library to a DLL for VB Pin
Chris Losinger16-Apr-02 11:09
professionalChris Losinger16-Apr-02 11:09 
well, you can't export any "classes" if you want to be able to use the DLL from VB because VB can only handle plain old C interfaced DLLs. and even then, you've got to be careful in your choice of parameters because VB is a little bitchy about dealing with pointers into structs and such.

for my projects, i write all the classes in C++ then put a plain C wrapper around them - then i export these C functions. if any C++ object needs to exist outside the library (ie. outside the C wrapper), i pass the object address out but i give it a "handle"-type name so that people won't be expecting to be poking around inside it. and, i put lots of validity checking when getting the object back (to make sure VB hasn't passed the wrong thing back).

-c



A computer lets you make more mistakes faster than any other invention, with the possible exceptions of handguns and Tequilla.
   Mitch Ratcliffe


GeneralRe: Converting a Win32 Static Library to a DLL for VB Pin
Paul M Watt16-Apr-02 13:00
mentorPaul M Watt16-Apr-02 13:00 
GeneralRe: Converting a Win32 Static Library to a DLL for VB Pin
SanShou17-Apr-02 4:03
SanShou17-Apr-02 4:03 
QuestionWhat's up with CRecordset? Pin
Loren Brewer16-Apr-02 10:28
Loren Brewer16-Apr-02 10:28 
GeneralOleacc.dll in VC 7 - more VC 7 sh%t Pin
Pavel Sokolov16-Apr-02 10:18
Pavel Sokolov16-Apr-02 10:18 
GeneralRe: Oleacc.dll in VC 7 - more VC 7 sh%t Pin
Joaquín M López Muñoz16-Apr-02 10:32
Joaquín M López Muñoz16-Apr-02 10:32 
QuestionClientToScreen() ??? Pin
lucy16-Apr-02 9:31
lucy16-Apr-02 9:31 
AnswerRe: ClientToScreen() ??? Pin
Joaquín M López Muñoz16-Apr-02 9:45
Joaquín M López Muñoz16-Apr-02 9:45 
AnswerRe: ClientToScreen() ??? Pin
Tim Smith16-Apr-02 10:08
Tim Smith16-Apr-02 10:08 
GeneralRe: ClientToScreen() ??? Pin
lucy16-Apr-02 17:27
lucy16-Apr-02 17:27 
AnswerRe: ClientToScreen() ??? Pin
Shog916-Apr-02 10:11
sitebuilderShog916-Apr-02 10:11 
GeneralRe: ClientToScreen() ??? Pin
Tim Smith16-Apr-02 10:14
Tim Smith16-Apr-02 10:14 
GeneralRe: ClientToScreen() ??? Pin
lucy16-Apr-02 15:29
lucy16-Apr-02 15:29 
AnswerRe: ClientToScreen() ??? Pin
Kemal OZLU16-Apr-02 10:13
Kemal OZLU16-Apr-02 10:13 
Generalbasic window question Pin
User 988516-Apr-02 8:57
User 988516-Apr-02 8:57 
GeneralRe: basic window question Pin
lucy16-Apr-02 8:58
lucy16-Apr-02 8:58 
GeneralRe: basic window question Pin
Paul M Watt16-Apr-02 9:25
mentorPaul M Watt16-Apr-02 9:25 
GeneralRe: basic window question Pin
lucy16-Apr-02 9:37
lucy16-Apr-02 9:37 

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.