Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » where can I find more info?
where can I find more info? [message #28584] Wed, 08 September 2010 07:06 Go to previous message
jerson is currently offline  jerson
Messages: 202
Registered: June 2010
Location: Bombay, India
Experienced Member

I am looking at the Format function which is in util.cpp

This and few other functions have no mention anywhere in the documentation. Is there a place where all the available functions are listed and their parentage? This will help to know which files need to be included for a particular function to be used.

I have a file that uses the Format("%s","This is a test") function. Without the #include <core/core.h> I get a link time error on Format being undefined. On including <core/core.h> in my cpp file, I get

In file included from C:\MyApps\NIDAQ\NIDAQ.c:2:0:
C:\upp2625\uppsrc/core/core.h:39:20: fatal error: typeinfo: No such file or directory
compilation terminated.


and this is in Nidaq.c
#include "nidaqmx.h"
#include "core/core.h"

/**********************************************************************/
#define DAQmxErrChk(functionCall) if( DAQmxFailed(error=(functionCall)) ) goto Error; else

void	MyTest()
{
	return;
}

int32	Ni_ReadDI(int8 Dev, int8 Port, int32 *DI)
{
   int32     	error=0;
   TaskHandle   taskHandle=0;
   uInt32    	data;
   char      	errBuff[2048]={'\0'};
   int32     	read;

   //*********************************************
   // DAQmx Configure Code
   //*********************************************
   DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
   DAQmxErrChk (DAQmxCreateDIChan(taskHandle, 
   				(const char *)(Format("Dev%c/port%c",Dev,Port)),
   				"",DAQmx_Val_ChanForAllLines));

...... irrelevant part snipped off
 


I'd appreciate any help I can get with this. For now, I'm stuck.

Regards
  • Attachment: NIDAQ.zip
    (Size: 150.13KB, Downloaded 193 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems in growing up from newbie
Next Topic: Limits check in Meter code
Goto Forum:
  


Current Time: Sat Apr 27 13:38:04 CEST 2024

Total time taken to generate the page: 0.02989 seconds