Click here to Skip to main content
15,925,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChanging Individual Item Background Color of listview (need win32 non MFC) Pin
author29-Oct-01 2:17
author29-Oct-01 2:17 
GeneralScrollBar Pin
Özgür29-Oct-01 1:04
Özgür29-Oct-01 1:04 
GeneralRe: ScrollBar Pin
#realJSOP29-Oct-01 1:25
professional#realJSOP29-Oct-01 1:25 
GeneralBasic MFC problem Pin
29-Oct-01 0:35
suss29-Oct-01 0:35 
GeneralRe: Make the situation easy! Pin
Masaaki Onishi29-Oct-01 6:45
Masaaki Onishi29-Oct-01 6:45 
QuestionHow to insert multi language support in vc project Pin
akhtar28-Oct-01 23:36
akhtar28-Oct-01 23:36 
AnswerRe: How to insert multi language support in vc project Pin
Tomasz Sowinski29-Oct-01 2:10
Tomasz Sowinski29-Oct-01 2:10 
GeneralMixed language programming DLL , C++, VB/VBA, Fortran Pin
Jack R28-Oct-01 23:29
Jack R28-Oct-01 23:29 
I need to create a DLL from C++ and call some of its functions from VB/VBA and Fortran.

While creating the DLL I used/tried the /Gz option and also ' extern "C" '
The code below causes runtime error 453 although the function has been
exported as int ExtractInt(CString &Line)

Declare Function ExtractInt Lib "MyDll.dll" (ByRef Line) As Integer
// 'Line' is a CString and will be modified by ExtractInt
Function TestExtractInt() As Integer
Dim ValInt As Integer
Dim Text As String
Text = "12 Jack 3"
ValInt = ExtractInt(Text) // Should be 12
TxtRet = Text // Should be " Jack 3"
TextExtractInt = ValInt
End Function

Questions:
a) Where can I find documentation that describes how to call DLLs written in
C++ from VB (especially if MFC and CStrings are involved)?
b) What is wrong with my code?Confused | :confused:
GeneralRe: Mixed language programming DLL , C++, VB/VBA, Fortran Pin
markkuk29-Oct-01 0:41
markkuk29-Oct-01 0:41 
GeneralRe: Mixed language programming DLL , C++, VB/VBA, Fortran Pin
#realJSOP29-Oct-01 0:53
professional#realJSOP29-Oct-01 0:53 
QuestionHow to call a function in VB DLL in VC++ Prog Pin
Shrirang28-Oct-01 20:56
Shrirang28-Oct-01 20:56 
QuestionInterrupt under windows??? Pin
Mr.Freeze28-Oct-01 19:39
Mr.Freeze28-Oct-01 19:39 
AnswerRe: Interrupt under windows??? Pin
Tomasz Sowinski29-Oct-01 1:24
Tomasz Sowinski29-Oct-01 1:24 
GeneralRe: Interrupt under windows??? Pin
Mr.Freeze29-Oct-01 13:30
Mr.Freeze29-Oct-01 13:30 
AnswerRe: Interrupt under windows??? Pin
Mike Nordell29-Oct-01 12:08
Mike Nordell29-Oct-01 12:08 
GeneralRe: Interrupt under windows??? Pin
Mr.Freeze29-Oct-01 13:39
Mr.Freeze29-Oct-01 13:39 
GeneralRe: Interrupt under windows??? Pin
Mike Nordell29-Oct-01 14:50
Mike Nordell29-Oct-01 14:50 
AnswerRe: Interrupt under windows??? Pin
Rassman30-Oct-01 5:10
Rassman30-Oct-01 5:10 
GeneralProgram saving state at system shutdown Pin
Jason Hooper28-Oct-01 18:10
Jason Hooper28-Oct-01 18:10 
GeneralRe: Program saving state at system shutdown Pin
Nish Nishant28-Oct-01 19:41
sitebuilderNish Nishant28-Oct-01 19:41 
GeneralRe: Program saving state at system shutdown Pin
Tomasz Sowinski29-Oct-01 1:35
Tomasz Sowinski29-Oct-01 1:35 
GeneralToolbar Style Pin
Steve L.28-Oct-01 14:50
Steve L.28-Oct-01 14:50 
GeneralRe: Toolbar Style Pin
Christian Graus28-Oct-01 15:27
protectorChristian Graus28-Oct-01 15:27 
GeneralRe: Toolbar Style Pin
Tomasz Sowinski29-Oct-01 1:47
Tomasz Sowinski29-Oct-01 1:47 
QuestionIs there a simple way to save the client area as a .BMP? Pin
28-Oct-01 12:22
suss28-Oct-01 12:22 

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.