OT: .DLL coded in Visual C++, called in VB6; HELP!
2004-08-11 by jay marante
sorry for the OT but i really have a hard time making this program run. im new in VB.
i have a code done in VB6. now, i want to manipulate every element (character) of a string variable. i want to shift its bits to the left. my professor told me that it can't be done in VB, instead, he suggests to make a .DLL file in C++. i don't know anything about C++, but i have knowledge in C since i've been doing my AVR project.
what i did was, chose WIN32 DLL file, then chose simple DLL. i code my routine inside the .CPP file. and compile the program, and build the .DLL file, as what i can see under the PROJECT taskbar. now, i declared a module in VB where i put the declaration of the function and the .DLL file. i called the the function in my VB code but there's an error. it says "Can't find DLL entry point". what am i doing wrong?
attached is my code in C++. its supposed to get the string input in the text box in VB which will be send to the serial port, connected with a nokia phone, send its message to another mobile. before sending it to the com port, i have to manipulate its input. that's the reason for the .DLL file. just run the program. can somebody please help me. tips and smaples are highly appreciated. i tried to google the net but there are lots of examples and i don't know when to use them. and also, how am i going to declare and call it in VB?
thank a lot.
i have a code done in VB6. now, i want to manipulate every element (character) of a string variable. i want to shift its bits to the left. my professor told me that it can't be done in VB, instead, he suggests to make a .DLL file in C++. i don't know anything about C++, but i have knowledge in C since i've been doing my AVR project.
what i did was, chose WIN32 DLL file, then chose simple DLL. i code my routine inside the .CPP file. and compile the program, and build the .DLL file, as what i can see under the PROJECT taskbar. now, i declared a module in VB where i put the declaration of the function and the .DLL file. i called the the function in my VB code but there's an error. it says "Can't find DLL entry point". what am i doing wrong?
attached is my code in C++. its supposed to get the string input in the text box in VB which will be send to the serial port, connected with a nokia phone, send its message to another mobile. before sending it to the com port, i have to manipulate its input. that's the reason for the .DLL file. just run the program. can somebody please help me. tips and smaples are highly appreciated. i tried to google the net but there are lots of examples and i don't know when to use them. and also, how am i going to declare and call it in VB?
thank a lot.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com