Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple Unresolved External Symbol error Pin
Stuart Dootson30-Jun-09 6:04
professionalStuart Dootson30-Jun-09 6:04 
AnswerRe: Simple Unresolved External Symbol error Pin
Aric Wang29-Jun-09 23:30
Aric Wang29-Jun-09 23:30 
QuestionCan a data from a file be directly stored in a structure in C? Pin
Razanust29-Jun-09 16:25
Razanust29-Jun-09 16:25 
AnswerRe: Can a data from a file be directly stored in a structure in C? Pin
Harsh Shankar29-Jun-09 18:43
Harsh Shankar29-Jun-09 18:43 
AnswerRe: Can a data from a file be directly stored in a structure in C? Pin
CPallini29-Jun-09 21:40
mveCPallini29-Jun-09 21:40 
QuestionC++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 16:06
dAvId_BotMan29-Jun-09 16:06 
AnswerRe: C++ pointers and DLL linking Pin
«_Superman_»29-Jun-09 18:54
professional«_Superman_»29-Jun-09 18:54 
QuestionRe: C++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 19:08
dAvId_BotMan29-Jun-09 19:08 
Thanks for the reply. Im getting and error with these...

typedef bool     (*Type_InitMotoBee)();                                  
typedef bool     (*Type_SetMotors)(int on1, int speed1, int on2, int speed2, int on3, int speed3, int on4, int speed4, int servo);
typedef void     (*Type_Digital_IO)(int *inputs, int outputs);

HINSTANCE MHtbDLL=LoadLibrary(_T("mtb.dll"));

Type_InitMotoBee InitMotoBee;
Type_SetMotors SetMotors;
Type_Digital_IO Digital_IO;

InitMotoBee = (Type_InitMotoBee)GetProcAddress(MHtbDLL, "InitMotoBee");
SetMotors = (Type_SetMotors)GetProcAddress(MHtbDLL, "SetMotors");
Digital_IO = (Type_Digital_IO)GetProcAddress(MHtbDLL, "Digital_IO");


This is where the program calls the DLL, makes pointers, etc.
After I use SetMotors(); so many times, the program is terminated for an access violation... I cant figure it out. If i comment out everything that envolves the DLL, my program works perfectly.

Thanks,
David
AnswerRe: C++ pointers and DLL linking Pin
«_Superman_»29-Jun-09 19:16
professional«_Superman_»29-Jun-09 19:16 
QuestionRe: C++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 19:20
dAvId_BotMan29-Jun-09 19:20 
AnswerRe: C++ pointers and DLL linking Pin
«_Superman_»29-Jun-09 19:25
professional«_Superman_»29-Jun-09 19:25 
GeneralRe: C++ pointers and DLL linking Pin
dAvId_BotMan29-Jun-09 19:35
dAvId_BotMan29-Jun-09 19:35 
AnswerRe: C++ pointers and DLL linking Pin
Pavan_Putra29-Jun-09 20:06
Pavan_Putra29-Jun-09 20:06 
QuestionKeyboard Hook - all in a DLL Pin
trungkiendt829-Jun-09 8:09
trungkiendt829-Jun-09 8:09 
AnswerRe: Keyboard Hook - all in a DLL Pin
«_Superman_»29-Jun-09 18:48
professional«_Superman_»29-Jun-09 18:48 
GeneralRe: Keyboard Hook - all in a DLL Pin
trungkiendt829-Jun-09 18:56
trungkiendt829-Jun-09 18:56 
GeneralRe: Keyboard Hook - all in a DLL Pin
«_Superman_»29-Jun-09 19:03
professional«_Superman_»29-Jun-09 19:03 
GeneralRe: Keyboard Hook - all in a DLL Pin
trungkiendt830-Jun-09 11:34
trungkiendt830-Jun-09 11:34 
QuestionProblems showing a non modal form from a VB6 activex in Visual C++ 6 [modified] Pin
AlexandreT-DC29-Jun-09 6:09
AlexandreT-DC29-Jun-09 6:09 
QuestionLOGFONT structure.. Pin
kumar sanghvi29-Jun-09 5:23
kumar sanghvi29-Jun-09 5:23 
AnswerRe: LOGFONT structure.. Pin
Chris Losinger29-Jun-09 5:45
professionalChris Losinger29-Jun-09 5:45 
GeneralRe: LOGFONT structure.. Pin
kumar sanghvi29-Jun-09 7:49
kumar sanghvi29-Jun-09 7:49 
GeneralRe: LOGFONT structure.. Pin
Chris Losinger29-Jun-09 7:54
professionalChris Losinger29-Jun-09 7:54 
GeneralRe: LOGFONT structure.. Pin
Sarath C29-Jun-09 7:59
Sarath C29-Jun-09 7:59 
GeneralRe: LOGFONT structure.. Pin
Randor 29-Jun-09 8:03
professional Randor 29-Jun-09 8:03 

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.