Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linking VB and VC Pin
Cedric Moonen3-Oct-05 23:51
Cedric Moonen3-Oct-05 23:51 
GeneralRe: Linking VB and VC Pin
benjnp4-Oct-05 0:11
benjnp4-Oct-05 0:11 
GeneralRe: Linking VB and VC Pin
benjnp4-Oct-05 0:43
benjnp4-Oct-05 0:43 
GeneralRe: Linking VB and VC Pin
Cedric Moonen4-Oct-05 0:58
Cedric Moonen4-Oct-05 0:58 
AnswerRe: Linking VB and VC Pin
Roger Stoltz4-Oct-05 2:19
Roger Stoltz4-Oct-05 2:19 
GeneralRe: Linking VB and VC Pin
benjnp4-Oct-05 6:52
benjnp4-Oct-05 6:52 
AnswerRe: Linking VB and VC Pin
Roger Stoltz4-Oct-05 12:56
Roger Stoltz4-Oct-05 12:56 
GeneralRe: Linking VB and VC Pin
benjnp4-Oct-05 15:03
benjnp4-Oct-05 15:03 
First of all, I'd like to thank you and the forum for your time, learning somthing is much easier when you can ask directly from someone who knows about what your trying to learn.

Regarding CStrings, I noticed a BSTR type in ATL and gave it a try by:
STDMETHODIMP CFirst_ATL::.... (BSTR *strTemp)
{
*strTemp = "Hello World";
...
return S_OK;
}
error: cannot convert from char[6] to unsigned short*

I also can't find a variable type for a character (char MyChar for VC).
I think there's additional method regarding BSTRs, got to look for it.

MFC dll seems OK as I tried it just a few hours ago with simple application but haven't tried it yet when passing a string and other var types. I'll give ActiveX a try, i've seen a lot of .ocx ready for download because that's what my partner been using in his programs, but his using a pre-created .ocx from the internet and I never thought that it can also be created in VC.
Thanx again Smile | :)
QuestionCatch c++ runtime library error Pin
JensB3-Oct-05 23:09
JensB3-Oct-05 23:09 
AnswerRe: Catch c++ runtime library error Pin
Prakash Nadar4-Oct-05 1:10
Prakash Nadar4-Oct-05 1:10 
GeneralRe: Catch c++ runtime library error Pin
JensB4-Oct-05 3:36
JensB4-Oct-05 3:36 
AnswerRe: Catch c++ runtime library error Pin
Tim Smith4-Oct-05 4:12
Tim Smith4-Oct-05 4:12 
Questioncustomize file dialogs Pin
Boder Coder3-Oct-05 22:02
Boder Coder3-Oct-05 22:02 
AnswerRe: customize file dialogs Pin
Lane Yu4-Oct-05 3:46
Lane Yu4-Oct-05 3:46 
QuestionListView and List Ctrl Example Pin
karmendra_js3-Oct-05 21:53
karmendra_js3-Oct-05 21:53 
AnswerRe: ListView and List Ctrl Example Pin
Prakash Nadar3-Oct-05 22:12
Prakash Nadar3-Oct-05 22:12 
QuestionRe: ListView and List Ctrl Example Pin
David Crow4-Oct-05 3:12
David Crow4-Oct-05 3:12 
QuestionProcess ID from Process Name Pin
ragavan3-Oct-05 20:00
ragavan3-Oct-05 20:00 
QuestionList Control Pin
karmendra_js3-Oct-05 19:49
karmendra_js3-Oct-05 19:49 
AnswerRe: List Control Pin
ThatsAlok3-Oct-05 19:53
ThatsAlok3-Oct-05 19:53 
QuestionExponents Pin
karnal3-Oct-05 19:42
karnal3-Oct-05 19:42 
AnswerRe: Exponents Pin
Jose Lamas Rios3-Oct-05 21:02
Jose Lamas Rios3-Oct-05 21:02 
AnswerRe: Exponents Pin
dima_kdl4-Oct-05 1:45
dima_kdl4-Oct-05 1:45 
Questionhow do i typecast a CString to TCHAR type? Pin
Anonymous3-Oct-05 19:30
Anonymous3-Oct-05 19:30 
AnswerRe: how do i typecast a CString to TCHAR type? Pin
ThatsAlok3-Oct-05 19:39
ThatsAlok3-Oct-05 19:39 

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.