Click here to Skip to main content
15,900,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA continuous random number generator? Pin
avimitrani18-Oct-06 0:10
avimitrani18-Oct-06 0:10 
AnswerRe: A continuous random number generator? Pin
Christian Graus18-Oct-06 0:21
protectorChristian Graus18-Oct-06 0:21 
AnswerRe: A continuous random number generator? Pin
wheelerbarry18-Oct-06 1:04
wheelerbarry18-Oct-06 1:04 
GeneralRe: A continuous random number generator? Pin
Cedric Moonen18-Oct-06 1:12
Cedric Moonen18-Oct-06 1:12 
GeneralRe: A continuous random number generator? Pin
avimitrani18-Oct-06 1:34
avimitrani18-Oct-06 1:34 
AnswerRe: A continuous random number generator? Pin
David Crow18-Oct-06 3:23
David Crow18-Oct-06 3:23 
Questionhelp needed Pin
bollapalli18-Oct-06 0:08
bollapalli18-Oct-06 0:08 
AnswerRe: help needed Pin
Jörgen Sigvardsson18-Oct-06 11:46
Jörgen Sigvardsson18-Oct-06 11:46 
Make sure your ActiveX DLLs are registered. Are these functions graphical or non-graphical components? If they're graphical, you can easily use the dialog editor to put the controls into place, or you could use CWnd::CreateControl to create the controls.

If they're non-graphical components, there are basically two ways to use them. If your components expose interfaces with a vtable (IUnknown-based interface or dual interface), you can use the #import feature of Visual C++. The MSDN docs describe how they are used, and I'm sure you can dig something out about #import here on Codeproject. If not, Google is your friend.

If your component is dispatch only (no vtable), you don't need to #import the ActiveX DLL (unless you've defined structs or typedefs in the typelibrary). Then you can use the COleDispatchDriver class, which helps you to instantiate the component, as well as call methods and manipulate properties. This project could probably benefit you a lot: http://www.codeproject.com/com/xydispdriver.asp[^], as it simplifies the dispatch stuff a great deal.

--
Verletzen zerfetzen zersetzen zerstören
Doch es darf nicht mir gehören
Ich muss zerstören

QuestionIs there any other way.... Pin
Anamika200517-Oct-06 23:41
Anamika200517-Oct-06 23:41 
AnswerRe: Is there any other way.... Pin
Christian Graus17-Oct-06 23:51
protectorChristian Graus17-Oct-06 23:51 
GeneralRe: Is there any other way.... Pin
Anamika200518-Oct-06 0:34
Anamika200518-Oct-06 0:34 
GeneralRe: Is there any other way.... Pin
Christian Graus18-Oct-06 1:27
protectorChristian Graus18-Oct-06 1:27 
AnswerRe: Is there any other way.... Pin
David Crow18-Oct-06 3:28
David Crow18-Oct-06 3:28 
GeneralRe: Is there any other way.... Pin
vijay_aroli18-Oct-06 4:13
vijay_aroli18-Oct-06 4:13 
Questionchecking char array and a string ? Pin
Sakthiu17-Oct-06 23:29
Sakthiu17-Oct-06 23:29 
QuestionRe: checking char array and a string ? Pin
Programm3r17-Oct-06 23:32
Programm3r17-Oct-06 23:32 
JokeRe: checking char array and a string ? Pin
Sakthiu18-Oct-06 0:47
Sakthiu18-Oct-06 0:47 
GeneralRe: checking char array and a string ? Pin
Programm3r18-Oct-06 0:55
Programm3r18-Oct-06 0:55 
GeneralRe: checking char array and a string ? Pin
Sakthiu18-Oct-06 1:04
Sakthiu18-Oct-06 1:04 
GeneralRe: checking char array and a string ? Pin
Programm3r18-Oct-06 1:11
Programm3r18-Oct-06 1:11 
GeneralRe: checking char array and a string ? Pin
David Crow18-Oct-06 3:32
David Crow18-Oct-06 3:32 
GeneralRe: checking char array and a string ? Pin
Hamid_RT18-Oct-06 8:58
Hamid_RT18-Oct-06 8:58 
GeneralRe: checking char array and a string ? Pin
toxcct18-Oct-06 1:39
toxcct18-Oct-06 1:39 
GeneralRe: checking char array and a string ? Pin
David Crow18-Oct-06 3:31
David Crow18-Oct-06 3:31 
AnswerRe: checking char array and a string ? Pin
toxcct17-Oct-06 23:34
toxcct17-Oct-06 23:34 

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.