Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use VB functions in VC program Pin
Shaffiq7-Jul-03 18:26
Shaffiq7-Jul-03 18:26 
GeneralRe: How to use VB functions in VC program Pin
mr20038-Jul-03 7:32
mr20038-Jul-03 7:32 
GeneralRe: How to use VB functions in VC program Pin
Shaffiq8-Jul-03 20:34
Shaffiq8-Jul-03 20:34 
QuestionHow to get a HINSTANCE Pin
RvD20027-Jul-03 8:06
sussRvD20027-Jul-03 8:06 
AnswerRe: How to get a HINSTANCE Pin
AlexO7-Jul-03 8:39
AlexO7-Jul-03 8:39 
GeneralRe: How to get a HINSTANCE Pin
RvD20027-Jul-03 9:50
sussRvD20027-Jul-03 9:50 
AnswerRe: How to get a HINSTANCE Pin
John R. Shaw7-Jul-03 9:09
John R. Shaw7-Jul-03 9:09 
GeneralEasy question about passing by refrence to another function Pin
johnstonsk7-Jul-03 8:05
johnstonsk7-Jul-03 8:05 
I created a stuct in a class and I need a function that returns the pointer to that struct.

I need to be able to access the elements in the structure.

<br />
class MyClass{<br />
   struct a {<br />
     char arr[10];<br />
     double dub[10];<br />
   }<br />
<br />
<br />
function that returns the pointer to struct a<br />
   void returnPointer(){<br />
      return pointer?????;<br />
   }<br />
}<br />
-------------------------<br />
<br />
(From another class)<br />
MyClass::returnPointer();<br />
a.arr[1];


Do I need to make a struct in the class that is calling the function in order to access the elements
by casting the pointer to the struct?

As you can see I am a bit lost on how to do this.

sj
GeneralRe: Easy question about passing by refrence to another function Pin
AlexO7-Jul-03 8:22
AlexO7-Jul-03 8:22 
GeneralRe: Easy question about passing by refrence to another function Pin
johnstonsk7-Jul-03 8:33
johnstonsk7-Jul-03 8:33 
GeneralRe: Easy question about passing by refrence to another function Pin
AlexO7-Jul-03 8:44
AlexO7-Jul-03 8:44 
GeneralDeleting an application that is currently loaded Pin
Dangleberry7-Jul-03 7:47
sussDangleberry7-Jul-03 7:47 
GeneralRe: Deleting an application that is currently loaded Pin
John M. Drescher7-Jul-03 8:05
John M. Drescher7-Jul-03 8:05 
GeneralRe: Deleting an application that is currently loaded Pin
Dangleberry7-Jul-03 8:28
sussDangleberry7-Jul-03 8:28 
GeneralRe: Deleting an application that is currently loaded Pin
Dudi Avramov7-Jul-03 22:10
Dudi Avramov7-Jul-03 22:10 
Generaluse of double type Pin
DaveE9th7-Jul-03 7:45
DaveE9th7-Jul-03 7:45 
GeneralRe: use of double type Pin
cmk7-Jul-03 8:09
cmk7-Jul-03 8:09 
GeneralRe: use of double type Pin
DaveE9th7-Jul-03 22:47
DaveE9th7-Jul-03 22:47 
GeneralRe: use of double type Pin
David Crow8-Jul-03 3:25
David Crow8-Jul-03 3:25 
GeneralNetwork question Pin
VitSoft7-Jul-03 7:02
VitSoft7-Jul-03 7:02 
GeneralFree static (dll) libary Pin
AnTri7-Jul-03 6:22
AnTri7-Jul-03 6:22 
GeneralRe: Free static (dll) libary Pin
David Crow7-Jul-03 7:19
David Crow7-Jul-03 7:19 
GeneralRe: Free static (dll) libary Pin
AnTri7-Jul-03 8:38
AnTri7-Jul-03 8:38 
GeneralRe: Free static (dll) libary Pin
David Crow7-Jul-03 10:12
David Crow7-Jul-03 10:12 
GeneralRe: Free static (dll) libary Pin
Navin7-Jul-03 9:55
Navin7-Jul-03 9:55 

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.