DTwainAppInfo::SetProductName

Top  Previous  Next

Syntax

DTwainAppInfo& SetProductName( const std::string& szProdName );

 

Parameters

szProdName

A std::string, string literal constant, or pointer to a buffer of type char denoting the product name.

 

Comments

Sets the product family info in the DTwainAppInfo object to szProdName

 

Example:

 

#include "cdtwain.h"

#include <string>

 

using namespace DTWAIN;

 

void foo( )

{

   DTwainAppInfo Info;

 

   // string literal

   Info.SetProductName("DynaRithmic Scanner");

 

   // Now use std::string

   std::string s = "Another";

   Info.SetProductName( s );

}