This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (13 messages)
Thanks, left a message for MSOFT, waiting to hear back. John
BAD DLL CALLING CONVENT.
Message #1791
Yes, thanks! John
Thanks for the help! Strange about the recommendation not to use "COMPACT" model as that is what BC++ defaults to when creating DLL's! John There is 1 Reply.
Jonathan, Disregard the last message. With help from everyone here, particularly Mr. Chen, I was able to get it to work. I was missing the FAR PASCAL identifier. One last question, how do I return a string to a VB progra when C has no string data type. I tried…
THANKS! It worked! Now, one last question and I should be well on my way to Windows Programming 🙂 — How do I return a string to VB from C when C has no String data type? I tried returning a char *, but this resulted in an unrecoverable application…
Thanks for the help…will give it a try! John
Mark, Thanks for your help…I did that. This type of thing is the WORST part of the learning code. It seems that I was breezing along, learning VB and C++, and now I've ended up spending several days on what is probably a really simple mistake on my part. Oh…
THanks for the help, actually, no need to zip the code–it's short. I was just playing to see if I could do it. Here's the Code BC++ ————#include #include extern "C" int Chowmain(void); int FAR PASCAL LibMain(HANDLE One,WORD Two,WORD Three,LPSTR Four) { return 1; } int Chowmain(void) { return 1;…
I also tried using Alias "_chowmain" since that seemed to be the name in the DLL. John
Sorry for butting into this thread, but I have been unable to get VIsual Basic to recognize a function in a DLL, and others have been unable to help me. Everyone in this message seems to have at least gotten BC++ and VB to "cooperate." I compiled a DLL, using…
Tried it…it didn't work. Set the compiler for "all functions external." That didn't work either. Any other suggestions? Will leave a message for Borland to see if there's something I'm forgetting to do. Thanks, John
Does that mean that all I have to do is put the _export keyword in front of all the function names? Do I have to use _export with WinMain? Thanks, John There is 1 Reply.
Thanks for the info, John