Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to add Check Boxes to every Column data using C++ to a List Control? Pin
David Crow3-Dec-04 2:25
David Crow3-Dec-04 2:25 
QuestionWindows MIDI driver(usb).....can anyone tell me functions that handle this? Pin
namaskaaram2-Dec-04 17:35
namaskaaram2-Dec-04 17:35 
QuestionHow much overhead does std::vector have? Pin
Robert Buldoc2-Dec-04 16:53
Robert Buldoc2-Dec-04 16:53 
GeneralMouse Operations Pin
shijuck2-Dec-04 15:42
shijuck2-Dec-04 15:42 
GeneralRe: Mouse Operations Pin
John R. Shaw2-Dec-04 16:15
John R. Shaw2-Dec-04 16:15 
GeneralDialog Handle Pin
max_gundam152-Dec-04 14:05
max_gundam152-Dec-04 14:05 
GeneralRe: Dialog Handle Pin
David Crow3-Dec-04 2:26
David Crow3-Dec-04 2:26 
GeneralC++ dll into visual basic - expert needed! Pin
hemenders2-Dec-04 13:38
hemenders2-Dec-04 13:38 
Interface expert wanted!

Has anyone ever seen this? Can anyone help?

I have built a VC dll to be accessed by a vb app. I am a so-called professional
programmer who has done this plenty of times before and know my way well around both
languages (at least I thought I did)

My C code consists of just 4 entry points from which I then call lots of internal code

The whole thing works great if I build it in VC.net and use it in a vb.net app
(one odd thing though, I always thought that you defined a function as __stdcall
rather than __cdecl - I can only make the dll work in vb.net if I DO declare the funtions
as __cdecl !)

When I go over to windows apps and build the dll in vc6 and use it in vb6 I get
"bad calling convention" (I did use __stdcall this time and expected no problems)

I have tried everything I can think of, a ".def" file, "__declspec(dllexport)" defining,
you name it. I have even run diagnostics: bindump.exe and depends.exe and can
visibly see the entry points apparantly correctly set up by vb6

I have spent much time browsing the web trying different suggestions. None have helped.

I am quite familiar with the differences between calling sequences. Recalling previous
problems experienced with mismatching parameters I even added a special void function
with no parameters (__stdcall) - I can't even call that, same "bad calling" message

Do I have a bad install (?!) - has anyone been through this? I am losing my confidence
and may be applying for a different job real soon!







Generaldetermine the menu option selected Pin
Araj012-Dec-04 12:23
Araj012-Dec-04 12:23 
GeneralRe: determine the menu option selected Pin
Maximilien2-Dec-04 12:31
Maximilien2-Dec-04 12:31 
GeneralRe: determine the menu option selected Pin
Araj012-Dec-04 12:37
Araj012-Dec-04 12:37 
GeneralRe: determine the menu option selected Pin
Maximilien2-Dec-04 13:50
Maximilien2-Dec-04 13:50 
GeneralRe: determine the menu option selected Pin
David Crow3-Dec-04 2:32
David Crow3-Dec-04 2:32 
GeneralRe: determine the menu option selected Pin
Araj013-Dec-04 5:54
Araj013-Dec-04 5:54 
GeneralRe: determine the menu option selected Pin
David Crow3-Dec-04 7:53
David Crow3-Dec-04 7:53 
GeneralRe: determine the menu option selected Pin
Araj013-Dec-04 7:58
Araj013-Dec-04 7:58 
GeneralRe: determine the menu option selected Pin
David Crow3-Dec-04 8:17
David Crow3-Dec-04 8:17 
GeneralRe: determine the menu option selected Pin
Araj013-Dec-04 8:28
Araj013-Dec-04 8:28 
GeneralRe: determine the menu option selected Pin
David Crow3-Dec-04 9:01
David Crow3-Dec-04 9:01 
GeneralRe: determine the menu option selected Pin
Araj013-Dec-04 9:28
Araj013-Dec-04 9:28 
GeneralRe: determine the menu option selected Pin
David Crow3-Dec-04 9:31
David Crow3-Dec-04 9:31 
Generaldsp-file for Visual Studio 6.0 Pin
Reinhold442-Dec-04 11:01
Reinhold442-Dec-04 11:01 
Generalkilled for free std::string, Help please. I will give rate Pin
LongIsland2-Dec-04 10:48
LongIsland2-Dec-04 10:48 
GeneralRe: killed for free std::string, Help please. I will give rate Pin
John R. Shaw2-Dec-04 15:08
John R. Shaw2-Dec-04 15:08 
GeneralRe: killed for free std::string, Help please. I will give rate Pin
Maximilien2-Dec-04 16:19
Maximilien2-Dec-04 16:19 

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.