Click here to Skip to main content
15,879,095 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Drawing on a static control. Pin
David Crow12-Jun-06 3:02
David Crow12-Jun-06 3:02 
GeneralRe: Drawing on a static control. Pin
llp00na12-Jun-06 4:04
llp00na12-Jun-06 4:04 
Questionhow to insert logo in dialog based form Pin
yogendra kaushik11-Jun-06 23:07
yogendra kaushik11-Jun-06 23:07 
AnswerRe: how to insert logo in dialog based form Pin
_AnsHUMAN_ 11-Jun-06 23:09
_AnsHUMAN_ 11-Jun-06 23:09 
AnswerRe: how to insert logo in dialog based form Pin
Eytukan11-Jun-06 23:14
Eytukan11-Jun-06 23:14 
AnswerRe: how to insert logo in dialog based form Pin
Ganesh_T12-Jun-06 1:23
Ganesh_T12-Jun-06 1:23 
AnswerRe: how to insert logo in dialog based form Pin
ThatsAlok12-Jun-06 2:11
ThatsAlok12-Jun-06 2:11 
QuestionDLL PROBLEM IN vb front end after calling the dll written in win32 application Pin
phijophlip11-Jun-06 23:05
phijophlip11-Jun-06 23:05 
Private Declare Function concat Lib "d:\StringConcat1.dll" (ByVal Text1 As String, ByVal Text2 As String) As String
Private Sub Command1_Click()

Text3.Text = concat(Text1.Text, Text2.Text)
a = Len(concat(Text1.Text, Text2.Text))
MsgBox a
End Sub

The function of the vb code is given below. The form has three text fields
a) The first text field , enter the first string
b) The second text field , enter the second string
c) The third text field, concatation of the two string i.e result of the two strings is shown in third text field
d) One Command button at the bottom of the form.


When we call "StringConcat1.dll" dll the value entered through the two text fields is send as a argument by value to the dll and Concatenation of the strings is done in C++ .

the dll code is given below "test.cpp"

#include

char* __stdcall concat(char *string1 , char *string2)
{
return strcat(string1,string2);

}

the def is given "test.def"

LIBRARY StringConcat1
EXPORTS
concat @1

When I debug the code , the Concatenation is done in C++ but when the result is given to vb code ie front end only the first string that is entered in the first text is shown only as the output in the third text field.

for example
text1 : india
text2 : people
result text3 : india ( but the result should be indiapeople after the concatenation is done in C++(i.e dll does the function for concatenation , but the result shown is here is only "india").


Kindly note the point:

the C++ code works perfectly.

After computation ie Concatenation , the result is not shown in the vb code only text1 input is shown in text3 field.

Can any help me in this matter

From Phijo Philip

AnswerRe: DLL PROBLEM IN vb front end after calling the dll written in win32 application Pin
Cedric Moonen11-Jun-06 23:16
Cedric Moonen11-Jun-06 23:16 
AnswerRe: DLL PROBLEM IN vb front end after calling the dll written in win32 application [oops:modified] [modified] Pin
Eytukan11-Jun-06 23:30
Eytukan11-Jun-06 23:30 
AnswerRe: DLL PROBLEM IN vb front end after calling the dll written in win32 application Pin
Eytukan11-Jun-06 23:33
Eytukan11-Jun-06 23:33 
AnswerRe: DLL PROBLEM IN vb front end after calling the dll written in win32 application Pin
Viorel.11-Jun-06 23:39
Viorel.11-Jun-06 23:39 
Questionhow we can change the mouse cursor Pin
happy_ram11-Jun-06 22:46
happy_ram11-Jun-06 22:46 
AnswerRe: how we can change the mouse cursor Pin
_AnsHUMAN_ 11-Jun-06 22:53
_AnsHUMAN_ 11-Jun-06 22:53 
QuestionRe: how we can change the mouse cursor Pin
happy_ram11-Jun-06 22:57
happy_ram11-Jun-06 22:57 
AnswerRe: how we can change the mouse cursor Pin
Hamid_RT11-Jun-06 23:01
Hamid_RT11-Jun-06 23:01 
QuestionRe: how we can change the mouse cursor Pin
happy_ram11-Jun-06 23:13
happy_ram11-Jun-06 23:13 
AnswerRe: how we can change the mouse cursor Pin
ThatsAlok12-Jun-06 2:13
ThatsAlok12-Jun-06 2:13 
AnswerRe: how we can change the mouse cursor Pin
Ștefan-Mihai MOGA11-Jun-06 23:07
professionalȘtefan-Mihai MOGA11-Jun-06 23:07 
AnswerRe: how we can change the mouse cursor Pin
_AnsHUMAN_ 11-Jun-06 23:34
_AnsHUMAN_ 11-Jun-06 23:34 
AnswerRe: how we can change the mouse cursor Pin
Rage11-Jun-06 22:57
professionalRage11-Jun-06 22:57 
AnswerRe: how we can change the mouse cursor Pin
Eytukan11-Jun-06 23:10
Eytukan11-Jun-06 23:10 
NewsRe: how we can change the mouse cursor Pin
happy_ram11-Jun-06 23:19
happy_ram11-Jun-06 23:19 
GeneralRe: how we can change the mouse cursor [modified] Pin
_AnsHUMAN_ 11-Jun-06 23:32
_AnsHUMAN_ 11-Jun-06 23:32 
GeneralRe: how we can change the mouse cursor Pin
happy_ram11-Jun-06 23:58
happy_ram11-Jun-06 23: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.