Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Retrieving number of directories Pin
David Crow26-Jan-05 9:44
David Crow26-Jan-05 9:44 
GeneralRe: Retrieving number of directories Pin
FayezElFar26-Jan-05 10:12
FayezElFar26-Jan-05 10:12 
GeneralRe: Retrieving number of directories Pin
David Crow26-Jan-05 10:18
David Crow26-Jan-05 10:18 
GeneralRe: Retrieving number of directories Pin
FayezElFar26-Jan-05 10:29
FayezElFar26-Jan-05 10:29 
GeneralRe: Retrieving number of directories Pin
David Crow26-Jan-05 10:41
David Crow26-Jan-05 10:41 
GeneralRe: Retrieving number of directories Pin
JKallen26-Jan-05 12:42
JKallen26-Jan-05 12:42 
GeneralRe: Retrieving number of directories Pin
FayezElFar27-Jan-05 5:01
FayezElFar27-Jan-05 5:01 
GeneralCannot covert parameter - __stdcall Pin
User 137680026-Jan-05 8:41
User 137680026-Jan-05 8:41 
Hi all,
I'm slowly teaching myself Visual C++, and generally doing okay. I've come across a stumbling block though.
I'm working with an SDK that requires a non-disclosure agreement, so I can't paste code fully here sorry. Here's a bit of a mockup of my problem though.

in program.h
//Implementation<br />
//...<br />
  afx_msg void __stdcall doThatThing(struct ndaStruct*, void*)<br />
//...<br />

in program.cpp
void MSWSTDCALL programApp::doThatThing(ndaStruct *foo, void *local_state)<br />
{<br />
  //Do stuff here with foo<br />
}<br />

Another bit obviously calls doThatThing - this is however done from within a function that is a part of the SDK I'm working with, so can't change anything about the way that it calls it.

When I attempt to compile, I get:
error C2664: 'NDA_function' : cannot convert parameter 6 from 'void (struct ndaStruct *,void *)' to 'void (__stdcall *)(struct ndaStruct *,void *)<br />

I'm sure I just need to change the declaration in program.h somehow, but I REALLY don't know how.
Sorry for the vagueness... I know it may make it a bit confusing.

Any help?
GeneralRe: Cannot covert parameter - __stdcall Pin
David Crow26-Jan-05 9:48
David Crow26-Jan-05 9:48 
GeneralRe: Cannot covert parameter - __stdcall Pin
User 137680026-Jan-05 10:21
User 137680026-Jan-05 10:21 
GeneralRe: Cannot covert parameter - __stdcall Pin
trelliot27-Jan-05 18:23
trelliot27-Jan-05 18:23 
GeneralSplitter window title Pin
mdave26-Jan-05 7:55
mdave26-Jan-05 7:55 
GeneralRe: Splitter window title Pin
Tom Wright26-Jan-05 9:25
Tom Wright26-Jan-05 9:25 
GeneralRe: Splitter window title Pin
mdave26-Jan-05 9:38
mdave26-Jan-05 9:38 
GeneralProblem with storing values Pin
RedDragon2k26-Jan-05 6:54
RedDragon2k26-Jan-05 6:54 
GeneralRe: Problem with storing values Pin
David Crow26-Jan-05 7:04
David Crow26-Jan-05 7:04 
GeneralRe: Problem with storing values Pin
RedDragon2k26-Jan-05 7:07
RedDragon2k26-Jan-05 7:07 
GeneralRe: Problem with storing values Pin
David Crow26-Jan-05 7:13
David Crow26-Jan-05 7:13 
GeneralRe: Problem with storing values Pin
RedDragon2k26-Jan-05 7:15
RedDragon2k26-Jan-05 7:15 
GeneralRe: Problem with storing values Pin
David Crow26-Jan-05 7:35
David Crow26-Jan-05 7:35 
GeneralRe: Problem with storing values Pin
RedDragon2k26-Jan-05 7:40
RedDragon2k26-Jan-05 7:40 
GeneralRe: Problem with storing values Pin
David Crow26-Jan-05 7:45
David Crow26-Jan-05 7:45 
GeneralRe: Problem with storing values Pin
RedDragon2k26-Jan-05 7:50
RedDragon2k26-Jan-05 7:50 
GeneralConverting text to float (MFC) Pin
Member 166473326-Jan-05 6:39
Member 166473326-Jan-05 6:39 
GeneralRe: Converting text to float (MFC) Pin
David Crow26-Jan-05 6:47
David Crow26-Jan-05 6:47 

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.