Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CrocodileBuck6-Jan-08 3:26
CrocodileBuck6-Jan-08 3:26 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CPallini6-Jan-08 4:01
mveCPallini6-Jan-08 4:01 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Nemanja Trifunovic6-Jan-08 6:09
Nemanja Trifunovic6-Jan-08 6:09 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Rajesh R Subramanian6-Jan-08 6:18
professionalRajesh R Subramanian6-Jan-08 6:18 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Nemanja Trifunovic6-Jan-08 6:30
Nemanja Trifunovic6-Jan-08 6:30 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Michael Dunn6-Jan-08 7:30
sitebuilderMichael Dunn6-Jan-08 7:30 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Maxwell Chen6-Jan-08 7:46
Maxwell Chen6-Jan-08 7:46 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CrocodileBuck7-Jan-08 0:46
CrocodileBuck7-Jan-08 0:46 
Firs of all,
*THX* to all of you for your answers,
i tried it all ways but it still wont work, i could not find the mistake, i really don't know what i coud do !

These are my latest Codes:
VB:
<br />
Option Explicit<br />
<br />
Private Declare Function fnWin32DLL02 Lib "E:\WORKING\OMRON\GDT\EigeneDLL\Übergabe eines Strings aus C++ Dll\Win32DLL02.dll" () As String<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;<br />
		s = "abc";<br />
	//  s = SysAllocString(L"abc");<br />
	  // 	SysFreeString(s);<br />
		return s;<br />
}<br />



Many thanx again
Croc
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Mike Dimmick6-Jan-08 7:53
Mike Dimmick6-Jan-08 7:53 
GeneralDevice driver Pin
messages5-Jan-08 23:20
messages5-Jan-08 23:20 
GeneralRe: Device driver Pin
Maxwell Chen5-Jan-08 23:39
Maxwell Chen5-Jan-08 23:39 
GeneralRe: Device driver Pin
messages5-Jan-08 23:56
messages5-Jan-08 23:56 
GeneralRe: Device driver Pin
Maxwell Chen6-Jan-08 0:04
Maxwell Chen6-Jan-08 0:04 
GeneralRe: Device driver Pin
messages6-Jan-08 0:30
messages6-Jan-08 0:30 
QuestionHow can i find some old articles? Pin
lichongbin5-Jan-08 23:16
lichongbin5-Jan-08 23:16 
AnswerRe: How can i find some old articles? Pin
Hamid_RT5-Jan-08 23:46
Hamid_RT5-Jan-08 23:46 
GeneralRe: How can i find some old articles? Pin
lichongbin6-Jan-08 14:17
lichongbin6-Jan-08 14:17 
GeneralRe: How can i find some old articles? Pin
Maxwell Chen6-Jan-08 16:26
Maxwell Chen6-Jan-08 16:26 
GeneralRe: How can i find some old articles? Pin
lichongbin6-Jan-08 20:03
lichongbin6-Jan-08 20:03 
GeneralStatic CLass('s) Pin
ForNow5-Jan-08 15:33
ForNow5-Jan-08 15:33 
GeneralRe: Static CLass('s) Pin
Maxwell Chen5-Jan-08 18:09
Maxwell Chen5-Jan-08 18:09 
GeneralRe: Static CLass('s) Pin
ForNow5-Jan-08 18:39
ForNow5-Jan-08 18:39 
GeneralRe: Static CLass('s) Pin
Eytukan5-Jan-08 18:09
Eytukan5-Jan-08 18:09 
GeneralRe: Static CLass('s) Pin
ForNow5-Jan-08 18:43
ForNow5-Jan-08 18:43 
GeneralRe: Static CLass('s) Pin
Eytukan5-Jan-08 18:58
Eytukan5-Jan-08 18:58 

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.