Solved

pointer to pointer

Posted on 2009-03-30
5
290 Views
Last Modified: 2012-05-06
Hello
I'm trying to use a NI library function that is decleard as below.
CWUIControlsLib_CWAxisGetFormatString (CAObjHandle objectHandle,
                                                       ERRORINFO *errorInfo,
                                                       char **returnValue);
The purpose is to read out a format string in "returnValue".
If I declear a pointer to pointer to char as char **Pointer, the compiler (CVI 8.5) complains
that the pointer is not initialized and I do not get the sting I'm looking for.
Anyone have a proposal ?
Regards Per
0
Comment
Question by:fluidtronic
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 24018065
can you initialize the pointer?
if it is a pointer in which to return a value, you may want to point it to the place where you want the value returned.
0
 
LVL 6

Accepted Solution

by:
twocandles earned 50 total points
ID: 24018093
try to declare it as this:

char *returnValue[MAX_VALUE];

thus initializing it.
0
 

Author Comment

by:fluidtronic
ID: 24018110
Hi
I have tried this but with the same result.

char **Specifier,FormatString[80];
*Specifier=FormatString;       
CWUIControlsLib_CWAxisGetFormatString(Axis[0],NULL,Specifier);
0
 

Author Closing Comment

by:fluidtronic
ID: 31564293
That works. Thank you.
0
 
LVL 6

Expert Comment

by:twocandles
ID: 24018477
You're welcome. Thanks for the points!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
changePi Challenge 15 77
word0 challenge 4 54
java  and programming certification ? 4 65
index Out OF Range Exception error 4 32
This article will show, step by step, how to integrate R code into a R Sweave document
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now