Click here to Skip to main content
15,914,902 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: int change to char Pin
Cedric Moonen7-Jan-08 2:33
Cedric Moonen7-Jan-08 2:33 
GeneralRe: int change to char Pin
Matthew Faithfull7-Jan-08 2:45
Matthew Faithfull7-Jan-08 2:45 
GeneralRe: int change to char Pin
toxcct7-Jan-08 3:06
toxcct7-Jan-08 3:06 
JokeRe: int change to char Pin
CPallini7-Jan-08 4:23
mveCPallini7-Jan-08 4:23 
GeneralRe: int change to char Pin
Eytukan7-Jan-08 6:58
Eytukan7-Jan-08 6:58 
GeneralRe: int change to char Pin
Maxwell Chen7-Jan-08 7:16
Maxwell Chen7-Jan-08 7:16 
GeneralPassing LPCSTR from C++ Dll to VB Pin
CrocodileBuck7-Jan-08 1:58
CrocodileBuck7-Jan-08 1:58 
GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
Matthew Faithfull7-Jan-08 2:23
Matthew Faithfull7-Jan-08 2:23 
Strings in VB are a little more involved underneath than strings in C++. Try changing the Dll end to return a BSTR allocated with SysAllocString or a related API. If BSTRs (BeeStings Smile | :) ) just seem way to awkward ATL provides the very useful CComBSTR class which deals with many of the painful bits for you. BSTRs have the length written into 2 bytes on the front of the string followed by the string which may or may not be NULL or even double NULL terminated.
This is what VB does for you when you use it's friendly string type.

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
Chris Losinger7-Jan-08 7:25
professionalChris Losinger7-Jan-08 7:25 
GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
Maxwell Chen7-Jan-08 7:45
Maxwell Chen7-Jan-08 7:45 
QuestionRe: Passing LPCSTR from C++ Dll to VB Pin
CPallini7-Jan-08 2:53
mveCPallini7-Jan-08 2:53 
GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
CrocodileBuck7-Jan-08 3:14
CrocodileBuck7-Jan-08 3:14 
GeneralI got it! Pin
CPallini7-Jan-08 11:12
mveCPallini7-Jan-08 11:12 
GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
Chris Meech7-Jan-08 7:59
Chris Meech7-Jan-08 7:59 
GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
CrocodileBuck8-Jan-08 0:07
CrocodileBuck8-Jan-08 0:07 
QuestionMemory Table Pin
Programm3r7-Jan-08 1:20
Programm3r7-Jan-08 1:20 
GeneralRe: Memory Table Pin
Nishad S7-Jan-08 1:58
Nishad S7-Jan-08 1:58 
GeneralRe: Memory Table Pin
Programm3r7-Jan-08 2:24
Programm3r7-Jan-08 2:24 
GeneralRe: Memory Table Pin
toxcct7-Jan-08 3:10
toxcct7-Jan-08 3:10 
GeneralRe: Memory Table Pin
CPallini7-Jan-08 9:09
mveCPallini7-Jan-08 9:09 
GeneralCombo box issue Pin
Chandrasekharan P7-Jan-08 1:02
Chandrasekharan P7-Jan-08 1:02 
QuestionRe: Combo box issue Pin
CPallini7-Jan-08 1:51
mveCPallini7-Jan-08 1:51 
GeneralRe: Combo box issue Pin
Chandrasekharan P7-Jan-08 21:42
Chandrasekharan P7-Jan-08 21:42 
QuestionRe: Combo box issue Pin
CPallini7-Jan-08 22:00
mveCPallini7-Jan-08 22:00 
GeneralRe: Combo box issue Pin
Chandrasekharan P7-Jan-08 22:35
Chandrasekharan P7-Jan-08 22:35 

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.