Click here to Skip to main content
15,892,480 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: if-Statement getting me crazy Pin
Maxwell Chen16-Feb-04 18:09
Maxwell Chen16-Feb-04 18:09 
General[OT]: 2 new questions Pin
User 665816-Feb-04 12:06
User 665816-Feb-04 12:06 
GeneralRe: [OT]: 2 new questions Pin
Christian Graus16-Feb-04 12:45
protectorChristian Graus16-Feb-04 12:45 
GeneralRe: if-Statement getting me crazy Pin
Toni7816-Feb-04 15:23
Toni7816-Feb-04 15:23 
GeneralRe: if-Statement getting me crazy Pin
Maxwell Chen16-Feb-04 18:02
Maxwell Chen16-Feb-04 18:02 
Generallist ctrl help-- if new item selected, validate old, and keep old if validation fails Pin
hiseldl16-Feb-04 8:40
hiseldl16-Feb-04 8:40 
GeneralRe: list ctrl help-- if new item selected, validate old, and keep old if validation fails Pin
SolarPanel+16-Feb-04 12:31
SolarPanel+16-Feb-04 12:31 
GeneralImport a "C" function that returns a struct... Pin
sammyh16-Feb-04 8:25
sammyh16-Feb-04 8:25 
I have a .dll with "C" functions that I need to call. One of the functions returns a simple struct(2 doubles)

If I try to use DllImport like this:

[ DllImport("somedll.dll]<br />
   SomeStruct1 f1(SomeStruct1 *pS);  


I get compiler error C3385 "a function that has a DllImport Custom Attribute cannot return an instance of a class"

How can I import a function from a DLL that returns a struct???

Thanks a ton,
Sam
GeneralRe: Import a &quot;C&quot; function that returns a struct... Pin
Robert A. T. Káldy17-Feb-04 0:42
Robert A. T. Káldy17-Feb-04 0:42 
Generallocking toolbars in place ... Pin
Maximilien16-Feb-04 7:47
Maximilien16-Feb-04 7:47 
GeneralRe: locking toolbars in place ... Pin
David Crow16-Feb-04 7:59
David Crow16-Feb-04 7:59 
GeneralScientific Notation Pin
Walt_S16-Feb-04 6:28
Walt_S16-Feb-04 6:28 
GeneralRe: Scientific Notation Pin
David Crow16-Feb-04 7:22
David Crow16-Feb-04 7:22 
GeneralRe: Scientific Notation Pin
Walt_S16-Feb-04 7:27
Walt_S16-Feb-04 7:27 
QuestionHow to access and Modify the Child Window Menu Pin
Omar Alvi16-Feb-04 6:20
Omar Alvi16-Feb-04 6:20 
AnswerRe: How to access and Modify the Child Window Menu Pin
Antti Keskinen16-Feb-04 9:49
Antti Keskinen16-Feb-04 9:49 
GeneralRe: How to access and Modify the Child Window Menu Pin
Omar Alvi16-Feb-04 18:14
Omar Alvi16-Feb-04 18:14 
GeneralRe: How to access and Modify the Child Window Menu Pin
Antti Keskinen16-Feb-04 22:01
Antti Keskinen16-Feb-04 22:01 
GeneralToolBar problem Pin
Deian16-Feb-04 6:03
Deian16-Feb-04 6:03 
GeneralRe: ToolBar problem Pin
LunaticFringe16-Feb-04 7:47
LunaticFringe16-Feb-04 7:47 
GeneralRe: ToolBar problem Pin
Deian16-Feb-04 7:54
Deian16-Feb-04 7:54 
GeneralGDI+ Pin
Prakash Nadar16-Feb-04 5:40
Prakash Nadar16-Feb-04 5:40 
GeneralRe: GDI+ Pin
Steve S16-Feb-04 6:19
Steve S16-Feb-04 6:19 
GeneralRe: GDI+ Pin
Prakash Nadar16-Feb-04 16:44
Prakash Nadar16-Feb-04 16:44 
GeneralPrinting Icons Pin
Julio Garvía Honrado16-Feb-04 5:22
sussJulio Garvía Honrado16-Feb-04 5:22 

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.