Click here to Skip to main content
15,910,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalint change to char Pin
hanlei00000000097-Jan-08 2:31
hanlei00000000097-Jan-08 2:31 
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 
Hi,

i'm trying to pass a LPCSTR from a C++ Dll to a VB Code.
I'm getting no Error Message but the String will not appear in the Msg Box of the VB code ! I'm really drivin Crazy with this.Confused | :confused:
Here are some lines of the code:
VB
<br />
Option Explicit<br />
<br />
Private Declare Function fnWin32DLL02 Lib "Win32DLL02.dll" () As Integer<br />
<br />
Private Sub Form_Load()<br />
    <br />
    Dim x As String<br />
    <br />
    x = Space$(3)<br />
    x = fnWin32DLL02()<br />
    MsgBox "X ist: " & x<br />
    <br />
End Sub<br />



Cpp:
<br />
WIN32DLL02_API LPCSTR fnWin32DLL02(void)<br />
{<br />
		LPCSTR s = "abc";<br />
	<br />
		return s;<br />
}<br />


Many Thx for your answers,
Best Regards
Croc
GeneralRe: Passing LPCSTR from C++ Dll to VB Pin
Matthew Faithfull7-Jan-08 2:23
Matthew Faithfull7-Jan-08 2:23 
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 

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.