Click here to Skip to main content
15,923,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HOw to disable particular key combination ? Pin
PJ Arends14-Nov-06 5:29
professionalPJ Arends14-Nov-06 5:29 
AnswerRe: HOw to disable particular key combination ? Pin
Hamid_RT14-Nov-06 8:32
Hamid_RT14-Nov-06 8:32 
QuestionCreateProcess Pin
harsha_123414-Nov-06 1:35
harsha_123414-Nov-06 1:35 
AnswerRe: CreateProcess Pin
VonHagNDaz14-Nov-06 4:39
VonHagNDaz14-Nov-06 4:39 
AnswerRe: CreateProcess Pin
Hamid_RT15-Nov-06 7:10
Hamid_RT15-Nov-06 7:10 
QuestionHow to catch ON_UPDATE_COMMAND_UI message in a non-mode dialog? Pin
amwwcwujqw_14-Nov-06 1:16
amwwcwujqw_14-Nov-06 1:16 
AnswerRe: How to catch ON_UPDATE_COMMAND_UI message in a non-mode dialog? Pin
Hamid_RT15-Nov-06 7:10
Hamid_RT15-Nov-06 7:10 
QuestionStatic Library and VB Access Pin
Andy20214-Nov-06 1:12
Andy20214-Nov-06 1:12 
I have developed a static library in Visual Studio 2005 using C and C++.
Now I would like it to be available in Visual Basic applications.
Currently I build a library file and include that and the header file of prototypes and build the solution.

I have included a typical libray function and my question is what do I need to do to allow access in VB.
Data Structure
static char EventText[][60] = {
  "WAPI-000 Successfully Completed.                           ",
  "WAPI-001 Initialisation Has Failed.                        ",
  "WAPI-002 Failed to set the voltage level for coupling mode.",
   ...
   ...
   etc
  "WAPI-049 Failed to Write a Frame			      "};

}

Prototype in Header file
/* GET TEXT ASSOCIATED WITH STATUS RETURNED BY LIBRARY CALL */
char * GetEventText429( UINT event_id);
}


The code of the function
char * GetEventText429( UINT event_id )
{
	return &EventText[event_id][0];
}


e.g. Data structure, call in header file and code of function.

Many thanks,

Andy.
AnswerRe: Static Library and VB Access Pin
Chris Losinger14-Nov-06 4:04
professionalChris Losinger14-Nov-06 4:04 
Questionstill on CFileDialog Pin
Desmo1613-Nov-06 23:48
Desmo1613-Nov-06 23:48 
AnswerRe: still on CFileDialog Pin
Cedric Moonen13-Nov-06 23:52
Cedric Moonen13-Nov-06 23:52 
AnswerRe: still on CFileDialog [modified] Pin
toxcct13-Nov-06 23:56
toxcct13-Nov-06 23:56 
GeneralRe: still on CFileDialog Pin
Rajesh R Subramanian14-Nov-06 0:00
professionalRajesh R Subramanian14-Nov-06 0:00 
GeneralRe: still on CFileDialog Pin
toxcct14-Nov-06 0:03
toxcct14-Nov-06 0:03 
GeneralRe: still on CFileDialog Pin
Desmo1614-Nov-06 0:02
Desmo1614-Nov-06 0:02 
GeneralRe: still on CFileDialog Pin
toxcct14-Nov-06 0:04
toxcct14-Nov-06 0:04 
AnswerRe: still on CFileDialog Pin
Hamid_RT15-Nov-06 7:05
Hamid_RT15-Nov-06 7:05 
Question[Message Deleted] Pin
Bagaturia david13-Nov-06 23:31
Bagaturia david13-Nov-06 23:31 
AnswerRe: Problem with pointer Pin
Nibu babu thomas13-Nov-06 23:50
Nibu babu thomas13-Nov-06 23:50 
AnswerRe: Problem with pointer [modified] Pin
Viorel.14-Nov-06 0:09
Viorel.14-Nov-06 0:09 
QuestionTransparent background in static text Pin
RadPC13-Nov-06 22:24
RadPC13-Nov-06 22:24 
AnswerRe: Transparent background in static text Pin
prasad_som13-Nov-06 22:41
prasad_som13-Nov-06 22:41 
GeneralRe: Transparent background in static text Pin
RadPC13-Nov-06 22:59
RadPC13-Nov-06 22:59 
AnswerRe: Transparent background in static text Pin
Hamid_RT15-Nov-06 7:05
Hamid_RT15-Nov-06 7:05 
QuestionHow to change file permission/property in VC++? Pin
Poonamol13-Nov-06 22:08
Poonamol13-Nov-06 22:08 

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.